]>
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. | |
ac1cb8d3 | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.2. |
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' | |
273 | PACKAGE_VERSION='2.5.2' | |
274 | PACKAGE_STRING='wxWidgets 2.5.2' | |
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" | |
74b84332 | 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 PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED 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_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_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_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_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_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_COCOA 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_MAC_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_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_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_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 PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY 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 | |
77ffb593 | 797 | \`configure' configures wxWidgets 2.5.2 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 | |
77ffb593 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.2:";; |
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 | |
a848cd7e SC |
894 | --enable-rpath=DIR output the rpath flag from wx-config |
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 | |
947 | --enable-constraints use layout-constraints system | |
948 | --enable-printarch use printing architecture | |
949 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 950 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
951 | --enable-loggui use standard GUI logger |
952 | --enable-logwin use wxLogWindow | |
953 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 954 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
955 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
956 | --enable-prologio not available; see contrib | |
957 | --enable-resources not available; see contrib | |
958 | --enable-clipboard use wxClipboard class | |
959 | --enable-dnd use Drag'n'Drop classes | |
960 | --enable-metafile use win32 metafiles | |
961 | --enable-controls use all usual controls | |
962 | --enable-accel use accelerators | |
963 | --enable-button use wxButton class | |
964 | --enable-bmpbutton use wxBitmapButton class | |
965 | --enable-calendar use wxCalendarCtrl class | |
966 | --enable-caret use wxCaret class | |
967 | --enable-checkbox use wxCheckBox class | |
968 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
969 | --enable-choice use wxChoice class | |
970 | --enable-combobox use wxComboBox class | |
971 | --enable-display use wxDisplay class | |
972 | --enable-gauge use wxGauge class | |
973 | --enable-grid use wxGrid class | |
974 | --enable-imaglist use wxImageList class | |
975 | --enable-listbook use wxListbook class | |
976 | --enable-listbox use wxListBox class | |
977 | --enable-listctrl use wxListCtrl class | |
978 | --enable-notebook use wxNotebook class | |
979 | --enable-radiobox use wxRadioBox class | |
980 | --enable-radiobtn use wxRadioButton class | |
981 | --enable-sash use wxSashWindow class | |
982 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
983 | --enable-slider use wxSlider class | |
984 | --enable-spinbtn use wxSpinButton class | |
985 | --enable-spinctrl use wxSpinCtrl class | |
986 | --enable-splitter use wxSplitterWindow class | |
987 | --enable-statbmp use wxStaticBitmap class | |
988 | --enable-statbox use wxStaticBox class | |
989 | --enable-statline use wxStaticLine class | |
990 | --enable-stattext use wxStaticText class | |
991 | --enable-statusbar use wxStatusBar class | |
992 | --enable-tabdialog use wxTabControl class | |
993 | --enable-textctrl use wxTextCtrl class | |
994 | --enable-togglebtn use wxToggleButton class | |
995 | --enable-toolbar use wxToolBar class | |
996 | --enable-tbarnative use native wxToolBar class | |
997 | --enable-tbarsmpl use wxToolBarSimple class | |
998 | --enable-treectrl use wxTreeCtrl class | |
999 | --enable-tipwindow use wxTipWindow class | |
1000 | --enable-popupwin use wxPopUpWindow class | |
1001 | --enable-commondlg use all common dialogs | |
1002 | --enable-choicedlg use wxChoiceDialog | |
1003 | --enable-coldlg use wxColourDialog | |
1004 | --enable-filedlg use wxFileDialog | |
1005 | --enable-finddlg use wxFindReplaceDialog | |
1006 | --enable-fontdlg use wxFontDialog | |
1007 | --enable-dirdlg use wxDirDialog | |
1008 | --enable-msgdlg use wxMessageDialog | |
1009 | --enable-numberdlg use wxNumberEntryDialog | |
1010 | --enable-splash use wxSplashScreen | |
1011 | --enable-textdlg use wxTextDialog | |
1012 | --enable-tipdlg use startup tips | |
1013 | --enable-progressdlg use wxProgressDialog | |
1014 | --enable-wizarddlg use wxWizard | |
1015 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1016 | --enable-miniframe use wxMiniFrame class | |
1017 | --enable-tooltips use wxToolTip class | |
1018 | --enable-splines use spline drawing code | |
1019 | --enable-validators use wxValidator and derived classes | |
1020 | --enable-busyinfo use wxBusyInfo | |
1021 | --enable-joystick use wxJoystick (Linux only) | |
1022 | --enable-metafiles use wxMetaFile (Windows only) | |
1023 | --enable-dragimage use wxDragImage | |
1024 | --enable-accessibility enable accessibility support | |
1025 | --enable-palette use wxPalette class | |
1026 | --enable-image use wxImage class | |
1027 | --enable-gif use gif images (GIF file format) | |
1028 | --enable-pcx use pcx images (PCX file format) | |
1029 | --enable-iff use iff images (IFF file format) | |
1030 | --enable-pnm use pnm images (PNM file format) | |
1031 | --enable-xpm use xpm images (XPM file format) | |
1032 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1033 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1034 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1035 | --disable-largefile omit support for large files | |
1036 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1037 | --disable-gtktest Do not try to compile and run a test GTK program | |
1038 | --disable-sdltest Do not try to compile and run a test SDL program | |
1039 | --enable-omf use OMF object format (OS/2) | |
1040 | --disable-precomp-headers don't use precompiled headers even if compiler can | |
1041 | ||
1042 | Optional Packages: | |
1043 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1044 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1045 | --with-gtk use GTK+ | |
1046 | --with-motif use Motif/Lesstif | |
1047 | --with-mac use Mac OS X | |
1048 | --with-cocoa use Cocoa | |
1049 | --with-wine use Wine | |
1050 | --with-msw use MS-Windows | |
1051 | --with-pm use OS/2 Presentation Manager | |
1052 | --with-mgl use SciTech MGL | |
1053 | --with-microwin use MicroWindows | |
1054 | --with-x11 use X11 | |
1055 | --with-libpng use libpng (PNG image format) | |
1056 | --with-libjpeg use libjpeg (JPEG file format) | |
1057 | --with-libtiff use libtiff (TIFF file format) | |
1058 | --with-libxpm use libxpm (XPM file format) | |
1059 | --with-libmspack use libmspack (CHM help files loading) | |
1060 | --with-sdl use SDL for audio on Unix | |
1061 | --with-opengl use OpenGL (or Mesa) | |
1062 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1063 | --with-regex enable support for wxRegEx class | |
1064 | --with-zlib use zlib for LZW compression | |
1065 | --with-odbc use the IODBC and wxODBC classes | |
1066 | --with-expat enable XML support using expat parser | |
1067 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1068 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1069 | --with-x use the X Window System | |
1070 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1071 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1072 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1073 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1074 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1075 | ||
1076 | Some influential environment variables: | |
dcc1b6ad VS |
1077 | CC C compiler command |
1078 | CFLAGS C compiler flags | |
1079 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1080 | nonstandard directory <lib dir> | |
1081 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1082 | headers in a nonstandard directory <include dir> | |
1083 | CPP C preprocessor | |
1084 | CXX C++ compiler command | |
1085 | CXXFLAGS C++ compiler flags | |
1086 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1087 | |
1088 | Use these variables to override the choices made by `configure' or to help | |
1089 | it to find libraries and programs with nonstandard names/locations. | |
1090 | ||
77ffb593 | 1091 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1092 | _ACEOF |
1093 | fi | |
1094 | ||
1095 | if test "$ac_init_help" = "recursive"; then | |
1096 | # If there are subdirs, report their specific --help. | |
1097 | ac_popdir=`pwd` | |
1098 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1099 | test -d $ac_dir || continue | |
1100 | ac_builddir=. | |
1101 | ||
1102 | if test "$ac_dir" != .; then | |
1103 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1104 | # A "../" for each directory in $ac_dir_suffix. | |
1105 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1106 | else | |
1107 | ac_dir_suffix= ac_top_builddir= | |
1108 | fi | |
1109 | ||
1110 | case $srcdir in | |
1111 | .) # No --srcdir option. We are building in place. | |
1112 | ac_srcdir=. | |
1113 | if test -z "$ac_top_builddir"; then | |
1114 | ac_top_srcdir=. | |
1115 | else | |
1116 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1117 | fi ;; | |
1118 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1119 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1120 | ac_top_srcdir=$srcdir ;; | |
1121 | *) # Relative path. | |
1122 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1123 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1124 | esac | |
ac1cb8d3 VS |
1125 | |
1126 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1127 | # the directories may not exist. | |
1128 | case `pwd` in | |
1129 | .) ac_abs_builddir="$ac_dir";; | |
1130 | *) | |
1131 | case "$ac_dir" in | |
1132 | .) ac_abs_builddir=`pwd`;; | |
1133 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1134 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1135 | esac;; | |
1136 | esac | |
1137 | case $ac_abs_builddir in | |
1138 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1139 | *) | |
1140 | case ${ac_top_builddir}. in | |
1141 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1142 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1143 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1144 | esac;; | |
1145 | esac | |
1146 | case $ac_abs_builddir in | |
1147 | .) ac_abs_srcdir=$ac_srcdir;; | |
1148 | *) | |
1149 | case $ac_srcdir in | |
1150 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1151 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1152 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1153 | esac;; | |
1154 | esac | |
1155 | case $ac_abs_builddir in | |
1156 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1157 | *) | |
1158 | case $ac_top_srcdir in | |
1159 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1160 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1161 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1162 | esac;; | |
1163 | esac | |
a848cd7e SC |
1164 | |
1165 | cd $ac_dir | |
1166 | # Check for guested configure; otherwise get Cygnus style configure. | |
1167 | if test -f $ac_srcdir/configure.gnu; then | |
1168 | echo | |
1169 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1170 | elif test -f $ac_srcdir/configure; then | |
1171 | echo | |
1172 | $SHELL $ac_srcdir/configure --help=recursive | |
1173 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1174 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1175 | echo |
1176 | $ac_configure --help | |
1177 | else | |
1178 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1179 | fi | |
dcc1b6ad | 1180 | cd $ac_popdir |
a848cd7e SC |
1181 | done |
1182 | fi | |
1183 | ||
1184 | test -n "$ac_init_help" && exit 0 | |
1185 | if $ac_init_version; then | |
1186 | cat <<\_ACEOF | |
77ffb593 | 1187 | wxWidgets configure 2.5.2 |
ac1cb8d3 | 1188 | generated by GNU Autoconf 2.59 |
a848cd7e | 1189 | |
ac1cb8d3 | 1190 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1191 | This configure script is free software; the Free Software Foundation |
1192 | gives unlimited permission to copy, distribute and modify it. | |
1193 | _ACEOF | |
1194 | exit 0 | |
1195 | fi | |
1196 | exec 5>config.log | |
1197 | cat >&5 <<_ACEOF | |
1198 | This file contains any messages produced by compilers while | |
1199 | running configure, to aid debugging if configure makes a mistake. | |
1200 | ||
77ffb593 | 1201 | It was created by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 1202 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1203 | |
1204 | $ $0 $@ | |
1205 | ||
1206 | _ACEOF | |
1207 | { | |
1208 | cat <<_ASUNAME | |
1209 | ## --------- ## | |
1210 | ## Platform. ## | |
1211 | ## --------- ## | |
1212 | ||
1213 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1214 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1215 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1216 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1217 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1218 | ||
1219 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1220 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1221 | ||
1222 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1223 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1224 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1225 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1226 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1227 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1228 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1229 | ||
1230 | _ASUNAME | |
1231 | ||
1232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1233 | for as_dir in $PATH | |
1234 | do | |
1235 | IFS=$as_save_IFS | |
1236 | test -z "$as_dir" && as_dir=. | |
1237 | echo "PATH: $as_dir" | |
1238 | done | |
1239 | ||
1240 | } >&5 | |
1241 | ||
1242 | cat >&5 <<_ACEOF | |
1243 | ||
1244 | ||
1245 | ## ----------- ## | |
1246 | ## Core tests. ## | |
1247 | ## ----------- ## | |
1248 | ||
1249 | _ACEOF | |
1250 | ||
1251 | ||
1252 | # Keep a trace of the command line. | |
1253 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1254 | # Strip out --silent because we don't want to record it for future runs. | |
1255 | # Also quote any args containing shell meta-characters. | |
1256 | # Make two passes to allow for proper duplicate-argument suppression. | |
1257 | ac_configure_args= | |
1258 | ac_configure_args0= | |
1259 | ac_configure_args1= | |
1260 | ac_sep= | |
1261 | ac_must_keep_next=false | |
1262 | for ac_pass in 1 2 | |
1263 | do | |
1264 | for ac_arg | |
1265 | do | |
1266 | case $ac_arg in | |
1267 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1268 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1269 | | -silent | --silent | --silen | --sile | --sil) | |
1270 | continue ;; | |
1271 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1272 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1273 | esac | |
1274 | case $ac_pass in | |
1275 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1276 | 2) | |
1277 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1278 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1279 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1280 | else |
ac1cb8d3 VS |
1281 | case $ac_arg in |
1282 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1283 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1284 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1285 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1286 | case "$ac_configure_args0 " in | |
1287 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1288 | esac | |
1289 | ;; | |
1290 | -* ) ac_must_keep_next=true ;; | |
1291 | esac | |
a848cd7e SC |
1292 | fi |
1293 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1294 | # Get rid of the leading space. | |
1295 | ac_sep=" " | |
1296 | ;; | |
1297 | esac | |
1298 | done | |
1299 | done | |
1300 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1301 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1302 | ||
1303 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1304 | # config.log. We remove comments because anyway the quotes in there | |
1305 | # would cause problems or look ugly. | |
1306 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1307 | # such as our DU 5.0 friend, will then `close' the trap. | |
1308 | trap 'exit_status=$? | |
1309 | # Save into config.log some information that might help in debugging. | |
1310 | { | |
1311 | echo | |
1312 | ||
1313 | cat <<\_ASBOX | |
1314 | ## ---------------- ## | |
1315 | ## Cache variables. ## | |
1316 | ## ---------------- ## | |
1317 | _ASBOX | |
1318 | echo | |
1319 | # The following way of writing the cache mishandles newlines in values, | |
1320 | { | |
1321 | (set) 2>&1 | | |
1322 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1323 | *ac_space=\ *) | |
1324 | sed -n \ | |
ac1cb8d3 VS |
1325 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1326 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1327 | ;; |
1328 | *) | |
1329 | sed -n \ | |
ac1cb8d3 | 1330 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1331 | ;; |
1332 | esac; | |
1333 | } | |
1334 | echo | |
1335 | ||
1336 | cat <<\_ASBOX | |
1337 | ## ----------------- ## | |
1338 | ## Output variables. ## | |
1339 | ## ----------------- ## | |
1340 | _ASBOX | |
1341 | echo | |
1342 | for ac_var in $ac_subst_vars | |
1343 | do | |
1344 | eval ac_val=$`echo $ac_var` | |
1345 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1346 | done | sort | |
1347 | echo | |
1348 | ||
1349 | if test -n "$ac_subst_files"; then | |
1350 | cat <<\_ASBOX | |
1351 | ## ------------- ## | |
1352 | ## Output files. ## | |
1353 | ## ------------- ## | |
1354 | _ASBOX | |
1355 | echo | |
1356 | for ac_var in $ac_subst_files | |
1357 | do | |
1358 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1359 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1360 | done | sort |
1361 | echo | |
1362 | fi | |
1363 | ||
1364 | if test -s confdefs.h; then | |
1365 | cat <<\_ASBOX | |
1366 | ## ----------- ## | |
1367 | ## confdefs.h. ## | |
1368 | ## ----------- ## | |
1369 | _ASBOX | |
1370 | echo | |
1371 | sed "/^$/d" confdefs.h | sort | |
1372 | echo | |
1373 | fi | |
1374 | test "$ac_signal" != 0 && | |
1375 | echo "$as_me: caught signal $ac_signal" | |
1376 | echo "$as_me: exit $exit_status" | |
1377 | } >&5 | |
ac1cb8d3 | 1378 | rm -f core *.core && |
a848cd7e SC |
1379 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1380 | exit $exit_status | |
1381 | ' 0 | |
1382 | for ac_signal in 1 2 13 15; do | |
1383 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1384 | done | |
1385 | ac_signal=0 | |
1386 | ||
1387 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1388 | rm -rf conftest* confdefs.h | |
1389 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1390 | echo >confdefs.h | |
1391 | ||
1392 | # Predefined preprocessor variables. | |
1393 | ||
1394 | cat >>confdefs.h <<_ACEOF | |
1395 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1396 | _ACEOF | |
1397 | ||
1398 | ||
1399 | cat >>confdefs.h <<_ACEOF | |
1400 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1401 | _ACEOF | |
1402 | ||
1403 | ||
1404 | cat >>confdefs.h <<_ACEOF | |
1405 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1406 | _ACEOF | |
1407 | ||
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | cat >>confdefs.h <<_ACEOF | |
1415 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1416 | _ACEOF | |
1417 | ||
1418 | ||
1419 | # Let the site file select an alternate cache file if it wants to. | |
1420 | # Prefer explicitly selected file to automatically selected ones. | |
1421 | if test -z "$CONFIG_SITE"; then | |
1422 | if test "x$prefix" != xNONE; then | |
1423 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1424 | else | |
1425 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1426 | fi | |
1427 | fi | |
1428 | for ac_site_file in $CONFIG_SITE; do | |
1429 | if test -r "$ac_site_file"; then | |
1430 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1431 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1432 | sed 's/^/| /' "$ac_site_file" >&5 | |
1433 | . "$ac_site_file" | |
1434 | fi | |
1435 | done | |
1436 | ||
1437 | if test -r "$cache_file"; then | |
1438 | # Some versions of bash will fail to source /dev/null (special | |
1439 | # files actually), so we avoid doing that. | |
1440 | if test -f "$cache_file"; then | |
1441 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1442 | echo "$as_me: loading cache $cache_file" >&6;} | |
1443 | case $cache_file in | |
1444 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1445 | *) . ./$cache_file;; | |
1446 | esac | |
1447 | fi | |
1448 | else | |
1449 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1450 | echo "$as_me: creating cache $cache_file" >&6;} | |
1451 | >$cache_file | |
1452 | fi | |
1453 | ||
1454 | # Check that the precious variables saved in the cache have kept the same | |
1455 | # value. | |
1456 | ac_cache_corrupted=false | |
1457 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1458 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1459 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1460 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1461 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1462 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1463 | case $ac_old_set,$ac_new_set in | |
1464 | set,) | |
1465 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1466 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1467 | ac_cache_corrupted=: ;; | |
1468 | ,set) | |
1469 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1470 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1471 | ac_cache_corrupted=: ;; | |
1472 | ,);; | |
1473 | *) | |
1474 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1475 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1476 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1477 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1478 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1479 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1480 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1481 | ac_cache_corrupted=: |
a848cd7e SC |
1482 | fi;; |
1483 | esac | |
1484 | # Pass precious variables to config.status. | |
1485 | if test "$ac_new_set" = set; then | |
1486 | case $ac_new_val in | |
1487 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1488 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1489 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1490 | esac | |
1491 | case " $ac_configure_args " in | |
1492 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1493 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1494 | esac | |
1495 | fi | |
1496 | done | |
1497 | if $ac_cache_corrupted; then | |
1498 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1499 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1500 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1501 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1502 | { (exit 1); exit 1; }; } | |
1503 | fi | |
1504 | ||
1505 | ac_ext=c | |
1506 | ac_cpp='$CPP $CPPFLAGS' | |
1507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
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 | ac_aux_dir= | |
1541 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1542 | if test -f $ac_dir/install-sh; then | |
1543 | ac_aux_dir=$ac_dir | |
1544 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1545 | break | |
1546 | elif test -f $ac_dir/install.sh; then | |
1547 | ac_aux_dir=$ac_dir | |
1548 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1549 | break | |
1550 | elif test -f $ac_dir/shtool; then | |
1551 | ac_aux_dir=$ac_dir | |
1552 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1553 | break | |
1554 | fi | |
1555 | done | |
1556 | if test -z "$ac_aux_dir"; then | |
1557 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1558 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1559 | { (exit 1); exit 1; }; } | |
1560 | fi | |
1561 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1562 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1563 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1564 | ||
1565 | # Make sure we can run config.sub. | |
1566 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1567 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1568 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1569 | { (exit 1); exit 1; }; } | |
1570 | ||
1571 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1572 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1573 | if test "${ac_cv_build+set}" = set; then | |
1574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1575 | else | |
1576 | ac_cv_build_alias=$build_alias | |
1577 | test -z "$ac_cv_build_alias" && | |
1578 | ac_cv_build_alias=`$ac_config_guess` | |
1579 | test -z "$ac_cv_build_alias" && | |
1580 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1581 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1584 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1585 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | ||
1588 | fi | |
1589 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1590 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1591 | build=$ac_cv_build | |
1592 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1593 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1594 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1595 | ||
1596 | ||
1597 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1598 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1599 | if test "${ac_cv_host+set}" = set; then | |
1600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1601 | else | |
1602 | ac_cv_host_alias=$host_alias | |
1603 | test -z "$ac_cv_host_alias" && | |
1604 | ac_cv_host_alias=$ac_cv_build_alias | |
1605 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1606 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1607 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1608 | { (exit 1); exit 1; }; } | |
1609 | ||
1610 | fi | |
1611 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1612 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1613 | host=$ac_cv_host | |
1614 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1615 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1616 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1617 | ||
1618 | ||
1619 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1620 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1621 | if test "${ac_cv_target+set}" = set; then | |
1622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1623 | else | |
1624 | ac_cv_target_alias=$target_alias | |
1625 | test "x$ac_cv_target_alias" = "x" && | |
1626 | ac_cv_target_alias=$ac_cv_host_alias | |
1627 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1628 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1629 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1630 | { (exit 1); exit 1; }; } | |
1631 | ||
1632 | fi | |
1633 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1634 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1635 | target=$ac_cv_target | |
1636 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1637 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1638 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1639 | ||
1640 | ||
1641 | # The aliases save the names the user supplied, while $host etc. | |
1642 | # will get canonicalized. | |
1643 | test -n "$target_alias" && | |
1644 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1645 | NONENONEs,x,x, && | |
1646 | program_prefix=${target_alias}- | |
1647 | ||
1648 | ||
1649 | ||
1650 | WX_MAJOR_VERSION_NUMBER=2 | |
1651 | WX_MINOR_VERSION_NUMBER=5 | |
de59c161 | 1652 | WX_RELEASE_NUMBER=2 |
a848cd7e SC |
1653 | |
1654 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1655 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1656 | ||
1657 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1658 | ||
de59c161 | 1659 | WX_CURRENT=2 |
a848cd7e SC |
1660 | WX_REVISION=0 |
1661 | WX_AGE=0 | |
1662 | ||
1663 | ||
1664 | ||
1665 | USE_UNIX=1 | |
1666 | USE_OS2=0 | |
1667 | USE_WIN32=0 | |
1668 | USE_DOS=0 | |
1669 | USE_BEOS=0 | |
1670 | USE_MAC=0 | |
1671 | ||
1672 | USE_AIX= | |
1673 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1674 | USE_GNU= USE_HPUX= | |
1675 | USE_LINUX= | |
1676 | USE_NETBSD= | |
1677 | USE_OPENBSD= | |
1678 | USE_OSF= USE_SGI= | |
1679 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1680 | USE_ULTRIX= | |
1681 | USE_UNIXWARE= | |
1682 | ||
1683 | USE_ALPHA= | |
1684 | ||
1685 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1686 | ||
1687 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1688 | ||
1689 | DEFAULT_wxUSE_COCOA=0 | |
1690 | DEFAULT_wxUSE_GTK=0 | |
1691 | DEFAULT_wxUSE_MAC=0 | |
1692 | DEFAULT_wxUSE_MGL=0 | |
1693 | DEFAULT_wxUSE_MICROWIN=0 | |
1694 | DEFAULT_wxUSE_MOTIF=0 | |
1695 | DEFAULT_wxUSE_MSW=0 | |
1696 | DEFAULT_wxUSE_PM=0 | |
1697 | DEFAULT_wxUSE_X11=0 | |
1698 | ||
1699 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1700 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1701 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1702 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1703 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1704 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1705 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1706 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1708 | ||
1709 | PROGRAM_EXT= | |
1710 | SO_SUFFIX=so | |
1711 | SAMPLES_RPATH_FLAG= | |
1712 | SAMPLES_RPATH_POSTLINK= | |
1713 | ||
1714 | case "${host}" in | |
1715 | *-hp-hpux* ) | |
1716 | USE_HPUX=1 | |
1717 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1718 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1719 | SO_SUFFIX=sl | |
1720 | cat >>confdefs.h <<\_ACEOF | |
1721 | #define __HPUX__ 1 | |
1722 | _ACEOF | |
1723 | ||
1724 | ;; | |
1725 | *-*-linux* ) | |
1726 | USE_LINUX=1 | |
1727 | cat >>confdefs.h <<\_ACEOF | |
1728 | #define __LINUX__ 1 | |
1729 | _ACEOF | |
1730 | ||
1731 | TMP=`uname -m` | |
1732 | if test "x$TMP" = "xalpha"; then | |
1733 | USE_ALPHA=1 | |
1734 | cat >>confdefs.h <<\_ACEOF | |
1735 | #define __ALPHA__ 1 | |
1736 | _ACEOF | |
1737 | ||
1738 | fi | |
1739 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1740 | ;; | |
1741 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1742 | USE_GNU=1 | |
1743 | TMP=`uname -m` | |
1744 | if test "x$TMP" = "xalpha"; then | |
1745 | USE_ALPHA=1 | |
1746 | cat >>confdefs.h <<\_ACEOF | |
1747 | #define __ALPHA__ 1 | |
1748 | _ACEOF | |
1749 | ||
1750 | fi | |
1751 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1752 | ;; | |
1753 | *-*-irix5* | *-*-irix6* ) | |
1754 | USE_SGI=1 | |
1755 | USE_SVR4=1 | |
1756 | cat >>confdefs.h <<\_ACEOF | |
1757 | #define __SGI__ 1 | |
1758 | _ACEOF | |
1759 | ||
1760 | cat >>confdefs.h <<\_ACEOF | |
1761 | #define __SVR4__ 1 | |
1762 | _ACEOF | |
1763 | ||
1764 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1765 | ;; | |
1766 | *-*-solaris2* ) | |
1767 | USE_SUN=1 | |
1768 | USE_SOLARIS=1 | |
1769 | USE_SVR4=1 | |
1770 | cat >>confdefs.h <<\_ACEOF | |
1771 | #define __SUN__ 1 | |
1772 | _ACEOF | |
1773 | ||
1774 | cat >>confdefs.h <<\_ACEOF | |
1775 | #define __SOLARIS__ 1 | |
1776 | _ACEOF | |
1777 | ||
1778 | cat >>confdefs.h <<\_ACEOF | |
1779 | #define __SVR4__ 1 | |
1780 | _ACEOF | |
1781 | ||
1782 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1783 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1784 | ;; | |
1785 | *-*-sunos4* ) | |
1786 | USE_SUN=1 | |
1787 | USE_SUNOS=1 | |
1788 | USE_BSD=1 | |
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SUN__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | cat >>confdefs.h <<\_ACEOF | |
1794 | #define __SUNOS__ 1 | |
1795 | _ACEOF | |
1796 | ||
1797 | cat >>confdefs.h <<\_ACEOF | |
1798 | #define __BSD__ 1 | |
1799 | _ACEOF | |
1800 | ||
1801 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1802 | ;; | |
1803 | *-*-freebsd*) | |
1804 | USE_BSD=1 | |
1805 | USE_FREEBSD=1 | |
1806 | cat >>confdefs.h <<\_ACEOF | |
1807 | #define __FREEBSD__ 1 | |
1808 | _ACEOF | |
1809 | ||
1810 | cat >>confdefs.h <<\_ACEOF | |
1811 | #define __BSD__ 1 | |
1812 | _ACEOF | |
1813 | ||
1814 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1815 | ;; | |
1816 | *-*-openbsd*) | |
1817 | USE_BSD=1 | |
1818 | USE_OPENBSD=1 | |
1819 | cat >>confdefs.h <<\_ACEOF | |
1820 | #define __OPENBSD__ 1 | |
1821 | _ACEOF | |
1822 | ||
1823 | cat >>confdefs.h <<\_ACEOF | |
1824 | #define __BSD__ 1 | |
1825 | _ACEOF | |
1826 | ||
1827 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1828 | ;; | |
1829 | *-*-netbsd*) | |
1830 | USE_BSD=1 | |
1831 | USE_NETBSD=1 | |
1832 | cat >>confdefs.h <<\_ACEOF | |
1833 | #define __NETBSD__ 1 | |
1834 | _ACEOF | |
1835 | ||
1836 | cat >>confdefs.h <<\_ACEOF | |
1837 | #define __BSD__ 1 | |
1838 | _ACEOF | |
1839 | ||
1840 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1841 | ;; | |
1842 | *-*-osf* ) | |
1843 | USE_ALPHA=1 | |
1844 | USE_OSF=1 | |
1845 | cat >>confdefs.h <<\_ACEOF | |
1846 | #define __ALPHA__ 1 | |
1847 | _ACEOF | |
1848 | ||
1849 | cat >>confdefs.h <<\_ACEOF | |
1850 | #define __OSF__ 1 | |
1851 | _ACEOF | |
1852 | ||
1853 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1854 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1855 | ;; | |
1856 | *-*-dgux5* ) | |
1857 | USE_ALPHA=1 | |
1858 | USE_SVR4=1 | |
1859 | cat >>confdefs.h <<\_ACEOF | |
1860 | #define __ALPHA__ 1 | |
1861 | _ACEOF | |
1862 | ||
1863 | cat >>confdefs.h <<\_ACEOF | |
1864 | #define __SVR4__ 1 | |
1865 | _ACEOF | |
1866 | ||
1867 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1868 | ;; | |
1869 | *-*-sysv5* ) | |
1870 | USE_SYSV=1 | |
1871 | USE_SVR4=1 | |
1872 | cat >>confdefs.h <<\_ACEOF | |
1873 | #define __SYSV__ 1 | |
1874 | _ACEOF | |
1875 | ||
1876 | cat >>confdefs.h <<\_ACEOF | |
1877 | #define __SVR4__ 1 | |
1878 | _ACEOF | |
1879 | ||
1880 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1881 | ;; | |
1882 | *-*-aix* ) | |
1883 | USE_AIX=1 | |
1884 | USE_SYSV=1 | |
1885 | USE_SVR4=1 | |
1886 | SO_SUFFIX=a | |
1887 | cat >>confdefs.h <<\_ACEOF | |
1888 | #define __AIX__ 1 | |
1889 | _ACEOF | |
1890 | ||
1891 | cat >>confdefs.h <<\_ACEOF | |
1892 | #define __SYSV__ 1 | |
1893 | _ACEOF | |
1894 | ||
1895 | cat >>confdefs.h <<\_ACEOF | |
1896 | #define __SVR4__ 1 | |
1897 | _ACEOF | |
1898 | ||
1899 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1900 | ;; | |
1901 | ||
1902 | *-*-*UnixWare*) | |
1903 | USE_SYSV=1 | |
1904 | USE_SVR4=1 | |
1905 | USE_UNIXWARE=1 | |
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __UNIXWARE__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | ;; | |
1911 | ||
1912 | *-*-cygwin* | *-*-mingw32* ) | |
1913 | SO_SUFFIX=dll | |
1914 | PROGRAM_EXT=".exe" | |
1915 | RESCOMP=windres | |
1916 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1917 | ;; | |
1918 | ||
1919 | *-pc-msdosdjgpp ) | |
1920 | USE_UNIX=0 | |
1921 | USE_DOS=1 | |
1922 | cat >>confdefs.h <<\_ACEOF | |
1923 | #define __DOS__ 1 | |
1924 | _ACEOF | |
1925 | ||
1926 | PROGRAM_EXT=".exe" | |
1927 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1928 | LIBS="$LIBS -lstdc++" | |
1929 | ;; | |
1930 | ||
1931 | *-pc-os2_emx | *-pc-os2-emx ) | |
1932 | cat >>confdefs.h <<\_ACEOF | |
1933 | #define __EMX__ 1 | |
1934 | _ACEOF | |
1935 | ||
1936 | USE_OS2=1 | |
1937 | cat >>confdefs.h <<\_ACEOF | |
1938 | #define __OS2__ 1 | |
1939 | _ACEOF | |
1940 | ||
1941 | PROGRAM_EXT=".exe" | |
1942 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1943 | CXX=gcc | |
1944 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1945 | ac_executable_extensions=".exe" | |
1946 | export ac_executable_extensions | |
1947 | ac_save_IFS="$IFS" | |
1948 | IFS='\\' | |
1949 | ac_TEMP_PATH= | |
1950 | for ac_dir in $PATH; do | |
1951 | IFS=$ac_save_IFS | |
1952 | if test -z "$ac_TEMP_PATH"; then | |
1953 | ac_TEMP_PATH="$ac_dir" | |
1954 | else | |
1955 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1956 | fi | |
1957 | done | |
1958 | export PATH="$ac_TEMP_PATH" | |
1959 | unset ac_TEMP_PATH | |
1960 | ;; | |
1961 | ||
1962 | powerpc-*-darwin* ) | |
1963 | USE_BSD=1 | |
1964 | USE_DARWIN=1 | |
1965 | SO_SUFFIX=dylib | |
1966 | cat >>confdefs.h <<\_ACEOF | |
1967 | #define __BSD__ 1 | |
1968 | _ACEOF | |
1969 | ||
1970 | cat >>confdefs.h <<\_ACEOF | |
1971 | #define __DARWIN__ 1 | |
1972 | _ACEOF | |
1973 | ||
1974 | cat >>confdefs.h <<\_ACEOF | |
1975 | #define __POWERPC__ 1 | |
1976 | _ACEOF | |
1977 | ||
1978 | cat >>confdefs.h <<\_ACEOF | |
1979 | #define TARGET_CARBON 1 | |
1980 | _ACEOF | |
1981 | ||
1982 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1983 | ;; | |
1984 | ||
1985 | *-*-beos* ) | |
1986 | USE_BEOS=1 | |
1987 | cat >>confdefs.h <<\_ACEOF | |
1988 | #define __BEOS__ 1 | |
1989 | _ACEOF | |
1990 | ||
1991 | ;; | |
1992 | ||
1993 | *) | |
1994 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
1995 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1996 | { (exit 1); exit 1; }; } | |
1997 | esac | |
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | wx_arg_cache_file="configarg.cache" | |
2003 | echo "loading argument cache $wx_arg_cache_file" | |
2004 | rm -f ${wx_arg_cache_file}.tmp | |
2005 | touch ${wx_arg_cache_file}.tmp | |
2006 | touch ${wx_arg_cache_file} | |
2007 | ||
2008 | ||
2009 | DEBUG_CONFIGURE=0 | |
2010 | if test $DEBUG_CONFIGURE = 1; then | |
2011 | DEFAULT_wxUSE_UNIVERSAL=no | |
2012 | DEFAULT_wxUSE_STL=no | |
2013 | ||
2014 | DEFAULT_wxUSE_NANOX=no | |
2015 | ||
2016 | DEFAULT_wxUSE_THREADS=yes | |
2017 | ||
2018 | DEFAULT_wxUSE_SHARED=yes | |
2019 | DEFAULT_wxUSE_OPTIMISE=no | |
2020 | DEFAULT_wxUSE_PROFILE=no | |
2021 | DEFAULT_wxUSE_NO_DEPS=no | |
2022 | DEFAULT_wxUSE_NO_RTTI=no | |
2023 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2024 | DEFAULT_wxUSE_PERMISSIVE=no | |
2025 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2026 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2027 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2028 | DEFAULT_wxUSE_MEM_TRACING=no | |
2029 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2030 | DEFAULT_wxUSE_DMALLOC=no | |
2031 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2032 | ||
2033 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2034 | DEFAULT_wxUSE_LOG=yes | |
2035 | DEFAULT_wxUSE_LOGWINDOW=no | |
2036 | DEFAULT_wxUSE_LOGGUI=no | |
2037 | DEFAULT_wxUSE_LOGDIALOG=no | |
2038 | ||
2039 | DEFAULT_wxUSE_GUI=yes | |
2040 | DEFAULT_wxUSE_CONTROLS=no | |
2041 | ||
2042 | DEFAULT_wxUSE_REGEX=no | |
2043 | DEFAULT_wxUSE_XML=no | |
2044 | DEFAULT_wxUSE_EXPAT=no | |
2045 | DEFAULT_wxUSE_ZLIB=no | |
2046 | DEFAULT_wxUSE_LIBPNG=no | |
2047 | DEFAULT_wxUSE_LIBJPEG=no | |
2048 | DEFAULT_wxUSE_LIBTIFF=no | |
2049 | DEFAULT_wxUSE_LIBXPM=no | |
2050 | DEFAULT_wxUSE_LIBMSPACK=no | |
2051 | DEFAULT_wxUSE_LIBSDL=no | |
2052 | DEFAULT_wxUSE_ODBC=no | |
2053 | DEFAULT_wxUSE_OPENGL=no | |
2054 | ||
2055 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2056 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2057 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2058 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2059 | DEFAULT_wxUSE_DATETIME=no | |
2060 | DEFAULT_wxUSE_TIMER=no | |
2061 | DEFAULT_wxUSE_STOPWATCH=no | |
2062 | DEFAULT_wxUSE_FILE=no | |
2063 | DEFAULT_wxUSE_FFILE=no | |
2064 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2065 | DEFAULT_wxUSE_TEXTFILE=no | |
2066 | DEFAULT_wxUSE_SOUND=no | |
2067 | DEFAULT_wxUSE_INTL=no | |
2068 | DEFAULT_wxUSE_CONFIG=no | |
2069 | DEFAULT_wxUSE_FONTMAP=no | |
2070 | DEFAULT_wxUSE_STREAMS=no | |
2071 | DEFAULT_wxUSE_SOCKETS=no | |
2072 | DEFAULT_wxUSE_OLE=no | |
2073 | DEFAULT_wxUSE_DATAOBJ=no | |
2074 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2075 | DEFAULT_wxUSE_JOYSTICK=no | |
2076 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2077 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2078 | DEFAULT_wxUSE_LONGLONG=no | |
2079 | DEFAULT_wxUSE_GEOMETRY=no | |
2080 | ||
2081 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2082 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2083 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2084 | ||
2085 | DEFAULT_wxUSE_CLIPBOARD=no | |
2086 | DEFAULT_wxUSE_TOOLTIPS=no | |
2087 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2088 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2089 | DEFAULT_wxUSE_SPLINES=no | |
2090 | ||
8a7b1113 | 2091 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2092 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2093 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2094 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2095 | ||
2096 | DEFAULT_wxUSE_RESOURCES=no | |
2097 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2098 | DEFAULT_wxUSE_IPC=no | |
2099 | DEFAULT_wxUSE_HELP=no | |
2100 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2101 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2102 | DEFAULT_wxUSE_TREELAYOUT=no | |
2103 | DEFAULT_wxUSE_METAFILE=no | |
2104 | DEFAULT_wxUSE_MIMETYPE=no | |
2105 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2106 | DEFAULT_wxUSE_PROTOCOL=no | |
2107 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2108 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2109 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2110 | DEFAULT_wxUSE_URL=no | |
2111 | ||
2112 | DEFAULT_wxUSE_COMMONDLGS=no | |
2113 | DEFAULT_wxUSE_CHOICEDLG=no | |
2114 | DEFAULT_wxUSE_COLOURDLG=no | |
2115 | DEFAULT_wxUSE_DIRDLG=no | |
2116 | DEFAULT_wxUSE_FILEDLG=no | |
2117 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2118 | DEFAULT_wxUSE_FONTDLG=no | |
2119 | DEFAULT_wxUSE_MSGDLG=no | |
2120 | DEFAULT_wxUSE_NUMBERDLG=no | |
2121 | DEFAULT_wxUSE_TEXTDLG=no | |
2122 | DEFAULT_wxUSE_SPLASH=no | |
2123 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2124 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2125 | DEFAULT_wxUSE_WIZARDDLG=no | |
2126 | ||
2127 | DEFAULT_wxUSE_MENUS=no | |
2128 | DEFAULT_wxUSE_MINIFRAME=no | |
2129 | DEFAULT_wxUSE_HTML=no | |
646b6ec1 | 2130 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2131 | DEFAULT_wxUSE_FILESYSTEM=no |
2132 | DEFAULT_wxUSE_FS_INET=no | |
2133 | DEFAULT_wxUSE_FS_ZIP=no | |
2134 | DEFAULT_wxUSE_BUSYINFO=no | |
2135 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2136 | DEFAULT_wxUSE_VALIDATORS=no |
2137 | ||
2138 | DEFAULT_wxUSE_ACCEL=no | |
2139 | DEFAULT_wxUSE_BUTTON=no | |
2140 | DEFAULT_wxUSE_BMPBUTTON=no | |
2141 | DEFAULT_wxUSE_CALCTRL=no | |
2142 | DEFAULT_wxUSE_CARET=no | |
2143 | DEFAULT_wxUSE_CHECKBOX=no | |
2144 | DEFAULT_wxUSE_CHECKLST=no | |
2145 | DEFAULT_wxUSE_CHOICE=no | |
2146 | DEFAULT_wxUSE_COMBOBOX=no | |
2147 | DEFAULT_wxUSE_DISPLAY=no | |
2148 | DEFAULT_wxUSE_GAUGE=no | |
2149 | DEFAULT_wxUSE_GRID=no | |
2150 | DEFAULT_wxUSE_IMAGLIST=no | |
2151 | DEFAULT_wxUSE_LISTBOOK=no | |
2152 | DEFAULT_wxUSE_LISTBOX=no | |
2153 | DEFAULT_wxUSE_LISTCTRL=no | |
2154 | DEFAULT_wxUSE_NOTEBOOK=no | |
2155 | DEFAULT_wxUSE_RADIOBOX=no | |
2156 | DEFAULT_wxUSE_RADIOBTN=no | |
2157 | DEFAULT_wxUSE_SASH=no | |
2158 | DEFAULT_wxUSE_SCROLLBAR=no | |
2159 | DEFAULT_wxUSE_SLIDER=no | |
2160 | DEFAULT_wxUSE_SPINBTN=no | |
2161 | DEFAULT_wxUSE_SPINCTRL=no | |
2162 | DEFAULT_wxUSE_SPLITTER=no | |
2163 | DEFAULT_wxUSE_STATBMP=no | |
2164 | DEFAULT_wxUSE_STATBOX=no | |
2165 | DEFAULT_wxUSE_STATLINE=no | |
2166 | DEFAULT_wxUSE_STATTEXT=no | |
2167 | DEFAULT_wxUSE_STATUSBAR=yes | |
2168 | DEFAULT_wxUSE_TABDIALOG=no | |
2169 | DEFAULT_wxUSE_TEXTCTRL=no | |
2170 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2171 | DEFAULT_wxUSE_TOOLBAR=no | |
2172 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2173 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2174 | DEFAULT_wxUSE_TREECTRL=no | |
2175 | DEFAULT_wxUSE_POPUPWIN=no | |
2176 | DEFAULT_wxUSE_TIPWINDOW=no | |
2177 | ||
2178 | DEFAULT_wxUSE_UNICODE=no | |
2179 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2180 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2181 | ||
2182 | DEFAULT_wxUSE_PALETTE=no | |
2183 | DEFAULT_wxUSE_IMAGE=no | |
2184 | DEFAULT_wxUSE_GIF=no | |
2185 | DEFAULT_wxUSE_PCX=no | |
2186 | DEFAULT_wxUSE_PNM=no | |
2187 | DEFAULT_wxUSE_IFF=no | |
2188 | DEFAULT_wxUSE_XPM=no | |
2189 | DEFAULT_wxUSE_ICO_CUR=no | |
2190 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2191 | ||
2192 | DEFAULT_wxUSE_MONOLITHIC=no | |
2193 | DEFAULT_wxUSE_PLUGINS=no | |
2194 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2195 | else | |
2196 | DEFAULT_wxUSE_UNIVERSAL=no | |
2197 | DEFAULT_wxUSE_STL=no | |
2198 | ||
2199 | DEFAULT_wxUSE_NANOX=no | |
2200 | ||
2201 | DEFAULT_wxUSE_THREADS=yes | |
2202 | ||
2203 | DEFAULT_wxUSE_SHARED=yes | |
2204 | DEFAULT_wxUSE_OPTIMISE=yes | |
2205 | DEFAULT_wxUSE_PROFILE=no | |
2206 | DEFAULT_wxUSE_NO_DEPS=no | |
2207 | DEFAULT_wxUSE_NO_RTTI=no | |
2208 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2209 | DEFAULT_wxUSE_PERMISSIVE=no | |
2210 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2211 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2212 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2213 | DEFAULT_wxUSE_MEM_TRACING=no | |
2214 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2215 | DEFAULT_wxUSE_DMALLOC=no | |
2216 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2217 | ||
2218 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2219 | DEFAULT_wxUSE_LOG=yes | |
2220 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2221 | DEFAULT_wxUSE_LOGGUI=yes | |
2222 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2223 | ||
2224 | DEFAULT_wxUSE_GUI=yes | |
2225 | ||
2226 | DEFAULT_wxUSE_REGEX=yes | |
2227 | DEFAULT_wxUSE_XML=yes | |
2228 | DEFAULT_wxUSE_EXPAT=yes | |
2229 | DEFAULT_wxUSE_ZLIB=yes | |
2230 | DEFAULT_wxUSE_LIBPNG=yes | |
2231 | DEFAULT_wxUSE_LIBJPEG=yes | |
2232 | DEFAULT_wxUSE_LIBTIFF=yes | |
2233 | DEFAULT_wxUSE_LIBXPM=yes | |
2234 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2235 | DEFAULT_wxUSE_LIBSDL=no | |
2236 | DEFAULT_wxUSE_ODBC=no | |
2237 | DEFAULT_wxUSE_OPENGL=no | |
2238 | ||
2239 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2240 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2241 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2242 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2243 | DEFAULT_wxUSE_DATETIME=yes | |
2244 | DEFAULT_wxUSE_TIMER=yes | |
2245 | DEFAULT_wxUSE_STOPWATCH=yes | |
2246 | DEFAULT_wxUSE_FILE=yes | |
2247 | DEFAULT_wxUSE_FFILE=yes | |
2248 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2249 | DEFAULT_wxUSE_TEXTFILE=yes | |
2250 | DEFAULT_wxUSE_SOUND=yes | |
2251 | DEFAULT_wxUSE_INTL=yes | |
2252 | DEFAULT_wxUSE_CONFIG=yes | |
2253 | DEFAULT_wxUSE_FONTMAP=yes | |
2254 | DEFAULT_wxUSE_STREAMS=yes | |
2255 | DEFAULT_wxUSE_SOCKETS=yes | |
2256 | DEFAULT_wxUSE_OLE=yes | |
2257 | DEFAULT_wxUSE_DATAOBJ=yes | |
2258 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2259 | DEFAULT_wxUSE_JOYSTICK=yes | |
2260 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2261 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2262 | DEFAULT_wxUSE_LONGLONG=yes | |
2263 | DEFAULT_wxUSE_GEOMETRY=yes | |
2264 | ||
2265 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2266 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2267 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2268 | ||
2269 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2270 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2271 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2272 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2273 | DEFAULT_wxUSE_SPLINES=yes | |
2274 | ||
8a7b1113 | 2275 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2276 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2277 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2278 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2279 | ||
2280 | DEFAULT_wxUSE_RESOURCES=no | |
2281 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2282 | DEFAULT_wxUSE_IPC=yes | |
2283 | DEFAULT_wxUSE_HELP=yes | |
2284 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2285 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2286 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2287 | DEFAULT_wxUSE_METAFILE=yes | |
2288 | DEFAULT_wxUSE_MIMETYPE=yes | |
2289 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2290 | DEFAULT_wxUSE_PROTOCOL=yes | |
2291 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2292 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2293 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2294 | DEFAULT_wxUSE_URL=yes | |
2295 | ||
2296 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2297 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2298 | DEFAULT_wxUSE_COLOURDLG=yes | |
2299 | DEFAULT_wxUSE_DIRDLG=yes | |
2300 | DEFAULT_wxUSE_FILEDLG=yes | |
2301 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2302 | DEFAULT_wxUSE_FONTDLG=yes | |
2303 | DEFAULT_wxUSE_MSGDLG=yes | |
2304 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2305 | DEFAULT_wxUSE_TEXTDLG=yes | |
2306 | DEFAULT_wxUSE_SPLASH=yes | |
2307 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2308 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2309 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2310 | ||
2311 | DEFAULT_wxUSE_MENUS=yes | |
2312 | DEFAULT_wxUSE_MINIFRAME=yes | |
2313 | DEFAULT_wxUSE_HTML=yes | |
646b6ec1 | 2314 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2315 | DEFAULT_wxUSE_FILESYSTEM=yes |
2316 | DEFAULT_wxUSE_FS_INET=yes | |
2317 | DEFAULT_wxUSE_FS_ZIP=yes | |
2318 | DEFAULT_wxUSE_BUSYINFO=yes | |
2319 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2320 | DEFAULT_wxUSE_VALIDATORS=yes |
2321 | ||
2322 | DEFAULT_wxUSE_ACCEL=yes | |
2323 | DEFAULT_wxUSE_BUTTON=yes | |
2324 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2325 | DEFAULT_wxUSE_CALCTRL=yes | |
2326 | DEFAULT_wxUSE_CARET=yes | |
2327 | DEFAULT_wxUSE_CHECKBOX=yes | |
2328 | DEFAULT_wxUSE_CHECKLST=yes | |
2329 | DEFAULT_wxUSE_CHOICE=yes | |
2330 | DEFAULT_wxUSE_COMBOBOX=yes | |
2331 | DEFAULT_wxUSE_DISPLAY=yes | |
2332 | DEFAULT_wxUSE_GAUGE=yes | |
2333 | DEFAULT_wxUSE_GRID=yes | |
2334 | DEFAULT_wxUSE_IMAGLIST=yes | |
2335 | DEFAULT_wxUSE_LISTBOOK=yes | |
2336 | DEFAULT_wxUSE_LISTBOX=yes | |
2337 | DEFAULT_wxUSE_LISTCTRL=yes | |
2338 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2339 | DEFAULT_wxUSE_RADIOBOX=yes | |
2340 | DEFAULT_wxUSE_RADIOBTN=yes | |
2341 | DEFAULT_wxUSE_SASH=yes | |
2342 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2343 | DEFAULT_wxUSE_SLIDER=yes | |
2344 | DEFAULT_wxUSE_SPINBTN=yes | |
2345 | DEFAULT_wxUSE_SPINCTRL=yes | |
2346 | DEFAULT_wxUSE_SPLITTER=yes | |
2347 | DEFAULT_wxUSE_STATBMP=yes | |
2348 | DEFAULT_wxUSE_STATBOX=yes | |
2349 | DEFAULT_wxUSE_STATLINE=yes | |
2350 | DEFAULT_wxUSE_STATTEXT=yes | |
2351 | DEFAULT_wxUSE_STATUSBAR=yes | |
2352 | DEFAULT_wxUSE_TABDIALOG=no | |
2353 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2354 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2355 | DEFAULT_wxUSE_TOOLBAR=yes | |
2356 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2357 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2358 | DEFAULT_wxUSE_TREECTRL=yes | |
2359 | DEFAULT_wxUSE_POPUPWIN=yes | |
2360 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2361 | ||
2362 | DEFAULT_wxUSE_UNICODE=no | |
2363 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2364 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2365 | ||
2366 | DEFAULT_wxUSE_PALETTE=yes | |
2367 | DEFAULT_wxUSE_IMAGE=yes | |
2368 | DEFAULT_wxUSE_GIF=yes | |
2369 | DEFAULT_wxUSE_PCX=yes | |
2370 | DEFAULT_wxUSE_IFF=no | |
2371 | DEFAULT_wxUSE_PNM=yes | |
2372 | DEFAULT_wxUSE_XPM=yes | |
2373 | DEFAULT_wxUSE_ICO_CUR=yes | |
2374 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2375 | ||
2376 | DEFAULT_wxUSE_MONOLITHIC=no | |
2377 | DEFAULT_wxUSE_PLUGINS=no | |
2378 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2379 | |
2380 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2381 | fi |
2382 | ||
2383 | ||
2384 | ||
2385 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2386 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2387 | if test "x$LINE" != "x" ; then | |
2388 | has_toolkit_in_cache=1 | |
2389 | eval "DEFAULT_$LINE" | |
2390 | eval "CACHE_$toolkit=1" | |
2391 | fi | |
2392 | done | |
2393 | ||
2394 | ||
2395 | ||
2396 | enablestring= | |
2397 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2398 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2399 | no_cache=0 | |
2400 | # Check whether --enable-gui or --disable-gui was given. | |
2401 | if test "${enable_gui+set}" = set; then | |
2402 | enableval="$enable_gui" | |
2403 | ||
2404 | if test "$enableval" = yes; then | |
2405 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2406 | else | |
2407 | ac_cv_use_gui='wxUSE_GUI=no' | |
2408 | fi | |
2409 | ||
2410 | else | |
2411 | ||
2412 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2413 | if test "x$LINE" != x ; then | |
2414 | eval "DEFAULT_$LINE" | |
2415 | else | |
2416 | no_cache=1 | |
2417 | fi | |
2418 | ||
2419 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2420 | ||
2421 | fi; | |
2422 | ||
2423 | eval "$ac_cv_use_gui" | |
2424 | if test "$no_cache" != 1; then | |
2425 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2426 | fi | |
2427 | ||
2428 | if test "$wxUSE_GUI" = yes; then | |
2429 | echo "$as_me:$LINENO: result: yes" >&5 | |
2430 | echo "${ECHO_T}yes" >&6 | |
2431 | else | |
2432 | echo "$as_me:$LINENO: result: no" >&5 | |
2433 | echo "${ECHO_T}no" >&6 | |
2434 | fi | |
2435 | ||
2436 | ||
2437 | enablestring= | |
2438 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2439 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2440 | no_cache=0 | |
2441 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2442 | if test "${enable_monolithic+set}" = set; then | |
2443 | enableval="$enable_monolithic" | |
2444 | ||
2445 | if test "$enableval" = yes; then | |
2446 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2447 | else | |
2448 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2449 | fi | |
2450 | ||
2451 | else | |
2452 | ||
2453 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2454 | if test "x$LINE" != x ; then | |
2455 | eval "DEFAULT_$LINE" | |
2456 | else | |
2457 | no_cache=1 | |
2458 | fi | |
2459 | ||
2460 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2461 | ||
2462 | fi; | |
2463 | ||
2464 | eval "$ac_cv_use_monolithic" | |
2465 | if test "$no_cache" != 1; then | |
2466 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2467 | fi | |
2468 | ||
2469 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2470 | echo "$as_me:$LINENO: result: yes" >&5 | |
2471 | echo "${ECHO_T}yes" >&6 | |
2472 | else | |
2473 | echo "$as_me:$LINENO: result: no" >&5 | |
2474 | echo "${ECHO_T}no" >&6 | |
2475 | fi | |
2476 | ||
2477 | ||
2478 | enablestring= | |
2479 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2480 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2481 | no_cache=0 | |
2482 | # Check whether --enable-plugins or --disable-plugins was given. | |
2483 | if test "${enable_plugins+set}" = set; then | |
2484 | enableval="$enable_plugins" | |
2485 | ||
2486 | if test "$enableval" = yes; then | |
2487 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2488 | else | |
2489 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2490 | fi | |
2491 | ||
2492 | else | |
2493 | ||
2494 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2495 | if test "x$LINE" != x ; then | |
2496 | eval "DEFAULT_$LINE" | |
2497 | else | |
2498 | no_cache=1 | |
2499 | fi | |
2500 | ||
2501 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2502 | ||
2503 | fi; | |
2504 | ||
2505 | eval "$ac_cv_use_plugins" | |
2506 | if test "$no_cache" != 1; then | |
2507 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2508 | fi | |
2509 | ||
2510 | if test "$wxUSE_PLUGINS" = yes; then | |
2511 | echo "$as_me:$LINENO: result: yes" >&5 | |
2512 | echo "${ECHO_T}yes" >&6 | |
2513 | else | |
2514 | echo "$as_me:$LINENO: result: no" >&5 | |
2515 | echo "${ECHO_T}no" >&6 | |
2516 | fi | |
2517 | ||
2518 | ||
2519 | if test "$wxUSE_GUI" = "yes"; then | |
2520 | ||
2521 | ||
2522 | enablestring= | |
2523 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2524 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2525 | no_cache=0 | |
2526 | # Check whether --enable-universal or --disable-universal was given. | |
2527 | if test "${enable_universal+set}" = set; then | |
2528 | enableval="$enable_universal" | |
2529 | ||
2530 | if test "$enableval" = yes; then | |
2531 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2532 | else | |
2533 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2534 | fi | |
2535 | ||
2536 | else | |
2537 | ||
2538 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2539 | if test "x$LINE" != x ; then | |
2540 | eval "DEFAULT_$LINE" | |
2541 | else | |
2542 | no_cache=1 | |
2543 | fi | |
2544 | ||
2545 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2546 | ||
2547 | fi; | |
2548 | ||
2549 | eval "$ac_cv_use_universal" | |
2550 | if test "$no_cache" != 1; then | |
2551 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2552 | fi | |
2553 | ||
2554 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2555 | echo "$as_me:$LINENO: result: yes" >&5 | |
2556 | echo "${ECHO_T}yes" >&6 | |
2557 | else | |
2558 | echo "$as_me:$LINENO: result: no" >&5 | |
2559 | echo "${ECHO_T}no" >&6 | |
2560 | fi | |
2561 | ||
2562 | ||
2563 | # Check whether --with-gtk or --without-gtk was given. | |
2564 | if test "${with_gtk+set}" = set; then | |
2565 | withval="$with_gtk" | |
2566 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2567 | fi; | |
2568 | ||
2569 | # Check whether --with-motif or --without-motif was given. | |
2570 | if test "${with_motif+set}" = set; then | |
2571 | withval="$with_motif" | |
2572 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2573 | fi; | |
2574 | ||
2575 | # Check whether --with-mac or --without-mac was given. | |
2576 | if test "${with_mac+set}" = set; then | |
2577 | withval="$with_mac" | |
2578 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
2579 | fi; | |
2580 | ||
2581 | # Check whether --with-cocoa or --without-cocoa was given. | |
2582 | if test "${with_cocoa+set}" = set; then | |
2583 | withval="$with_cocoa" | |
2584 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
2585 | fi; | |
2586 | ||
2587 | # Check whether --with-wine or --without-wine was given. | |
2588 | if test "${with_wine+set}" = set; then | |
2589 | withval="$with_wine" | |
2590 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2591 | fi; | |
2592 | ||
2593 | # Check whether --with-msw or --without-msw was given. | |
2594 | if test "${with_msw+set}" = set; then | |
2595 | withval="$with_msw" | |
2596 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2597 | fi; | |
2598 | ||
2599 | # Check whether --with-pm or --without-pm was given. | |
2600 | if test "${with_pm+set}" = set; then | |
2601 | withval="$with_pm" | |
2602 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2603 | fi; | |
2604 | ||
2605 | # Check whether --with-mgl or --without-mgl was given. | |
2606 | if test "${with_mgl+set}" = set; then | |
2607 | withval="$with_mgl" | |
2608 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2609 | fi; | |
2610 | ||
2611 | # Check whether --with-microwin or --without-microwin was given. | |
2612 | if test "${with_microwin+set}" = set; then | |
2613 | withval="$with_microwin" | |
2614 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2615 | fi; | |
2616 | ||
2617 | # Check whether --with-x11 or --without-x11 was given. | |
2618 | if test "${with_x11+set}" = set; then | |
2619 | withval="$with_x11" | |
2620 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2621 | fi; | |
2622 | ||
2623 | enablestring= | |
2624 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2625 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2626 | no_cache=0 | |
2627 | # Check whether --enable-nanox or --disable-nanox was given. | |
2628 | if test "${enable_nanox+set}" = set; then | |
2629 | enableval="$enable_nanox" | |
2630 | ||
2631 | if test "$enableval" = yes; then | |
2632 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2633 | else | |
2634 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2635 | fi | |
2636 | ||
2637 | else | |
2638 | ||
2639 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2640 | if test "x$LINE" != x ; then | |
2641 | eval "DEFAULT_$LINE" | |
2642 | else | |
2643 | no_cache=1 | |
2644 | fi | |
2645 | ||
2646 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2647 | ||
2648 | fi; | |
2649 | ||
2650 | eval "$ac_cv_use_nanox" | |
2651 | if test "$no_cache" != 1; then | |
2652 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2653 | fi | |
2654 | ||
2655 | if test "$wxUSE_NANOX" = yes; then | |
2656 | echo "$as_me:$LINENO: result: yes" >&5 | |
2657 | echo "${ECHO_T}yes" >&6 | |
2658 | else | |
2659 | echo "$as_me:$LINENO: result: no" >&5 | |
2660 | echo "${ECHO_T}no" >&6 | |
2661 | fi | |
2662 | ||
2663 | ||
2664 | ||
2665 | enablestring= | |
2666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2667 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2668 | no_cache=0 | |
2669 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2670 | if test "${enable_gtk2+set}" = set; then | |
2671 | enableval="$enable_gtk2" | |
2672 | ||
2673 | if test "$enableval" = yes; then | |
2674 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2675 | else | |
2676 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2677 | fi | |
2678 | ||
2679 | else | |
2680 | ||
2681 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2682 | if test "x$LINE" != x ; then | |
2683 | eval "DEFAULT_$LINE" | |
2684 | else | |
2685 | no_cache=1 | |
2686 | fi | |
2687 | ||
2688 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2689 | ||
2690 | fi; | |
2691 | ||
2692 | eval "$ac_cv_use_gtk2" | |
2693 | if test "$no_cache" != 1; then | |
2694 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2695 | fi | |
2696 | ||
2697 | if test "$wxUSE_GTK2" = yes; then | |
2698 | echo "$as_me:$LINENO: result: yes" >&5 | |
2699 | echo "${ECHO_T}yes" >&6 | |
2700 | else | |
2701 | echo "$as_me:$LINENO: result: no" >&5 | |
2702 | echo "${ECHO_T}no" >&6 | |
2703 | fi | |
2704 | ||
2705 | ||
2706 | enablestring= | |
2707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2708 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2709 | no_cache=0 | |
2710 | # Check whether --enable-gpe or --disable-gpe was given. | |
2711 | if test "${enable_gpe+set}" = set; then | |
2712 | enableval="$enable_gpe" | |
2713 | ||
2714 | if test "$enableval" = yes; then | |
2715 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2716 | else | |
2717 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2718 | fi | |
2719 | ||
2720 | else | |
2721 | ||
2722 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2723 | if test "x$LINE" != x ; then | |
2724 | eval "DEFAULT_$LINE" | |
2725 | else | |
2726 | no_cache=1 | |
2727 | fi | |
2728 | ||
2729 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2730 | ||
2731 | fi; | |
2732 | ||
2733 | eval "$ac_cv_use_gpe" | |
2734 | if test "$no_cache" != 1; then | |
2735 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2736 | fi | |
2737 | ||
2738 | if test "$wxUSE_GPE" = yes; then | |
2739 | echo "$as_me:$LINENO: result: yes" >&5 | |
2740 | echo "${ECHO_T}yes" >&6 | |
2741 | else | |
2742 | echo "$as_me:$LINENO: result: no" >&5 | |
2743 | echo "${ECHO_T}no" >&6 | |
2744 | fi | |
2745 | ||
2746 | ||
2747 | ||
2748 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2749 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2750 | no_cache=0 | |
2751 | ||
2752 | # Check whether --with-libpng or --without-libpng was given. | |
2753 | if test "${with_libpng+set}" = set; then | |
2754 | withval="$with_libpng" | |
2755 | ||
2756 | if test "$withval" = yes; then | |
2757 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2758 | elif test "$withval" = no; then | |
2759 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2760 | elif test "$withval" = sys; then | |
2761 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2762 | elif test "$withval" = builtin; then | |
2763 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2764 | else | |
2765 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2766 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2767 | { (exit 1); exit 1; }; } | |
2768 | fi | |
2769 | ||
2770 | else | |
2771 | ||
2772 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2773 | if test "x$LINE" != x ; then | |
2774 | eval "DEFAULT_$LINE" | |
2775 | else | |
2776 | no_cache=1 | |
2777 | fi | |
2778 | ||
2779 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2780 | ||
2781 | fi; | |
2782 | ||
2783 | eval "$ac_cv_use_libpng" | |
2784 | if test "$no_cache" != 1; then | |
2785 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2786 | fi | |
2787 | ||
2788 | if test "$wxUSE_LIBPNG" = yes; then | |
2789 | echo "$as_me:$LINENO: result: yes" >&5 | |
2790 | echo "${ECHO_T}yes" >&6 | |
2791 | elif test "$wxUSE_LIBPNG" = no; then | |
2792 | echo "$as_me:$LINENO: result: no" >&5 | |
2793 | echo "${ECHO_T}no" >&6 | |
2794 | elif test "$wxUSE_LIBPNG" = sys; then | |
2795 | echo "$as_me:$LINENO: result: system version" >&5 | |
2796 | echo "${ECHO_T}system version" >&6 | |
2797 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2798 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2799 | echo "${ECHO_T}builtin version" >&6 | |
2800 | else | |
2801 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2802 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2803 | { (exit 1); exit 1; }; } | |
2804 | fi | |
2805 | ||
2806 | ||
2807 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2808 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2809 | no_cache=0 | |
2810 | ||
2811 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2812 | if test "${with_libjpeg+set}" = set; then | |
2813 | withval="$with_libjpeg" | |
2814 | ||
2815 | if test "$withval" = yes; then | |
2816 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2817 | elif test "$withval" = no; then | |
2818 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2819 | elif test "$withval" = sys; then | |
2820 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2821 | elif test "$withval" = builtin; then | |
2822 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2823 | else | |
2824 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2825 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2826 | { (exit 1); exit 1; }; } | |
2827 | fi | |
2828 | ||
2829 | else | |
2830 | ||
2831 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2832 | if test "x$LINE" != x ; then | |
2833 | eval "DEFAULT_$LINE" | |
2834 | else | |
2835 | no_cache=1 | |
2836 | fi | |
2837 | ||
2838 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2839 | ||
2840 | fi; | |
2841 | ||
2842 | eval "$ac_cv_use_libjpeg" | |
2843 | if test "$no_cache" != 1; then | |
2844 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2845 | fi | |
2846 | ||
2847 | if test "$wxUSE_LIBJPEG" = yes; then | |
2848 | echo "$as_me:$LINENO: result: yes" >&5 | |
2849 | echo "${ECHO_T}yes" >&6 | |
2850 | elif test "$wxUSE_LIBJPEG" = no; then | |
2851 | echo "$as_me:$LINENO: result: no" >&5 | |
2852 | echo "${ECHO_T}no" >&6 | |
2853 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2854 | echo "$as_me:$LINENO: result: system version" >&5 | |
2855 | echo "${ECHO_T}system version" >&6 | |
2856 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2857 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2858 | echo "${ECHO_T}builtin version" >&6 | |
2859 | else | |
2860 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2861 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2862 | { (exit 1); exit 1; }; } | |
2863 | fi | |
2864 | ||
2865 | ||
2866 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2867 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2868 | no_cache=0 | |
2869 | ||
2870 | # Check whether --with-libtiff or --without-libtiff was given. | |
2871 | if test "${with_libtiff+set}" = set; then | |
2872 | withval="$with_libtiff" | |
2873 | ||
2874 | if test "$withval" = yes; then | |
2875 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2876 | elif test "$withval" = no; then | |
2877 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2878 | elif test "$withval" = sys; then | |
2879 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2880 | elif test "$withval" = builtin; then | |
2881 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2882 | else | |
2883 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2884 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2885 | { (exit 1); exit 1; }; } | |
2886 | fi | |
2887 | ||
2888 | else | |
2889 | ||
2890 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2891 | if test "x$LINE" != x ; then | |
2892 | eval "DEFAULT_$LINE" | |
2893 | else | |
2894 | no_cache=1 | |
2895 | fi | |
2896 | ||
2897 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2898 | ||
2899 | fi; | |
2900 | ||
2901 | eval "$ac_cv_use_libtiff" | |
2902 | if test "$no_cache" != 1; then | |
2903 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2904 | fi | |
2905 | ||
2906 | if test "$wxUSE_LIBTIFF" = yes; then | |
2907 | echo "$as_me:$LINENO: result: yes" >&5 | |
2908 | echo "${ECHO_T}yes" >&6 | |
2909 | elif test "$wxUSE_LIBTIFF" = no; then | |
2910 | echo "$as_me:$LINENO: result: no" >&5 | |
2911 | echo "${ECHO_T}no" >&6 | |
2912 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2913 | echo "$as_me:$LINENO: result: system version" >&5 | |
2914 | echo "${ECHO_T}system version" >&6 | |
2915 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2916 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2917 | echo "${ECHO_T}builtin version" >&6 | |
2918 | else | |
2919 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2920 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2921 | { (exit 1); exit 1; }; } | |
2922 | fi | |
2923 | ||
2924 | ||
2925 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2926 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2927 | no_cache=0 | |
2928 | ||
2929 | # Check whether --with-libxpm or --without-libxpm was given. | |
2930 | if test "${with_libxpm+set}" = set; then | |
2931 | withval="$with_libxpm" | |
2932 | ||
2933 | if test "$withval" = yes; then | |
2934 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2935 | elif test "$withval" = no; then | |
2936 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2937 | elif test "$withval" = sys; then | |
2938 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2939 | elif test "$withval" = builtin; then | |
2940 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2941 | else | |
2942 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2943 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2944 | { (exit 1); exit 1; }; } | |
2945 | fi | |
2946 | ||
2947 | else | |
2948 | ||
2949 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2950 | if test "x$LINE" != x ; then | |
2951 | eval "DEFAULT_$LINE" | |
2952 | else | |
2953 | no_cache=1 | |
2954 | fi | |
2955 | ||
2956 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2957 | ||
2958 | fi; | |
2959 | ||
2960 | eval "$ac_cv_use_libxpm" | |
2961 | if test "$no_cache" != 1; then | |
2962 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2963 | fi | |
2964 | ||
2965 | if test "$wxUSE_LIBXPM" = yes; then | |
2966 | echo "$as_me:$LINENO: result: yes" >&5 | |
2967 | echo "${ECHO_T}yes" >&6 | |
2968 | elif test "$wxUSE_LIBXPM" = no; then | |
2969 | echo "$as_me:$LINENO: result: no" >&5 | |
2970 | echo "${ECHO_T}no" >&6 | |
2971 | elif test "$wxUSE_LIBXPM" = sys; then | |
2972 | echo "$as_me:$LINENO: result: system version" >&5 | |
2973 | echo "${ECHO_T}system version" >&6 | |
2974 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2975 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2976 | echo "${ECHO_T}builtin version" >&6 | |
2977 | else | |
2978 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2979 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2980 | { (exit 1); exit 1; }; } | |
2981 | fi | |
2982 | ||
2983 | ||
2984 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2985 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2986 | no_cache=0 | |
2987 | ||
2988 | # Check whether --with-libmspack or --without-libmspack was given. | |
2989 | if test "${with_libmspack+set}" = set; then | |
2990 | withval="$with_libmspack" | |
2991 | ||
2992 | if test "$withval" = yes; then | |
2993 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2994 | else | |
2995 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2996 | fi | |
2997 | ||
2998 | else | |
2999 | ||
3000 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3001 | if test "x$LINE" != x ; then | |
3002 | eval "DEFAULT_$LINE" | |
3003 | else | |
3004 | no_cache=1 | |
3005 | fi | |
3006 | ||
3007 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3008 | ||
3009 | fi; | |
3010 | ||
3011 | eval "$ac_cv_use_libmspack" | |
3012 | if test "$no_cache" != 1; then | |
3013 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3014 | fi | |
3015 | ||
3016 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3017 | echo "$as_me:$LINENO: result: yes" >&5 | |
3018 | echo "${ECHO_T}yes" >&6 | |
3019 | else | |
3020 | echo "$as_me:$LINENO: result: no" >&5 | |
3021 | echo "${ECHO_T}no" >&6 | |
3022 | fi | |
3023 | ||
3024 | ||
3025 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3026 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3027 | no_cache=0 | |
3028 | ||
3029 | # Check whether --with-sdl or --without-sdl was given. | |
3030 | if test "${with_sdl+set}" = set; then | |
3031 | withval="$with_sdl" | |
3032 | ||
3033 | if test "$withval" = yes; then | |
3034 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3035 | else | |
3036 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3037 | fi | |
3038 | ||
3039 | else | |
3040 | ||
3041 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3042 | if test "x$LINE" != x ; then | |
3043 | eval "DEFAULT_$LINE" | |
3044 | else | |
3045 | no_cache=1 | |
3046 | fi | |
3047 | ||
3048 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3049 | ||
3050 | fi; | |
3051 | ||
3052 | eval "$ac_cv_use_sdl" | |
3053 | if test "$no_cache" != 1; then | |
3054 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3055 | fi | |
3056 | ||
3057 | if test "$wxUSE_LIBSDL" = yes; then | |
3058 | echo "$as_me:$LINENO: result: yes" >&5 | |
3059 | echo "${ECHO_T}yes" >&6 | |
3060 | else | |
3061 | echo "$as_me:$LINENO: result: no" >&5 | |
3062 | echo "${ECHO_T}no" >&6 | |
3063 | fi | |
3064 | ||
3065 | ||
3066 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
3067 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3068 | no_cache=0 | |
3069 | ||
3070 | # Check whether --with-opengl or --without-opengl was given. | |
3071 | if test "${with_opengl+set}" = set; then | |
3072 | withval="$with_opengl" | |
3073 | ||
3074 | if test "$withval" = yes; then | |
3075 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3076 | else | |
3077 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3078 | fi | |
3079 | ||
3080 | else | |
3081 | ||
3082 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3083 | if test "x$LINE" != x ; then | |
3084 | eval "DEFAULT_$LINE" | |
3085 | else | |
3086 | no_cache=1 | |
3087 | fi | |
3088 | ||
3089 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3090 | ||
3091 | fi; | |
3092 | ||
3093 | eval "$ac_cv_use_opengl" | |
3094 | if test "$no_cache" != 1; then | |
3095 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3096 | fi | |
3097 | ||
3098 | if test "$wxUSE_OPENGL" = yes; then | |
3099 | echo "$as_me:$LINENO: result: yes" >&5 | |
3100 | echo "${ECHO_T}yes" >&6 | |
3101 | else | |
3102 | echo "$as_me:$LINENO: result: no" >&5 | |
3103 | echo "${ECHO_T}no" >&6 | |
3104 | fi | |
3105 | ||
3106 | ||
3107 | fi | |
3108 | ||
3109 | ||
3110 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3111 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3112 | no_cache=0 | |
3113 | ||
3114 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3115 | if test "${with_dmalloc+set}" = set; then | |
3116 | withval="$with_dmalloc" | |
3117 | ||
3118 | if test "$withval" = yes; then | |
3119 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3120 | else | |
3121 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3122 | fi | |
3123 | ||
3124 | else | |
3125 | ||
3126 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3127 | if test "x$LINE" != x ; then | |
3128 | eval "DEFAULT_$LINE" | |
3129 | else | |
3130 | no_cache=1 | |
3131 | fi | |
3132 | ||
3133 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3134 | ||
3135 | fi; | |
3136 | ||
3137 | eval "$ac_cv_use_dmalloc" | |
3138 | if test "$no_cache" != 1; then | |
3139 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3140 | fi | |
3141 | ||
3142 | if test "$wxUSE_DMALLOC" = yes; then | |
3143 | echo "$as_me:$LINENO: result: yes" >&5 | |
3144 | echo "${ECHO_T}yes" >&6 | |
3145 | else | |
3146 | echo "$as_me:$LINENO: result: no" >&5 | |
3147 | echo "${ECHO_T}no" >&6 | |
3148 | fi | |
3149 | ||
3150 | ||
3151 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3152 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3153 | no_cache=0 | |
3154 | ||
3155 | # Check whether --with-regex or --without-regex was given. | |
3156 | if test "${with_regex+set}" = set; then | |
3157 | withval="$with_regex" | |
3158 | ||
3159 | if test "$withval" = yes; then | |
3160 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3161 | elif test "$withval" = no; then | |
3162 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3163 | elif test "$withval" = sys; then | |
3164 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3165 | elif test "$withval" = builtin; then | |
3166 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3167 | else | |
3168 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3169 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3170 | { (exit 1); exit 1; }; } | |
3171 | fi | |
3172 | ||
3173 | else | |
3174 | ||
3175 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3176 | if test "x$LINE" != x ; then | |
3177 | eval "DEFAULT_$LINE" | |
3178 | else | |
3179 | no_cache=1 | |
3180 | fi | |
3181 | ||
3182 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3183 | ||
3184 | fi; | |
3185 | ||
3186 | eval "$ac_cv_use_regex" | |
3187 | if test "$no_cache" != 1; then | |
3188 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3189 | fi | |
3190 | ||
3191 | if test "$wxUSE_REGEX" = yes; then | |
3192 | echo "$as_me:$LINENO: result: yes" >&5 | |
3193 | echo "${ECHO_T}yes" >&6 | |
3194 | elif test "$wxUSE_REGEX" = no; then | |
3195 | echo "$as_me:$LINENO: result: no" >&5 | |
3196 | echo "${ECHO_T}no" >&6 | |
3197 | elif test "$wxUSE_REGEX" = sys; then | |
3198 | echo "$as_me:$LINENO: result: system version" >&5 | |
3199 | echo "${ECHO_T}system version" >&6 | |
3200 | elif test "$wxUSE_REGEX" = builtin; then | |
3201 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3202 | echo "${ECHO_T}builtin version" >&6 | |
3203 | else | |
3204 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3205 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3206 | { (exit 1); exit 1; }; } | |
3207 | fi | |
3208 | ||
3209 | ||
3210 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3211 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3212 | no_cache=0 | |
3213 | ||
3214 | # Check whether --with-zlib or --without-zlib was given. | |
3215 | if test "${with_zlib+set}" = set; then | |
3216 | withval="$with_zlib" | |
3217 | ||
3218 | if test "$withval" = yes; then | |
3219 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3220 | elif test "$withval" = no; then | |
3221 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3222 | elif test "$withval" = sys; then | |
3223 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3224 | elif test "$withval" = builtin; then | |
3225 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3226 | else | |
3227 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3228 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3229 | { (exit 1); exit 1; }; } | |
3230 | fi | |
3231 | ||
3232 | else | |
3233 | ||
3234 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3235 | if test "x$LINE" != x ; then | |
3236 | eval "DEFAULT_$LINE" | |
3237 | else | |
3238 | no_cache=1 | |
3239 | fi | |
3240 | ||
3241 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3242 | ||
3243 | fi; | |
3244 | ||
3245 | eval "$ac_cv_use_zlib" | |
3246 | if test "$no_cache" != 1; then | |
3247 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3248 | fi | |
3249 | ||
3250 | if test "$wxUSE_ZLIB" = yes; then | |
3251 | echo "$as_me:$LINENO: result: yes" >&5 | |
3252 | echo "${ECHO_T}yes" >&6 | |
3253 | elif test "$wxUSE_ZLIB" = no; then | |
3254 | echo "$as_me:$LINENO: result: no" >&5 | |
3255 | echo "${ECHO_T}no" >&6 | |
3256 | elif test "$wxUSE_ZLIB" = sys; then | |
3257 | echo "$as_me:$LINENO: result: system version" >&5 | |
3258 | echo "${ECHO_T}system version" >&6 | |
3259 | elif test "$wxUSE_ZLIB" = builtin; then | |
3260 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3261 | echo "${ECHO_T}builtin version" >&6 | |
3262 | else | |
3263 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3264 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3265 | { (exit 1); exit 1; }; } | |
3266 | fi | |
3267 | ||
3268 | ||
3269 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3270 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3271 | no_cache=0 | |
3272 | ||
3273 | # Check whether --with-odbc or --without-odbc was given. | |
3274 | if test "${with_odbc+set}" = set; then | |
3275 | withval="$with_odbc" | |
3276 | ||
3277 | if test "$withval" = yes; then | |
3278 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3279 | elif test "$withval" = no; then | |
3280 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3281 | elif test "$withval" = sys; then | |
3282 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3283 | elif test "$withval" = builtin; then | |
3284 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3285 | else | |
3286 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3287 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3288 | { (exit 1); exit 1; }; } | |
3289 | fi | |
3290 | ||
3291 | else | |
3292 | ||
3293 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3294 | if test "x$LINE" != x ; then | |
3295 | eval "DEFAULT_$LINE" | |
3296 | else | |
3297 | no_cache=1 | |
3298 | fi | |
3299 | ||
3300 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3301 | ||
3302 | fi; | |
3303 | ||
3304 | eval "$ac_cv_use_odbc" | |
3305 | if test "$no_cache" != 1; then | |
3306 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3307 | fi | |
3308 | ||
3309 | if test "$wxUSE_ODBC" = yes; then | |
3310 | echo "$as_me:$LINENO: result: yes" >&5 | |
3311 | echo "${ECHO_T}yes" >&6 | |
3312 | elif test "$wxUSE_ODBC" = no; then | |
3313 | echo "$as_me:$LINENO: result: no" >&5 | |
3314 | echo "${ECHO_T}no" >&6 | |
3315 | elif test "$wxUSE_ODBC" = sys; then | |
3316 | echo "$as_me:$LINENO: result: system version" >&5 | |
3317 | echo "${ECHO_T}system version" >&6 | |
3318 | elif test "$wxUSE_ODBC" = builtin; then | |
3319 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3320 | echo "${ECHO_T}builtin version" >&6 | |
3321 | else | |
3322 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3323 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3324 | { (exit 1); exit 1; }; } | |
3325 | fi | |
3326 | ||
3327 | ||
3328 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3329 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3330 | no_cache=0 | |
3331 | ||
3332 | # Check whether --with-expat or --without-expat was given. | |
3333 | if test "${with_expat+set}" = set; then | |
3334 | withval="$with_expat" | |
3335 | ||
3336 | if test "$withval" = yes; then | |
3337 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3338 | elif test "$withval" = no; then | |
3339 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3340 | elif test "$withval" = sys; then | |
3341 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3342 | elif test "$withval" = builtin; then | |
3343 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3344 | else | |
3345 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3346 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3347 | { (exit 1); exit 1; }; } | |
3348 | fi | |
3349 | ||
3350 | else | |
3351 | ||
3352 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3353 | if test "x$LINE" != x ; then | |
3354 | eval "DEFAULT_$LINE" | |
3355 | else | |
3356 | no_cache=1 | |
3357 | fi | |
3358 | ||
3359 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3360 | ||
3361 | fi; | |
3362 | ||
3363 | eval "$ac_cv_use_expat" | |
3364 | if test "$no_cache" != 1; then | |
3365 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3366 | fi | |
3367 | ||
3368 | if test "$wxUSE_EXPAT" = yes; then | |
3369 | echo "$as_me:$LINENO: result: yes" >&5 | |
3370 | echo "${ECHO_T}yes" >&6 | |
3371 | elif test "$wxUSE_EXPAT" = no; then | |
3372 | echo "$as_me:$LINENO: result: no" >&5 | |
3373 | echo "${ECHO_T}no" >&6 | |
3374 | elif test "$wxUSE_EXPAT" = sys; then | |
3375 | echo "$as_me:$LINENO: result: system version" >&5 | |
3376 | echo "${ECHO_T}system version" >&6 | |
3377 | elif test "$wxUSE_EXPAT" = builtin; then | |
3378 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3379 | echo "${ECHO_T}builtin version" >&6 | |
3380 | else | |
3381 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3382 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3383 | { (exit 1); exit 1; }; } | |
3384 | fi | |
3385 | ||
3386 | ||
3387 | ||
3388 | ||
3389 | enablestring= | |
3390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3391 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3392 | no_cache=0 | |
3393 | # Check whether --enable-shared or --disable-shared was given. | |
3394 | if test "${enable_shared+set}" = set; then | |
3395 | enableval="$enable_shared" | |
3396 | ||
3397 | if test "$enableval" = yes; then | |
3398 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3399 | else | |
3400 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3401 | fi | |
3402 | ||
3403 | else | |
3404 | ||
3405 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3406 | if test "x$LINE" != x ; then | |
3407 | eval "DEFAULT_$LINE" | |
3408 | else | |
3409 | no_cache=1 | |
3410 | fi | |
3411 | ||
3412 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3413 | ||
3414 | fi; | |
3415 | ||
3416 | eval "$ac_cv_use_shared" | |
3417 | if test "$no_cache" != 1; then | |
3418 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3419 | fi | |
3420 | ||
3421 | if test "$wxUSE_SHARED" = yes; then | |
3422 | echo "$as_me:$LINENO: result: yes" >&5 | |
3423 | echo "${ECHO_T}yes" >&6 | |
3424 | else | |
3425 | echo "$as_me:$LINENO: result: no" >&5 | |
3426 | echo "${ECHO_T}no" >&6 | |
3427 | fi | |
3428 | ||
3429 | ||
3430 | enablestring= | |
3431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3432 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3433 | no_cache=0 | |
3434 | # Check whether --enable-optimise or --disable-optimise was given. | |
3435 | if test "${enable_optimise+set}" = set; then | |
3436 | enableval="$enable_optimise" | |
3437 | ||
3438 | if test "$enableval" = yes; then | |
3439 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3440 | else | |
3441 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3442 | fi | |
3443 | ||
3444 | else | |
3445 | ||
3446 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3447 | if test "x$LINE" != x ; then | |
3448 | eval "DEFAULT_$LINE" | |
3449 | else | |
3450 | no_cache=1 | |
3451 | fi | |
3452 | ||
3453 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3454 | ||
3455 | fi; | |
3456 | ||
3457 | eval "$ac_cv_use_optimise" | |
3458 | if test "$no_cache" != 1; then | |
3459 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3460 | fi | |
3461 | ||
3462 | if test "$wxUSE_OPTIMISE" = yes; then | |
3463 | echo "$as_me:$LINENO: result: yes" >&5 | |
3464 | echo "${ECHO_T}yes" >&6 | |
3465 | else | |
3466 | echo "$as_me:$LINENO: result: no" >&5 | |
3467 | echo "${ECHO_T}no" >&6 | |
3468 | fi | |
3469 | ||
3470 | ||
3471 | enablestring= | |
3472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3473 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3474 | no_cache=0 | |
3475 | # Check whether --enable-debug or --disable-debug was given. | |
3476 | if test "${enable_debug+set}" = set; then | |
3477 | enableval="$enable_debug" | |
3478 | ||
3479 | if test "$enableval" = yes; then | |
3480 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3481 | else | |
3482 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3483 | fi | |
3484 | ||
3485 | else | |
3486 | ||
3487 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3488 | if test "x$LINE" != x ; then | |
3489 | eval "DEFAULT_$LINE" | |
3490 | else | |
3491 | no_cache=1 | |
3492 | fi | |
3493 | ||
3494 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3495 | ||
3496 | fi; | |
3497 | ||
3498 | eval "$ac_cv_use_debug" | |
3499 | if test "$no_cache" != 1; then | |
3500 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3501 | fi | |
3502 | ||
3503 | if test "$wxUSE_DEBUG" = yes; then | |
3504 | echo "$as_me:$LINENO: result: yes" >&5 | |
3505 | echo "${ECHO_T}yes" >&6 | |
3506 | else | |
3507 | echo "$as_me:$LINENO: result: no" >&5 | |
3508 | echo "${ECHO_T}no" >&6 | |
3509 | fi | |
3510 | ||
3511 | ||
3512 | enablestring= | |
3513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3514 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3515 | no_cache=0 | |
3516 | # Check whether --enable-stl or --disable-stl was given. | |
3517 | if test "${enable_stl+set}" = set; then | |
3518 | enableval="$enable_stl" | |
3519 | ||
3520 | if test "$enableval" = yes; then | |
3521 | ac_cv_use_stl='wxUSE_STL=yes' | |
3522 | else | |
3523 | ac_cv_use_stl='wxUSE_STL=no' | |
3524 | fi | |
3525 | ||
3526 | else | |
3527 | ||
3528 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3529 | if test "x$LINE" != x ; then | |
3530 | eval "DEFAULT_$LINE" | |
3531 | else | |
3532 | no_cache=1 | |
3533 | fi | |
3534 | ||
3535 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3536 | ||
3537 | fi; | |
3538 | ||
3539 | eval "$ac_cv_use_stl" | |
3540 | if test "$no_cache" != 1; then | |
3541 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3542 | fi | |
3543 | ||
3544 | if test "$wxUSE_STL" = yes; then | |
3545 | echo "$as_me:$LINENO: result: yes" >&5 | |
3546 | echo "${ECHO_T}yes" >&6 | |
3547 | else | |
3548 | echo "$as_me:$LINENO: result: no" >&5 | |
3549 | echo "${ECHO_T}no" >&6 | |
3550 | fi | |
3551 | ||
3552 | if test "$USE_OS2" = "1"; then | |
3553 | ||
3554 | enablestring= | |
3555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3556 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3557 | no_cache=0 | |
3558 | # Check whether --enable-omf or --disable-omf was given. | |
3559 | if test "${enable_omf+set}" = set; then | |
3560 | enableval="$enable_omf" | |
3561 | ||
3562 | if test "$enableval" = yes; then | |
3563 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3564 | else | |
3565 | ac_cv_use_omf='wxUSE_OMF=no' | |
3566 | fi | |
3567 | ||
3568 | else | |
3569 | ||
3570 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3571 | if test "x$LINE" != x ; then | |
3572 | eval "DEFAULT_$LINE" | |
3573 | else | |
3574 | no_cache=1 | |
3575 | fi | |
3576 | ||
3577 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3578 | ||
3579 | fi; | |
3580 | ||
3581 | eval "$ac_cv_use_omf" | |
3582 | if test "$no_cache" != 1; then | |
3583 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3584 | fi | |
3585 | ||
3586 | if test "$wxUSE_OMF" = yes; then | |
3587 | echo "$as_me:$LINENO: result: yes" >&5 | |
3588 | echo "${ECHO_T}yes" >&6 | |
3589 | else | |
3590 | echo "$as_me:$LINENO: result: no" >&5 | |
3591 | echo "${ECHO_T}no" >&6 | |
3592 | fi | |
3593 | ||
3594 | fi | |
3595 | ||
3596 | if test "$wxUSE_DEBUG" = "yes"; then | |
3597 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3598 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3599 | BUILD=debug | |
3600 | elif test "$wxUSE_DEBUG" = "no"; then | |
3601 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3602 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3603 | BUILD=release | |
3604 | fi | |
3605 | ||
3606 | ||
3607 | enablestring= | |
3608 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3609 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3610 | no_cache=0 | |
3611 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3612 | if test "${enable_debug_flag+set}" = set; then | |
3613 | enableval="$enable_debug_flag" | |
3614 | ||
3615 | if test "$enableval" = yes; then | |
3616 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3617 | else | |
3618 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3619 | fi | |
3620 | ||
3621 | else | |
3622 | ||
3623 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3624 | if test "x$LINE" != x ; then | |
3625 | eval "DEFAULT_$LINE" | |
3626 | else | |
3627 | no_cache=1 | |
3628 | fi | |
3629 | ||
3630 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3631 | ||
3632 | fi; | |
3633 | ||
3634 | eval "$ac_cv_use_debug_flag" | |
3635 | if test "$no_cache" != 1; then | |
3636 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3637 | fi | |
3638 | ||
3639 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3640 | echo "$as_me:$LINENO: result: yes" >&5 | |
3641 | echo "${ECHO_T}yes" >&6 | |
3642 | else | |
3643 | echo "$as_me:$LINENO: result: no" >&5 | |
3644 | echo "${ECHO_T}no" >&6 | |
3645 | fi | |
3646 | ||
3647 | ||
3648 | enablestring= | |
3649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3650 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3651 | no_cache=0 | |
3652 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3653 | if test "${enable_debug_info+set}" = set; then | |
3654 | enableval="$enable_debug_info" | |
3655 | ||
3656 | if test "$enableval" = yes; then | |
3657 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3658 | else | |
3659 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3660 | fi | |
3661 | ||
3662 | else | |
3663 | ||
3664 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3665 | if test "x$LINE" != x ; then | |
3666 | eval "DEFAULT_$LINE" | |
3667 | else | |
3668 | no_cache=1 | |
3669 | fi | |
3670 | ||
3671 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3672 | ||
3673 | fi; | |
3674 | ||
3675 | eval "$ac_cv_use_debug_info" | |
3676 | if test "$no_cache" != 1; then | |
3677 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3678 | fi | |
3679 | ||
3680 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3681 | echo "$as_me:$LINENO: result: yes" >&5 | |
3682 | echo "${ECHO_T}yes" >&6 | |
3683 | else | |
3684 | echo "$as_me:$LINENO: result: no" >&5 | |
3685 | echo "${ECHO_T}no" >&6 | |
3686 | fi | |
3687 | ||
3688 | ||
3689 | enablestring= | |
3690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3691 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3692 | no_cache=0 | |
3693 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3694 | if test "${enable_debug_gdb+set}" = set; then | |
3695 | enableval="$enable_debug_gdb" | |
3696 | ||
3697 | if test "$enableval" = yes; then | |
3698 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3699 | else | |
3700 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3701 | fi | |
3702 | ||
3703 | else | |
3704 | ||
3705 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3706 | if test "x$LINE" != x ; then | |
3707 | eval "DEFAULT_$LINE" | |
3708 | else | |
3709 | no_cache=1 | |
3710 | fi | |
3711 | ||
3712 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3713 | ||
3714 | fi; | |
3715 | ||
3716 | eval "$ac_cv_use_debug_gdb" | |
3717 | if test "$no_cache" != 1; then | |
3718 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3719 | fi | |
3720 | ||
3721 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3722 | echo "$as_me:$LINENO: result: yes" >&5 | |
3723 | echo "${ECHO_T}yes" >&6 | |
3724 | else | |
3725 | echo "$as_me:$LINENO: result: no" >&5 | |
3726 | echo "${ECHO_T}no" >&6 | |
3727 | fi | |
3728 | ||
3729 | ||
3730 | enablestring= | |
3731 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3732 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3733 | no_cache=0 | |
3734 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3735 | if test "${enable_debug_cntxt+set}" = set; then | |
3736 | enableval="$enable_debug_cntxt" | |
3737 | ||
3738 | if test "$enableval" = yes; then | |
3739 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3740 | else | |
3741 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3742 | fi | |
3743 | ||
3744 | else | |
3745 | ||
3746 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3747 | if test "x$LINE" != x ; then | |
3748 | eval "DEFAULT_$LINE" | |
3749 | else | |
3750 | no_cache=1 | |
3751 | fi | |
3752 | ||
3753 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3754 | ||
3755 | fi; | |
3756 | ||
3757 | eval "$ac_cv_use_debug_cntxt" | |
3758 | if test "$no_cache" != 1; then | |
3759 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3760 | fi | |
3761 | ||
3762 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3763 | echo "$as_me:$LINENO: result: yes" >&5 | |
3764 | echo "${ECHO_T}yes" >&6 | |
3765 | else | |
3766 | echo "$as_me:$LINENO: result: no" >&5 | |
3767 | echo "${ECHO_T}no" >&6 | |
3768 | fi | |
3769 | ||
3770 | ||
3771 | enablestring= | |
3772 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3773 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3774 | no_cache=0 | |
3775 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3776 | if test "${enable_mem_tracing+set}" = set; then | |
3777 | enableval="$enable_mem_tracing" | |
3778 | ||
3779 | if test "$enableval" = yes; then | |
3780 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3781 | else | |
3782 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3783 | fi | |
3784 | ||
3785 | else | |
3786 | ||
3787 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3788 | if test "x$LINE" != x ; then | |
3789 | eval "DEFAULT_$LINE" | |
3790 | else | |
3791 | no_cache=1 | |
3792 | fi | |
3793 | ||
3794 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3795 | ||
3796 | fi; | |
3797 | ||
3798 | eval "$ac_cv_use_mem_tracing" | |
3799 | if test "$no_cache" != 1; then | |
3800 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3801 | fi | |
3802 | ||
3803 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3804 | echo "$as_me:$LINENO: result: yes" >&5 | |
3805 | echo "${ECHO_T}yes" >&6 | |
3806 | else | |
3807 | echo "$as_me:$LINENO: result: no" >&5 | |
3808 | echo "${ECHO_T}no" >&6 | |
3809 | fi | |
3810 | ||
3811 | ||
3812 | enablestring= | |
3813 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3814 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3815 | no_cache=0 | |
3816 | # Check whether --enable-profile or --disable-profile was given. | |
3817 | if test "${enable_profile+set}" = set; then | |
3818 | enableval="$enable_profile" | |
3819 | ||
3820 | if test "$enableval" = yes; then | |
3821 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3822 | else | |
3823 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3824 | fi | |
3825 | ||
3826 | else | |
3827 | ||
3828 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3829 | if test "x$LINE" != x ; then | |
3830 | eval "DEFAULT_$LINE" | |
3831 | else | |
3832 | no_cache=1 | |
3833 | fi | |
3834 | ||
3835 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3836 | ||
3837 | fi; | |
3838 | ||
3839 | eval "$ac_cv_use_profile" | |
3840 | if test "$no_cache" != 1; then | |
3841 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3842 | fi | |
3843 | ||
3844 | if test "$wxUSE_PROFILE" = yes; then | |
3845 | echo "$as_me:$LINENO: result: yes" >&5 | |
3846 | echo "${ECHO_T}yes" >&6 | |
3847 | else | |
3848 | echo "$as_me:$LINENO: result: no" >&5 | |
3849 | echo "${ECHO_T}no" >&6 | |
3850 | fi | |
3851 | ||
3852 | ||
3853 | enablestring= | |
3854 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3855 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3856 | no_cache=0 | |
3857 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3858 | if test "${enable_no_rtti+set}" = set; then | |
3859 | enableval="$enable_no_rtti" | |
3860 | ||
3861 | if test "$enableval" = yes; then | |
3862 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3863 | else | |
3864 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3865 | fi | |
3866 | ||
3867 | else | |
3868 | ||
3869 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3870 | if test "x$LINE" != x ; then | |
3871 | eval "DEFAULT_$LINE" | |
3872 | else | |
3873 | no_cache=1 | |
3874 | fi | |
3875 | ||
3876 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3877 | ||
3878 | fi; | |
3879 | ||
3880 | eval "$ac_cv_use_no_rtti" | |
3881 | if test "$no_cache" != 1; then | |
3882 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3883 | fi | |
3884 | ||
3885 | if test "$wxUSE_NO_RTTI" = yes; then | |
3886 | echo "$as_me:$LINENO: result: yes" >&5 | |
3887 | echo "${ECHO_T}yes" >&6 | |
3888 | else | |
3889 | echo "$as_me:$LINENO: result: no" >&5 | |
3890 | echo "${ECHO_T}no" >&6 | |
3891 | fi | |
3892 | ||
3893 | ||
3894 | enablestring= | |
3895 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3896 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3897 | no_cache=0 | |
3898 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3899 | if test "${enable_no_exceptions+set}" = set; then | |
3900 | enableval="$enable_no_exceptions" | |
3901 | ||
3902 | if test "$enableval" = yes; then | |
3903 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3904 | else | |
3905 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3906 | fi | |
3907 | ||
3908 | else | |
3909 | ||
3910 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3911 | if test "x$LINE" != x ; then | |
3912 | eval "DEFAULT_$LINE" | |
3913 | else | |
3914 | no_cache=1 | |
3915 | fi | |
3916 | ||
3917 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3918 | ||
3919 | fi; | |
3920 | ||
3921 | eval "$ac_cv_use_no_exceptions" | |
3922 | if test "$no_cache" != 1; then | |
3923 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3924 | fi | |
3925 | ||
3926 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3927 | echo "$as_me:$LINENO: result: yes" >&5 | |
3928 | echo "${ECHO_T}yes" >&6 | |
3929 | else | |
3930 | echo "$as_me:$LINENO: result: no" >&5 | |
3931 | echo "${ECHO_T}no" >&6 | |
3932 | fi | |
3933 | ||
3934 | ||
3935 | enablestring= | |
3936 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3937 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3938 | no_cache=0 | |
3939 | # Check whether --enable-permissive or --disable-permissive was given. | |
3940 | if test "${enable_permissive+set}" = set; then | |
3941 | enableval="$enable_permissive" | |
3942 | ||
3943 | if test "$enableval" = yes; then | |
3944 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3945 | else | |
3946 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3947 | fi | |
3948 | ||
3949 | else | |
3950 | ||
3951 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3952 | if test "x$LINE" != x ; then | |
3953 | eval "DEFAULT_$LINE" | |
3954 | else | |
3955 | no_cache=1 | |
3956 | fi | |
3957 | ||
3958 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3959 | ||
3960 | fi; | |
3961 | ||
3962 | eval "$ac_cv_use_permissive" | |
3963 | if test "$no_cache" != 1; then | |
3964 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3965 | fi | |
3966 | ||
3967 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3968 | echo "$as_me:$LINENO: result: yes" >&5 | |
3969 | echo "${ECHO_T}yes" >&6 | |
3970 | else | |
3971 | echo "$as_me:$LINENO: result: no" >&5 | |
3972 | echo "${ECHO_T}no" >&6 | |
3973 | fi | |
3974 | ||
3975 | ||
3976 | enablestring= | |
3977 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3978 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3979 | no_cache=0 | |
3980 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3981 | if test "${enable_no_deps+set}" = set; then | |
3982 | enableval="$enable_no_deps" | |
3983 | ||
3984 | if test "$enableval" = yes; then | |
3985 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3986 | else | |
3987 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3988 | fi | |
3989 | ||
3990 | else | |
3991 | ||
3992 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
3993 | if test "x$LINE" != x ; then | |
3994 | eval "DEFAULT_$LINE" | |
3995 | else | |
3996 | no_cache=1 | |
3997 | fi | |
3998 | ||
3999 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4000 | ||
4001 | fi; | |
4002 | ||
4003 | eval "$ac_cv_use_no_deps" | |
4004 | if test "$no_cache" != 1; then | |
4005 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4006 | fi | |
4007 | ||
4008 | if test "$wxUSE_NO_DEPS" = yes; then | |
4009 | echo "$as_me:$LINENO: result: yes" >&5 | |
4010 | echo "${ECHO_T}yes" >&6 | |
4011 | else | |
4012 | echo "$as_me:$LINENO: result: no" >&5 | |
4013 | echo "${ECHO_T}no" >&6 | |
4014 | fi | |
4015 | ||
4016 | ||
4017 | ||
4018 | enablestring= | |
4019 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4020 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4021 | no_cache=0 | |
4022 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4023 | if test "${enable_compat22+set}" = set; then | |
4024 | enableval="$enable_compat22" | |
4025 | ||
4026 | if test "$enableval" = yes; then | |
4027 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4028 | else | |
4029 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4030 | fi | |
4031 | ||
4032 | else | |
4033 | ||
4034 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4035 | if test "x$LINE" != x ; then | |
4036 | eval "DEFAULT_$LINE" | |
4037 | else | |
4038 | no_cache=1 | |
4039 | fi | |
4040 | ||
4041 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4042 | ||
4043 | fi; | |
4044 | ||
4045 | eval "$ac_cv_use_compat22" | |
4046 | if test "$no_cache" != 1; then | |
4047 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4048 | fi | |
4049 | ||
4050 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4051 | echo "$as_me:$LINENO: result: yes" >&5 | |
4052 | echo "${ECHO_T}yes" >&6 | |
4053 | else | |
4054 | echo "$as_me:$LINENO: result: no" >&5 | |
4055 | echo "${ECHO_T}no" >&6 | |
4056 | fi | |
4057 | ||
4058 | ||
4059 | enablestring=disable | |
4060 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4061 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4062 | no_cache=0 | |
4063 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4064 | if test "${enable_compat24+set}" = set; then | |
4065 | enableval="$enable_compat24" | |
4066 | ||
4067 | if test "$enableval" = yes; then | |
4068 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4069 | else | |
4070 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4071 | fi | |
4072 | ||
4073 | else | |
4074 | ||
4075 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4076 | if test "x$LINE" != x ; then | |
4077 | eval "DEFAULT_$LINE" | |
4078 | else | |
4079 | no_cache=1 | |
4080 | fi | |
4081 | ||
4082 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4083 | ||
4084 | fi; | |
4085 | ||
4086 | eval "$ac_cv_use_compat24" | |
4087 | if test "$no_cache" != 1; then | |
4088 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4089 | fi | |
4090 | ||
4091 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4092 | echo "$as_me:$LINENO: result: yes" >&5 | |
4093 | echo "${ECHO_T}yes" >&6 | |
4094 | else | |
4095 | echo "$as_me:$LINENO: result: no" >&5 | |
4096 | echo "${ECHO_T}no" >&6 | |
4097 | fi | |
4098 | ||
4099 | ||
4100 | # Check whether --enable-rpath or --disable-rpath was given. | |
4101 | if test "${enable_rpath+set}" = set; then | |
4102 | enableval="$enable_rpath" | |
4103 | wxRPATH_DIR="$enableval" | |
4104 | fi; | |
4105 | ||
ac1cb8d3 | 4106 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then |
a848cd7e SC |
4107 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" |
4108 | fi | |
4109 | ||
4110 | ||
4111 | ||
4112 | ||
4113 | enablestring= | |
4114 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4115 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4116 | no_cache=0 | |
4117 | # Check whether --enable-intl or --disable-intl was given. | |
4118 | if test "${enable_intl+set}" = set; then | |
4119 | enableval="$enable_intl" | |
4120 | ||
4121 | if test "$enableval" = yes; then | |
4122 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4123 | else | |
4124 | ac_cv_use_intl='wxUSE_INTL=no' | |
4125 | fi | |
4126 | ||
4127 | else | |
4128 | ||
4129 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4130 | if test "x$LINE" != x ; then | |
4131 | eval "DEFAULT_$LINE" | |
4132 | else | |
4133 | no_cache=1 | |
4134 | fi | |
4135 | ||
4136 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4137 | ||
4138 | fi; | |
4139 | ||
4140 | eval "$ac_cv_use_intl" | |
4141 | if test "$no_cache" != 1; then | |
4142 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4143 | fi | |
4144 | ||
4145 | if test "$wxUSE_INTL" = yes; then | |
4146 | echo "$as_me:$LINENO: result: yes" >&5 | |
4147 | echo "${ECHO_T}yes" >&6 | |
4148 | else | |
4149 | echo "$as_me:$LINENO: result: no" >&5 | |
4150 | echo "${ECHO_T}no" >&6 | |
4151 | fi | |
4152 | ||
4153 | ||
4154 | enablestring= | |
4155 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4156 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4157 | no_cache=0 | |
4158 | # Check whether --enable-config or --disable-config was given. | |
4159 | if test "${enable_config+set}" = set; then | |
4160 | enableval="$enable_config" | |
4161 | ||
4162 | if test "$enableval" = yes; then | |
4163 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4164 | else | |
4165 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4166 | fi | |
4167 | ||
4168 | else | |
4169 | ||
4170 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4171 | if test "x$LINE" != x ; then | |
4172 | eval "DEFAULT_$LINE" | |
4173 | else | |
4174 | no_cache=1 | |
4175 | fi | |
4176 | ||
4177 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4178 | ||
4179 | fi; | |
4180 | ||
4181 | eval "$ac_cv_use_config" | |
4182 | if test "$no_cache" != 1; then | |
4183 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4184 | fi | |
4185 | ||
4186 | if test "$wxUSE_CONFIG" = yes; then | |
4187 | echo "$as_me:$LINENO: result: yes" >&5 | |
4188 | echo "${ECHO_T}yes" >&6 | |
4189 | else | |
4190 | echo "$as_me:$LINENO: result: no" >&5 | |
4191 | echo "${ECHO_T}no" >&6 | |
4192 | fi | |
4193 | ||
4194 | ||
4195 | ||
4196 | enablestring= | |
4197 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4198 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4199 | no_cache=0 | |
4200 | # Check whether --enable-protocols or --disable-protocols was given. | |
4201 | if test "${enable_protocols+set}" = set; then | |
4202 | enableval="$enable_protocols" | |
4203 | ||
4204 | if test "$enableval" = yes; then | |
4205 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4206 | else | |
4207 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4208 | fi | |
4209 | ||
4210 | else | |
4211 | ||
4212 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4213 | if test "x$LINE" != x ; then | |
4214 | eval "DEFAULT_$LINE" | |
4215 | else | |
4216 | no_cache=1 | |
4217 | fi | |
4218 | ||
4219 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4220 | ||
4221 | fi; | |
4222 | ||
4223 | eval "$ac_cv_use_protocols" | |
4224 | if test "$no_cache" != 1; then | |
4225 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4226 | fi | |
4227 | ||
4228 | if test "$wxUSE_PROTOCOL" = yes; then | |
4229 | echo "$as_me:$LINENO: result: yes" >&5 | |
4230 | echo "${ECHO_T}yes" >&6 | |
4231 | else | |
4232 | echo "$as_me:$LINENO: result: no" >&5 | |
4233 | echo "${ECHO_T}no" >&6 | |
4234 | fi | |
4235 | ||
4236 | ||
4237 | enablestring= | |
4238 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4239 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4240 | no_cache=0 | |
4241 | # Check whether --enable-ftp or --disable-ftp was given. | |
4242 | if test "${enable_ftp+set}" = set; then | |
4243 | enableval="$enable_ftp" | |
4244 | ||
4245 | if test "$enableval" = yes; then | |
4246 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4247 | else | |
4248 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4249 | fi | |
4250 | ||
4251 | else | |
4252 | ||
4253 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4254 | if test "x$LINE" != x ; then | |
4255 | eval "DEFAULT_$LINE" | |
4256 | else | |
4257 | no_cache=1 | |
4258 | fi | |
4259 | ||
4260 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4261 | ||
4262 | fi; | |
4263 | ||
4264 | eval "$ac_cv_use_ftp" | |
4265 | if test "$no_cache" != 1; then | |
4266 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4267 | fi | |
4268 | ||
4269 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4270 | echo "$as_me:$LINENO: result: yes" >&5 | |
4271 | echo "${ECHO_T}yes" >&6 | |
4272 | else | |
4273 | echo "$as_me:$LINENO: result: no" >&5 | |
4274 | echo "${ECHO_T}no" >&6 | |
4275 | fi | |
4276 | ||
4277 | ||
4278 | enablestring= | |
4279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4280 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4281 | no_cache=0 | |
4282 | # Check whether --enable-http or --disable-http was given. | |
4283 | if test "${enable_http+set}" = set; then | |
4284 | enableval="$enable_http" | |
4285 | ||
4286 | if test "$enableval" = yes; then | |
4287 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4288 | else | |
4289 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4290 | fi | |
4291 | ||
4292 | else | |
4293 | ||
4294 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4295 | if test "x$LINE" != x ; then | |
4296 | eval "DEFAULT_$LINE" | |
4297 | else | |
4298 | no_cache=1 | |
4299 | fi | |
4300 | ||
4301 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4302 | ||
4303 | fi; | |
4304 | ||
4305 | eval "$ac_cv_use_http" | |
4306 | if test "$no_cache" != 1; then | |
4307 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4308 | fi | |
4309 | ||
4310 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4311 | echo "$as_me:$LINENO: result: yes" >&5 | |
4312 | echo "${ECHO_T}yes" >&6 | |
4313 | else | |
4314 | echo "$as_me:$LINENO: result: no" >&5 | |
4315 | echo "${ECHO_T}no" >&6 | |
4316 | fi | |
4317 | ||
4318 | ||
4319 | enablestring= | |
4320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4321 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4322 | no_cache=0 | |
4323 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4324 | if test "${enable_fileproto+set}" = set; then | |
4325 | enableval="$enable_fileproto" | |
4326 | ||
4327 | if test "$enableval" = yes; then | |
4328 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4329 | else | |
4330 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4331 | fi | |
4332 | ||
4333 | else | |
4334 | ||
4335 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4336 | if test "x$LINE" != x ; then | |
4337 | eval "DEFAULT_$LINE" | |
4338 | else | |
4339 | no_cache=1 | |
4340 | fi | |
4341 | ||
4342 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4343 | ||
4344 | fi; | |
4345 | ||
4346 | eval "$ac_cv_use_fileproto" | |
4347 | if test "$no_cache" != 1; then | |
4348 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4349 | fi | |
4350 | ||
4351 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4352 | echo "$as_me:$LINENO: result: yes" >&5 | |
4353 | echo "${ECHO_T}yes" >&6 | |
4354 | else | |
4355 | echo "$as_me:$LINENO: result: no" >&5 | |
4356 | echo "${ECHO_T}no" >&6 | |
4357 | fi | |
4358 | ||
4359 | ||
4360 | enablestring= | |
4361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4362 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4363 | no_cache=0 | |
4364 | # Check whether --enable-sockets or --disable-sockets was given. | |
4365 | if test "${enable_sockets+set}" = set; then | |
4366 | enableval="$enable_sockets" | |
4367 | ||
4368 | if test "$enableval" = yes; then | |
4369 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4370 | else | |
4371 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4372 | fi | |
4373 | ||
4374 | else | |
4375 | ||
4376 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4377 | if test "x$LINE" != x ; then | |
4378 | eval "DEFAULT_$LINE" | |
4379 | else | |
4380 | no_cache=1 | |
4381 | fi | |
4382 | ||
4383 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4384 | ||
4385 | fi; | |
4386 | ||
4387 | eval "$ac_cv_use_sockets" | |
4388 | if test "$no_cache" != 1; then | |
4389 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4390 | fi | |
4391 | ||
4392 | if test "$wxUSE_SOCKETS" = yes; then | |
4393 | echo "$as_me:$LINENO: result: yes" >&5 | |
4394 | echo "${ECHO_T}yes" >&6 | |
4395 | else | |
4396 | echo "$as_me:$LINENO: result: no" >&5 | |
4397 | echo "${ECHO_T}no" >&6 | |
4398 | fi | |
4399 | ||
4400 | ||
4401 | enablestring= | |
4402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4403 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4404 | no_cache=0 | |
4405 | # Check whether --enable-ole or --disable-ole was given. | |
4406 | if test "${enable_ole+set}" = set; then | |
4407 | enableval="$enable_ole" | |
4408 | ||
4409 | if test "$enableval" = yes; then | |
4410 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4411 | else | |
4412 | ac_cv_use_ole='wxUSE_OLE=no' | |
4413 | fi | |
4414 | ||
4415 | else | |
4416 | ||
4417 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4418 | if test "x$LINE" != x ; then | |
4419 | eval "DEFAULT_$LINE" | |
4420 | else | |
4421 | no_cache=1 | |
4422 | fi | |
4423 | ||
4424 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4425 | ||
4426 | fi; | |
4427 | ||
4428 | eval "$ac_cv_use_ole" | |
4429 | if test "$no_cache" != 1; then | |
4430 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4431 | fi | |
4432 | ||
4433 | if test "$wxUSE_OLE" = yes; then | |
4434 | echo "$as_me:$LINENO: result: yes" >&5 | |
4435 | echo "${ECHO_T}yes" >&6 | |
4436 | else | |
4437 | echo "$as_me:$LINENO: result: no" >&5 | |
4438 | echo "${ECHO_T}no" >&6 | |
4439 | fi | |
4440 | ||
4441 | ||
4442 | enablestring= | |
4443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4444 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4445 | no_cache=0 | |
4446 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4447 | if test "${enable_dataobj+set}" = set; then | |
4448 | enableval="$enable_dataobj" | |
4449 | ||
4450 | if test "$enableval" = yes; then | |
4451 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4452 | else | |
4453 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4454 | fi | |
4455 | ||
4456 | else | |
4457 | ||
4458 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4459 | if test "x$LINE" != x ; then | |
4460 | eval "DEFAULT_$LINE" | |
4461 | else | |
4462 | no_cache=1 | |
4463 | fi | |
4464 | ||
4465 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4466 | ||
4467 | fi; | |
4468 | ||
4469 | eval "$ac_cv_use_dataobj" | |
4470 | if test "$no_cache" != 1; then | |
4471 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4472 | fi | |
4473 | ||
4474 | if test "$wxUSE_DATAOBJ" = yes; then | |
4475 | echo "$as_me:$LINENO: result: yes" >&5 | |
4476 | echo "${ECHO_T}yes" >&6 | |
4477 | else | |
4478 | echo "$as_me:$LINENO: result: no" >&5 | |
4479 | echo "${ECHO_T}no" >&6 | |
4480 | fi | |
4481 | ||
4482 | ||
4483 | ||
4484 | enablestring= | |
4485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4486 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4487 | no_cache=0 | |
4488 | # Check whether --enable-ipc or --disable-ipc was given. | |
4489 | if test "${enable_ipc+set}" = set; then | |
4490 | enableval="$enable_ipc" | |
4491 | ||
4492 | if test "$enableval" = yes; then | |
4493 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4494 | else | |
4495 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4496 | fi | |
4497 | ||
4498 | else | |
4499 | ||
4500 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4501 | if test "x$LINE" != x ; then | |
4502 | eval "DEFAULT_$LINE" | |
4503 | else | |
4504 | no_cache=1 | |
4505 | fi | |
4506 | ||
4507 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4508 | ||
4509 | fi; | |
4510 | ||
4511 | eval "$ac_cv_use_ipc" | |
4512 | if test "$no_cache" != 1; then | |
4513 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4514 | fi | |
4515 | ||
4516 | if test "$wxUSE_IPC" = yes; then | |
4517 | echo "$as_me:$LINENO: result: yes" >&5 | |
4518 | echo "${ECHO_T}yes" >&6 | |
4519 | else | |
4520 | echo "$as_me:$LINENO: result: no" >&5 | |
4521 | echo "${ECHO_T}no" >&6 | |
4522 | fi | |
4523 | ||
4524 | ||
4525 | ||
4526 | enablestring= | |
4527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4528 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4529 | no_cache=0 | |
4530 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4531 | if test "${enable_apple_ieee+set}" = set; then | |
4532 | enableval="$enable_apple_ieee" | |
4533 | ||
4534 | if test "$enableval" = yes; then | |
4535 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4536 | else | |
4537 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4538 | fi | |
4539 | ||
4540 | else | |
4541 | ||
4542 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4543 | if test "x$LINE" != x ; then | |
4544 | eval "DEFAULT_$LINE" | |
4545 | else | |
4546 | no_cache=1 | |
4547 | fi | |
4548 | ||
4549 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4550 | ||
4551 | fi; | |
4552 | ||
4553 | eval "$ac_cv_use_apple_ieee" | |
4554 | if test "$no_cache" != 1; then | |
4555 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4556 | fi | |
4557 | ||
4558 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4559 | echo "$as_me:$LINENO: result: yes" >&5 | |
4560 | echo "${ECHO_T}yes" >&6 | |
4561 | else | |
4562 | echo "$as_me:$LINENO: result: no" >&5 | |
4563 | echo "${ECHO_T}no" >&6 | |
4564 | fi | |
4565 | ||
4566 | ||
4567 | enablestring= | |
4568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4569 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4570 | no_cache=0 | |
4571 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4572 | if test "${enable_catch_segvs+set}" = set; then | |
4573 | enableval="$enable_catch_segvs" | |
4574 | ||
4575 | if test "$enableval" = yes; then | |
4576 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4577 | else | |
4578 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4579 | fi | |
4580 | ||
4581 | else | |
4582 | ||
4583 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4584 | if test "x$LINE" != x ; then | |
4585 | eval "DEFAULT_$LINE" | |
4586 | else | |
4587 | no_cache=1 | |
4588 | fi | |
4589 | ||
4590 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4591 | ||
4592 | fi; | |
4593 | ||
4594 | eval "$ac_cv_use_catch_segvs" | |
4595 | if test "$no_cache" != 1; then | |
4596 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4597 | fi | |
4598 | ||
4599 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4600 | echo "$as_me:$LINENO: result: yes" >&5 | |
4601 | echo "${ECHO_T}yes" >&6 | |
4602 | else | |
4603 | echo "$as_me:$LINENO: result: no" >&5 | |
4604 | echo "${ECHO_T}no" >&6 | |
4605 | fi | |
4606 | ||
4607 | ||
4608 | enablestring= | |
4609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4610 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4611 | no_cache=0 | |
4612 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4613 | if test "${enable_cmdline+set}" = set; then | |
4614 | enableval="$enable_cmdline" | |
4615 | ||
4616 | if test "$enableval" = yes; then | |
4617 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4618 | else | |
4619 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4620 | fi | |
4621 | ||
4622 | else | |
4623 | ||
4624 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4625 | if test "x$LINE" != x ; then | |
4626 | eval "DEFAULT_$LINE" | |
4627 | else | |
4628 | no_cache=1 | |
4629 | fi | |
4630 | ||
4631 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4632 | ||
4633 | fi; | |
4634 | ||
4635 | eval "$ac_cv_use_cmdline" | |
4636 | if test "$no_cache" != 1; then | |
4637 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4638 | fi | |
4639 | ||
4640 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4641 | echo "$as_me:$LINENO: result: yes" >&5 | |
4642 | echo "${ECHO_T}yes" >&6 | |
4643 | else | |
4644 | echo "$as_me:$LINENO: result: no" >&5 | |
4645 | echo "${ECHO_T}no" >&6 | |
4646 | fi | |
4647 | ||
4648 | ||
4649 | enablestring= | |
4650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4651 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4652 | no_cache=0 | |
4653 | # Check whether --enable-datetime or --disable-datetime was given. | |
4654 | if test "${enable_datetime+set}" = set; then | |
4655 | enableval="$enable_datetime" | |
4656 | ||
4657 | if test "$enableval" = yes; then | |
4658 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4659 | else | |
4660 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4661 | fi | |
4662 | ||
4663 | else | |
4664 | ||
4665 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4666 | if test "x$LINE" != x ; then | |
4667 | eval "DEFAULT_$LINE" | |
4668 | else | |
4669 | no_cache=1 | |
4670 | fi | |
4671 | ||
4672 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4673 | ||
4674 | fi; | |
4675 | ||
4676 | eval "$ac_cv_use_datetime" | |
4677 | if test "$no_cache" != 1; then | |
4678 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4679 | fi | |
4680 | ||
4681 | if test "$wxUSE_DATETIME" = yes; then | |
4682 | echo "$as_me:$LINENO: result: yes" >&5 | |
4683 | echo "${ECHO_T}yes" >&6 | |
4684 | else | |
4685 | echo "$as_me:$LINENO: result: no" >&5 | |
4686 | echo "${ECHO_T}no" >&6 | |
4687 | fi | |
4688 | ||
4689 | ||
4690 | enablestring= | |
4691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4692 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4693 | no_cache=0 | |
4694 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4695 | if test "${enable_dialupman+set}" = set; then | |
4696 | enableval="$enable_dialupman" | |
4697 | ||
4698 | if test "$enableval" = yes; then | |
4699 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4700 | else | |
4701 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4702 | fi | |
4703 | ||
4704 | else | |
4705 | ||
4706 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4707 | if test "x$LINE" != x ; then | |
4708 | eval "DEFAULT_$LINE" | |
4709 | else | |
4710 | no_cache=1 | |
4711 | fi | |
4712 | ||
4713 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4714 | ||
4715 | fi; | |
4716 | ||
4717 | eval "$ac_cv_use_dialupman" | |
4718 | if test "$no_cache" != 1; then | |
4719 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4720 | fi | |
4721 | ||
4722 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4723 | echo "$as_me:$LINENO: result: yes" >&5 | |
4724 | echo "${ECHO_T}yes" >&6 | |
4725 | else | |
4726 | echo "$as_me:$LINENO: result: no" >&5 | |
4727 | echo "${ECHO_T}no" >&6 | |
4728 | fi | |
4729 | ||
4730 | ||
4731 | enablestring= | |
4732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4733 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4734 | no_cache=0 | |
4735 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4736 | if test "${enable_dynlib+set}" = set; then | |
4737 | enableval="$enable_dynlib" | |
4738 | ||
4739 | if test "$enableval" = yes; then | |
4740 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4741 | else | |
4742 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4743 | fi | |
4744 | ||
4745 | else | |
4746 | ||
4747 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4748 | if test "x$LINE" != x ; then | |
4749 | eval "DEFAULT_$LINE" | |
4750 | else | |
4751 | no_cache=1 | |
4752 | fi | |
4753 | ||
4754 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4755 | ||
4756 | fi; | |
4757 | ||
4758 | eval "$ac_cv_use_dynlib" | |
4759 | if test "$no_cache" != 1; then | |
4760 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4761 | fi | |
4762 | ||
4763 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4764 | echo "$as_me:$LINENO: result: yes" >&5 | |
4765 | echo "${ECHO_T}yes" >&6 | |
4766 | else | |
4767 | echo "$as_me:$LINENO: result: no" >&5 | |
4768 | echo "${ECHO_T}no" >&6 | |
4769 | fi | |
4770 | ||
4771 | ||
4772 | enablestring= | |
4773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4774 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4775 | no_cache=0 | |
4776 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4777 | if test "${enable_dynamicloader+set}" = set; then | |
4778 | enableval="$enable_dynamicloader" | |
4779 | ||
4780 | if test "$enableval" = yes; then | |
4781 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4782 | else | |
4783 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4784 | fi | |
4785 | ||
4786 | else | |
4787 | ||
4788 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4789 | if test "x$LINE" != x ; then | |
4790 | eval "DEFAULT_$LINE" | |
4791 | else | |
4792 | no_cache=1 | |
4793 | fi | |
4794 | ||
4795 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4796 | ||
4797 | fi; | |
4798 | ||
4799 | eval "$ac_cv_use_dynamicloader" | |
4800 | if test "$no_cache" != 1; then | |
4801 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4802 | fi | |
4803 | ||
4804 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4805 | echo "$as_me:$LINENO: result: yes" >&5 | |
4806 | echo "${ECHO_T}yes" >&6 | |
4807 | else | |
4808 | echo "$as_me:$LINENO: result: no" >&5 | |
4809 | echo "${ECHO_T}no" >&6 | |
4810 | fi | |
4811 | ||
4812 | ||
4813 | enablestring= | |
4814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4815 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4816 | no_cache=0 | |
4817 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4818 | if test "${enable_exceptions+set}" = set; then | |
4819 | enableval="$enable_exceptions" | |
4820 | ||
4821 | if test "$enableval" = yes; then | |
4822 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4823 | else | |
4824 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4825 | fi | |
4826 | ||
4827 | else | |
4828 | ||
4829 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4830 | if test "x$LINE" != x ; then | |
4831 | eval "DEFAULT_$LINE" | |
4832 | else | |
4833 | no_cache=1 | |
4834 | fi | |
4835 | ||
4836 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4837 | ||
4838 | fi; | |
4839 | ||
4840 | eval "$ac_cv_use_exceptions" | |
4841 | if test "$no_cache" != 1; then | |
4842 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4843 | fi | |
4844 | ||
4845 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4846 | echo "$as_me:$LINENO: result: yes" >&5 | |
4847 | echo "${ECHO_T}yes" >&6 | |
4848 | else | |
4849 | echo "$as_me:$LINENO: result: no" >&5 | |
4850 | echo "${ECHO_T}no" >&6 | |
4851 | fi | |
4852 | ||
4853 | ||
4854 | enablestring= | |
4855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4856 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4857 | no_cache=0 | |
4858 | # Check whether --enable-ffile or --disable-ffile was given. | |
4859 | if test "${enable_ffile+set}" = set; then | |
4860 | enableval="$enable_ffile" | |
4861 | ||
4862 | if test "$enableval" = yes; then | |
4863 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4864 | else | |
4865 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4866 | fi | |
4867 | ||
4868 | else | |
4869 | ||
4870 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4871 | if test "x$LINE" != x ; then | |
4872 | eval "DEFAULT_$LINE" | |
4873 | else | |
4874 | no_cache=1 | |
4875 | fi | |
4876 | ||
4877 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4878 | ||
4879 | fi; | |
4880 | ||
4881 | eval "$ac_cv_use_ffile" | |
4882 | if test "$no_cache" != 1; then | |
4883 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4884 | fi | |
4885 | ||
4886 | if test "$wxUSE_FFILE" = yes; then | |
4887 | echo "$as_me:$LINENO: result: yes" >&5 | |
4888 | echo "${ECHO_T}yes" >&6 | |
4889 | else | |
4890 | echo "$as_me:$LINENO: result: no" >&5 | |
4891 | echo "${ECHO_T}no" >&6 | |
4892 | fi | |
4893 | ||
4894 | ||
4895 | enablestring= | |
4896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4897 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4898 | no_cache=0 | |
4899 | # Check whether --enable-file or --disable-file was given. | |
4900 | if test "${enable_file+set}" = set; then | |
4901 | enableval="$enable_file" | |
4902 | ||
4903 | if test "$enableval" = yes; then | |
4904 | ac_cv_use_file='wxUSE_FILE=yes' | |
4905 | else | |
4906 | ac_cv_use_file='wxUSE_FILE=no' | |
4907 | fi | |
4908 | ||
4909 | else | |
4910 | ||
4911 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4912 | if test "x$LINE" != x ; then | |
4913 | eval "DEFAULT_$LINE" | |
4914 | else | |
4915 | no_cache=1 | |
4916 | fi | |
4917 | ||
4918 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4919 | ||
4920 | fi; | |
4921 | ||
4922 | eval "$ac_cv_use_file" | |
4923 | if test "$no_cache" != 1; then | |
4924 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4925 | fi | |
4926 | ||
4927 | if test "$wxUSE_FILE" = yes; then | |
4928 | echo "$as_me:$LINENO: result: yes" >&5 | |
4929 | echo "${ECHO_T}yes" >&6 | |
4930 | else | |
4931 | echo "$as_me:$LINENO: result: no" >&5 | |
4932 | echo "${ECHO_T}no" >&6 | |
4933 | fi | |
4934 | ||
4935 | ||
4936 | enablestring= | |
4937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
4938 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
4939 | no_cache=0 | |
4940 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4941 | if test "${enable_filesystem+set}" = set; then | |
4942 | enableval="$enable_filesystem" | |
4943 | ||
4944 | if test "$enableval" = yes; then | |
4945 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4946 | else | |
4947 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4948 | fi | |
4949 | ||
4950 | else | |
4951 | ||
4952 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4953 | if test "x$LINE" != x ; then | |
4954 | eval "DEFAULT_$LINE" | |
4955 | else | |
4956 | no_cache=1 | |
4957 | fi | |
4958 | ||
4959 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4960 | ||
4961 | fi; | |
4962 | ||
4963 | eval "$ac_cv_use_filesystem" | |
4964 | if test "$no_cache" != 1; then | |
4965 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4966 | fi | |
4967 | ||
4968 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4969 | echo "$as_me:$LINENO: result: yes" >&5 | |
4970 | echo "${ECHO_T}yes" >&6 | |
4971 | else | |
4972 | echo "$as_me:$LINENO: result: no" >&5 | |
4973 | echo "${ECHO_T}no" >&6 | |
4974 | fi | |
4975 | ||
4976 | ||
4977 | enablestring= | |
4978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4979 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4980 | no_cache=0 | |
4981 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4982 | if test "${enable_fontmap+set}" = set; then | |
4983 | enableval="$enable_fontmap" | |
4984 | ||
4985 | if test "$enableval" = yes; then | |
4986 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4987 | else | |
4988 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4989 | fi | |
4990 | ||
4991 | else | |
4992 | ||
4993 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4994 | if test "x$LINE" != x ; then | |
4995 | eval "DEFAULT_$LINE" | |
4996 | else | |
4997 | no_cache=1 | |
4998 | fi | |
4999 | ||
5000 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5001 | ||
5002 | fi; | |
5003 | ||
5004 | eval "$ac_cv_use_fontmap" | |
5005 | if test "$no_cache" != 1; then | |
5006 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5007 | fi | |
5008 | ||
5009 | if test "$wxUSE_FONTMAP" = yes; then | |
5010 | echo "$as_me:$LINENO: result: yes" >&5 | |
5011 | echo "${ECHO_T}yes" >&6 | |
5012 | else | |
5013 | echo "$as_me:$LINENO: result: no" >&5 | |
5014 | echo "${ECHO_T}no" >&6 | |
5015 | fi | |
5016 | ||
5017 | ||
5018 | enablestring= | |
5019 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5020 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5021 | no_cache=0 | |
5022 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5023 | if test "${enable_fs_inet+set}" = set; then | |
5024 | enableval="$enable_fs_inet" | |
5025 | ||
5026 | if test "$enableval" = yes; then | |
5027 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5028 | else | |
5029 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5030 | fi | |
5031 | ||
5032 | else | |
5033 | ||
5034 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5035 | if test "x$LINE" != x ; then | |
5036 | eval "DEFAULT_$LINE" | |
5037 | else | |
5038 | no_cache=1 | |
5039 | fi | |
5040 | ||
5041 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5042 | ||
5043 | fi; | |
5044 | ||
5045 | eval "$ac_cv_use_fs_inet" | |
5046 | if test "$no_cache" != 1; then | |
5047 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5048 | fi | |
5049 | ||
5050 | if test "$wxUSE_FS_INET" = yes; then | |
5051 | echo "$as_me:$LINENO: result: yes" >&5 | |
5052 | echo "${ECHO_T}yes" >&6 | |
5053 | else | |
5054 | echo "$as_me:$LINENO: result: no" >&5 | |
5055 | echo "${ECHO_T}no" >&6 | |
5056 | fi | |
5057 | ||
5058 | ||
5059 | enablestring= | |
5060 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5061 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5062 | no_cache=0 | |
5063 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5064 | if test "${enable_fs_zip+set}" = set; then | |
5065 | enableval="$enable_fs_zip" | |
5066 | ||
5067 | if test "$enableval" = yes; then | |
5068 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5069 | else | |
5070 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5071 | fi | |
5072 | ||
5073 | else | |
5074 | ||
5075 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5076 | if test "x$LINE" != x ; then | |
5077 | eval "DEFAULT_$LINE" | |
5078 | else | |
5079 | no_cache=1 | |
5080 | fi | |
5081 | ||
5082 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5083 | ||
5084 | fi; | |
5085 | ||
5086 | eval "$ac_cv_use_fs_zip" | |
5087 | if test "$no_cache" != 1; then | |
5088 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5089 | fi | |
5090 | ||
5091 | if test "$wxUSE_FS_ZIP" = yes; then | |
5092 | echo "$as_me:$LINENO: result: yes" >&5 | |
5093 | echo "${ECHO_T}yes" >&6 | |
5094 | else | |
5095 | echo "$as_me:$LINENO: result: no" >&5 | |
5096 | echo "${ECHO_T}no" >&6 | |
5097 | fi | |
5098 | ||
5099 | ||
5100 | enablestring= | |
5101 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5102 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5103 | no_cache=0 | |
5104 | # Check whether --enable-geometry or --disable-geometry was given. | |
5105 | if test "${enable_geometry+set}" = set; then | |
5106 | enableval="$enable_geometry" | |
5107 | ||
5108 | if test "$enableval" = yes; then | |
5109 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5110 | else | |
5111 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5112 | fi | |
5113 | ||
5114 | else | |
5115 | ||
5116 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5117 | if test "x$LINE" != x ; then | |
5118 | eval "DEFAULT_$LINE" | |
5119 | else | |
5120 | no_cache=1 | |
5121 | fi | |
5122 | ||
5123 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5124 | ||
5125 | fi; | |
5126 | ||
5127 | eval "$ac_cv_use_geometry" | |
5128 | if test "$no_cache" != 1; then | |
5129 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5130 | fi | |
5131 | ||
5132 | if test "$wxUSE_GEOMETRY" = yes; then | |
5133 | echo "$as_me:$LINENO: result: yes" >&5 | |
5134 | echo "${ECHO_T}yes" >&6 | |
5135 | else | |
5136 | echo "$as_me:$LINENO: result: no" >&5 | |
5137 | echo "${ECHO_T}no" >&6 | |
5138 | fi | |
5139 | ||
5140 | ||
5141 | enablestring= | |
5142 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5143 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5144 | no_cache=0 | |
5145 | # Check whether --enable-log or --disable-log was given. | |
5146 | if test "${enable_log+set}" = set; then | |
5147 | enableval="$enable_log" | |
5148 | ||
5149 | if test "$enableval" = yes; then | |
5150 | ac_cv_use_log='wxUSE_LOG=yes' | |
5151 | else | |
5152 | ac_cv_use_log='wxUSE_LOG=no' | |
5153 | fi | |
5154 | ||
5155 | else | |
5156 | ||
5157 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5158 | if test "x$LINE" != x ; then | |
5159 | eval "DEFAULT_$LINE" | |
5160 | else | |
5161 | no_cache=1 | |
5162 | fi | |
5163 | ||
5164 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5165 | ||
5166 | fi; | |
5167 | ||
5168 | eval "$ac_cv_use_log" | |
5169 | if test "$no_cache" != 1; then | |
5170 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5171 | fi | |
5172 | ||
5173 | if test "$wxUSE_LOG" = yes; then | |
5174 | echo "$as_me:$LINENO: result: yes" >&5 | |
5175 | echo "${ECHO_T}yes" >&6 | |
5176 | else | |
5177 | echo "$as_me:$LINENO: result: no" >&5 | |
5178 | echo "${ECHO_T}no" >&6 | |
5179 | fi | |
5180 | ||
5181 | ||
5182 | enablestring= | |
5183 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5184 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5185 | no_cache=0 | |
5186 | # Check whether --enable-longlong or --disable-longlong was given. | |
5187 | if test "${enable_longlong+set}" = set; then | |
5188 | enableval="$enable_longlong" | |
5189 | ||
5190 | if test "$enableval" = yes; then | |
5191 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5192 | else | |
5193 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5194 | fi | |
5195 | ||
5196 | else | |
5197 | ||
5198 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5199 | if test "x$LINE" != x ; then | |
5200 | eval "DEFAULT_$LINE" | |
5201 | else | |
5202 | no_cache=1 | |
5203 | fi | |
5204 | ||
5205 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5206 | ||
5207 | fi; | |
5208 | ||
5209 | eval "$ac_cv_use_longlong" | |
5210 | if test "$no_cache" != 1; then | |
5211 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5212 | fi | |
5213 | ||
5214 | if test "$wxUSE_LONGLONG" = yes; then | |
5215 | echo "$as_me:$LINENO: result: yes" >&5 | |
5216 | echo "${ECHO_T}yes" >&6 | |
5217 | else | |
5218 | echo "$as_me:$LINENO: result: no" >&5 | |
5219 | echo "${ECHO_T}no" >&6 | |
5220 | fi | |
5221 | ||
5222 | ||
5223 | enablestring= | |
5224 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5225 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5226 | no_cache=0 | |
5227 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5228 | if test "${enable_mimetype+set}" = set; then | |
5229 | enableval="$enable_mimetype" | |
5230 | ||
5231 | if test "$enableval" = yes; then | |
5232 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5233 | else | |
5234 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5235 | fi | |
5236 | ||
5237 | else | |
5238 | ||
5239 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5240 | if test "x$LINE" != x ; then | |
5241 | eval "DEFAULT_$LINE" | |
5242 | else | |
5243 | no_cache=1 | |
5244 | fi | |
5245 | ||
5246 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5247 | ||
5248 | fi; | |
5249 | ||
5250 | eval "$ac_cv_use_mimetype" | |
5251 | if test "$no_cache" != 1; then | |
5252 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5253 | fi | |
5254 | ||
5255 | if test "$wxUSE_MIMETYPE" = yes; then | |
5256 | echo "$as_me:$LINENO: result: yes" >&5 | |
5257 | echo "${ECHO_T}yes" >&6 | |
5258 | else | |
5259 | echo "$as_me:$LINENO: result: no" >&5 | |
5260 | echo "${ECHO_T}no" >&6 | |
5261 | fi | |
5262 | ||
5263 | ||
5264 | enablestring= | |
5265 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5266 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5267 | no_cache=0 | |
5268 | # Check whether --enable-mslu or --disable-mslu was given. | |
5269 | if test "${enable_mslu+set}" = set; then | |
5270 | enableval="$enable_mslu" | |
5271 | ||
5272 | if test "$enableval" = yes; then | |
5273 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5274 | else | |
5275 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5276 | fi | |
5277 | ||
5278 | else | |
5279 | ||
5280 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5281 | if test "x$LINE" != x ; then | |
5282 | eval "DEFAULT_$LINE" | |
5283 | else | |
5284 | no_cache=1 | |
5285 | fi | |
5286 | ||
5287 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5288 | ||
5289 | fi; | |
5290 | ||
5291 | eval "$ac_cv_use_mslu" | |
5292 | if test "$no_cache" != 1; then | |
5293 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5294 | fi | |
5295 | ||
5296 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5297 | echo "$as_me:$LINENO: result: yes" >&5 | |
5298 | echo "${ECHO_T}yes" >&6 | |
5299 | else | |
5300 | echo "$as_me:$LINENO: result: no" >&5 | |
5301 | echo "${ECHO_T}no" >&6 | |
5302 | fi | |
5303 | ||
5304 | ||
5305 | enablestring= | |
5306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5307 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5308 | no_cache=0 | |
5309 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5310 | if test "${enable_snglinst+set}" = set; then | |
5311 | enableval="$enable_snglinst" | |
5312 | ||
5313 | if test "$enableval" = yes; then | |
5314 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5315 | else | |
5316 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5317 | fi | |
5318 | ||
5319 | else | |
5320 | ||
5321 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5322 | if test "x$LINE" != x ; then | |
5323 | eval "DEFAULT_$LINE" | |
5324 | else | |
5325 | no_cache=1 | |
5326 | fi | |
5327 | ||
5328 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5329 | ||
5330 | fi; | |
5331 | ||
5332 | eval "$ac_cv_use_snglinst" | |
5333 | if test "$no_cache" != 1; then | |
5334 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5335 | fi | |
5336 | ||
5337 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5338 | echo "$as_me:$LINENO: result: yes" >&5 | |
5339 | echo "${ECHO_T}yes" >&6 | |
5340 | else | |
5341 | echo "$as_me:$LINENO: result: no" >&5 | |
5342 | echo "${ECHO_T}no" >&6 | |
5343 | fi | |
5344 | ||
5345 | ||
5346 | enablestring= | |
5347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5348 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5349 | no_cache=0 | |
5350 | # Check whether --enable-streams or --disable-streams was given. | |
5351 | if test "${enable_streams+set}" = set; then | |
5352 | enableval="$enable_streams" | |
5353 | ||
5354 | if test "$enableval" = yes; then | |
5355 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5356 | else | |
5357 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5358 | fi | |
5359 | ||
5360 | else | |
5361 | ||
5362 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5363 | if test "x$LINE" != x ; then | |
5364 | eval "DEFAULT_$LINE" | |
5365 | else | |
5366 | no_cache=1 | |
5367 | fi | |
5368 | ||
5369 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5370 | ||
5371 | fi; | |
5372 | ||
5373 | eval "$ac_cv_use_streams" | |
5374 | if test "$no_cache" != 1; then | |
5375 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5376 | fi | |
5377 | ||
5378 | if test "$wxUSE_STREAMS" = yes; then | |
5379 | echo "$as_me:$LINENO: result: yes" >&5 | |
5380 | echo "${ECHO_T}yes" >&6 | |
5381 | else | |
5382 | echo "$as_me:$LINENO: result: no" >&5 | |
5383 | echo "${ECHO_T}no" >&6 | |
5384 | fi | |
5385 | ||
5386 | ||
5387 | enablestring= | |
5388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5389 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5390 | no_cache=0 | |
5391 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5392 | if test "${enable_std_iostreams+set}" = set; then | |
5393 | enableval="$enable_std_iostreams" | |
5394 | ||
5395 | if test "$enableval" = yes; then | |
5396 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5397 | else | |
5398 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5399 | fi | |
5400 | ||
5401 | else | |
5402 | ||
5403 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5404 | if test "x$LINE" != x ; then | |
5405 | eval "DEFAULT_$LINE" | |
5406 | else | |
5407 | no_cache=1 | |
5408 | fi | |
5409 | ||
5410 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5411 | ||
5412 | fi; | |
5413 | ||
5414 | eval "$ac_cv_use_std_iostreams" | |
5415 | if test "$no_cache" != 1; then | |
5416 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5417 | fi | |
5418 | ||
5419 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5420 | echo "$as_me:$LINENO: result: yes" >&5 | |
5421 | echo "${ECHO_T}yes" >&6 | |
5422 | else | |
5423 | echo "$as_me:$LINENO: result: no" >&5 | |
5424 | echo "${ECHO_T}no" >&6 | |
5425 | fi | |
5426 | ||
5427 | ||
5428 | enablestring= | |
5429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5430 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5431 | no_cache=0 | |
5432 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5433 | if test "${enable_stopwatch+set}" = set; then | |
5434 | enableval="$enable_stopwatch" | |
5435 | ||
5436 | if test "$enableval" = yes; then | |
5437 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5438 | else | |
5439 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5440 | fi | |
5441 | ||
5442 | else | |
5443 | ||
5444 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5445 | if test "x$LINE" != x ; then | |
5446 | eval "DEFAULT_$LINE" | |
5447 | else | |
5448 | no_cache=1 | |
5449 | fi | |
5450 | ||
5451 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5452 | ||
5453 | fi; | |
5454 | ||
5455 | eval "$ac_cv_use_stopwatch" | |
5456 | if test "$no_cache" != 1; then | |
5457 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5458 | fi | |
5459 | ||
5460 | if test "$wxUSE_STOPWATCH" = yes; then | |
5461 | echo "$as_me:$LINENO: result: yes" >&5 | |
5462 | echo "${ECHO_T}yes" >&6 | |
5463 | else | |
5464 | echo "$as_me:$LINENO: result: no" >&5 | |
5465 | echo "${ECHO_T}no" >&6 | |
5466 | fi | |
5467 | ||
5468 | ||
5469 | enablestring= | |
5470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5471 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5472 | no_cache=0 | |
5473 | # Check whether --enable-system_options or --disable-system_options was given. | |
5474 | if test "${enable_system_options+set}" = set; then | |
5475 | enableval="$enable_system_options" | |
5476 | ||
5477 | if test "$enableval" = yes; then | |
5478 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5479 | else | |
5480 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5481 | fi | |
5482 | ||
5483 | else | |
5484 | ||
5485 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5486 | if test "x$LINE" != x ; then | |
5487 | eval "DEFAULT_$LINE" | |
5488 | else | |
5489 | no_cache=1 | |
5490 | fi | |
5491 | ||
5492 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5493 | ||
5494 | fi; | |
5495 | ||
5496 | eval "$ac_cv_use_system_options" | |
5497 | if test "$no_cache" != 1; then | |
5498 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5499 | fi | |
5500 | ||
5501 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5502 | echo "$as_me:$LINENO: result: yes" >&5 | |
5503 | echo "${ECHO_T}yes" >&6 | |
5504 | else | |
5505 | echo "$as_me:$LINENO: result: no" >&5 | |
5506 | echo "${ECHO_T}no" >&6 | |
5507 | fi | |
5508 | ||
5509 | ||
5510 | enablestring= | |
5511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5512 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5513 | no_cache=0 | |
5514 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5515 | if test "${enable_textbuf+set}" = set; then | |
5516 | enableval="$enable_textbuf" | |
5517 | ||
5518 | if test "$enableval" = yes; then | |
5519 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5520 | else | |
5521 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5522 | fi | |
5523 | ||
5524 | else | |
5525 | ||
5526 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5527 | if test "x$LINE" != x ; then | |
5528 | eval "DEFAULT_$LINE" | |
5529 | else | |
5530 | no_cache=1 | |
5531 | fi | |
5532 | ||
5533 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5534 | ||
5535 | fi; | |
5536 | ||
5537 | eval "$ac_cv_use_textbuf" | |
5538 | if test "$no_cache" != 1; then | |
5539 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5540 | fi | |
5541 | ||
5542 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5543 | echo "$as_me:$LINENO: result: yes" >&5 | |
5544 | echo "${ECHO_T}yes" >&6 | |
5545 | else | |
5546 | echo "$as_me:$LINENO: result: no" >&5 | |
5547 | echo "${ECHO_T}no" >&6 | |
5548 | fi | |
5549 | ||
5550 | ||
5551 | enablestring= | |
5552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5553 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5554 | no_cache=0 | |
5555 | # Check whether --enable-textfile or --disable-textfile was given. | |
5556 | if test "${enable_textfile+set}" = set; then | |
5557 | enableval="$enable_textfile" | |
5558 | ||
5559 | if test "$enableval" = yes; then | |
5560 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5561 | else | |
5562 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5563 | fi | |
5564 | ||
5565 | else | |
5566 | ||
5567 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5568 | if test "x$LINE" != x ; then | |
5569 | eval "DEFAULT_$LINE" | |
5570 | else | |
5571 | no_cache=1 | |
5572 | fi | |
5573 | ||
5574 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5575 | ||
5576 | fi; | |
5577 | ||
5578 | eval "$ac_cv_use_textfile" | |
5579 | if test "$no_cache" != 1; then | |
5580 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5581 | fi | |
5582 | ||
5583 | if test "$wxUSE_TEXTFILE" = yes; then | |
5584 | echo "$as_me:$LINENO: result: yes" >&5 | |
5585 | echo "${ECHO_T}yes" >&6 | |
5586 | else | |
5587 | echo "$as_me:$LINENO: result: no" >&5 | |
5588 | echo "${ECHO_T}no" >&6 | |
5589 | fi | |
5590 | ||
5591 | ||
5592 | enablestring= | |
5593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5594 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5595 | no_cache=0 | |
5596 | # Check whether --enable-timer or --disable-timer was given. | |
5597 | if test "${enable_timer+set}" = set; then | |
5598 | enableval="$enable_timer" | |
5599 | ||
5600 | if test "$enableval" = yes; then | |
5601 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5602 | else | |
5603 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5604 | fi | |
5605 | ||
5606 | else | |
5607 | ||
5608 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5609 | if test "x$LINE" != x ; then | |
5610 | eval "DEFAULT_$LINE" | |
5611 | else | |
5612 | no_cache=1 | |
5613 | fi | |
5614 | ||
5615 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5616 | ||
5617 | fi; | |
5618 | ||
5619 | eval "$ac_cv_use_timer" | |
5620 | if test "$no_cache" != 1; then | |
5621 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5622 | fi | |
5623 | ||
5624 | if test "$wxUSE_TIMER" = yes; then | |
5625 | echo "$as_me:$LINENO: result: yes" >&5 | |
5626 | echo "${ECHO_T}yes" >&6 | |
5627 | else | |
5628 | echo "$as_me:$LINENO: result: no" >&5 | |
5629 | echo "${ECHO_T}no" >&6 | |
5630 | fi | |
5631 | ||
5632 | ||
5633 | enablestring= | |
5634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5635 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5636 | no_cache=0 | |
5637 | # Check whether --enable-unicode or --disable-unicode was given. | |
5638 | if test "${enable_unicode+set}" = set; then | |
5639 | enableval="$enable_unicode" | |
5640 | ||
5641 | if test "$enableval" = yes; then | |
5642 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5643 | else | |
5644 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5645 | fi | |
5646 | ||
5647 | else | |
5648 | ||
5649 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5650 | if test "x$LINE" != x ; then | |
5651 | eval "DEFAULT_$LINE" | |
5652 | else | |
5653 | no_cache=1 | |
5654 | fi | |
5655 | ||
5656 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5657 | ||
5658 | fi; | |
5659 | ||
5660 | eval "$ac_cv_use_unicode" | |
5661 | if test "$no_cache" != 1; then | |
5662 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5663 | fi | |
5664 | ||
5665 | if test "$wxUSE_UNICODE" = yes; then | |
5666 | echo "$as_me:$LINENO: result: yes" >&5 | |
5667 | echo "${ECHO_T}yes" >&6 | |
5668 | else | |
5669 | echo "$as_me:$LINENO: result: no" >&5 | |
5670 | echo "${ECHO_T}no" >&6 | |
5671 | fi | |
5672 | ||
5673 | ||
5674 | enablestring= | |
5675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5676 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5677 | no_cache=0 | |
5678 | # Check whether --enable-sound or --disable-sound was given. | |
5679 | if test "${enable_sound+set}" = set; then | |
5680 | enableval="$enable_sound" | |
5681 | ||
5682 | if test "$enableval" = yes; then | |
5683 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5684 | else | |
5685 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5686 | fi | |
5687 | ||
5688 | else | |
5689 | ||
5690 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5691 | if test "x$LINE" != x ; then | |
5692 | eval "DEFAULT_$LINE" | |
5693 | else | |
5694 | no_cache=1 | |
5695 | fi | |
5696 | ||
5697 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5698 | ||
5699 | fi; | |
5700 | ||
5701 | eval "$ac_cv_use_sound" | |
5702 | if test "$no_cache" != 1; then | |
5703 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5704 | fi | |
5705 | ||
5706 | if test "$wxUSE_SOUND" = yes; then | |
5707 | echo "$as_me:$LINENO: result: yes" >&5 | |
5708 | echo "${ECHO_T}yes" >&6 | |
5709 | else | |
5710 | echo "$as_me:$LINENO: result: no" >&5 | |
5711 | echo "${ECHO_T}no" >&6 | |
5712 | fi | |
5713 | ||
5714 | ||
5715 | enablestring= | |
5716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5717 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5718 | no_cache=0 | |
5719 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5720 | if test "${enable_wxprintfv+set}" = set; then | |
5721 | enableval="$enable_wxprintfv" | |
5722 | ||
5723 | if test "$enableval" = yes; then | |
5724 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5725 | else | |
5726 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5727 | fi | |
5728 | ||
5729 | else | |
5730 | ||
5731 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5732 | if test "x$LINE" != x ; then | |
5733 | eval "DEFAULT_$LINE" | |
5734 | else | |
5735 | no_cache=1 | |
5736 | fi | |
5737 | ||
5738 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5739 | ||
5740 | fi; | |
5741 | ||
5742 | eval "$ac_cv_use_wxprintfv" | |
5743 | if test "$no_cache" != 1; then | |
5744 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5745 | fi | |
5746 | ||
5747 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5748 | echo "$as_me:$LINENO: result: yes" >&5 | |
5749 | echo "${ECHO_T}yes" >&6 | |
5750 | else | |
5751 | echo "$as_me:$LINENO: result: no" >&5 | |
5752 | echo "${ECHO_T}no" >&6 | |
5753 | fi | |
5754 | ||
5755 | ||
5756 | enablestring= | |
5757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5758 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5759 | no_cache=0 | |
5760 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5761 | if test "${enable_zipstream+set}" = set; then | |
5762 | enableval="$enable_zipstream" | |
5763 | ||
5764 | if test "$enableval" = yes; then | |
5765 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5766 | else | |
5767 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5768 | fi | |
5769 | ||
5770 | else | |
5771 | ||
5772 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5773 | if test "x$LINE" != x ; then | |
5774 | eval "DEFAULT_$LINE" | |
5775 | else | |
5776 | no_cache=1 | |
5777 | fi | |
5778 | ||
5779 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5780 | ||
5781 | fi; | |
5782 | ||
5783 | eval "$ac_cv_use_zipstream" | |
5784 | if test "$no_cache" != 1; then | |
5785 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5786 | fi | |
5787 | ||
5788 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5789 | echo "$as_me:$LINENO: result: yes" >&5 | |
5790 | echo "${ECHO_T}yes" >&6 | |
5791 | else | |
5792 | echo "$as_me:$LINENO: result: no" >&5 | |
5793 | echo "${ECHO_T}no" >&6 | |
5794 | fi | |
5795 | ||
5796 | ||
a848cd7e SC |
5797 | |
5798 | enablestring= | |
5799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5800 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5801 | no_cache=0 | |
5802 | # Check whether --enable-url or --disable-url was given. | |
5803 | if test "${enable_url+set}" = set; then | |
5804 | enableval="$enable_url" | |
5805 | ||
5806 | if test "$enableval" = yes; then | |
5807 | ac_cv_use_url='wxUSE_URL=yes' | |
5808 | else | |
5809 | ac_cv_use_url='wxUSE_URL=no' | |
5810 | fi | |
5811 | ||
5812 | else | |
5813 | ||
5814 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5815 | if test "x$LINE" != x ; then | |
5816 | eval "DEFAULT_$LINE" | |
5817 | else | |
5818 | no_cache=1 | |
5819 | fi | |
5820 | ||
5821 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5822 | ||
5823 | fi; | |
5824 | ||
5825 | eval "$ac_cv_use_url" | |
5826 | if test "$no_cache" != 1; then | |
5827 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5828 | fi | |
5829 | ||
5830 | if test "$wxUSE_URL" = yes; then | |
5831 | echo "$as_me:$LINENO: result: yes" >&5 | |
5832 | echo "${ECHO_T}yes" >&6 | |
5833 | else | |
5834 | echo "$as_me:$LINENO: result: no" >&5 | |
5835 | echo "${ECHO_T}no" >&6 | |
5836 | fi | |
5837 | ||
5838 | ||
5839 | enablestring= | |
5840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5841 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5842 | no_cache=0 | |
5843 | # Check whether --enable-protocol or --disable-protocol was given. | |
5844 | if test "${enable_protocol+set}" = set; then | |
5845 | enableval="$enable_protocol" | |
5846 | ||
5847 | if test "$enableval" = yes; then | |
5848 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5849 | else | |
5850 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5851 | fi | |
5852 | ||
5853 | else | |
5854 | ||
5855 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5856 | if test "x$LINE" != x ; then | |
5857 | eval "DEFAULT_$LINE" | |
5858 | else | |
5859 | no_cache=1 | |
5860 | fi | |
5861 | ||
5862 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5863 | ||
5864 | fi; | |
5865 | ||
5866 | eval "$ac_cv_use_protocol" | |
5867 | if test "$no_cache" != 1; then | |
5868 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5869 | fi | |
5870 | ||
5871 | if test "$wxUSE_PROTOCOL" = yes; then | |
5872 | echo "$as_me:$LINENO: result: yes" >&5 | |
5873 | echo "${ECHO_T}yes" >&6 | |
5874 | else | |
5875 | echo "$as_me:$LINENO: result: no" >&5 | |
5876 | echo "${ECHO_T}no" >&6 | |
5877 | fi | |
5878 | ||
5879 | ||
5880 | enablestring= | |
5881 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5882 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5883 | no_cache=0 | |
5884 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5885 | if test "${enable_protocol_http+set}" = set; then | |
5886 | enableval="$enable_protocol_http" | |
5887 | ||
5888 | if test "$enableval" = yes; then | |
5889 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5890 | else | |
5891 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5892 | fi | |
5893 | ||
5894 | else | |
5895 | ||
5896 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5897 | if test "x$LINE" != x ; then | |
5898 | eval "DEFAULT_$LINE" | |
5899 | else | |
5900 | no_cache=1 | |
5901 | fi | |
5902 | ||
5903 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5904 | ||
5905 | fi; | |
5906 | ||
5907 | eval "$ac_cv_use_protocol_http" | |
5908 | if test "$no_cache" != 1; then | |
5909 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5910 | fi | |
5911 | ||
5912 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5913 | echo "$as_me:$LINENO: result: yes" >&5 | |
5914 | echo "${ECHO_T}yes" >&6 | |
5915 | else | |
5916 | echo "$as_me:$LINENO: result: no" >&5 | |
5917 | echo "${ECHO_T}no" >&6 | |
5918 | fi | |
5919 | ||
5920 | ||
5921 | enablestring= | |
5922 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5923 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5924 | no_cache=0 | |
5925 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5926 | if test "${enable_protocol_ftp+set}" = set; then | |
5927 | enableval="$enable_protocol_ftp" | |
5928 | ||
5929 | if test "$enableval" = yes; then | |
5930 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5931 | else | |
5932 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5933 | fi | |
5934 | ||
5935 | else | |
5936 | ||
5937 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5938 | if test "x$LINE" != x ; then | |
5939 | eval "DEFAULT_$LINE" | |
5940 | else | |
5941 | no_cache=1 | |
5942 | fi | |
5943 | ||
5944 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5945 | ||
5946 | fi; | |
5947 | ||
5948 | eval "$ac_cv_use_protocol_ftp" | |
5949 | if test "$no_cache" != 1; then | |
5950 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5951 | fi | |
5952 | ||
5953 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5954 | echo "$as_me:$LINENO: result: yes" >&5 | |
5955 | echo "${ECHO_T}yes" >&6 | |
5956 | else | |
5957 | echo "$as_me:$LINENO: result: no" >&5 | |
5958 | echo "${ECHO_T}no" >&6 | |
5959 | fi | |
5960 | ||
5961 | ||
5962 | enablestring= | |
5963 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5964 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5965 | no_cache=0 | |
5966 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5967 | if test "${enable_protocol_file+set}" = set; then | |
5968 | enableval="$enable_protocol_file" | |
5969 | ||
5970 | if test "$enableval" = yes; then | |
5971 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5972 | else | |
5973 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5974 | fi | |
5975 | ||
5976 | else | |
5977 | ||
5978 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5979 | if test "x$LINE" != x ; then | |
5980 | eval "DEFAULT_$LINE" | |
5981 | else | |
5982 | no_cache=1 | |
5983 | fi | |
5984 | ||
5985 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5986 | ||
5987 | fi; | |
5988 | ||
5989 | eval "$ac_cv_use_protocol_file" | |
5990 | if test "$no_cache" != 1; then | |
5991 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5992 | fi | |
5993 | ||
5994 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
5995 | echo "$as_me:$LINENO: result: yes" >&5 | |
5996 | echo "${ECHO_T}yes" >&6 | |
5997 | else | |
5998 | echo "$as_me:$LINENO: result: no" >&5 | |
5999 | echo "${ECHO_T}no" >&6 | |
6000 | fi | |
6001 | ||
6002 | ||
6003 | ||
6004 | ||
6005 | ||
6006 | enablestring= | |
6007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6008 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6009 | no_cache=0 | |
6010 | # Check whether --enable-threads or --disable-threads was given. | |
6011 | if test "${enable_threads+set}" = set; then | |
6012 | enableval="$enable_threads" | |
6013 | ||
6014 | if test "$enableval" = yes; then | |
6015 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6016 | else | |
6017 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6018 | fi | |
6019 | ||
6020 | else | |
6021 | ||
6022 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6023 | if test "x$LINE" != x ; then | |
6024 | eval "DEFAULT_$LINE" | |
6025 | else | |
6026 | no_cache=1 | |
6027 | fi | |
6028 | ||
6029 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6030 | ||
6031 | fi; | |
6032 | ||
6033 | eval "$ac_cv_use_threads" | |
6034 | if test "$no_cache" != 1; then | |
6035 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6036 | fi | |
6037 | ||
6038 | if test "$wxUSE_THREADS" = yes; then | |
6039 | echo "$as_me:$LINENO: result: yes" >&5 | |
6040 | echo "${ECHO_T}yes" >&6 | |
6041 | else | |
6042 | echo "$as_me:$LINENO: result: no" >&5 | |
6043 | echo "${ECHO_T}no" >&6 | |
6044 | fi | |
6045 | ||
6046 | ||
6047 | if test "$wxUSE_GUI" = "yes"; then | |
6048 | ||
6049 | ||
6050 | ||
6051 | enablestring= | |
6052 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6053 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6054 | no_cache=0 | |
6055 | # Check whether --enable-docview or --disable-docview was given. | |
6056 | if test "${enable_docview+set}" = set; then | |
6057 | enableval="$enable_docview" | |
6058 | ||
6059 | if test "$enableval" = yes; then | |
6060 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6061 | else | |
6062 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6063 | fi | |
6064 | ||
6065 | else | |
6066 | ||
6067 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6068 | if test "x$LINE" != x ; then | |
6069 | eval "DEFAULT_$LINE" | |
6070 | else | |
6071 | no_cache=1 | |
6072 | fi | |
6073 | ||
6074 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6075 | ||
6076 | fi; | |
6077 | ||
6078 | eval "$ac_cv_use_docview" | |
6079 | if test "$no_cache" != 1; then | |
6080 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6081 | fi | |
6082 | ||
6083 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6084 | echo "$as_me:$LINENO: result: yes" >&5 | |
6085 | echo "${ECHO_T}yes" >&6 | |
6086 | else | |
6087 | echo "$as_me:$LINENO: result: no" >&5 | |
6088 | echo "${ECHO_T}no" >&6 | |
6089 | fi | |
6090 | ||
6091 | ||
6092 | enablestring= | |
6093 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6094 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6095 | no_cache=0 | |
6096 | # Check whether --enable-help or --disable-help was given. | |
6097 | if test "${enable_help+set}" = set; then | |
6098 | enableval="$enable_help" | |
6099 | ||
6100 | if test "$enableval" = yes; then | |
6101 | ac_cv_use_help='wxUSE_HELP=yes' | |
6102 | else | |
6103 | ac_cv_use_help='wxUSE_HELP=no' | |
6104 | fi | |
6105 | ||
6106 | else | |
6107 | ||
6108 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6109 | if test "x$LINE" != x ; then | |
6110 | eval "DEFAULT_$LINE" | |
6111 | else | |
6112 | no_cache=1 | |
6113 | fi | |
6114 | ||
6115 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6116 | ||
6117 | fi; | |
6118 | ||
6119 | eval "$ac_cv_use_help" | |
6120 | if test "$no_cache" != 1; then | |
6121 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6122 | fi | |
6123 | ||
6124 | if test "$wxUSE_HELP" = yes; then | |
6125 | echo "$as_me:$LINENO: result: yes" >&5 | |
6126 | echo "${ECHO_T}yes" >&6 | |
6127 | else | |
6128 | echo "$as_me:$LINENO: result: no" >&5 | |
6129 | echo "${ECHO_T}no" >&6 | |
6130 | fi | |
6131 | ||
6132 | ||
6133 | enablestring= | |
6134 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6135 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6136 | no_cache=0 | |
6137 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6138 | if test "${enable_mshtmlhelp+set}" = set; then | |
6139 | enableval="$enable_mshtmlhelp" | |
6140 | ||
6141 | if test "$enableval" = yes; then | |
6142 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6143 | else | |
6144 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6145 | fi | |
6146 | ||
6147 | else | |
6148 | ||
6149 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6150 | if test "x$LINE" != x ; then | |
6151 | eval "DEFAULT_$LINE" | |
6152 | else | |
6153 | no_cache=1 | |
6154 | fi | |
6155 | ||
6156 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6157 | ||
6158 | fi; | |
6159 | ||
6160 | eval "$ac_cv_use_mshtmlhelp" | |
6161 | if test "$no_cache" != 1; then | |
6162 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6163 | fi | |
6164 | ||
6165 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6166 | echo "$as_me:$LINENO: result: yes" >&5 | |
6167 | echo "${ECHO_T}yes" >&6 | |
6168 | else | |
6169 | echo "$as_me:$LINENO: result: no" >&5 | |
6170 | echo "${ECHO_T}no" >&6 | |
6171 | fi | |
6172 | ||
6173 | ||
6174 | enablestring= | |
6175 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6176 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6177 | no_cache=0 | |
6178 | # Check whether --enable-html or --disable-html was given. | |
6179 | if test "${enable_html+set}" = set; then | |
6180 | enableval="$enable_html" | |
6181 | ||
6182 | if test "$enableval" = yes; then | |
6183 | ac_cv_use_html='wxUSE_HTML=yes' | |
6184 | else | |
6185 | ac_cv_use_html='wxUSE_HTML=no' | |
6186 | fi | |
6187 | ||
6188 | else | |
6189 | ||
6190 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6191 | if test "x$LINE" != x ; then | |
6192 | eval "DEFAULT_$LINE" | |
6193 | else | |
6194 | no_cache=1 | |
6195 | fi | |
6196 | ||
6197 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6198 | ||
6199 | fi; | |
6200 | ||
6201 | eval "$ac_cv_use_html" | |
6202 | if test "$no_cache" != 1; then | |
6203 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6204 | fi | |
6205 | ||
6206 | if test "$wxUSE_HTML" = yes; then | |
6207 | echo "$as_me:$LINENO: result: yes" >&5 | |
6208 | echo "${ECHO_T}yes" >&6 | |
6209 | else | |
6210 | echo "$as_me:$LINENO: result: no" >&5 | |
6211 | echo "${ECHO_T}no" >&6 | |
6212 | fi | |
6213 | ||
6214 | ||
6215 | enablestring= | |
6216 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6217 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6218 | no_cache=0 | |
6219 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6220 | if test "${enable_htmlhelp+set}" = set; then | |
6221 | enableval="$enable_htmlhelp" | |
6222 | ||
6223 | if test "$enableval" = yes; then | |
6224 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6225 | else | |
6226 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6227 | fi | |
6228 | ||
6229 | else | |
6230 | ||
6231 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6232 | if test "x$LINE" != x ; then | |
6233 | eval "DEFAULT_$LINE" | |
6234 | else | |
6235 | no_cache=1 | |
6236 | fi | |
6237 | ||
6238 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6239 | ||
6240 | fi; | |
6241 | ||
6242 | eval "$ac_cv_use_htmlhelp" | |
6243 | if test "$no_cache" != 1; then | |
6244 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6245 | fi | |
6246 | ||
6247 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6248 | echo "$as_me:$LINENO: result: yes" >&5 | |
6249 | echo "${ECHO_T}yes" >&6 | |
6250 | else | |
6251 | echo "$as_me:$LINENO: result: no" >&5 | |
6252 | echo "${ECHO_T}no" >&6 | |
6253 | fi | |
6254 | ||
6255 | ||
6256 | enablestring= | |
6257 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6258 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6259 | no_cache=0 | |
6260 | # Check whether --enable-constraints or --disable-constraints was given. | |
6261 | if test "${enable_constraints+set}" = set; then | |
6262 | enableval="$enable_constraints" | |
6263 | ||
6264 | if test "$enableval" = yes; then | |
6265 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6266 | else | |
6267 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6268 | fi | |
6269 | ||
6270 | else | |
6271 | ||
6272 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6273 | if test "x$LINE" != x ; then | |
6274 | eval "DEFAULT_$LINE" | |
6275 | else | |
6276 | no_cache=1 | |
6277 | fi | |
6278 | ||
6279 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6280 | ||
6281 | fi; | |
6282 | ||
6283 | eval "$ac_cv_use_constraints" | |
6284 | if test "$no_cache" != 1; then | |
6285 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6286 | fi | |
6287 | ||
6288 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6289 | echo "$as_me:$LINENO: result: yes" >&5 | |
6290 | echo "${ECHO_T}yes" >&6 | |
6291 | else | |
6292 | echo "$as_me:$LINENO: result: no" >&5 | |
6293 | echo "${ECHO_T}no" >&6 | |
6294 | fi | |
6295 | ||
6296 | ||
6297 | enablestring= | |
6298 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6299 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6300 | no_cache=0 | |
6301 | # Check whether --enable-printarch or --disable-printarch was given. | |
6302 | if test "${enable_printarch+set}" = set; then | |
6303 | enableval="$enable_printarch" | |
6304 | ||
6305 | if test "$enableval" = yes; then | |
6306 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6307 | else | |
6308 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6309 | fi | |
6310 | ||
6311 | else | |
6312 | ||
6313 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6314 | if test "x$LINE" != x ; then | |
6315 | eval "DEFAULT_$LINE" | |
6316 | else | |
6317 | no_cache=1 | |
6318 | fi | |
6319 | ||
6320 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6321 | ||
6322 | fi; | |
6323 | ||
6324 | eval "$ac_cv_use_printarch" | |
6325 | if test "$no_cache" != 1; then | |
6326 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6327 | fi | |
6328 | ||
6329 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6330 | echo "$as_me:$LINENO: result: yes" >&5 | |
6331 | echo "${ECHO_T}yes" >&6 | |
6332 | else | |
6333 | echo "$as_me:$LINENO: result: no" >&5 | |
6334 | echo "${ECHO_T}no" >&6 | |
6335 | fi | |
6336 | ||
6337 | ||
6338 | enablestring= | |
6339 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6340 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6341 | no_cache=0 | |
6342 | # Check whether --enable-mdi or --disable-mdi was given. | |
6343 | if test "${enable_mdi+set}" = set; then | |
6344 | enableval="$enable_mdi" | |
6345 | ||
6346 | if test "$enableval" = yes; then | |
8a7b1113 | 6347 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6348 | else |
8a7b1113 | 6349 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6350 | fi |
6351 | ||
6352 | else | |
6353 | ||
8a7b1113 | 6354 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6355 | if test "x$LINE" != x ; then |
6356 | eval "DEFAULT_$LINE" | |
6357 | else | |
6358 | no_cache=1 | |
6359 | fi | |
6360 | ||
8a7b1113 | 6361 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6362 | |
6363 | fi; | |
6364 | ||
6365 | eval "$ac_cv_use_mdi" | |
6366 | if test "$no_cache" != 1; then | |
6367 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6368 | fi | |
6369 | ||
8a7b1113 VZ |
6370 | if test "$wxUSE_MDI" = yes; then |
6371 | echo "$as_me:$LINENO: result: yes" >&5 | |
6372 | echo "${ECHO_T}yes" >&6 | |
6373 | else | |
6374 | echo "$as_me:$LINENO: result: no" >&5 | |
6375 | echo "${ECHO_T}no" >&6 | |
6376 | fi | |
6377 | ||
6378 | ||
6379 | enablestring= | |
6380 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6381 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6382 | no_cache=0 | |
6383 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6384 | if test "${enable_mdidoc+set}" = set; then | |
6385 | enableval="$enable_mdidoc" | |
6386 | ||
6387 | if test "$enableval" = yes; then | |
6388 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6389 | else | |
6390 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6391 | fi | |
6392 | ||
6393 | else | |
6394 | ||
6395 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6396 | if test "x$LINE" != x ; then | |
6397 | eval "DEFAULT_$LINE" | |
6398 | else | |
6399 | no_cache=1 | |
6400 | fi | |
6401 | ||
6402 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6403 | ||
6404 | fi; | |
6405 | ||
6406 | eval "$ac_cv_use_mdidoc" | |
6407 | if test "$no_cache" != 1; then | |
6408 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6409 | fi | |
6410 | ||
a848cd7e SC |
6411 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6412 | echo "$as_me:$LINENO: result: yes" >&5 | |
6413 | echo "${ECHO_T}yes" >&6 | |
6414 | else | |
6415 | echo "$as_me:$LINENO: result: no" >&5 | |
6416 | echo "${ECHO_T}no" >&6 | |
6417 | fi | |
6418 | ||
6419 | ||
6420 | enablestring= | |
6421 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6422 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6423 | no_cache=0 | |
6424 | # Check whether --enable-loggui or --disable-loggui was given. | |
6425 | if test "${enable_loggui+set}" = set; then | |
6426 | enableval="$enable_loggui" | |
6427 | ||
6428 | if test "$enableval" = yes; then | |
6429 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6430 | else | |
6431 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6432 | fi | |
6433 | ||
6434 | else | |
6435 | ||
6436 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6437 | if test "x$LINE" != x ; then | |
6438 | eval "DEFAULT_$LINE" | |
6439 | else | |
6440 | no_cache=1 | |
6441 | fi | |
6442 | ||
6443 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6444 | ||
6445 | fi; | |
6446 | ||
6447 | eval "$ac_cv_use_loggui" | |
6448 | if test "$no_cache" != 1; then | |
6449 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6450 | fi | |
6451 | ||
6452 | if test "$wxUSE_LOGGUI" = yes; then | |
6453 | echo "$as_me:$LINENO: result: yes" >&5 | |
6454 | echo "${ECHO_T}yes" >&6 | |
6455 | else | |
6456 | echo "$as_me:$LINENO: result: no" >&5 | |
6457 | echo "${ECHO_T}no" >&6 | |
6458 | fi | |
6459 | ||
6460 | ||
6461 | enablestring= | |
6462 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6463 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6464 | no_cache=0 | |
6465 | # Check whether --enable-logwin or --disable-logwin was given. | |
6466 | if test "${enable_logwin+set}" = set; then | |
6467 | enableval="$enable_logwin" | |
6468 | ||
6469 | if test "$enableval" = yes; then | |
6470 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6471 | else | |
6472 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6473 | fi | |
6474 | ||
6475 | else | |
6476 | ||
6477 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6478 | if test "x$LINE" != x ; then | |
6479 | eval "DEFAULT_$LINE" | |
6480 | else | |
6481 | no_cache=1 | |
6482 | fi | |
6483 | ||
6484 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6485 | ||
6486 | fi; | |
6487 | ||
6488 | eval "$ac_cv_use_logwin" | |
6489 | if test "$no_cache" != 1; then | |
6490 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6491 | fi | |
6492 | ||
6493 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6494 | echo "$as_me:$LINENO: result: yes" >&5 | |
6495 | echo "${ECHO_T}yes" >&6 | |
6496 | else | |
6497 | echo "$as_me:$LINENO: result: no" >&5 | |
6498 | echo "${ECHO_T}no" >&6 | |
6499 | fi | |
6500 | ||
6501 | ||
6502 | enablestring= | |
6503 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6504 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6505 | no_cache=0 | |
6506 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6507 | if test "${enable_logdialog+set}" = set; then | |
6508 | enableval="$enable_logdialog" | |
6509 | ||
6510 | if test "$enableval" = yes; then | |
6511 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6512 | else | |
6513 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6514 | fi | |
6515 | ||
6516 | else | |
6517 | ||
6518 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6519 | if test "x$LINE" != x ; then | |
6520 | eval "DEFAULT_$LINE" | |
6521 | else | |
6522 | no_cache=1 | |
6523 | fi | |
6524 | ||
6525 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6526 | ||
6527 | fi; | |
6528 | ||
6529 | eval "$ac_cv_use_logdialog" | |
6530 | if test "$no_cache" != 1; then | |
6531 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6532 | fi | |
6533 | ||
6534 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6535 | echo "$as_me:$LINENO: result: yes" >&5 | |
6536 | echo "${ECHO_T}yes" >&6 | |
6537 | else | |
6538 | echo "$as_me:$LINENO: result: no" >&5 | |
6539 | echo "${ECHO_T}no" >&6 | |
6540 | fi | |
6541 | ||
6542 | ||
646b6ec1 VS |
6543 | enablestring= |
6544 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6545 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6546 | no_cache=0 | |
6547 | # Check whether --enable-webkit or --disable-webkit was given. | |
6548 | if test "${enable_webkit+set}" = set; then | |
6549 | enableval="$enable_webkit" | |
6550 | ||
6551 | if test "$enableval" = yes; then | |
6552 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6553 | else | |
6554 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6555 | fi | |
6556 | ||
6557 | else | |
6558 | ||
6559 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6560 | if test "x$LINE" != x ; then | |
6561 | eval "DEFAULT_$LINE" | |
6562 | else | |
6563 | no_cache=1 | |
6564 | fi | |
6565 | ||
6566 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6567 | ||
6568 | fi; | |
6569 | ||
6570 | eval "$ac_cv_use_webkit" | |
6571 | if test "$no_cache" != 1; then | |
6572 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6573 | fi | |
6574 | ||
6575 | if test "$wxUSE_WEBKIT" = yes; then | |
6576 | echo "$as_me:$LINENO: result: yes" >&5 | |
6577 | echo "${ECHO_T}yes" >&6 | |
6578 | else | |
6579 | echo "$as_me:$LINENO: result: no" >&5 | |
6580 | echo "${ECHO_T}no" >&6 | |
6581 | fi | |
6582 | ||
6583 | ||
a848cd7e SC |
6584 | |
6585 | enablestring= | |
6586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6587 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6588 | no_cache=0 | |
6589 | # Check whether --enable-postscript or --disable-postscript was given. | |
6590 | if test "${enable_postscript+set}" = set; then | |
6591 | enableval="$enable_postscript" | |
6592 | ||
6593 | if test "$enableval" = yes; then | |
6594 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6595 | else | |
6596 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6597 | fi | |
6598 | ||
6599 | else | |
6600 | ||
6601 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6602 | if test "x$LINE" != x ; then | |
6603 | eval "DEFAULT_$LINE" | |
6604 | else | |
6605 | no_cache=1 | |
6606 | fi | |
6607 | ||
6608 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6609 | ||
6610 | fi; | |
6611 | ||
6612 | eval "$ac_cv_use_postscript" | |
6613 | if test "$no_cache" != 1; then | |
6614 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6615 | fi | |
6616 | ||
6617 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6618 | echo "$as_me:$LINENO: result: yes" >&5 | |
6619 | echo "${ECHO_T}yes" >&6 | |
6620 | else | |
6621 | echo "$as_me:$LINENO: result: no" >&5 | |
6622 | echo "${ECHO_T}no" >&6 | |
6623 | fi | |
6624 | ||
6625 | ||
6626 | ||
6627 | ||
6628 | ||
6629 | enablestring= | |
6630 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6631 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6632 | no_cache=0 | |
6633 | # Check whether --enable-prologio or --disable-prologio was given. | |
6634 | if test "${enable_prologio+set}" = set; then | |
6635 | enableval="$enable_prologio" | |
6636 | ||
6637 | if test "$enableval" = yes; then | |
6638 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6639 | else | |
6640 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6641 | fi | |
6642 | ||
6643 | else | |
6644 | ||
6645 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6646 | if test "x$LINE" != x ; then | |
6647 | eval "DEFAULT_$LINE" | |
6648 | else | |
6649 | no_cache=1 | |
6650 | fi | |
6651 | ||
6652 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6653 | ||
6654 | fi; | |
6655 | ||
6656 | eval "$ac_cv_use_prologio" | |
6657 | if test "$no_cache" != 1; then | |
6658 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6659 | fi | |
6660 | ||
6661 | if test "$wxUSE_PROLOGIO" = yes; then | |
6662 | echo "$as_me:$LINENO: result: yes" >&5 | |
6663 | echo "${ECHO_T}yes" >&6 | |
6664 | else | |
6665 | echo "$as_me:$LINENO: result: no" >&5 | |
6666 | echo "${ECHO_T}no" >&6 | |
6667 | fi | |
6668 | ||
6669 | ||
6670 | enablestring= | |
6671 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6672 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6673 | no_cache=0 | |
6674 | # Check whether --enable-resources or --disable-resources was given. | |
6675 | if test "${enable_resources+set}" = set; then | |
6676 | enableval="$enable_resources" | |
6677 | ||
6678 | if test "$enableval" = yes; then | |
6679 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6680 | else | |
6681 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6682 | fi | |
6683 | ||
6684 | else | |
6685 | ||
6686 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6687 | if test "x$LINE" != x ; then | |
6688 | eval "DEFAULT_$LINE" | |
6689 | else | |
6690 | no_cache=1 | |
6691 | fi | |
6692 | ||
6693 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6694 | ||
6695 | fi; | |
6696 | ||
6697 | eval "$ac_cv_use_resources" | |
6698 | if test "$no_cache" != 1; then | |
6699 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6700 | fi | |
6701 | ||
6702 | if test "$wxUSE_RESOURCES" = yes; then | |
6703 | echo "$as_me:$LINENO: result: yes" >&5 | |
6704 | echo "${ECHO_T}yes" >&6 | |
6705 | else | |
6706 | echo "$as_me:$LINENO: result: no" >&5 | |
6707 | echo "${ECHO_T}no" >&6 | |
6708 | fi | |
6709 | ||
6710 | ||
6711 | ||
6712 | ||
6713 | enablestring= | |
6714 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6715 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6716 | no_cache=0 | |
6717 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6718 | if test "${enable_clipboard+set}" = set; then | |
6719 | enableval="$enable_clipboard" | |
6720 | ||
6721 | if test "$enableval" = yes; then | |
6722 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6723 | else | |
6724 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6725 | fi | |
6726 | ||
6727 | else | |
6728 | ||
6729 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6730 | if test "x$LINE" != x ; then | |
6731 | eval "DEFAULT_$LINE" | |
6732 | else | |
6733 | no_cache=1 | |
6734 | fi | |
6735 | ||
6736 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6737 | ||
6738 | fi; | |
6739 | ||
6740 | eval "$ac_cv_use_clipboard" | |
6741 | if test "$no_cache" != 1; then | |
6742 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6743 | fi | |
6744 | ||
6745 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6746 | echo "$as_me:$LINENO: result: yes" >&5 | |
6747 | echo "${ECHO_T}yes" >&6 | |
6748 | else | |
6749 | echo "$as_me:$LINENO: result: no" >&5 | |
6750 | echo "${ECHO_T}no" >&6 | |
6751 | fi | |
6752 | ||
6753 | ||
6754 | enablestring= | |
6755 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6756 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6757 | no_cache=0 | |
6758 | # Check whether --enable-dnd or --disable-dnd was given. | |
6759 | if test "${enable_dnd+set}" = set; then | |
6760 | enableval="$enable_dnd" | |
6761 | ||
6762 | if test "$enableval" = yes; then | |
6763 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6764 | else | |
6765 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6766 | fi | |
6767 | ||
6768 | else | |
6769 | ||
6770 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6771 | if test "x$LINE" != x ; then | |
6772 | eval "DEFAULT_$LINE" | |
6773 | else | |
6774 | no_cache=1 | |
6775 | fi | |
6776 | ||
6777 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6778 | ||
6779 | fi; | |
6780 | ||
6781 | eval "$ac_cv_use_dnd" | |
6782 | if test "$no_cache" != 1; then | |
6783 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6784 | fi | |
6785 | ||
6786 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6787 | echo "$as_me:$LINENO: result: yes" >&5 | |
6788 | echo "${ECHO_T}yes" >&6 | |
6789 | else | |
6790 | echo "$as_me:$LINENO: result: no" >&5 | |
6791 | echo "${ECHO_T}no" >&6 | |
6792 | fi | |
6793 | ||
6794 | ||
6795 | enablestring= | |
6796 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6797 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6798 | no_cache=0 | |
6799 | # Check whether --enable-metafile or --disable-metafile was given. | |
6800 | if test "${enable_metafile+set}" = set; then | |
6801 | enableval="$enable_metafile" | |
6802 | ||
6803 | if test "$enableval" = yes; then | |
6804 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6805 | else | |
6806 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6807 | fi | |
6808 | ||
6809 | else | |
6810 | ||
6811 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6812 | if test "x$LINE" != x ; then | |
6813 | eval "DEFAULT_$LINE" | |
6814 | else | |
6815 | no_cache=1 | |
6816 | fi | |
6817 | ||
6818 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6819 | ||
6820 | fi; | |
6821 | ||
6822 | eval "$ac_cv_use_metafile" | |
6823 | if test "$no_cache" != 1; then | |
6824 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6825 | fi | |
6826 | ||
6827 | if test "$wxUSE_METAFILE" = yes; then | |
6828 | echo "$as_me:$LINENO: result: yes" >&5 | |
6829 | echo "${ECHO_T}yes" >&6 | |
6830 | else | |
6831 | echo "$as_me:$LINENO: result: no" >&5 | |
6832 | echo "${ECHO_T}no" >&6 | |
6833 | fi | |
6834 | ||
6835 | ||
6836 | ||
6837 | ||
6838 | ||
6839 | enablestring= | |
6840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6841 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6842 | no_cache=0 | |
6843 | # Check whether --enable-controls or --disable-controls was given. | |
6844 | if test "${enable_controls+set}" = set; then | |
6845 | enableval="$enable_controls" | |
6846 | ||
6847 | if test "$enableval" = yes; then | |
6848 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6849 | else | |
6850 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6851 | fi | |
6852 | ||
6853 | else | |
6854 | ||
6855 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6856 | if test "x$LINE" != x ; then | |
6857 | eval "DEFAULT_$LINE" | |
6858 | else | |
6859 | no_cache=1 | |
6860 | fi | |
6861 | ||
6862 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6863 | ||
6864 | fi; | |
6865 | ||
6866 | eval "$ac_cv_use_controls" | |
6867 | if test "$no_cache" != 1; then | |
6868 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6869 | fi | |
6870 | ||
6871 | if test "$wxUSE_CONTROLS" = yes; then | |
6872 | echo "$as_me:$LINENO: result: yes" >&5 | |
6873 | echo "${ECHO_T}yes" >&6 | |
6874 | else | |
6875 | echo "$as_me:$LINENO: result: no" >&5 | |
6876 | echo "${ECHO_T}no" >&6 | |
6877 | fi | |
6878 | ||
6879 | ||
6880 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6881 | DEFAULT_wxUSE_ACCEL=yes | |
6882 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6883 | DEFAULT_wxUSE_BUTTON=yes | |
6884 | DEFAULT_wxUSE_CALCTRL=no | |
6885 | DEFAULT_wxUSE_CARET=yes | |
6886 | DEFAULT_wxUSE_COMBOBOX=yes | |
6887 | DEFAULT_wxUSE_CHECKBOX=yes | |
6888 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6889 | DEFAULT_wxUSE_CHOICE=yes | |
6890 | DEFAULT_wxUSE_GAUGE=yes | |
6891 | DEFAULT_wxUSE_GRID=yes | |
6892 | DEFAULT_wxUSE_IMAGLIST=yes | |
6893 | DEFAULT_wxUSE_LISTBOOK=yes | |
6894 | DEFAULT_wxUSE_LISTBOX=yes | |
6895 | DEFAULT_wxUSE_LISTCTRL=yes | |
6896 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6897 | DEFAULT_wxUSE_RADIOBOX=yes | |
6898 | DEFAULT_wxUSE_RADIOBTN=yes | |
6899 | DEFAULT_wxUSE_SASH=yes | |
6900 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6901 | DEFAULT_wxUSE_SLIDER=yes | |
6902 | DEFAULT_wxUSE_SPINBTN=yes | |
6903 | DEFAULT_wxUSE_SPINCTRL=yes | |
6904 | DEFAULT_wxUSE_SPLITTER=yes | |
6905 | DEFAULT_wxUSE_STATBMP=yes | |
6906 | DEFAULT_wxUSE_STATBOX=yes | |
6907 | DEFAULT_wxUSE_STATLINE=yes | |
6908 | DEFAULT_wxUSE_STATUSBAR=yes | |
6909 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6910 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6911 | DEFAULT_wxUSE_TOOLBAR=yes | |
6912 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6913 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6914 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6915 | DEFAULT_wxUSE_TREECTRL=yes | |
6916 | DEFAULT_wxUSE_POPUPWIN=yes | |
6917 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6918 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6919 | DEFAULT_wxUSE_ACCEL=no | |
6920 | DEFAULT_wxUSE_BMPBUTTON=no | |
6921 | DEFAULT_wxUSE_BUTTON=no | |
6922 | DEFAULT_wxUSE_CALCTRL=no | |
6923 | DEFAULT_wxUSE_CARET=no | |
6924 | DEFAULT_wxUSE_COMBOBOX=no | |
6925 | DEFAULT_wxUSE_CHECKBOX=no | |
6926 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6927 | DEFAULT_wxUSE_CHOICE=no | |
6928 | DEFAULT_wxUSE_GAUGE=no | |
6929 | DEFAULT_wxUSE_GRID=no | |
6930 | DEFAULT_wxUSE_IMAGLIST=no | |
6931 | DEFAULT_wxUSE_LISTBOOK=no | |
6932 | DEFAULT_wxUSE_LISTBOX=no | |
6933 | DEFAULT_wxUSE_LISTCTRL=no | |
6934 | DEFAULT_wxUSE_NOTEBOOK=no | |
6935 | DEFAULT_wxUSE_RADIOBOX=no | |
6936 | DEFAULT_wxUSE_RADIOBTN=no | |
6937 | DEFAULT_wxUSE_SASH=no | |
6938 | DEFAULT_wxUSE_SCROLLBAR=no | |
6939 | DEFAULT_wxUSE_SLIDER=no | |
6940 | DEFAULT_wxUSE_SPINBTN=no | |
6941 | DEFAULT_wxUSE_SPINCTRL=no | |
6942 | DEFAULT_wxUSE_SPLITTER=no | |
6943 | DEFAULT_wxUSE_STATBMP=no | |
6944 | DEFAULT_wxUSE_STATBOX=no | |
6945 | DEFAULT_wxUSE_STATLINE=no | |
6946 | DEFAULT_wxUSE_STATUSBAR=no | |
6947 | DEFAULT_wxUSE_TAB_DIALOG=no | |
6948 | DEFAULT_wxUSE_TOGGLEBTN=no | |
6949 | DEFAULT_wxUSE_TOOLBAR=no | |
6950 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
6951 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
6952 | DEFAULT_wxUSE_TOOLTIPS=no | |
6953 | DEFAULT_wxUSE_TREECTRL=no | |
6954 | DEFAULT_wxUSE_POPUPWIN=no | |
6955 | DEFAULT_wxUSE_TIPWINDOW=no | |
6956 | fi | |
6957 | ||
6958 | ## FIXME: This is a blatant hack | |
6959 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6960 | wxUSE_PRINTING_ARCHITECTURE=no | |
6961 | wxUSE_DRAG_AND_DROP=no | |
a848cd7e SC |
6962 | DEFAULT_wxUSE_TOOLTIPS=no |
6963 | DEFAULT_wxUSE_DRAGIMAGE=no | |
6964 | fi | |
6965 | ||
6966 | ||
6967 | enablestring= | |
6968 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
6969 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
6970 | no_cache=0 | |
6971 | # Check whether --enable-accel or --disable-accel was given. | |
6972 | if test "${enable_accel+set}" = set; then | |
6973 | enableval="$enable_accel" | |
6974 | ||
6975 | if test "$enableval" = yes; then | |
6976 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6977 | else | |
6978 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6979 | fi | |
6980 | ||
6981 | else | |
6982 | ||
6983 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
6984 | if test "x$LINE" != x ; then | |
6985 | eval "DEFAULT_$LINE" | |
6986 | else | |
6987 | no_cache=1 | |
6988 | fi | |
6989 | ||
6990 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
6991 | ||
6992 | fi; | |
6993 | ||
6994 | eval "$ac_cv_use_accel" | |
6995 | if test "$no_cache" != 1; then | |
6996 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6997 | fi | |
6998 | ||
6999 | if test "$wxUSE_ACCEL" = yes; then | |
7000 | echo "$as_me:$LINENO: result: yes" >&5 | |
7001 | echo "${ECHO_T}yes" >&6 | |
7002 | else | |
7003 | echo "$as_me:$LINENO: result: no" >&5 | |
7004 | echo "${ECHO_T}no" >&6 | |
7005 | fi | |
7006 | ||
7007 | ||
7008 | enablestring= | |
7009 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7010 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7011 | no_cache=0 | |
7012 | # Check whether --enable-button or --disable-button was given. | |
7013 | if test "${enable_button+set}" = set; then | |
7014 | enableval="$enable_button" | |
7015 | ||
7016 | if test "$enableval" = yes; then | |
7017 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7018 | else | |
7019 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7020 | fi | |
7021 | ||
7022 | else | |
7023 | ||
7024 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7025 | if test "x$LINE" != x ; then | |
7026 | eval "DEFAULT_$LINE" | |
7027 | else | |
7028 | no_cache=1 | |
7029 | fi | |
7030 | ||
7031 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7032 | ||
7033 | fi; | |
7034 | ||
7035 | eval "$ac_cv_use_button" | |
7036 | if test "$no_cache" != 1; then | |
7037 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7038 | fi | |
7039 | ||
7040 | if test "$wxUSE_BUTTON" = yes; then | |
7041 | echo "$as_me:$LINENO: result: yes" >&5 | |
7042 | echo "${ECHO_T}yes" >&6 | |
7043 | else | |
7044 | echo "$as_me:$LINENO: result: no" >&5 | |
7045 | echo "${ECHO_T}no" >&6 | |
7046 | fi | |
7047 | ||
7048 | ||
7049 | enablestring= | |
7050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7051 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7052 | no_cache=0 | |
7053 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7054 | if test "${enable_bmpbutton+set}" = set; then | |
7055 | enableval="$enable_bmpbutton" | |
7056 | ||
7057 | if test "$enableval" = yes; then | |
7058 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7059 | else | |
7060 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7061 | fi | |
7062 | ||
7063 | else | |
7064 | ||
7065 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7066 | if test "x$LINE" != x ; then | |
7067 | eval "DEFAULT_$LINE" | |
7068 | else | |
7069 | no_cache=1 | |
7070 | fi | |
7071 | ||
7072 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7073 | ||
7074 | fi; | |
7075 | ||
7076 | eval "$ac_cv_use_bmpbutton" | |
7077 | if test "$no_cache" != 1; then | |
7078 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7079 | fi | |
7080 | ||
7081 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7082 | echo "$as_me:$LINENO: result: yes" >&5 | |
7083 | echo "${ECHO_T}yes" >&6 | |
7084 | else | |
7085 | echo "$as_me:$LINENO: result: no" >&5 | |
7086 | echo "${ECHO_T}no" >&6 | |
7087 | fi | |
7088 | ||
7089 | ||
7090 | enablestring= | |
7091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7092 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7093 | no_cache=0 | |
7094 | # Check whether --enable-calendar or --disable-calendar was given. | |
7095 | if test "${enable_calendar+set}" = set; then | |
7096 | enableval="$enable_calendar" | |
7097 | ||
7098 | if test "$enableval" = yes; then | |
7099 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7100 | else | |
7101 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7102 | fi | |
7103 | ||
7104 | else | |
7105 | ||
7106 | LINE=`grep "wxUSE_CALCTRL" ${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_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7114 | ||
7115 | fi; | |
7116 | ||
7117 | eval "$ac_cv_use_calendar" | |
7118 | if test "$no_cache" != 1; then | |
7119 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7120 | fi | |
7121 | ||
7122 | if test "$wxUSE_CALCTRL" = 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}-caret" >&5 | |
7133 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7134 | no_cache=0 | |
7135 | # Check whether --enable-caret or --disable-caret was given. | |
7136 | if test "${enable_caret+set}" = set; then | |
7137 | enableval="$enable_caret" | |
7138 | ||
7139 | if test "$enableval" = yes; then | |
7140 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7141 | else | |
7142 | ac_cv_use_caret='wxUSE_CARET=no' | |
7143 | fi | |
7144 | ||
7145 | else | |
7146 | ||
7147 | LINE=`grep "wxUSE_CARET" ${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_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7155 | ||
7156 | fi; | |
7157 | ||
7158 | eval "$ac_cv_use_caret" | |
7159 | if test "$no_cache" != 1; then | |
7160 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7161 | fi | |
7162 | ||
7163 | if test "$wxUSE_CARET" = 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}-checkbox" >&5 | |
7174 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7175 | no_cache=0 | |
7176 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7177 | if test "${enable_checkbox+set}" = set; then | |
7178 | enableval="$enable_checkbox" | |
7179 | ||
7180 | if test "$enableval" = yes; then | |
7181 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7182 | else | |
7183 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7184 | fi | |
7185 | ||
7186 | else | |
7187 | ||
7188 | LINE=`grep "wxUSE_CHECKBOX" ${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_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7196 | ||
7197 | fi; | |
7198 | ||
7199 | eval "$ac_cv_use_checkbox" | |
7200 | if test "$no_cache" != 1; then | |
7201 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7202 | fi | |
7203 | ||
7204 | if test "$wxUSE_CHECKBOX" = 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}-checklst" >&5 | |
7215 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7216 | no_cache=0 | |
7217 | # Check whether --enable-checklst or --disable-checklst was given. | |
7218 | if test "${enable_checklst+set}" = set; then | |
7219 | enableval="$enable_checklst" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7223 | else | |
7224 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_CHECKLST" ${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_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7237 | ||
7238 | fi; | |
7239 | ||
7240 | eval "$ac_cv_use_checklst" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_CHECKLST" = 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}-choice" >&5 | |
7256 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7257 | no_cache=0 | |
7258 | # Check whether --enable-choice or --disable-choice was given. | |
7259 | if test "${enable_choice+set}" = set; then | |
7260 | enableval="$enable_choice" | |
7261 | ||
7262 | if test "$enableval" = yes; then | |
7263 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7264 | else | |
7265 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7266 | fi | |
7267 | ||
7268 | else | |
7269 | ||
7270 | LINE=`grep "wxUSE_CHOICE" ${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_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7278 | ||
7279 | fi; | |
7280 | ||
7281 | eval "$ac_cv_use_choice" | |
7282 | if test "$no_cache" != 1; then | |
7283 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7284 | fi | |
7285 | ||
7286 | if test "$wxUSE_CHOICE" = 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}-combobox" >&5 | |
7297 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7298 | no_cache=0 | |
7299 | # Check whether --enable-combobox or --disable-combobox was given. | |
7300 | if test "${enable_combobox+set}" = set; then | |
7301 | enableval="$enable_combobox" | |
7302 | ||
7303 | if test "$enableval" = yes; then | |
7304 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7305 | else | |
7306 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7307 | fi | |
7308 | ||
7309 | else | |
7310 | ||
7311 | LINE=`grep "wxUSE_COMBOBOX" ${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_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7319 | ||
7320 | fi; | |
7321 | ||
7322 | eval "$ac_cv_use_combobox" | |
7323 | if test "$no_cache" != 1; then | |
7324 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7325 | fi | |
7326 | ||
7327 | if test "$wxUSE_COMBOBOX" = 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}-display" >&5 | |
7338 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7339 | no_cache=0 | |
7340 | # Check whether --enable-display or --disable-display was given. | |
7341 | if test "${enable_display+set}" = set; then | |
7342 | enableval="$enable_display" | |
7343 | ||
7344 | if test "$enableval" = yes; then | |
7345 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7346 | else | |
7347 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7348 | fi | |
7349 | ||
7350 | else | |
7351 | ||
7352 | LINE=`grep "wxUSE_DISPLAY" ${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_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7360 | ||
7361 | fi; | |
7362 | ||
7363 | eval "$ac_cv_use_display" | |
7364 | if test "$no_cache" != 1; then | |
7365 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7366 | fi | |
7367 | ||
7368 | if test "$wxUSE_DISPLAY" = 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}-gauge" >&5 | |
7379 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7380 | no_cache=0 | |
7381 | # Check whether --enable-gauge or --disable-gauge was given. | |
7382 | if test "${enable_gauge+set}" = set; then | |
7383 | enableval="$enable_gauge" | |
7384 | ||
7385 | if test "$enableval" = yes; then | |
7386 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7387 | else | |
7388 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7389 | fi | |
7390 | ||
7391 | else | |
7392 | ||
7393 | LINE=`grep "wxUSE_GAUGE" ${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_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7401 | ||
7402 | fi; | |
7403 | ||
7404 | eval "$ac_cv_use_gauge" | |
7405 | if test "$no_cache" != 1; then | |
7406 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7407 | fi | |
7408 | ||
7409 | if test "$wxUSE_GAUGE" = 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 | ||
7418 | enablestring= | |
7419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7420 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7421 | no_cache=0 | |
7422 | # Check whether --enable-grid or --disable-grid was given. | |
7423 | if test "${enable_grid+set}" = set; then | |
7424 | enableval="$enable_grid" | |
7425 | ||
7426 | if test "$enableval" = yes; then | |
7427 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7428 | else | |
7429 | ac_cv_use_grid='wxUSE_GRID=no' | |
7430 | fi | |
7431 | ||
7432 | else | |
7433 | ||
7434 | LINE=`grep "wxUSE_GRID" ${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_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7442 | ||
7443 | fi; | |
7444 | ||
7445 | eval "$ac_cv_use_grid" | |
7446 | if test "$no_cache" != 1; then | |
7447 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7448 | fi | |
7449 | ||
7450 | if test "$wxUSE_GRID" = 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 | ||
7459 | enablestring= | |
7460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7461 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7462 | no_cache=0 | |
7463 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7464 | if test "${enable_imaglist+set}" = set; then | |
7465 | enableval="$enable_imaglist" | |
7466 | ||
7467 | if test "$enableval" = yes; then | |
7468 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7469 | else | |
7470 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7471 | fi | |
7472 | ||
7473 | else | |
7474 | ||
7475 | LINE=`grep "wxUSE_IMAGLIST" ${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_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7483 | ||
7484 | fi; | |
7485 | ||
7486 | eval "$ac_cv_use_imaglist" | |
7487 | if test "$no_cache" != 1; then | |
7488 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7489 | fi | |
7490 | ||
7491 | if test "$wxUSE_IMAGLIST" = 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}-listbook" >&5 | |
7502 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7503 | no_cache=0 | |
7504 | # Check whether --enable-listbook or --disable-listbook was given. | |
7505 | if test "${enable_listbook+set}" = set; then | |
7506 | enableval="$enable_listbook" | |
7507 | ||
7508 | if test "$enableval" = yes; then | |
7509 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7510 | else | |
7511 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7512 | fi | |
7513 | ||
7514 | else | |
7515 | ||
7516 | LINE=`grep "wxUSE_LISTBOOK" ${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_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7524 | ||
7525 | fi; | |
7526 | ||
7527 | eval "$ac_cv_use_listbook" | |
7528 | if test "$no_cache" != 1; then | |
7529 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7530 | fi | |
7531 | ||
7532 | if test "$wxUSE_LISTBOOK" = 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}-listbox" >&5 | |
7543 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7544 | no_cache=0 | |
7545 | # Check whether --enable-listbox or --disable-listbox was given. | |
7546 | if test "${enable_listbox+set}" = set; then | |
7547 | enableval="$enable_listbox" | |
7548 | ||
7549 | if test "$enableval" = yes; then | |
7550 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7551 | else | |
7552 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7553 | fi | |
7554 | ||
7555 | else | |
7556 | ||
7557 | LINE=`grep "wxUSE_LISTBOX" ${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_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7565 | ||
7566 | fi; | |
7567 | ||
7568 | eval "$ac_cv_use_listbox" | |
7569 | if test "$no_cache" != 1; then | |
7570 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7571 | fi | |
7572 | ||
7573 | if test "$wxUSE_LISTBOX" = 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}-listctrl" >&5 | |
7584 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7585 | no_cache=0 | |
7586 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7587 | if test "${enable_listctrl+set}" = set; then | |
7588 | enableval="$enable_listctrl" | |
7589 | ||
7590 | if test "$enableval" = yes; then | |
7591 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7592 | else | |
7593 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7594 | fi | |
7595 | ||
7596 | else | |
7597 | ||
7598 | LINE=`grep "wxUSE_LISTCTRL" ${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_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7606 | ||
7607 | fi; | |
7608 | ||
7609 | eval "$ac_cv_use_listctrl" | |
7610 | if test "$no_cache" != 1; then | |
7611 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7612 | fi | |
7613 | ||
7614 | if test "$wxUSE_LISTCTRL" = 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}-notebook" >&5 | |
7625 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7626 | no_cache=0 | |
7627 | # Check whether --enable-notebook or --disable-notebook was given. | |
7628 | if test "${enable_notebook+set}" = set; then | |
7629 | enableval="$enable_notebook" | |
7630 | ||
7631 | if test "$enableval" = yes; then | |
7632 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7633 | else | |
7634 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7635 | fi | |
7636 | ||
7637 | else | |
7638 | ||
7639 | LINE=`grep "wxUSE_NOTEBOOK" ${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_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7647 | ||
7648 | fi; | |
7649 | ||
7650 | eval "$ac_cv_use_notebook" | |
7651 | if test "$no_cache" != 1; then | |
7652 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7653 | fi | |
7654 | ||
7655 | if test "$wxUSE_NOTEBOOK" = 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}-radiobox" >&5 | |
7666 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7667 | no_cache=0 | |
7668 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7669 | if test "${enable_radiobox+set}" = set; then | |
7670 | enableval="$enable_radiobox" | |
7671 | ||
7672 | if test "$enableval" = yes; then | |
7673 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7674 | else | |
7675 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7676 | fi | |
7677 | ||
7678 | else | |
7679 | ||
7680 | LINE=`grep "wxUSE_RADIOBOX" ${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_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7688 | ||
7689 | fi; | |
7690 | ||
7691 | eval "$ac_cv_use_radiobox" | |
7692 | if test "$no_cache" != 1; then | |
7693 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7694 | fi | |
7695 | ||
7696 | if test "$wxUSE_RADIOBOX" = 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}-radiobtn" >&5 | |
7707 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7708 | no_cache=0 | |
7709 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7710 | if test "${enable_radiobtn+set}" = set; then | |
7711 | enableval="$enable_radiobtn" | |
7712 | ||
7713 | if test "$enableval" = yes; then | |
7714 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7715 | else | |
7716 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7717 | fi | |
7718 | ||
7719 | else | |
7720 | ||
7721 | LINE=`grep "wxUSE_RADIOBTN" ${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_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7729 | ||
7730 | fi; | |
7731 | ||
7732 | eval "$ac_cv_use_radiobtn" | |
7733 | if test "$no_cache" != 1; then | |
7734 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7735 | fi | |
7736 | ||
7737 | if test "$wxUSE_RADIOBTN" = 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}-sash" >&5 | |
7748 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7749 | no_cache=0 | |
7750 | # Check whether --enable-sash or --disable-sash was given. | |
7751 | if test "${enable_sash+set}" = set; then | |
7752 | enableval="$enable_sash" | |
7753 | ||
7754 | if test "$enableval" = yes; then | |
7755 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7756 | else | |
7757 | ac_cv_use_sash='wxUSE_SASH=no' | |
7758 | fi | |
7759 | ||
7760 | else | |
7761 | ||
7762 | LINE=`grep "wxUSE_SASH" ${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_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7770 | ||
7771 | fi; | |
7772 | ||
7773 | eval "$ac_cv_use_sash" | |
7774 | if test "$no_cache" != 1; then | |
7775 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7776 | fi | |
7777 | ||
7778 | if test "$wxUSE_SASH" = 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}-scrollbar" >&5 | |
7789 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7790 | no_cache=0 | |
7791 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7792 | if test "${enable_scrollbar+set}" = set; then | |
7793 | enableval="$enable_scrollbar" | |
7794 | ||
7795 | if test "$enableval" = yes; then | |
7796 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7797 | else | |
7798 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7799 | fi | |
7800 | ||
7801 | else | |
7802 | ||
7803 | LINE=`grep "wxUSE_SCROLLBAR" ${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_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7811 | ||
7812 | fi; | |
7813 | ||
7814 | eval "$ac_cv_use_scrollbar" | |
7815 | if test "$no_cache" != 1; then | |
7816 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7817 | fi | |
7818 | ||
7819 | if test "$wxUSE_SCROLLBAR" = 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}-slider" >&5 | |
7830 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7831 | no_cache=0 | |
7832 | # Check whether --enable-slider or --disable-slider was given. | |
7833 | if test "${enable_slider+set}" = set; then | |
7834 | enableval="$enable_slider" | |
7835 | ||
7836 | if test "$enableval" = yes; then | |
7837 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7838 | else | |
7839 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7840 | fi | |
7841 | ||
7842 | else | |
7843 | ||
7844 | LINE=`grep "wxUSE_SLIDER" ${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_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7852 | ||
7853 | fi; | |
7854 | ||
7855 | eval "$ac_cv_use_slider" | |
7856 | if test "$no_cache" != 1; then | |
7857 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7858 | fi | |
7859 | ||
7860 | if test "$wxUSE_SLIDER" = 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}-spinbtn" >&5 | |
7871 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7872 | no_cache=0 | |
7873 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7874 | if test "${enable_spinbtn+set}" = set; then | |
7875 | enableval="$enable_spinbtn" | |
7876 | ||
7877 | if test "$enableval" = yes; then | |
7878 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7879 | else | |
7880 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7881 | fi | |
7882 | ||
7883 | else | |
7884 | ||
7885 | LINE=`grep "wxUSE_SPINBTN" ${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_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7893 | ||
7894 | fi; | |
7895 | ||
7896 | eval "$ac_cv_use_spinbtn" | |
7897 | if test "$no_cache" != 1; then | |
7898 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7899 | fi | |
7900 | ||
7901 | if test "$wxUSE_SPINBTN" = 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}-spinctrl" >&5 | |
7912 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
7913 | no_cache=0 | |
7914 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7915 | if test "${enable_spinctrl+set}" = set; then | |
7916 | enableval="$enable_spinctrl" | |
7917 | ||
7918 | if test "$enableval" = yes; then | |
7919 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7920 | else | |
7921 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7922 | fi | |
7923 | ||
7924 | else | |
7925 | ||
7926 | LINE=`grep "wxUSE_SPINCTRL" ${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_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
7934 | ||
7935 | fi; | |
7936 | ||
7937 | eval "$ac_cv_use_spinctrl" | |
7938 | if test "$no_cache" != 1; then | |
7939 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7940 | fi | |
7941 | ||
7942 | if test "$wxUSE_SPINCTRL" = 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}-splitter" >&5 | |
7953 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
7954 | no_cache=0 | |
7955 | # Check whether --enable-splitter or --disable-splitter was given. | |
7956 | if test "${enable_splitter+set}" = set; then | |
7957 | enableval="$enable_splitter" | |
7958 | ||
7959 | if test "$enableval" = yes; then | |
7960 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7961 | else | |
7962 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7963 | fi | |
7964 | ||
7965 | else | |
7966 | ||
7967 | LINE=`grep "wxUSE_SPLITTER" ${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_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
7975 | ||
7976 | fi; | |
7977 | ||
7978 | eval "$ac_cv_use_splitter" | |
7979 | if test "$no_cache" != 1; then | |
7980 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7981 | fi | |
7982 | ||
7983 | if test "$wxUSE_SPLITTER" = 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}-statbmp" >&5 | |
7994 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
7995 | no_cache=0 | |
7996 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7997 | if test "${enable_statbmp+set}" = set; then | |
7998 | enableval="$enable_statbmp" | |
7999 | ||
8000 | if test "$enableval" = yes; then | |
8001 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8002 | else | |
8003 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8004 | fi | |
8005 | ||
8006 | else | |
8007 | ||
8008 | LINE=`grep "wxUSE_STATBMP" ${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_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8016 | ||
8017 | fi; | |
8018 | ||
8019 | eval "$ac_cv_use_statbmp" | |
8020 | if test "$no_cache" != 1; then | |
8021 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8022 | fi | |
8023 | ||
8024 | if test "$wxUSE_STATBMP" = 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}-statbox" >&5 | |
8035 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8036 | no_cache=0 | |
8037 | # Check whether --enable-statbox or --disable-statbox was given. | |
8038 | if test "${enable_statbox+set}" = set; then | |
8039 | enableval="$enable_statbox" | |
8040 | ||
8041 | if test "$enableval" = yes; then | |
8042 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8043 | else | |
8044 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8045 | fi | |
8046 | ||
8047 | else | |
8048 | ||
8049 | LINE=`grep "wxUSE_STATBOX" ${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_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8057 | ||
8058 | fi; | |
8059 | ||
8060 | eval "$ac_cv_use_statbox" | |
8061 | if test "$no_cache" != 1; then | |
8062 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8063 | fi | |
8064 | ||
8065 | if test "$wxUSE_STATBOX" = 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}-statline" >&5 | |
8076 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8077 | no_cache=0 | |
8078 | # Check whether --enable-statline or --disable-statline was given. | |
8079 | if test "${enable_statline+set}" = set; then | |
8080 | enableval="$enable_statline" | |
8081 | ||
8082 | if test "$enableval" = yes; then | |
8083 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8084 | else | |
8085 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8086 | fi | |
8087 | ||
8088 | else | |
8089 | ||
8090 | LINE=`grep "wxUSE_STATLINE" ${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_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8098 | ||
8099 | fi; | |
8100 | ||
8101 | eval "$ac_cv_use_statline" | |
8102 | if test "$no_cache" != 1; then | |
8103 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8104 | fi | |
8105 | ||
8106 | if test "$wxUSE_STATLINE" = 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}-stattext" >&5 | |
8117 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8118 | no_cache=0 | |
8119 | # Check whether --enable-stattext or --disable-stattext was given. | |
8120 | if test "${enable_stattext+set}" = set; then | |
8121 | enableval="$enable_stattext" | |
8122 | ||
8123 | if test "$enableval" = yes; then | |
8124 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8125 | else | |
8126 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8127 | fi | |
8128 | ||
8129 | else | |
8130 | ||
8131 | LINE=`grep "wxUSE_STATTEXT" ${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_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8139 | ||
8140 | fi; | |
8141 | ||
8142 | eval "$ac_cv_use_stattext" | |
8143 | if test "$no_cache" != 1; then | |
8144 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8145 | fi | |
8146 | ||
8147 | if test "$wxUSE_STATTEXT" = 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}-statusbar" >&5 | |
8158 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8159 | no_cache=0 | |
8160 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8161 | if test "${enable_statusbar+set}" = set; then | |
8162 | enableval="$enable_statusbar" | |
8163 | ||
8164 | if test "$enableval" = yes; then | |
8165 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8166 | else | |
8167 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8168 | fi | |
8169 | ||
8170 | else | |
8171 | ||
8172 | LINE=`grep "wxUSE_STATUSBAR" ${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_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8180 | ||
8181 | fi; | |
8182 | ||
8183 | eval "$ac_cv_use_statusbar" | |
8184 | if test "$no_cache" != 1; then | |
8185 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8186 | fi | |
8187 | ||
8188 | if test "$wxUSE_STATUSBAR" = 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}-tabdialog" >&5 | |
8199 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8200 | no_cache=0 | |
8201 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8202 | if test "${enable_tabdialog+set}" = set; then | |
8203 | enableval="$enable_tabdialog" | |
8204 | ||
8205 | if test "$enableval" = yes; then | |
8206 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8207 | else | |
8208 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8209 | fi | |
8210 | ||
8211 | else | |
8212 | ||
8213 | LINE=`grep "wxUSE_TABDIALOG" ${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_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8221 | ||
8222 | fi; | |
8223 | ||
8224 | eval "$ac_cv_use_tabdialog" | |
8225 | if test "$no_cache" != 1; then | |
8226 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8227 | fi | |
8228 | ||
8229 | if test "$wxUSE_TABDIALOG" = 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}-textctrl" >&5 | |
8240 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8241 | no_cache=0 | |
8242 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8243 | if test "${enable_textctrl+set}" = set; then | |
8244 | enableval="$enable_textctrl" | |
8245 | ||
8246 | if test "$enableval" = yes; then | |
8247 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8248 | else | |
8249 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8250 | fi | |
8251 | ||
8252 | else | |
8253 | ||
8254 | LINE=`grep "wxUSE_TEXTCTRL" ${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_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8262 | ||
8263 | fi; | |
8264 | ||
8265 | eval "$ac_cv_use_textctrl" | |
8266 | if test "$no_cache" != 1; then | |
8267 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8268 | fi | |
8269 | ||
8270 | if test "$wxUSE_TEXTCTRL" = 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}-togglebtn" >&5 | |
8281 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8282 | no_cache=0 | |
8283 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8284 | if test "${enable_togglebtn+set}" = set; then | |
8285 | enableval="$enable_togglebtn" | |
8286 | ||
8287 | if test "$enableval" = yes; then | |
8288 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8289 | else | |
8290 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8291 | fi | |
8292 | ||
8293 | else | |
8294 | ||
8295 | LINE=`grep "wxUSE_TOGGLEBTN" ${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_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8303 | ||
8304 | fi; | |
8305 | ||
8306 | eval "$ac_cv_use_togglebtn" | |
8307 | if test "$no_cache" != 1; then | |
8308 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8309 | fi | |
8310 | ||
8311 | if test "$wxUSE_TOGGLEBTN" = 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}-toolbar" >&5 | |
8322 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8323 | no_cache=0 | |
8324 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8325 | if test "${enable_toolbar+set}" = set; then | |
8326 | enableval="$enable_toolbar" | |
8327 | ||
8328 | if test "$enableval" = yes; then | |
8329 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8330 | else | |
8331 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8332 | fi | |
8333 | ||
8334 | else | |
8335 | ||
8336 | LINE=`grep "wxUSE_TOOLBAR" ${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_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8344 | ||
8345 | fi; | |
8346 | ||
8347 | eval "$ac_cv_use_toolbar" | |
8348 | if test "$no_cache" != 1; then | |
8349 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8350 | fi | |
8351 | ||
8352 | if test "$wxUSE_TOOLBAR" = 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}-tbarnative" >&5 | |
8363 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8364 | no_cache=0 | |
8365 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8366 | if test "${enable_tbarnative+set}" = set; then | |
8367 | enableval="$enable_tbarnative" | |
8368 | ||
8369 | if test "$enableval" = yes; then | |
8370 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8371 | else | |
8372 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8373 | fi | |
8374 | ||
8375 | else | |
8376 | ||
8377 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${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_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8385 | ||
8386 | fi; | |
8387 | ||
8388 | eval "$ac_cv_use_tbarnative" | |
8389 | if test "$no_cache" != 1; then | |
8390 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8391 | fi | |
8392 | ||
8393 | if test "$wxUSE_TOOLBAR_NATIVE" = 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}-tbarsmpl" >&5 | |
8404 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8405 | no_cache=0 | |
8406 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8407 | if test "${enable_tbarsmpl+set}" = set; then | |
8408 | enableval="$enable_tbarsmpl" | |
8409 | ||
8410 | if test "$enableval" = yes; then | |
8411 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8412 | else | |
8413 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8414 | fi | |
8415 | ||
8416 | else | |
8417 | ||
8418 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${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_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8426 | ||
8427 | fi; | |
8428 | ||
8429 | eval "$ac_cv_use_tbarsmpl" | |
8430 | if test "$no_cache" != 1; then | |
8431 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8432 | fi | |
8433 | ||
8434 | if test "$wxUSE_TOOLBAR_SIMPLE" = 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}-treectrl" >&5 | |
8445 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8446 | no_cache=0 | |
8447 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8448 | if test "${enable_treectrl+set}" = set; then | |
8449 | enableval="$enable_treectrl" | |
8450 | ||
8451 | if test "$enableval" = yes; then | |
8452 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8453 | else | |
8454 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8455 | fi | |
8456 | ||
8457 | else | |
8458 | ||
8459 | LINE=`grep "wxUSE_TREECTRL" ${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_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8467 | ||
8468 | fi; | |
8469 | ||
8470 | eval "$ac_cv_use_treectrl" | |
8471 | if test "$no_cache" != 1; then | |
8472 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8473 | fi | |
8474 | ||
8475 | if test "$wxUSE_TREECTRL" = 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}-tipwindow" >&5 | |
8486 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8487 | no_cache=0 | |
8488 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8489 | if test "${enable_tipwindow+set}" = set; then | |
8490 | enableval="$enable_tipwindow" | |
8491 | ||
8492 | if test "$enableval" = yes; then | |
8493 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8494 | else | |
8495 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8496 | fi | |
8497 | ||
8498 | else | |
8499 | ||
8500 | LINE=`grep "wxUSE_TIPWINDOW" ${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_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8508 | ||
8509 | fi; | |
8510 | ||
8511 | eval "$ac_cv_use_tipwindow" | |
8512 | if test "$no_cache" != 1; then | |
8513 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8514 | fi | |
8515 | ||
8516 | if test "$wxUSE_TIPWINDOW" = 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}-popupwin" >&5 | |
8527 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8528 | no_cache=0 | |
8529 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8530 | if test "${enable_popupwin+set}" = set; then | |
8531 | enableval="$enable_popupwin" | |
8532 | ||
8533 | if test "$enableval" = yes; then | |
8534 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8535 | else | |
8536 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8537 | fi | |
8538 | ||
8539 | else | |
8540 | ||
8541 | LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8549 | ||
8550 | fi; | |
8551 | ||
8552 | eval "$ac_cv_use_popupwin" | |
8553 | if test "$no_cache" != 1; then | |
8554 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8555 | fi | |
8556 | ||
8557 | if test "$wxUSE_POPUPWIN" = 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 | ||
8567 | ||
8568 | enablestring= | |
8569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8570 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8571 | no_cache=0 | |
8572 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8573 | if test "${enable_commondlg+set}" = set; then | |
8574 | enableval="$enable_commondlg" | |
8575 | ||
8576 | if test "$enableval" = yes; then | |
8577 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8578 | else | |
8579 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8580 | fi | |
8581 | ||
8582 | else | |
8583 | ||
8584 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8585 | if test "x$LINE" != x ; then | |
8586 | eval "DEFAULT_$LINE" | |
8587 | else | |
8588 | no_cache=1 | |
8589 | fi | |
8590 | ||
8591 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8592 | ||
8593 | fi; | |
8594 | ||
8595 | eval "$ac_cv_use_commondlg" | |
8596 | if test "$no_cache" != 1; then | |
8597 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8598 | fi | |
8599 | ||
8600 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8601 | echo "$as_me:$LINENO: result: yes" >&5 | |
8602 | echo "${ECHO_T}yes" >&6 | |
8603 | else | |
8604 | echo "$as_me:$LINENO: result: no" >&5 | |
8605 | echo "${ECHO_T}no" >&6 | |
8606 | fi | |
8607 | ||
8608 | ||
8609 | enablestring= | |
8610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8611 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8612 | no_cache=0 | |
8613 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8614 | if test "${enable_choicedlg+set}" = set; then | |
8615 | enableval="$enable_choicedlg" | |
8616 | ||
8617 | if test "$enableval" = yes; then | |
8618 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8619 | else | |
8620 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8621 | fi | |
8622 | ||
8623 | else | |
8624 | ||
8625 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8626 | if test "x$LINE" != x ; then | |
8627 | eval "DEFAULT_$LINE" | |
8628 | else | |
8629 | no_cache=1 | |
8630 | fi | |
8631 | ||
8632 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8633 | ||
8634 | fi; | |
8635 | ||
8636 | eval "$ac_cv_use_choicedlg" | |
8637 | if test "$no_cache" != 1; then | |
8638 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8639 | fi | |
8640 | ||
8641 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8642 | echo "$as_me:$LINENO: result: yes" >&5 | |
8643 | echo "${ECHO_T}yes" >&6 | |
8644 | else | |
8645 | echo "$as_me:$LINENO: result: no" >&5 | |
8646 | echo "${ECHO_T}no" >&6 | |
8647 | fi | |
8648 | ||
8649 | ||
8650 | enablestring= | |
8651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8652 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8653 | no_cache=0 | |
8654 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8655 | if test "${enable_coldlg+set}" = set; then | |
8656 | enableval="$enable_coldlg" | |
8657 | ||
8658 | if test "$enableval" = yes; then | |
8659 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8660 | else | |
8661 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8662 | fi | |
8663 | ||
8664 | else | |
8665 | ||
8666 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8667 | if test "x$LINE" != x ; then | |
8668 | eval "DEFAULT_$LINE" | |
8669 | else | |
8670 | no_cache=1 | |
8671 | fi | |
8672 | ||
8673 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8674 | ||
8675 | fi; | |
8676 | ||
8677 | eval "$ac_cv_use_coldlg" | |
8678 | if test "$no_cache" != 1; then | |
8679 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8680 | fi | |
8681 | ||
8682 | if test "$wxUSE_COLOURDLG" = yes; then | |
8683 | echo "$as_me:$LINENO: result: yes" >&5 | |
8684 | echo "${ECHO_T}yes" >&6 | |
8685 | else | |
8686 | echo "$as_me:$LINENO: result: no" >&5 | |
8687 | echo "${ECHO_T}no" >&6 | |
8688 | fi | |
8689 | ||
8690 | ||
8691 | enablestring= | |
8692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8693 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8694 | no_cache=0 | |
8695 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8696 | if test "${enable_filedlg+set}" = set; then | |
8697 | enableval="$enable_filedlg" | |
8698 | ||
8699 | if test "$enableval" = yes; then | |
8700 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8701 | else | |
8702 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8703 | fi | |
8704 | ||
8705 | else | |
8706 | ||
8707 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8708 | if test "x$LINE" != x ; then | |
8709 | eval "DEFAULT_$LINE" | |
8710 | else | |
8711 | no_cache=1 | |
8712 | fi | |
8713 | ||
8714 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8715 | ||
8716 | fi; | |
8717 | ||
8718 | eval "$ac_cv_use_filedlg" | |
8719 | if test "$no_cache" != 1; then | |
8720 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8721 | fi | |
8722 | ||
8723 | if test "$wxUSE_FILEDLG" = yes; then | |
8724 | echo "$as_me:$LINENO: result: yes" >&5 | |
8725 | echo "${ECHO_T}yes" >&6 | |
8726 | else | |
8727 | echo "$as_me:$LINENO: result: no" >&5 | |
8728 | echo "${ECHO_T}no" >&6 | |
8729 | fi | |
8730 | ||
8731 | ||
8732 | enablestring= | |
8733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8734 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8735 | no_cache=0 | |
8736 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8737 | if test "${enable_finddlg+set}" = set; then | |
8738 | enableval="$enable_finddlg" | |
8739 | ||
8740 | if test "$enableval" = yes; then | |
8741 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8742 | else | |
8743 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8744 | fi | |
8745 | ||
8746 | else | |
8747 | ||
8748 | LINE=`grep "wxUSE_FINDREPLDLG" ${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_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8756 | ||
8757 | fi; | |
8758 | ||
8759 | eval "$ac_cv_use_finddlg" | |
8760 | if test "$no_cache" != 1; then | |
8761 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8762 | fi | |
8763 | ||
8764 | if test "$wxUSE_FINDREPLDLG" = 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}-fontdlg" >&5 | |
8775 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8776 | no_cache=0 | |
8777 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8778 | if test "${enable_fontdlg+set}" = set; then | |
8779 | enableval="$enable_fontdlg" | |
8780 | ||
8781 | if test "$enableval" = yes; then | |
8782 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8783 | else | |
8784 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8785 | fi | |
8786 | ||
8787 | else | |
8788 | ||
8789 | LINE=`grep "wxUSE_FONTDLG" ${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_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8797 | ||
8798 | fi; | |
8799 | ||
8800 | eval "$ac_cv_use_fontdlg" | |
8801 | if test "$no_cache" != 1; then | |
8802 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8803 | fi | |
8804 | ||
8805 | if test "$wxUSE_FONTDLG" = 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}-dirdlg" >&5 | |
8816 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8817 | no_cache=0 | |
8818 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8819 | if test "${enable_dirdlg+set}" = set; then | |
8820 | enableval="$enable_dirdlg" | |
8821 | ||
8822 | if test "$enableval" = yes; then | |
8823 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8824 | else | |
8825 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8826 | fi | |
8827 | ||
8828 | else | |
8829 | ||
8830 | LINE=`grep "wxUSE_DIRDLG" ${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_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8838 | ||
8839 | fi; | |
8840 | ||
8841 | eval "$ac_cv_use_dirdlg" | |
8842 | if test "$no_cache" != 1; then | |
8843 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8844 | fi | |
8845 | ||
8846 | if test "$wxUSE_DIRDLG" = 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}-msgdlg" >&5 | |
8857 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8858 | no_cache=0 | |
8859 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8860 | if test "${enable_msgdlg+set}" = set; then | |
8861 | enableval="$enable_msgdlg" | |
8862 | ||
8863 | if test "$enableval" = yes; then | |
8864 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8865 | else | |
8866 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8867 | fi | |
8868 | ||
8869 | else | |
8870 | ||
8871 | LINE=`grep "wxUSE_MSGDLG" ${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_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8879 | ||
8880 | fi; | |
8881 | ||
8882 | eval "$ac_cv_use_msgdlg" | |
8883 | if test "$no_cache" != 1; then | |
8884 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8885 | fi | |
8886 | ||
8887 | if test "$wxUSE_MSGDLG" = 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}-numberdlg" >&5 | |
8898 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8899 | no_cache=0 | |
8900 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8901 | if test "${enable_numberdlg+set}" = set; then | |
8902 | enableval="$enable_numberdlg" | |
8903 | ||
8904 | if test "$enableval" = yes; then | |
8905 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
8906 | else | |
8907 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
8908 | fi | |
8909 | ||
8910 | else | |
8911 | ||
8912 | LINE=`grep "wxUSE_NUMBERDLG" ${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_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
8920 | ||
8921 | fi; | |
8922 | ||
8923 | eval "$ac_cv_use_numberdlg" | |
8924 | if test "$no_cache" != 1; then | |
8925 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
8926 | fi | |
8927 | ||
8928 | if test "$wxUSE_NUMBERDLG" = 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}-splash" >&5 | |
8939 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
8940 | no_cache=0 | |
8941 | # Check whether --enable-splash or --disable-splash was given. | |
8942 | if test "${enable_splash+set}" = set; then | |
8943 | enableval="$enable_splash" | |
8944 | ||
8945 | if test "$enableval" = yes; then | |
8946 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8947 | else | |
8948 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8949 | fi | |
8950 | ||
8951 | else | |
8952 | ||
8953 | LINE=`grep "wxUSE_SPLASH" ${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_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
8961 | ||
8962 | fi; | |
8963 | ||
8964 | eval "$ac_cv_use_splash" | |
8965 | if test "$no_cache" != 1; then | |
8966 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8967 | fi | |
8968 | ||
8969 | if test "$wxUSE_SPLASH" = 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}-textdlg" >&5 | |
8980 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
8981 | no_cache=0 | |
8982 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8983 | if test "${enable_textdlg+set}" = set; then | |
8984 | enableval="$enable_textdlg" | |
8985 | ||
8986 | if test "$enableval" = yes; then | |
8987 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8988 | else | |
8989 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8990 | fi | |
8991 | ||
8992 | else | |
8993 | ||
8994 | LINE=`grep "wxUSE_TEXTDLG" ${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_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9002 | ||
9003 | fi; | |
9004 | ||
9005 | eval "$ac_cv_use_textdlg" | |
9006 | if test "$no_cache" != 1; then | |
9007 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9008 | fi | |
9009 | ||
9010 | if test "$wxUSE_TEXTDLG" = 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}-tipdlg" >&5 | |
9021 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9022 | no_cache=0 | |
9023 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9024 | if test "${enable_tipdlg+set}" = set; then | |
9025 | enableval="$enable_tipdlg" | |
9026 | ||
9027 | if test "$enableval" = yes; then | |
9028 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9029 | else | |
9030 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9031 | fi | |
9032 | ||
9033 | else | |
9034 | ||
9035 | LINE=`grep "wxUSE_STARTUP_TIPS" ${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_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9043 | ||
9044 | fi; | |
9045 | ||
9046 | eval "$ac_cv_use_tipdlg" | |
9047 | if test "$no_cache" != 1; then | |
9048 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9049 | fi | |
9050 | ||
9051 | if test "$wxUSE_STARTUP_TIPS" = 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}-progressdlg" >&5 | |
9062 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9063 | no_cache=0 | |
9064 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9065 | if test "${enable_progressdlg+set}" = set; then | |
9066 | enableval="$enable_progressdlg" | |
9067 | ||
9068 | if test "$enableval" = yes; then | |
9069 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9070 | else | |
9071 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9072 | fi | |
9073 | ||
9074 | else | |
9075 | ||
9076 | LINE=`grep "wxUSE_PROGRESSDLG" ${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_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9084 | ||
9085 | fi; | |
9086 | ||
9087 | eval "$ac_cv_use_progressdlg" | |
9088 | if test "$no_cache" != 1; then | |
9089 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9090 | fi | |
9091 | ||
9092 | if test "$wxUSE_PROGRESSDLG" = 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}-wizarddlg" >&5 | |
9103 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9104 | no_cache=0 | |
9105 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9106 | if test "${enable_wizarddlg+set}" = set; then | |
9107 | enableval="$enable_wizarddlg" | |
9108 | ||
9109 | if test "$enableval" = yes; then | |
9110 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9111 | else | |
9112 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9113 | fi | |
9114 | ||
9115 | else | |
9116 | ||
9117 | LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9125 | ||
9126 | fi; | |
9127 | ||
9128 | eval "$ac_cv_use_wizarddlg" | |
9129 | if test "$no_cache" != 1; then | |
9130 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9131 | fi | |
9132 | ||
9133 | if test "$wxUSE_WIZARDDLG" = 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 | ||
9143 | ||
9144 | enablestring= | |
9145 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9146 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9147 | no_cache=0 | |
9148 | # Check whether --enable-menus or --disable-menus was given. | |
9149 | if test "${enable_menus+set}" = set; then | |
9150 | enableval="$enable_menus" | |
9151 | ||
9152 | if test "$enableval" = yes; then | |
9153 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9154 | else | |
9155 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9156 | fi | |
9157 | ||
9158 | else | |
9159 | ||
9160 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9161 | if test "x$LINE" != x ; then | |
9162 | eval "DEFAULT_$LINE" | |
9163 | else | |
9164 | no_cache=1 | |
9165 | fi | |
9166 | ||
9167 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9168 | ||
9169 | fi; | |
9170 | ||
9171 | eval "$ac_cv_use_menus" | |
9172 | if test "$no_cache" != 1; then | |
9173 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9174 | fi | |
9175 | ||
9176 | if test "$wxUSE_MENUS" = yes; then | |
9177 | echo "$as_me:$LINENO: result: yes" >&5 | |
9178 | echo "${ECHO_T}yes" >&6 | |
9179 | else | |
9180 | echo "$as_me:$LINENO: result: no" >&5 | |
9181 | echo "${ECHO_T}no" >&6 | |
9182 | fi | |
9183 | ||
9184 | ||
9185 | enablestring= | |
9186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9187 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9188 | no_cache=0 | |
9189 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9190 | if test "${enable_miniframe+set}" = set; then | |
9191 | enableval="$enable_miniframe" | |
9192 | ||
9193 | if test "$enableval" = yes; then | |
9194 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9195 | else | |
9196 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9197 | fi | |
9198 | ||
9199 | else | |
9200 | ||
9201 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9202 | if test "x$LINE" != x ; then | |
9203 | eval "DEFAULT_$LINE" | |
9204 | else | |
9205 | no_cache=1 | |
9206 | fi | |
9207 | ||
9208 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9209 | ||
9210 | fi; | |
9211 | ||
9212 | eval "$ac_cv_use_miniframe" | |
9213 | if test "$no_cache" != 1; then | |
9214 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9215 | fi | |
9216 | ||
9217 | if test "$wxUSE_MINIFRAME" = yes; then | |
9218 | echo "$as_me:$LINENO: result: yes" >&5 | |
9219 | echo "${ECHO_T}yes" >&6 | |
9220 | else | |
9221 | echo "$as_me:$LINENO: result: no" >&5 | |
9222 | echo "${ECHO_T}no" >&6 | |
9223 | fi | |
9224 | ||
9225 | ||
9226 | enablestring= | |
9227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9228 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9229 | no_cache=0 | |
9230 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9231 | if test "${enable_tooltips+set}" = set; then | |
9232 | enableval="$enable_tooltips" | |
9233 | ||
9234 | if test "$enableval" = yes; then | |
9235 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9236 | else | |
9237 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9238 | fi | |
9239 | ||
9240 | else | |
9241 | ||
9242 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9243 | if test "x$LINE" != x ; then | |
9244 | eval "DEFAULT_$LINE" | |
9245 | else | |
9246 | no_cache=1 | |
9247 | fi | |
9248 | ||
9249 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9250 | ||
9251 | fi; | |
9252 | ||
9253 | eval "$ac_cv_use_tooltips" | |
9254 | if test "$no_cache" != 1; then | |
9255 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9256 | fi | |
9257 | ||
9258 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9259 | echo "$as_me:$LINENO: result: yes" >&5 | |
9260 | echo "${ECHO_T}yes" >&6 | |
9261 | else | |
9262 | echo "$as_me:$LINENO: result: no" >&5 | |
9263 | echo "${ECHO_T}no" >&6 | |
9264 | fi | |
9265 | ||
9266 | ||
9267 | enablestring= | |
9268 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9269 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9270 | no_cache=0 | |
9271 | # Check whether --enable-splines or --disable-splines was given. | |
9272 | if test "${enable_splines+set}" = set; then | |
9273 | enableval="$enable_splines" | |
9274 | ||
9275 | if test "$enableval" = yes; then | |
9276 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9277 | else | |
9278 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9279 | fi | |
9280 | ||
9281 | else | |
9282 | ||
9283 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9284 | if test "x$LINE" != x ; then | |
9285 | eval "DEFAULT_$LINE" | |
9286 | else | |
9287 | no_cache=1 | |
9288 | fi | |
9289 | ||
9290 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9291 | ||
9292 | fi; | |
9293 | ||
9294 | eval "$ac_cv_use_splines" | |
9295 | if test "$no_cache" != 1; then | |
9296 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9297 | fi | |
9298 | ||
9299 | if test "$wxUSE_SPLINES" = yes; then | |
9300 | echo "$as_me:$LINENO: result: yes" >&5 | |
9301 | echo "${ECHO_T}yes" >&6 | |
9302 | else | |
9303 | echo "$as_me:$LINENO: result: no" >&5 | |
9304 | echo "${ECHO_T}no" >&6 | |
9305 | fi | |
9306 | ||
9307 | ||
9308 | enablestring= | |
9309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9310 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9311 | no_cache=0 | |
9312 | # Check whether --enable-validators or --disable-validators was given. | |
9313 | if test "${enable_validators+set}" = set; then | |
9314 | enableval="$enable_validators" | |
9315 | ||
9316 | if test "$enableval" = yes; then | |
9317 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9318 | else | |
9319 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9320 | fi | |
9321 | ||
9322 | else | |
9323 | ||
9324 | LINE=`grep "wxUSE_VALIDATORS" ${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_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9332 | ||
9333 | fi; | |
9334 | ||
9335 | eval "$ac_cv_use_validators" | |
9336 | if test "$no_cache" != 1; then | |
9337 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9338 | fi | |
9339 | ||
9340 | if test "$wxUSE_VALIDATORS" = 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}-busyinfo" >&5 | |
9351 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9352 | no_cache=0 | |
9353 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9354 | if test "${enable_busyinfo+set}" = set; then | |
9355 | enableval="$enable_busyinfo" | |
9356 | ||
9357 | if test "$enableval" = yes; then | |
9358 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9359 | else | |
9360 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9361 | fi | |
9362 | ||
9363 | else | |
9364 | ||
9365 | LINE=`grep "wxUSE_BUSYINFO" ${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_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9373 | ||
9374 | fi; | |
9375 | ||
9376 | eval "$ac_cv_use_busyinfo" | |
9377 | if test "$no_cache" != 1; then | |
9378 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9379 | fi | |
9380 | ||
9381 | if test "$wxUSE_BUSYINFO" = 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}-joystick" >&5 | |
9392 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9393 | no_cache=0 | |
9394 | # Check whether --enable-joystick or --disable-joystick was given. | |
9395 | if test "${enable_joystick+set}" = set; then | |
9396 | enableval="$enable_joystick" | |
9397 | ||
9398 | if test "$enableval" = yes; then | |
9399 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9400 | else | |
9401 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9402 | fi | |
9403 | ||
9404 | else | |
9405 | ||
9406 | LINE=`grep "wxUSE_JOYSTICK" ${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_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9414 | ||
9415 | fi; | |
9416 | ||
9417 | eval "$ac_cv_use_joystick" | |
9418 | if test "$no_cache" != 1; then | |
9419 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9420 | fi | |
9421 | ||
9422 | if test "$wxUSE_JOYSTICK" = 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}-metafile" >&5 | |
9433 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9434 | no_cache=0 | |
9435 | # Check whether --enable-metafile or --disable-metafile was given. | |
9436 | if test "${enable_metafile+set}" = set; then | |
9437 | enableval="$enable_metafile" | |
9438 | ||
9439 | if test "$enableval" = yes; then | |
9440 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9441 | else | |
9442 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9443 | fi | |
9444 | ||
9445 | else | |
9446 | ||
9447 | LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9455 | ||
9456 | fi; | |
9457 | ||
9458 | eval "$ac_cv_use_metafile" | |
9459 | if test "$no_cache" != 1; then | |
9460 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9461 | fi | |
9462 | ||
9463 | if test "$wxUSE_METAFILE" = 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}-dragimage" >&5 | |
9474 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9475 | no_cache=0 | |
9476 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9477 | if test "${enable_dragimage+set}" = set; then | |
9478 | enableval="$enable_dragimage" | |
9479 | ||
9480 | if test "$enableval" = yes; then | |
9481 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9482 | else | |
9483 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9484 | fi | |
9485 | ||
9486 | else | |
9487 | ||
9488 | LINE=`grep "wxUSE_DRAGIMAGE" ${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_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9496 | ||
9497 | fi; | |
9498 | ||
9499 | eval "$ac_cv_use_dragimage" | |
9500 | if test "$no_cache" != 1; then | |
9501 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9502 | fi | |
9503 | ||
9504 | if test "$wxUSE_DRAGIMAGE" = 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}-accessibility" >&5 | |
9515 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9516 | no_cache=0 | |
9517 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9518 | if test "${enable_accessibility+set}" = set; then | |
9519 | enableval="$enable_accessibility" | |
9520 | ||
9521 | if test "$enableval" = yes; then | |
9522 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9523 | else | |
9524 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9525 | fi | |
9526 | ||
9527 | else | |
9528 | ||
9529 | LINE=`grep "wxUSE_ACCESSIBILITY" ${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_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9537 | ||
9538 | fi; | |
9539 | ||
9540 | eval "$ac_cv_use_accessibility" | |
9541 | if test "$no_cache" != 1; then | |
9542 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9543 | fi | |
9544 | ||
9545 | if test "$wxUSE_ACCESSIBILITY" = 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 | ||
9555 | ||
9556 | enablestring= | |
9557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9558 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9559 | no_cache=0 | |
9560 | # Check whether --enable-palette or --disable-palette was given. | |
9561 | if test "${enable_palette+set}" = set; then | |
9562 | enableval="$enable_palette" | |
9563 | ||
9564 | if test "$enableval" = yes; then | |
9565 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9566 | else | |
9567 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9568 | fi | |
9569 | ||
9570 | else | |
9571 | ||
9572 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9573 | if test "x$LINE" != x ; then | |
9574 | eval "DEFAULT_$LINE" | |
9575 | else | |
9576 | no_cache=1 | |
9577 | fi | |
9578 | ||
9579 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9580 | ||
9581 | fi; | |
9582 | ||
9583 | eval "$ac_cv_use_palette" | |
9584 | if test "$no_cache" != 1; then | |
9585 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9586 | fi | |
9587 | ||
9588 | if test "$wxUSE_PALETTE" = yes; then | |
9589 | echo "$as_me:$LINENO: result: yes" >&5 | |
9590 | echo "${ECHO_T}yes" >&6 | |
9591 | else | |
9592 | echo "$as_me:$LINENO: result: no" >&5 | |
9593 | echo "${ECHO_T}no" >&6 | |
9594 | fi | |
9595 | ||
9596 | ||
9597 | enablestring= | |
9598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9599 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9600 | no_cache=0 | |
9601 | # Check whether --enable-image or --disable-image was given. | |
9602 | if test "${enable_image+set}" = set; then | |
9603 | enableval="$enable_image" | |
9604 | ||
9605 | if test "$enableval" = yes; then | |
9606 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9607 | else | |
9608 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9609 | fi | |
9610 | ||
9611 | else | |
9612 | ||
9613 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9614 | if test "x$LINE" != x ; then | |
9615 | eval "DEFAULT_$LINE" | |
9616 | else | |
9617 | no_cache=1 | |
9618 | fi | |
9619 | ||
9620 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9621 | ||
9622 | fi; | |
9623 | ||
9624 | eval "$ac_cv_use_image" | |
9625 | if test "$no_cache" != 1; then | |
9626 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9627 | fi | |
9628 | ||
9629 | if test "$wxUSE_IMAGE" = yes; then | |
9630 | echo "$as_me:$LINENO: result: yes" >&5 | |
9631 | echo "${ECHO_T}yes" >&6 | |
9632 | else | |
9633 | echo "$as_me:$LINENO: result: no" >&5 | |
9634 | echo "${ECHO_T}no" >&6 | |
9635 | fi | |
9636 | ||
9637 | ||
9638 | enablestring= | |
9639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9640 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9641 | no_cache=0 | |
9642 | # Check whether --enable-gif or --disable-gif was given. | |
9643 | if test "${enable_gif+set}" = set; then | |
9644 | enableval="$enable_gif" | |
9645 | ||
9646 | if test "$enableval" = yes; then | |
9647 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9648 | else | |
9649 | ac_cv_use_gif='wxUSE_GIF=no' | |
9650 | fi | |
9651 | ||
9652 | else | |
9653 | ||
9654 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9655 | if test "x$LINE" != x ; then | |
9656 | eval "DEFAULT_$LINE" | |
9657 | else | |
9658 | no_cache=1 | |
9659 | fi | |
9660 | ||
9661 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9662 | ||
9663 | fi; | |
9664 | ||
9665 | eval "$ac_cv_use_gif" | |
9666 | if test "$no_cache" != 1; then | |
9667 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9668 | fi | |
9669 | ||
9670 | if test "$wxUSE_GIF" = yes; then | |
9671 | echo "$as_me:$LINENO: result: yes" >&5 | |
9672 | echo "${ECHO_T}yes" >&6 | |
9673 | else | |
9674 | echo "$as_me:$LINENO: result: no" >&5 | |
9675 | echo "${ECHO_T}no" >&6 | |
9676 | fi | |
9677 | ||
9678 | ||
9679 | enablestring= | |
9680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9681 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9682 | no_cache=0 | |
9683 | # Check whether --enable-pcx or --disable-pcx was given. | |
9684 | if test "${enable_pcx+set}" = set; then | |
9685 | enableval="$enable_pcx" | |
9686 | ||
9687 | if test "$enableval" = yes; then | |
9688 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9689 | else | |
9690 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9691 | fi | |
9692 | ||
9693 | else | |
9694 | ||
9695 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9696 | if test "x$LINE" != x ; then | |
9697 | eval "DEFAULT_$LINE" | |
9698 | else | |
9699 | no_cache=1 | |
9700 | fi | |
9701 | ||
9702 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9703 | ||
9704 | fi; | |
9705 | ||
9706 | eval "$ac_cv_use_pcx" | |
9707 | if test "$no_cache" != 1; then | |
9708 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9709 | fi | |
9710 | ||
9711 | if test "$wxUSE_PCX" = yes; then | |
9712 | echo "$as_me:$LINENO: result: yes" >&5 | |
9713 | echo "${ECHO_T}yes" >&6 | |
9714 | else | |
9715 | echo "$as_me:$LINENO: result: no" >&5 | |
9716 | echo "${ECHO_T}no" >&6 | |
9717 | fi | |
9718 | ||
9719 | ||
9720 | enablestring= | |
9721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9722 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9723 | no_cache=0 | |
9724 | # Check whether --enable-iff or --disable-iff was given. | |
9725 | if test "${enable_iff+set}" = set; then | |
9726 | enableval="$enable_iff" | |
9727 | ||
9728 | if test "$enableval" = yes; then | |
9729 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9730 | else | |
9731 | ac_cv_use_iff='wxUSE_IFF=no' | |
9732 | fi | |
9733 | ||
9734 | else | |
9735 | ||
9736 | LINE=`grep "wxUSE_IFF" ${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_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9744 | ||
9745 | fi; | |
9746 | ||
9747 | eval "$ac_cv_use_iff" | |
9748 | if test "$no_cache" != 1; then | |
9749 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9750 | fi | |
9751 | ||
9752 | if test "$wxUSE_IFF" = 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}-pnm" >&5 | |
9763 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9764 | no_cache=0 | |
9765 | # Check whether --enable-pnm or --disable-pnm was given. | |
9766 | if test "${enable_pnm+set}" = set; then | |
9767 | enableval="$enable_pnm" | |
9768 | ||
9769 | if test "$enableval" = yes; then | |
9770 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9771 | else | |
9772 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9773 | fi | |
9774 | ||
9775 | else | |
9776 | ||
9777 | LINE=`grep "wxUSE_PNM" ${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_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9785 | ||
9786 | fi; | |
9787 | ||
9788 | eval "$ac_cv_use_pnm" | |
9789 | if test "$no_cache" != 1; then | |
9790 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9791 | fi | |
9792 | ||
9793 | if test "$wxUSE_PNM" = 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}-xpm" >&5 | |
9804 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9805 | no_cache=0 | |
9806 | # Check whether --enable-xpm or --disable-xpm was given. | |
9807 | if test "${enable_xpm+set}" = set; then | |
9808 | enableval="$enable_xpm" | |
9809 | ||
9810 | if test "$enableval" = yes; then | |
9811 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9812 | else | |
9813 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9814 | fi | |
9815 | ||
9816 | else | |
9817 | ||
9818 | LINE=`grep "wxUSE_XPM" ${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_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9826 | ||
9827 | fi; | |
9828 | ||
9829 | eval "$ac_cv_use_xpm" | |
9830 | if test "$no_cache" != 1; then | |
9831 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9832 | fi | |
9833 | ||
9834 | if test "$wxUSE_XPM" = 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}-ico_cur" >&5 | |
9845 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9846 | no_cache=0 | |
9847 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9848 | if test "${enable_ico_cur+set}" = set; then | |
9849 | enableval="$enable_ico_cur" | |
9850 | ||
9851 | if test "$enableval" = yes; then | |
9852 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9853 | else | |
9854 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9855 | fi | |
9856 | ||
9857 | else | |
9858 | ||
9859 | LINE=`grep "wxUSE_ICO_CUR" ${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_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9867 | ||
9868 | fi; | |
9869 | ||
9870 | eval "$ac_cv_use_ico_cur" | |
9871 | if test "$no_cache" != 1; then | |
9872 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9873 | fi | |
9874 | ||
9875 | if test "$wxUSE_ICO_CUR" = 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 | fi | |
9885 | ||
9886 | ||
9887 | ||
9888 | enablestring= | |
9889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9890 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9891 | no_cache=0 | |
9892 | # Check whether --enable-official_build or --disable-official_build was given. | |
9893 | if test "${enable_official_build+set}" = set; then | |
9894 | enableval="$enable_official_build" | |
9895 | ||
9896 | if test "$enableval" = yes; then | |
9897 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9898 | else | |
9899 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9900 | fi | |
9901 | ||
9902 | else | |
9903 | ||
9904 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9905 | if test "x$LINE" != x ; then | |
9906 | eval "DEFAULT_$LINE" | |
9907 | else | |
9908 | no_cache=1 | |
9909 | fi | |
9910 | ||
9911 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9912 | ||
9913 | fi; | |
9914 | ||
9915 | eval "$ac_cv_use_official_build" | |
9916 | if test "$no_cache" != 1; then | |
9917 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9918 | fi | |
9919 | ||
9920 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9921 | echo "$as_me:$LINENO: result: yes" >&5 | |
9922 | echo "${ECHO_T}yes" >&6 | |
9923 | else | |
9924 | echo "$as_me:$LINENO: result: no" >&5 | |
9925 | echo "${ECHO_T}no" >&6 | |
9926 | fi | |
9927 | ||
9928 | # Check whether --enable-vendor or --disable-vendor was given. | |
9929 | if test "${enable_vendor+set}" = set; then | |
9930 | enableval="$enable_vendor" | |
9931 | VENDOR="$enableval" | |
9932 | fi; | |
9933 | if test "x$VENDOR" = "x"; then | |
9934 | VENDOR="custom" | |
9935 | fi | |
9936 | ||
9937 | case "${host}" in | |
9938 | *-pc-os2_emx | *-pc-os2-emx ) | |
9939 | PATH_IFS=';' | |
a848cd7e SC |
9940 | ;; |
9941 | *) | |
9942 | PATH_IFS=':' | |
9943 | ;; | |
9944 | esac | |
9945 | ||
9946 | ||
9947 | ||
9948 | echo "saving argument cache $wx_arg_cache_file" | |
9949 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
9950 | ||
9951 | ||
9952 | ||
9953 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9954 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
9955 | ||
9956 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9957 | if test "$wxUSE_WINE" = "yes"; then | |
9958 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9959 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9960 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9961 | wxUSE_SHARED=no | |
9962 | fi | |
9963 | ||
9964 | if test "$wxUSE_GUI" = "yes"; then | |
9965 | ||
9966 | if test "$USE_BEOS" = 1; then | |
9967 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
9968 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9969 | { (exit 1); exit 1; }; } | |
9970 | fi | |
9971 | ||
9972 | if test "$TOOLKIT_GIVEN" = 1; then | |
9973 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9974 | var=wxUSE_$toolkit | |
9975 | eval "value=\$${var}" | |
9976 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9977 | done | |
9978 | else | |
9979 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9980 | if test "$has_toolkit_in_cache" != 1; then | |
9981 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9982 | else | |
9983 | var=DEFAULT_wxUSE_$toolkit | |
9984 | fi | |
9985 | eval "wxUSE_$toolkit=\$${var}" | |
9986 | done | |
9987 | fi | |
9988 | ||
9989 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
9990 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9991 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
9992 | ||
9993 | case "${host}" in | |
9994 | *-pc-os2_emx | *-pc-os2-emx ) | |
9995 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
9996 | esac | |
9997 | ||
9998 | case "$NUM_TOOLKITS" in | |
9999 | 1) | |
10000 | ;; | |
10001 | 0) | |
10002 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10003 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10004 | { (exit 1); exit 1; }; } | |
10005 | ;; | |
10006 | *) | |
10007 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10008 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10009 | { (exit 1); exit 1; }; } | |
10010 | esac | |
10011 | ||
10012 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10013 | var=wxUSE_$toolkit | |
10014 | eval "value=\$${var}" | |
10015 | if test "x$value" != x; then | |
10016 | cache_var=CACHE_$toolkit | |
10017 | eval "cache=\$${cache_var}" | |
10018 | if test "$cache" = 1; then | |
10019 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10020 | fi | |
10021 | if test "$value" = 1; then | |
10022 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10023 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10024 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10025 | fi | |
10026 | fi | |
10027 | done | |
10028 | else | |
10029 | if test "x$host_alias" != "x"; then | |
10030 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10031 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10032 | else | |
10033 | echo "$as_me:$LINENO: result: base only" >&5 | |
10034 | echo "${ECHO_T}base only" >&6 | |
10035 | fi | |
10036 | fi | |
10037 | ||
10038 | wants_win32=0 | |
10039 | doesnt_want_win32=0 | |
10040 | case "${host}" in | |
10041 | *-*-cygwin*) | |
10042 | if test "$wxUSE_MSW" = 1 ; then | |
10043 | wants_win32=1 | |
10044 | else | |
10045 | doesnt_want_win32=1 | |
10046 | fi | |
10047 | ;; | |
10048 | *-*-mingw*) | |
10049 | wants_win32=1 | |
10050 | ;; | |
10051 | esac | |
10052 | ||
10053 | if test "$wxUSE_WINE" = "yes"; then | |
10054 | wants_win32=1 | |
10055 | CC=winegcc | |
10056 | CXX=wineg++ | |
10057 | RESCOMP=wrc | |
10058 | LDFLAGS_GUI="-mwindows" | |
10059 | fi | |
10060 | ||
10061 | if test "$wants_win32" = 1 ; then | |
10062 | USE_UNIX=0 | |
10063 | USE_WIN32=1 | |
10064 | cat >>confdefs.h <<\_ACEOF | |
10065 | #define __WIN32__ 1 | |
10066 | _ACEOF | |
10067 | ||
10068 | cat >>confdefs.h <<\_ACEOF | |
10069 | #define __WIN95__ 1 | |
10070 | _ACEOF | |
10071 | ||
10072 | cat >>confdefs.h <<\_ACEOF | |
10073 | #define __WINDOWS__ 1 | |
10074 | _ACEOF | |
10075 | ||
10076 | cat >>confdefs.h <<\_ACEOF | |
10077 | #define __GNUWIN32__ 1 | |
10078 | _ACEOF | |
10079 | ||
10080 | cat >>confdefs.h <<\_ACEOF | |
10081 | #define STRICT 1 | |
10082 | _ACEOF | |
10083 | ||
10084 | cat >>confdefs.h <<\_ACEOF | |
10085 | #define WINVER 0x0400 | |
10086 | _ACEOF | |
10087 | ||
10088 | fi | |
10089 | if test "$doesnt_want_win32" = 1 ; then | |
10090 | USE_UNIX=1 | |
10091 | USE_WIN32=0 | |
10092 | fi | |
10093 | ||
10094 | if test "$USE_UNIX" = 1 ; then | |
10095 | wxUSE_UNIX=yes | |
10096 | cat >>confdefs.h <<\_ACEOF | |
10097 | #define __UNIX__ 1 | |
10098 | _ACEOF | |
10099 | ||
10100 | fi | |
10101 | ||
10102 | ||
10103 | cat >confcache <<\_ACEOF | |
10104 | # This file is a shell script that caches the results of configure | |
10105 | # tests run on this system so they can be shared between configure | |
10106 | # scripts and configure runs, see configure's option --config-cache. | |
10107 | # It is not useful on other systems. If it contains results you don't | |
10108 | # want to keep, you may remove or edit it. | |
10109 | # | |
10110 | # config.status only pays attention to the cache file if you give it | |
10111 | # the --recheck option to rerun configure. | |
10112 | # | |
10113 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10114 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10115 | # following values. | |
10116 | ||
10117 | _ACEOF | |
10118 | ||
10119 | # The following way of writing the cache mishandles newlines in values, | |
10120 | # but we know of no workaround that is simple, portable, and efficient. | |
10121 | # So, don't put newlines in cache variables' values. | |
10122 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10123 | # and sets the high bit in the cache file unless we assign to the vars. | |
10124 | { | |
10125 | (set) 2>&1 | | |
10126 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10127 | *ac_space=\ *) | |
10128 | # `set' does not quote correctly, so add quotes (double-quote | |
10129 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10130 | sed -n \ | |
ac1cb8d3 VS |
10131 | "s/'/'\\\\''/g; |
10132 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10133 | ;; |
10134 | *) | |
10135 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10136 | sed -n \ | |
ac1cb8d3 | 10137 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10138 | ;; |
10139 | esac; | |
10140 | } | | |
10141 | sed ' | |
10142 | t clear | |
10143 | : clear | |
10144 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10145 | t end | |
10146 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10147 | : end' >>confcache | |
10148 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10149 | if test -w $cache_file; then | |
10150 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10151 | cat confcache >$cache_file | |
10152 | else | |
10153 | echo "not updating unwritable cache $cache_file" | |
10154 | fi | |
10155 | fi | |
10156 | rm -f confcache | |
10157 | ||
10158 | if test "$build" != "$host" ; then | |
10159 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10160 | CC=$host_alias-gcc | |
10161 | CXX=$host_alias-c++ | |
10162 | AR=$host_alias-ar | |
10163 | RANLIB=$host_alias-ranlib | |
10164 | DLLTOOL=$host_alias-dlltool | |
10165 | RESCOMP=$host_alias-windres | |
10166 | LD=$host_alias-ld | |
10167 | NM=$host_alias-nm | |
10168 | STRIP=$host_alias-strip | |
10169 | else | |
10170 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10171 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10172 | { (exit 1); exit 1; }; } | |
10173 | fi | |
10174 | fi | |
10175 | ||
10176 | CFLAGS=${CFLAGS:=} | |
10177 | ac_ext=c | |
10178 | ac_cpp='$CPP $CPPFLAGS' | |
10179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10182 | if test -n "$ac_tool_prefix"; then | |
10183 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10184 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10187 | if test "${ac_cv_prog_CC+set}" = set; then | |
10188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10189 | else | |
10190 | if test -n "$CC"; then | |
10191 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10192 | else | |
10193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10194 | for as_dir in $PATH | |
10195 | do | |
10196 | IFS=$as_save_IFS | |
10197 | test -z "$as_dir" && as_dir=. | |
10198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10200 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10202 | break 2 | |
10203 | fi | |
10204 | done | |
10205 | done | |
10206 | ||
10207 | fi | |
10208 | fi | |
10209 | CC=$ac_cv_prog_CC | |
10210 | if test -n "$CC"; then | |
10211 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10212 | echo "${ECHO_T}$CC" >&6 | |
10213 | else | |
10214 | echo "$as_me:$LINENO: result: no" >&5 | |
10215 | echo "${ECHO_T}no" >&6 | |
10216 | fi | |
10217 | ||
10218 | fi | |
10219 | if test -z "$ac_cv_prog_CC"; then | |
10220 | ac_ct_CC=$CC | |
10221 | # Extract the first word of "gcc", so it can be a program name with args. | |
10222 | set dummy gcc; ac_word=$2 | |
10223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10225 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10227 | else | |
10228 | if test -n "$ac_ct_CC"; then | |
10229 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10230 | else | |
10231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10232 | for as_dir in $PATH | |
10233 | do | |
10234 | IFS=$as_save_IFS | |
10235 | test -z "$as_dir" && as_dir=. | |
10236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10238 | ac_cv_prog_ac_ct_CC="gcc" | |
10239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10240 | break 2 | |
10241 | fi | |
10242 | done | |
10243 | done | |
10244 | ||
10245 | fi | |
10246 | fi | |
10247 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10248 | if test -n "$ac_ct_CC"; then | |
10249 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10250 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10251 | else | |
10252 | echo "$as_me:$LINENO: result: no" >&5 | |
10253 | echo "${ECHO_T}no" >&6 | |
10254 | fi | |
10255 | ||
10256 | CC=$ac_ct_CC | |
10257 | else | |
10258 | CC="$ac_cv_prog_CC" | |
10259 | fi | |
10260 | ||
10261 | if test -z "$CC"; then | |
10262 | if test -n "$ac_tool_prefix"; then | |
10263 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10264 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10267 | if test "${ac_cv_prog_CC+set}" = set; then | |
10268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10269 | else | |
10270 | if test -n "$CC"; then | |
10271 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10272 | else | |
10273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10274 | for as_dir in $PATH | |
10275 | do | |
10276 | IFS=$as_save_IFS | |
10277 | test -z "$as_dir" && as_dir=. | |
10278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10280 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10282 | break 2 | |
10283 | fi | |
10284 | done | |
10285 | done | |
10286 | ||
10287 | fi | |
10288 | fi | |
10289 | CC=$ac_cv_prog_CC | |
10290 | if test -n "$CC"; then | |
10291 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10292 | echo "${ECHO_T}$CC" >&6 | |
10293 | else | |
10294 | echo "$as_me:$LINENO: result: no" >&5 | |
10295 | echo "${ECHO_T}no" >&6 | |
10296 | fi | |
10297 | ||
10298 | fi | |
10299 | if test -z "$ac_cv_prog_CC"; then | |
10300 | ac_ct_CC=$CC | |
10301 | # Extract the first word of "cc", so it can be a program name with args. | |
10302 | set dummy cc; ac_word=$2 | |
10303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10305 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10307 | else | |
10308 | if test -n "$ac_ct_CC"; then | |
10309 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10310 | else | |
10311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10312 | for as_dir in $PATH | |
10313 | do | |
10314 | IFS=$as_save_IFS | |
10315 | test -z "$as_dir" && as_dir=. | |
10316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10318 | ac_cv_prog_ac_ct_CC="cc" | |
10319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10320 | break 2 | |
10321 | fi | |
10322 | done | |
10323 | done | |
10324 | ||
10325 | fi | |
10326 | fi | |
10327 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10328 | if test -n "$ac_ct_CC"; then | |
10329 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10330 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10331 | else | |
10332 | echo "$as_me:$LINENO: result: no" >&5 | |
10333 | echo "${ECHO_T}no" >&6 | |
10334 | fi | |
10335 | ||
10336 | CC=$ac_ct_CC | |
10337 | else | |
10338 | CC="$ac_cv_prog_CC" | |
10339 | fi | |
10340 | ||
10341 | fi | |
10342 | if test -z "$CC"; then | |
10343 | # Extract the first word of "cc", so it can be a program name with args. | |
10344 | set dummy cc; ac_word=$2 | |
10345 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10347 | if test "${ac_cv_prog_CC+set}" = set; then | |
10348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10349 | else | |
10350 | if test -n "$CC"; then | |
10351 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10352 | else | |
10353 | ac_prog_rejected=no | |
10354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10355 | for as_dir in $PATH | |
10356 | do | |
10357 | IFS=$as_save_IFS | |
10358 | test -z "$as_dir" && as_dir=. | |
10359 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10361 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10362 | ac_prog_rejected=yes | |
10363 | continue | |
10364 | fi | |
10365 | ac_cv_prog_CC="cc" | |
10366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10367 | break 2 | |
10368 | fi | |
10369 | done | |
10370 | done | |
10371 | ||
10372 | if test $ac_prog_rejected = yes; then | |
10373 | # We found a bogon in the path, so make sure we never use it. | |
10374 | set dummy $ac_cv_prog_CC | |
10375 | shift | |
10376 | if test $# != 0; then | |
10377 | # We chose a different compiler from the bogus one. | |
10378 | # However, it has the same basename, so the bogon will be chosen | |
10379 | # first if we set CC to just the basename; use the full file name. | |
10380 | shift | |
10381 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10382 | fi | |
10383 | fi | |
10384 | fi | |
10385 | fi | |
10386 | CC=$ac_cv_prog_CC | |
10387 | if test -n "$CC"; then | |
10388 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10389 | echo "${ECHO_T}$CC" >&6 | |
10390 | else | |
10391 | echo "$as_me:$LINENO: result: no" >&5 | |
10392 | echo "${ECHO_T}no" >&6 | |
10393 | fi | |
10394 | ||
10395 | fi | |
10396 | if test -z "$CC"; then | |
10397 | if test -n "$ac_tool_prefix"; then | |
10398 | for ac_prog in cl | |
10399 | do | |
10400 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10401 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10402 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10404 | if test "${ac_cv_prog_CC+set}" = set; then | |
10405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10406 | else | |
10407 | if test -n "$CC"; then | |
10408 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10409 | else | |
10410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10411 | for as_dir in $PATH | |
10412 | do | |
10413 | IFS=$as_save_IFS | |
10414 | test -z "$as_dir" && as_dir=. | |
10415 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10416 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10417 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10418 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10419 | break 2 | |
10420 | fi | |
10421 | done | |
10422 | done | |
10423 | ||
10424 | fi | |
10425 | fi | |
10426 | CC=$ac_cv_prog_CC | |
10427 | if test -n "$CC"; then | |
10428 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10429 | echo "${ECHO_T}$CC" >&6 | |
10430 | else | |
10431 | echo "$as_me:$LINENO: result: no" >&5 | |
10432 | echo "${ECHO_T}no" >&6 | |
10433 | fi | |
10434 | ||
10435 | test -n "$CC" && break | |
10436 | done | |
10437 | fi | |
10438 | if test -z "$CC"; then | |
10439 | ac_ct_CC=$CC | |
10440 | for ac_prog in cl | |
10441 | do | |
10442 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10443 | set dummy $ac_prog; ac_word=$2 | |
10444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10446 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10448 | else | |
10449 | if test -n "$ac_ct_CC"; then | |
10450 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10451 | else | |
10452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10453 | for as_dir in $PATH | |
10454 | do | |
10455 | IFS=$as_save_IFS | |
10456 | test -z "$as_dir" && as_dir=. | |
10457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10459 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10461 | break 2 | |
10462 | fi | |
10463 | done | |
10464 | done | |
10465 | ||
10466 | fi | |
10467 | fi | |
10468 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10469 | if test -n "$ac_ct_CC"; then | |
10470 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10471 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10472 | else | |
10473 | echo "$as_me:$LINENO: result: no" >&5 | |
10474 | echo "${ECHO_T}no" >&6 | |
10475 | fi | |
10476 | ||
10477 | test -n "$ac_ct_CC" && break | |
10478 | done | |
10479 | ||
10480 | CC=$ac_ct_CC | |
10481 | fi | |
10482 | ||
10483 | fi | |
10484 | ||
10485 | ||
10486 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10487 | See \`config.log' for more details." >&5 | |
10488 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10489 | See \`config.log' for more details." >&2;} | |
10490 | { (exit 1); exit 1; }; } | |
10491 | ||
10492 | # Provide some information about the compiler. | |
10493 | echo "$as_me:$LINENO:" \ | |
10494 | "checking for C compiler version" >&5 | |
10495 | ac_compiler=`set X $ac_compile; echo $2` | |
10496 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10497 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10498 | ac_status=$? | |
10499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10500 | (exit $ac_status); } | |
10501 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10502 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10503 | ac_status=$? | |
10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10505 | (exit $ac_status); } | |
10506 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10507 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10508 | ac_status=$? | |
10509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10510 | (exit $ac_status); } | |
10511 | ||
10512 | cat >conftest.$ac_ext <<_ACEOF | |
10513 | /* confdefs.h. */ | |
10514 | _ACEOF | |
10515 | cat confdefs.h >>conftest.$ac_ext | |
10516 | cat >>conftest.$ac_ext <<_ACEOF | |
10517 | /* end confdefs.h. */ | |
10518 | ||
10519 | int | |
10520 | main () | |
10521 | { | |
10522 | ||
10523 | ; | |
10524 | return 0; | |
10525 | } | |
10526 | _ACEOF | |
10527 | ac_clean_files_save=$ac_clean_files | |
10528 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10529 | # Try to create an executable without -o first, disregard a.out. | |
10530 | # It will help us diagnose broken compilers, and finding out an intuition | |
10531 | # of exeext. | |
ac1cb8d3 VS |
10532 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10533 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10534 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10535 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10536 | (eval $ac_link_default) 2>&5 | |
10537 | ac_status=$? | |
10538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10539 | (exit $ac_status); }; then | |
10540 | # Find the output, starting from the most likely. This scheme is | |
10541 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10542 | # resort. | |
10543 | ||
10544 | # Be careful to initialize this variable, since it used to be cached. | |
10545 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10546 | ac_cv_exeext= | |
10547 | # b.out is created by i960 compilers. | |
10548 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10549 | do | |
10550 | test -f "$ac_file" || continue | |
10551 | case $ac_file in | |
10552 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10553 | ;; |
a848cd7e | 10554 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10555 | # This is the source file. |
10556 | ;; | |
a848cd7e | 10557 | [ab].out ) |
ac1cb8d3 VS |
10558 | # We found the default executable, but exeext='' is most |
10559 | # certainly right. | |
10560 | break;; | |
a848cd7e | 10561 | *.* ) |
ac1cb8d3 VS |
10562 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10563 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10564 | # but it would be cool to find out if it's true. Does anybody | |
10565 | # maintain Libtool? --akim. | |
10566 | export ac_cv_exeext | |
10567 | break;; | |
a848cd7e | 10568 | * ) |
ac1cb8d3 | 10569 | break;; |
a848cd7e SC |
10570 | esac |
10571 | done | |
10572 | else | |
10573 | echo "$as_me: failed program was:" >&5 | |
10574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10575 | ||
10576 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10577 | See \`config.log' for more details." >&5 | |
10578 | echo "$as_me: error: C compiler cannot create executables | |
10579 | See \`config.log' for more details." >&2;} | |
10580 | { (exit 77); exit 77; }; } | |
10581 | fi | |
10582 | ||
10583 | ac_exeext=$ac_cv_exeext | |
10584 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10585 | echo "${ECHO_T}$ac_file" >&6 | |
10586 | ||
10587 | # Check the compiler produces executables we can run. If not, either | |
10588 | # the compiler is broken, or we cross compile. | |
10589 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10590 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10591 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10592 | # If not cross compiling, check that we can run a simple program. | |
10593 | if test "$cross_compiling" != yes; then | |
10594 | if { ac_try='./$ac_file' | |
10595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10596 | (eval $ac_try) 2>&5 | |
10597 | ac_status=$? | |
10598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10599 | (exit $ac_status); }; }; then | |
10600 | cross_compiling=no | |
10601 | else | |
10602 | if test "$cross_compiling" = maybe; then | |
10603 | cross_compiling=yes | |
10604 | else | |
10605 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10606 | If you meant to cross compile, use \`--host'. | |
10607 | See \`config.log' for more details." >&5 | |
10608 | echo "$as_me: error: cannot run C compiled programs. | |
10609 | If you meant to cross compile, use \`--host'. | |
10610 | See \`config.log' for more details." >&2;} | |
10611 | { (exit 1); exit 1; }; } | |
10612 | fi | |
10613 | fi | |
10614 | fi | |
10615 | echo "$as_me:$LINENO: result: yes" >&5 | |
10616 | echo "${ECHO_T}yes" >&6 | |
10617 | ||
10618 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10619 | ac_clean_files=$ac_clean_files_save | |
10620 | # Check the compiler produces executables we can run. If not, either | |
10621 | # the compiler is broken, or we cross compile. | |
10622 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10623 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10624 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10625 | echo "${ECHO_T}$cross_compiling" >&6 | |
10626 | ||
10627 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10628 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10630 | (eval $ac_link) 2>&5 | |
10631 | ac_status=$? | |
10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10633 | (exit $ac_status); }; then | |
10634 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10635 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10636 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10637 | # `rm'. | |
10638 | for ac_file in conftest.exe conftest conftest.*; do | |
10639 | test -f "$ac_file" || continue | |
10640 | case $ac_file in | |
10641 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10642 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10643 | export ac_cv_exeext |
10644 | break;; | |
a848cd7e SC |
10645 | * ) break;; |
10646 | esac | |
10647 | done | |
10648 | else | |
10649 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10650 | See \`config.log' for more details." >&5 | |
10651 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10652 | See \`config.log' for more details." >&2;} | |
10653 | { (exit 1); exit 1; }; } | |
10654 | fi | |
10655 | ||
10656 | rm -f conftest$ac_cv_exeext | |
10657 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10658 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10659 | ||
10660 | rm -f conftest.$ac_ext | |
10661 | EXEEXT=$ac_cv_exeext | |
10662 | ac_exeext=$EXEEXT | |
10663 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10664 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10665 | if test "${ac_cv_objext+set}" = set; then | |
10666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10667 | else | |
10668 | cat >conftest.$ac_ext <<_ACEOF | |
10669 | /* confdefs.h. */ | |
10670 | _ACEOF | |
10671 | cat confdefs.h >>conftest.$ac_ext | |
10672 | cat >>conftest.$ac_ext <<_ACEOF | |
10673 | /* end confdefs.h. */ | |
10674 | ||
10675 | int | |
10676 | main () | |
10677 | { | |
10678 | ||
10679 | ; | |
10680 | return 0; | |
10681 | } | |
10682 | _ACEOF | |
10683 | rm -f conftest.o conftest.obj | |
10684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10685 | (eval $ac_compile) 2>&5 | |
10686 | ac_status=$? | |
10687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10688 | (exit $ac_status); }; then | |
10689 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10690 | case $ac_file in | |
10691 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10692 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10693 | break;; | |
10694 | esac | |
10695 | done | |
10696 | else | |
10697 | echo "$as_me: failed program was:" >&5 | |
10698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10699 | ||
10700 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10701 | See \`config.log' for more details." >&5 | |
10702 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10703 | See \`config.log' for more details." >&2;} | |
10704 | { (exit 1); exit 1; }; } | |
10705 | fi | |
10706 | ||
10707 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10708 | fi | |
10709 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10710 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10711 | OBJEXT=$ac_cv_objext | |
10712 | ac_objext=$OBJEXT | |
10713 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10714 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10715 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10717 | else | |
10718 | cat >conftest.$ac_ext <<_ACEOF | |
10719 | /* confdefs.h. */ | |
10720 | _ACEOF | |
10721 | cat confdefs.h >>conftest.$ac_ext | |
10722 | cat >>conftest.$ac_ext <<_ACEOF | |
10723 | /* end confdefs.h. */ | |
10724 | ||
10725 | int | |
10726 | main () | |
10727 | { | |
10728 | #ifndef __GNUC__ | |
10729 | choke me | |
10730 | #endif | |
10731 | ||
10732 | ; | |
10733 | return 0; | |
10734 | } | |
10735 | _ACEOF | |
10736 | rm -f conftest.$ac_objext | |
10737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10738 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10739 | ac_status=$? |
ac1cb8d3 VS |
10740 | grep -v '^ *+' conftest.er1 >conftest.err |
10741 | rm -f conftest.er1 | |
10742 | cat conftest.err >&5 | |
a848cd7e SC |
10743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10744 | (exit $ac_status); } && | |
ac1cb8d3 VS |
10745 | { ac_try='test -z "$ac_c_werror_flag" |
10746 | || test ! -s conftest.err' | |
10747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10748 | (eval $ac_try) 2>&5 | |
10749 | ac_status=$? | |
10750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10751 | (exit $ac_status); }; } && | |
10752 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10754 | (eval $ac_try) 2>&5 | |
10755 | ac_status=$? | |
10756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10757 | (exit $ac_status); }; }; then | |
10758 | ac_compiler_gnu=yes | |
10759 | else | |
10760 | echo "$as_me: failed program was:" >&5 | |
10761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10762 | ||
10763 | ac_compiler_gnu=no | |
10764 | fi | |
ac1cb8d3 | 10765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10766 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10767 | ||
10768 | fi | |
10769 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10770 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10771 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10772 | ac_test_CFLAGS=${CFLAGS+set} | |
10773 | ac_save_CFLAGS=$CFLAGS | |
10774 | CFLAGS="-g" | |
10775 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10776 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10777 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10779 | else | |
10780 | cat >conftest.$ac_ext <<_ACEOF | |
10781 | /* confdefs.h. */ | |
10782 | _ACEOF | |
10783 | cat confdefs.h >>conftest.$ac_ext | |
10784 | cat >>conftest.$ac_ext <<_ACEOF | |
10785 | /* end confdefs.h. */ | |
10786 | ||
10787 | int | |
10788 | main () | |
10789 | { | |
10790 | ||
10791 | ; | |
10792 | return 0; | |
10793 | } | |
10794 | _ACEOF | |
10795 | rm -f conftest.$ac_objext | |
10796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10797 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10798 | ac_status=$? |
ac1cb8d3 VS |
10799 | grep -v '^ *+' conftest.er1 >conftest.err |
10800 | rm -f conftest.er1 | |
10801 | cat conftest.err >&5 | |
a848cd7e SC |
10802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10803 | (exit $ac_status); } && | |
ac1cb8d3 VS |
10804 | { ac_try='test -z "$ac_c_werror_flag" |
10805 | || test ! -s conftest.err' | |
10806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10807 | (eval $ac_try) 2>&5 | |
10808 | ac_status=$? | |
10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10810 | (exit $ac_status); }; } && | |
10811 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10813 | (eval $ac_try) 2>&5 | |
10814 | ac_status=$? | |
10815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10816 | (exit $ac_status); }; }; then | |
10817 | ac_cv_prog_cc_g=yes | |
10818 | else | |
10819 | echo "$as_me: failed program was:" >&5 | |
10820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10821 | ||
10822 | ac_cv_prog_cc_g=no | |
10823 | fi | |
ac1cb8d3 | 10824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10825 | fi |
10826 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10827 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10828 | if test "$ac_test_CFLAGS" = set; then | |
10829 | CFLAGS=$ac_save_CFLAGS | |
10830 | elif test $ac_cv_prog_cc_g = yes; then | |
10831 | if test "$GCC" = yes; then | |
10832 | CFLAGS="-g -O2" | |
10833 | else | |
10834 | CFLAGS="-g" | |
10835 | fi | |
10836 | else | |
10837 | if test "$GCC" = yes; then | |
10838 | CFLAGS="-O2" | |
10839 | else | |
10840 | CFLAGS= | |
10841 | fi | |
10842 | fi | |
10843 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10844 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10845 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10847 | else | |
10848 | ac_cv_prog_cc_stdc=no | |
10849 | ac_save_CC=$CC | |
10850 | cat >conftest.$ac_ext <<_ACEOF | |
10851 | /* confdefs.h. */ | |
10852 | _ACEOF | |
10853 | cat confdefs.h >>conftest.$ac_ext | |
10854 | cat >>conftest.$ac_ext <<_ACEOF | |
10855 | /* end confdefs.h. */ | |
10856 | #include <stdarg.h> | |
10857 | #include <stdio.h> | |
10858 | #include <sys/types.h> | |
10859 | #include <sys/stat.h> | |
10860 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10861 | struct buf { int x; }; | |
10862 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10863 | static char *e (p, i) | |
10864 | char **p; | |
10865 | int i; | |
10866 | { | |
10867 | return p[i]; | |
10868 | } | |
10869 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10870 | { | |
10871 | char *s; | |
10872 | va_list v; | |
10873 | va_start (v,p); | |
10874 | s = g (p, va_arg (v,int)); | |
10875 | va_end (v); | |
10876 | return s; | |
10877 | } | |
ac1cb8d3 VS |
10878 | |
10879 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10880 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10881 | These don't provoke an error unfortunately, instead are silently treated | |
10882 | as 'x'. The following induces an error, until -std1 is added to get | |
10883 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10884 | array size at least. It's necessary to write '\x00'==0 to get something | |
10885 | that's true only with -std1. */ | |
10886 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10887 | ||
a848cd7e SC |
10888 | int test (int i, double x); |
10889 | struct s1 {int (*f) (int a);}; | |
10890 | struct s2 {int (*f) (double a);}; | |
10891 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10892 | int argc; | |
10893 | char **argv; | |
10894 | int | |
10895 | main () | |
10896 | { | |
10897 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10898 | ; | |
10899 | return 0; | |
10900 | } | |
10901 | _ACEOF | |
10902 | # Don't try gcc -ansi; that turns off useful extensions and | |
10903 | # breaks some systems' header files. | |
10904 | # AIX -qlanglvl=ansi | |
10905 | # Ultrix and OSF/1 -std1 | |
10906 | # HP-UX 10.20 and later -Ae | |
10907 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10908 | # SVR4 -Xc -D__EXTENSIONS__ | |
10909 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10910 | do | |
10911 | CC="$ac_save_CC $ac_arg" | |
10912 | rm -f conftest.$ac_objext | |
10913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10914 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10915 | ac_status=$? |
ac1cb8d3 VS |
10916 | grep -v '^ *+' conftest.er1 >conftest.err |
10917 | rm -f conftest.er1 | |
10918 | cat conftest.err >&5 | |
a848cd7e SC |
10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10920 | (exit $ac_status); } && | |
ac1cb8d3 VS |
10921 | { ac_try='test -z "$ac_c_werror_flag" |
10922 | || test ! -s conftest.err' | |
10923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10924 | (eval $ac_try) 2>&5 | |
10925 | ac_status=$? | |
10926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10927 | (exit $ac_status); }; } && | |
10928 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10930 | (eval $ac_try) 2>&5 | |
10931 | ac_status=$? | |
10932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10933 | (exit $ac_status); }; }; then | |
10934 | ac_cv_prog_cc_stdc=$ac_arg | |
10935 | break | |
10936 | else | |
10937 | echo "$as_me: failed program was:" >&5 | |
10938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10939 | ||
10940 | fi | |
ac1cb8d3 | 10941 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
10942 | done |
10943 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10944 | CC=$ac_save_CC | |
10945 | ||
10946 | fi | |
10947 | ||
10948 | case "x$ac_cv_prog_cc_stdc" in | |
10949 | x|xno) | |
10950 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10951 | echo "${ECHO_T}none needed" >&6 ;; | |
10952 | *) | |
10953 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10954 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10955 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10956 | esac | |
10957 | ||
10958 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10959 | # in C++ we need to declare it. In case someone uses the same compiler | |
10960 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10961 | # the declaration of exit, since it's the most demanding environment. | |
10962 | cat >conftest.$ac_ext <<_ACEOF | |
10963 | #ifndef __cplusplus | |
10964 | choke me | |
10965 | #endif | |
10966 | _ACEOF | |
10967 | rm -f conftest.$ac_objext | |
10968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10969 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10970 | ac_status=$? |
ac1cb8d3 VS |
10971 | grep -v '^ *+' conftest.er1 >conftest.err |
10972 | rm -f conftest.er1 | |
10973 | cat conftest.err >&5 | |
a848cd7e SC |
10974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10975 | (exit $ac_status); } && | |
ac1cb8d3 VS |
10976 | { ac_try='test -z "$ac_c_werror_flag" |
10977 | || test ! -s conftest.err' | |
10978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10979 | (eval $ac_try) 2>&5 | |
10980 | ac_status=$? | |
10981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10982 | (exit $ac_status); }; } && | |
10983 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10985 | (eval $ac_try) 2>&5 | |
10986 | ac_status=$? | |
10987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10988 | (exit $ac_status); }; }; then | |
10989 | for ac_declaration in \ | |
ac1cb8d3 | 10990 | '' \ |
a848cd7e SC |
10991 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10992 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10993 | 'extern "C" void exit (int) throw ();' \ | |
10994 | 'extern "C" void exit (int);' \ | |
10995 | 'void exit (int);' | |
10996 | do | |
10997 | cat >conftest.$ac_ext <<_ACEOF | |
10998 | /* confdefs.h. */ | |
10999 | _ACEOF | |
11000 | cat confdefs.h >>conftest.$ac_ext | |
11001 | cat >>conftest.$ac_ext <<_ACEOF | |
11002 | /* end confdefs.h. */ | |
de59c161 | 11003 | $ac_declaration |
ac1cb8d3 | 11004 | #include <stdlib.h> |
a848cd7e SC |
11005 | int |
11006 | main () | |
11007 | { | |
11008 | exit (42); | |
11009 | ; | |
11010 | return 0; | |
11011 | } | |
11012 | _ACEOF | |
11013 | rm -f conftest.$ac_objext | |
11014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11016 | ac_status=$? |
ac1cb8d3 VS |
11017 | grep -v '^ *+' conftest.er1 >conftest.err |
11018 | rm -f conftest.er1 | |
11019 | cat conftest.err >&5 | |
a848cd7e SC |
11020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11021 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11022 | { ac_try='test -z "$ac_c_werror_flag" |
11023 | || test ! -s conftest.err' | |
11024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11025 | (eval $ac_try) 2>&5 | |
11026 | ac_status=$? | |
11027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11028 | (exit $ac_status); }; } && | |
11029 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11031 | (eval $ac_try) 2>&5 | |
11032 | ac_status=$? | |
11033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11034 | (exit $ac_status); }; }; then | |
11035 | : | |
11036 | else | |
11037 | echo "$as_me: failed program was:" >&5 | |
11038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11039 | ||
11040 | continue | |
11041 | fi | |
ac1cb8d3 | 11042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11043 | cat >conftest.$ac_ext <<_ACEOF |
11044 | /* confdefs.h. */ | |
11045 | _ACEOF | |
11046 | cat confdefs.h >>conftest.$ac_ext | |
11047 | cat >>conftest.$ac_ext <<_ACEOF | |
11048 | /* end confdefs.h. */ | |
11049 | $ac_declaration | |
11050 | int | |
11051 | main () | |
11052 | { | |
11053 | exit (42); | |
11054 | ; | |
11055 | return 0; | |
11056 | } | |
11057 | _ACEOF | |
11058 | rm -f conftest.$ac_objext | |
11059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11060 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11061 | ac_status=$? |
ac1cb8d3 VS |
11062 | grep -v '^ *+' conftest.er1 >conftest.err |
11063 | rm -f conftest.er1 | |
11064 | cat conftest.err >&5 | |
a848cd7e SC |
11065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11066 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11067 | { ac_try='test -z "$ac_c_werror_flag" |
11068 | || test ! -s conftest.err' | |
11069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11070 | (eval $ac_try) 2>&5 | |
11071 | ac_status=$? | |
11072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11073 | (exit $ac_status); }; } && | |
11074 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11076 | (eval $ac_try) 2>&5 | |
11077 | ac_status=$? | |
11078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11079 | (exit $ac_status); }; }; then | |
11080 | break | |
11081 | else | |
11082 | echo "$as_me: failed program was:" >&5 | |
11083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11084 | ||
11085 | fi | |
ac1cb8d3 | 11086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11087 | done |
11088 | rm -f conftest* | |
11089 | if test -n "$ac_declaration"; then | |
11090 | echo '#ifdef __cplusplus' >>confdefs.h | |
11091 | echo $ac_declaration >>confdefs.h | |
11092 | echo '#endif' >>confdefs.h | |
11093 | fi | |
11094 | ||
11095 | else | |
11096 | echo "$as_me: failed program was:" >&5 | |
11097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11098 | ||
11099 | fi | |
ac1cb8d3 | 11100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11101 | ac_ext=c |
11102 | ac_cpp='$CPP $CPPFLAGS' | |
11103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11106 | ||
11107 | ||
11108 | ||
11109 | ac_ext=c | |
11110 | ac_cpp='$CPP $CPPFLAGS' | |
11111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11114 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11115 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11116 | # On Suns, sometimes $CPP names a directory. | |
11117 | if test -n "$CPP" && test -d "$CPP"; then | |
11118 | CPP= | |
11119 | fi | |
11120 | if test -z "$CPP"; then | |
11121 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11123 | else | |
11124 | # Double quotes because CPP needs to be expanded | |
11125 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11126 | do | |
11127 | ac_preproc_ok=false | |
11128 | for ac_c_preproc_warn_flag in '' yes | |
11129 | do | |
11130 | # Use a header file that comes with gcc, so configuring glibc | |
11131 | # with a fresh cross-compiler works. | |
11132 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11133 | # <limits.h> exists even on freestanding compilers. | |
11134 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11135 | # not just through cpp. "Syntax error" is here to catch this case. | |
11136 | cat >conftest.$ac_ext <<_ACEOF | |
11137 | /* confdefs.h. */ | |
11138 | _ACEOF | |
11139 | cat confdefs.h >>conftest.$ac_ext | |
11140 | cat >>conftest.$ac_ext <<_ACEOF | |
11141 | /* end confdefs.h. */ | |
11142 | #ifdef __STDC__ | |
11143 | # include <limits.h> | |
11144 | #else | |
11145 | # include <assert.h> | |
11146 | #endif | |
ac1cb8d3 | 11147 | Syntax error |
a848cd7e SC |
11148 | _ACEOF |
11149 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11150 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11151 | ac_status=$? | |
11152 | grep -v '^ *+' conftest.er1 >conftest.err | |
11153 | rm -f conftest.er1 | |
11154 | cat conftest.err >&5 | |
11155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11156 | (exit $ac_status); } >/dev/null; then | |
11157 | if test -s conftest.err; then | |
11158 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11159 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11160 | else |
11161 | ac_cpp_err= | |
11162 | fi | |
11163 | else | |
11164 | ac_cpp_err=yes | |
11165 | fi | |
11166 | if test -z "$ac_cpp_err"; then | |
11167 | : | |
11168 | else | |
11169 | echo "$as_me: failed program was:" >&5 | |
11170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11171 | ||
11172 | # Broken: fails on valid input. | |
11173 | continue | |
11174 | fi | |
11175 | rm -f conftest.err conftest.$ac_ext | |
11176 | ||
11177 | # OK, works on sane cases. Now check whether non-existent headers | |
11178 | # can be detected and how. | |
11179 | cat >conftest.$ac_ext <<_ACEOF | |
11180 | /* confdefs.h. */ | |
11181 | _ACEOF | |
11182 | cat confdefs.h >>conftest.$ac_ext | |
11183 | cat >>conftest.$ac_ext <<_ACEOF | |
11184 | /* end confdefs.h. */ | |
11185 | #include <ac_nonexistent.h> | |
11186 | _ACEOF | |
11187 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11188 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11189 | ac_status=$? | |
11190 | grep -v '^ *+' conftest.er1 >conftest.err | |
11191 | rm -f conftest.er1 | |
11192 | cat conftest.err >&5 | |
11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11194 | (exit $ac_status); } >/dev/null; then | |
11195 | if test -s conftest.err; then | |
11196 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11197 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11198 | else |
11199 | ac_cpp_err= | |
11200 | fi | |
11201 | else | |
11202 | ac_cpp_err=yes | |
11203 | fi | |
11204 | if test -z "$ac_cpp_err"; then | |
11205 | # Broken: success on invalid input. | |
11206 | continue | |
11207 | else | |
11208 | echo "$as_me: failed program was:" >&5 | |
11209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11210 | ||
11211 | # Passes both tests. | |
11212 | ac_preproc_ok=: | |
11213 | break | |
11214 | fi | |
11215 | rm -f conftest.err conftest.$ac_ext | |
11216 | ||
11217 | done | |
11218 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11219 | rm -f conftest.err conftest.$ac_ext | |
11220 | if $ac_preproc_ok; then | |
11221 | break | |
11222 | fi | |
11223 | ||
11224 | done | |
11225 | ac_cv_prog_CPP=$CPP | |
11226 | ||
11227 | fi | |
11228 | CPP=$ac_cv_prog_CPP | |
11229 | else | |
11230 | ac_cv_prog_CPP=$CPP | |
11231 | fi | |
11232 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11233 | echo "${ECHO_T}$CPP" >&6 | |
11234 | ac_preproc_ok=false | |
11235 | for ac_c_preproc_warn_flag in '' yes | |
11236 | do | |
11237 | # Use a header file that comes with gcc, so configuring glibc | |
11238 | # with a fresh cross-compiler works. | |
11239 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11240 | # <limits.h> exists even on freestanding compilers. | |
11241 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11242 | # not just through cpp. "Syntax error" is here to catch this case. | |
11243 | cat >conftest.$ac_ext <<_ACEOF | |
11244 | /* confdefs.h. */ | |
11245 | _ACEOF | |
11246 | cat confdefs.h >>conftest.$ac_ext | |
11247 | cat >>conftest.$ac_ext <<_ACEOF | |
11248 | /* end confdefs.h. */ | |
11249 | #ifdef __STDC__ | |
11250 | # include <limits.h> | |
11251 | #else | |
11252 | # include <assert.h> | |
11253 | #endif | |
ac1cb8d3 | 11254 | Syntax error |
a848cd7e SC |
11255 | _ACEOF |
11256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11258 | ac_status=$? | |
11259 | grep -v '^ *+' conftest.er1 >conftest.err | |
11260 | rm -f conftest.er1 | |
11261 | cat conftest.err >&5 | |
11262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11263 | (exit $ac_status); } >/dev/null; then | |
11264 | if test -s conftest.err; then | |
11265 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11266 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11267 | else |
11268 | ac_cpp_err= | |
11269 | fi | |
11270 | else | |
11271 | ac_cpp_err=yes | |
11272 | fi | |
11273 | if test -z "$ac_cpp_err"; then | |
11274 | : | |
11275 | else | |
11276 | echo "$as_me: failed program was:" >&5 | |
11277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11278 | ||
11279 | # Broken: fails on valid input. | |
11280 | continue | |
11281 | fi | |
11282 | rm -f conftest.err conftest.$ac_ext | |
11283 | ||
11284 | # OK, works on sane cases. Now check whether non-existent headers | |
11285 | # can be detected and how. | |
11286 | cat >conftest.$ac_ext <<_ACEOF | |
11287 | /* confdefs.h. */ | |
11288 | _ACEOF | |
11289 | cat confdefs.h >>conftest.$ac_ext | |
11290 | cat >>conftest.$ac_ext <<_ACEOF | |
11291 | /* end confdefs.h. */ | |
11292 | #include <ac_nonexistent.h> | |
11293 | _ACEOF | |
11294 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11295 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11296 | ac_status=$? | |
11297 | grep -v '^ *+' conftest.er1 >conftest.err | |
11298 | rm -f conftest.er1 | |
11299 | cat conftest.err >&5 | |
11300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11301 | (exit $ac_status); } >/dev/null; then | |
11302 | if test -s conftest.err; then | |
11303 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11304 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11305 | else |
11306 | ac_cpp_err= | |
11307 | fi | |
11308 | else | |
11309 | ac_cpp_err=yes | |
11310 | fi | |
11311 | if test -z "$ac_cpp_err"; then | |
11312 | # Broken: success on invalid input. | |
11313 | continue | |
11314 | else | |
11315 | echo "$as_me: failed program was:" >&5 | |
11316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11317 | ||
11318 | # Passes both tests. | |
11319 | ac_preproc_ok=: | |
11320 | break | |
11321 | fi | |
11322 | rm -f conftest.err conftest.$ac_ext | |
11323 | ||
11324 | done | |
11325 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11326 | rm -f conftest.err conftest.$ac_ext | |
11327 | if $ac_preproc_ok; then | |
11328 | : | |
11329 | else | |
11330 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11331 | See \`config.log' for more details." >&5 | |
11332 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11333 | See \`config.log' for more details." >&2;} | |
11334 | { (exit 1); exit 1; }; } | |
11335 | fi | |
11336 | ||
11337 | ac_ext=c | |
11338 | ac_cpp='$CPP $CPPFLAGS' | |
11339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11342 | ||
11343 | ||
11344 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11345 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11346 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11348 | else | |
11349 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11350 | then ac_cv_prog_egrep='grep -E' | |
11351 | else ac_cv_prog_egrep='egrep' | |
11352 | fi | |
11353 | fi | |
11354 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11355 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11356 | EGREP=$ac_cv_prog_egrep | |
11357 | ||
11358 | ||
11359 | if test $ac_cv_c_compiler_gnu = yes; then | |
11360 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11361 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11362 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11364 | else | |
11365 | ac_pattern="Autoconf.*'x'" | |
11366 | cat >conftest.$ac_ext <<_ACEOF | |
11367 | /* confdefs.h. */ | |
11368 | _ACEOF | |
11369 | cat confdefs.h >>conftest.$ac_ext | |
11370 | cat >>conftest.$ac_ext <<_ACEOF | |
11371 | /* end confdefs.h. */ | |
11372 | #include <sgtty.h> | |
11373 | Autoconf TIOCGETP | |
11374 | _ACEOF | |
11375 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11376 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11377 | ac_cv_prog_gcc_traditional=yes | |
11378 | else | |
11379 | ac_cv_prog_gcc_traditional=no | |
11380 | fi | |
11381 | rm -f conftest* | |
11382 | ||
11383 | ||
11384 | if test $ac_cv_prog_gcc_traditional = no; then | |
11385 | cat >conftest.$ac_ext <<_ACEOF | |
11386 | /* confdefs.h. */ | |
11387 | _ACEOF | |
11388 | cat confdefs.h >>conftest.$ac_ext | |
11389 | cat >>conftest.$ac_ext <<_ACEOF | |
11390 | /* end confdefs.h. */ | |
11391 | #include <termio.h> | |
11392 | Autoconf TCGETA | |
11393 | _ACEOF | |
11394 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11395 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11396 | ac_cv_prog_gcc_traditional=yes | |
11397 | fi | |
11398 | rm -f conftest* | |
11399 | ||
11400 | fi | |
11401 | fi | |
11402 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11403 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11404 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11405 | CC="$CC -traditional" | |
11406 | fi | |
11407 | fi | |
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ac_ext=cc | |
11413 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11414 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11415 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11416 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11417 | ||
11418 | ||
11419 | CXXFLAGS=${CXXFLAGS:=} | |
11420 | ac_ext=cc | |
11421 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11422 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11423 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11424 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11425 | if test -n "$ac_tool_prefix"; then | |
11426 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11427 | do | |
11428 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11429 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11430 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11432 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11434 | else | |
11435 | if test -n "$CXX"; then | |
11436 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11437 | else | |
11438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11439 | for as_dir in $PATH | |
11440 | do | |
11441 | IFS=$as_save_IFS | |
11442 | test -z "$as_dir" && as_dir=. | |
11443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11444 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11445 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11447 | break 2 | |
11448 | fi | |
11449 | done | |
11450 | done | |
11451 | ||
11452 | fi | |
11453 | fi | |
11454 | CXX=$ac_cv_prog_CXX | |
11455 | if test -n "$CXX"; then | |
11456 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11457 | echo "${ECHO_T}$CXX" >&6 | |
11458 | else | |
11459 | echo "$as_me:$LINENO: result: no" >&5 | |
11460 | echo "${ECHO_T}no" >&6 | |
11461 | fi | |
11462 | ||
11463 | test -n "$CXX" && break | |
11464 | done | |
11465 | fi | |
11466 | if test -z "$CXX"; then | |
11467 | ac_ct_CXX=$CXX | |
11468 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11469 | do | |
11470 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11471 | set dummy $ac_prog; ac_word=$2 | |
11472 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11474 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11476 | else | |
11477 | if test -n "$ac_ct_CXX"; then | |
11478 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11479 | else | |
11480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11481 | for as_dir in $PATH | |
11482 | do | |
11483 | IFS=$as_save_IFS | |
11484 | test -z "$as_dir" && as_dir=. | |
11485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11486 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11487 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11489 | break 2 | |
11490 | fi | |
11491 | done | |
11492 | done | |
11493 | ||
11494 | fi | |
11495 | fi | |
11496 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11497 | if test -n "$ac_ct_CXX"; then | |
11498 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11499 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11500 | else | |
11501 | echo "$as_me:$LINENO: result: no" >&5 | |
11502 | echo "${ECHO_T}no" >&6 | |
11503 | fi | |
11504 | ||
11505 | test -n "$ac_ct_CXX" && break | |
11506 | done | |
11507 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11508 | ||
11509 | CXX=$ac_ct_CXX | |
11510 | fi | |
11511 | ||
11512 | ||
11513 | # Provide some information about the compiler. | |
11514 | echo "$as_me:$LINENO:" \ | |
11515 | "checking for C++ compiler version" >&5 | |
11516 | ac_compiler=`set X $ac_compile; echo $2` | |
11517 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11518 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11519 | ac_status=$? | |
11520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11521 | (exit $ac_status); } | |
11522 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11523 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11524 | ac_status=$? | |
11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11526 | (exit $ac_status); } | |
11527 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11528 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11529 | ac_status=$? | |
11530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11531 | (exit $ac_status); } | |
11532 | ||
11533 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11534 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11535 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11537 | else | |
11538 | cat >conftest.$ac_ext <<_ACEOF | |
11539 | /* confdefs.h. */ | |
11540 | _ACEOF | |
11541 | cat confdefs.h >>conftest.$ac_ext | |
11542 | cat >>conftest.$ac_ext <<_ACEOF | |
11543 | /* end confdefs.h. */ | |
11544 | ||
11545 | int | |
11546 | main () | |
11547 | { | |
11548 | #ifndef __GNUC__ | |
11549 | choke me | |
11550 | #endif | |
11551 | ||
11552 | ; | |
11553 | return 0; | |
11554 | } | |
11555 | _ACEOF | |
11556 | rm -f conftest.$ac_objext | |
11557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11558 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11559 | ac_status=$? |
ac1cb8d3 VS |
11560 | grep -v '^ *+' conftest.er1 >conftest.err |
11561 | rm -f conftest.er1 | |
11562 | cat conftest.err >&5 | |
a848cd7e SC |
11563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11564 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11565 | { ac_try='test -z "$ac_cxx_werror_flag" |
11566 | || test ! -s conftest.err' | |
11567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11568 | (eval $ac_try) 2>&5 | |
11569 | ac_status=$? | |
11570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11571 | (exit $ac_status); }; } && | |
11572 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11574 | (eval $ac_try) 2>&5 | |
11575 | ac_status=$? | |
11576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11577 | (exit $ac_status); }; }; then | |
11578 | ac_compiler_gnu=yes | |
11579 | else | |
11580 | echo "$as_me: failed program was:" >&5 | |
11581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11582 | ||
11583 | ac_compiler_gnu=no | |
11584 | fi | |
ac1cb8d3 | 11585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11586 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11587 | ||
11588 | fi | |
11589 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11590 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11591 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11592 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11593 | ac_save_CXXFLAGS=$CXXFLAGS | |
11594 | CXXFLAGS="-g" | |
11595 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11596 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11597 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11599 | else | |
11600 | cat >conftest.$ac_ext <<_ACEOF | |
11601 | /* confdefs.h. */ | |
11602 | _ACEOF | |
11603 | cat confdefs.h >>conftest.$ac_ext | |
11604 | cat >>conftest.$ac_ext <<_ACEOF | |
11605 | /* end confdefs.h. */ | |
11606 | ||
11607 | int | |
11608 | main () | |
11609 | { | |
11610 | ||
11611 | ; | |
11612 | return 0; | |
11613 | } | |
11614 | _ACEOF | |
11615 | rm -f conftest.$ac_objext | |
11616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11617 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11618 | ac_status=$? |
ac1cb8d3 VS |
11619 | grep -v '^ *+' conftest.er1 >conftest.err |
11620 | rm -f conftest.er1 | |
11621 | cat conftest.err >&5 | |
a848cd7e SC |
11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11623 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11624 | { ac_try='test -z "$ac_cxx_werror_flag" |
11625 | || test ! -s conftest.err' | |
11626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11627 | (eval $ac_try) 2>&5 | |
11628 | ac_status=$? | |
11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11630 | (exit $ac_status); }; } && | |
11631 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11633 | (eval $ac_try) 2>&5 | |
11634 | ac_status=$? | |
11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11636 | (exit $ac_status); }; }; then | |
11637 | ac_cv_prog_cxx_g=yes | |
11638 | else | |
11639 | echo "$as_me: failed program was:" >&5 | |
11640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11641 | ||
11642 | ac_cv_prog_cxx_g=no | |
11643 | fi | |
ac1cb8d3 | 11644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11645 | fi |
11646 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11647 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11648 | if test "$ac_test_CXXFLAGS" = set; then | |
11649 | CXXFLAGS=$ac_save_CXXFLAGS | |
11650 | elif test $ac_cv_prog_cxx_g = yes; then | |
11651 | if test "$GXX" = yes; then | |
11652 | CXXFLAGS="-g -O2" | |
11653 | else | |
11654 | CXXFLAGS="-g" | |
11655 | fi | |
11656 | else | |
11657 | if test "$GXX" = yes; then | |
11658 | CXXFLAGS="-O2" | |
11659 | else | |
11660 | CXXFLAGS= | |
11661 | fi | |
11662 | fi | |
11663 | for ac_declaration in \ | |
ac1cb8d3 | 11664 | '' \ |
a848cd7e SC |
11665 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11666 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11667 | 'extern "C" void exit (int) throw ();' \ | |
11668 | 'extern "C" void exit (int);' \ | |
11669 | 'void exit (int);' | |
11670 | do | |
11671 | cat >conftest.$ac_ext <<_ACEOF | |
11672 | /* confdefs.h. */ | |
11673 | _ACEOF | |
11674 | cat confdefs.h >>conftest.$ac_ext | |
11675 | cat >>conftest.$ac_ext <<_ACEOF | |
11676 | /* end confdefs.h. */ | |
de59c161 | 11677 | $ac_declaration |
ac1cb8d3 | 11678 | #include <stdlib.h> |
a848cd7e SC |
11679 | int |
11680 | main () | |
11681 | { | |
11682 | exit (42); | |
11683 | ; | |
11684 | return 0; | |
11685 | } | |
11686 | _ACEOF | |
11687 | rm -f conftest.$ac_objext | |
11688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11689 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11690 | ac_status=$? |
ac1cb8d3 VS |
11691 | grep -v '^ *+' conftest.er1 >conftest.err |
11692 | rm -f conftest.er1 | |
11693 | cat conftest.err >&5 | |
a848cd7e SC |
11694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11695 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11696 | { ac_try='test -z "$ac_cxx_werror_flag" |
11697 | || test ! -s conftest.err' | |
11698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11699 | (eval $ac_try) 2>&5 | |
11700 | ac_status=$? | |
11701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11702 | (exit $ac_status); }; } && | |
11703 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11705 | (eval $ac_try) 2>&5 | |
11706 | ac_status=$? | |
11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11708 | (exit $ac_status); }; }; then | |
11709 | : | |
11710 | else | |
11711 | echo "$as_me: failed program was:" >&5 | |
11712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11713 | ||
11714 | continue | |
11715 | fi | |
ac1cb8d3 | 11716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11717 | cat >conftest.$ac_ext <<_ACEOF |
11718 | /* confdefs.h. */ | |
11719 | _ACEOF | |
11720 | cat confdefs.h >>conftest.$ac_ext | |
11721 | cat >>conftest.$ac_ext <<_ACEOF | |
11722 | /* end confdefs.h. */ | |
11723 | $ac_declaration | |
11724 | int | |
11725 | main () | |
11726 | { | |
11727 | exit (42); | |
11728 | ; | |
11729 | return 0; | |
11730 | } | |
11731 | _ACEOF | |
11732 | rm -f conftest.$ac_objext | |
11733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11734 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11735 | ac_status=$? |
ac1cb8d3 VS |
11736 | grep -v '^ *+' conftest.er1 >conftest.err |
11737 | rm -f conftest.er1 | |
11738 | cat conftest.err >&5 | |
a848cd7e SC |
11739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11740 | (exit $ac_status); } && | |
ac1cb8d3 VS |
11741 | { ac_try='test -z "$ac_cxx_werror_flag" |
11742 | || test ! -s conftest.err' | |
11743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11744 | (eval $ac_try) 2>&5 | |
11745 | ac_status=$? | |
11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11747 | (exit $ac_status); }; } && | |
11748 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11750 | (eval $ac_try) 2>&5 | |
11751 | ac_status=$? | |
11752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11753 | (exit $ac_status); }; }; then | |
11754 | break | |
11755 | else | |
11756 | echo "$as_me: failed program was:" >&5 | |
11757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11758 | ||
11759 | fi | |
ac1cb8d3 | 11760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11761 | done |
11762 | rm -f conftest* | |
11763 | if test -n "$ac_declaration"; then | |
11764 | echo '#ifdef __cplusplus' >>confdefs.h | |
11765 | echo $ac_declaration >>confdefs.h | |
11766 | echo '#endif' >>confdefs.h | |
11767 | fi | |
11768 | ||
11769 | ac_ext=cc | |
11770 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11771 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11772 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11773 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11774 | ||
11775 | ||
11776 | ac_ext=c | |
11777 | ac_cpp='$CPP $CPPFLAGS' | |
11778 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11779 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11780 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11781 | ||
11782 | ||
11783 | echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5 | |
11784 | echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6 | |
11785 | GCC_SEARCHES_USR_LOCAL_INCLUDE="no" | |
11786 | if test "$GCC" = "yes" ; then | |
11787 | echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \ | |
11788 | sed -n '1,/End of search list\./p' | \ | |
11789 | grep '^ */usr/local/include$' 2>&1 /dev/null \ | |
11790 | && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes" | |
11791 | fi | |
11792 | echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5 | |
11793 | echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6 | |
11794 | ||
11795 | if test -n "$ac_tool_prefix"; then | |
11796 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11797 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11798 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11800 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11802 | else | |
11803 | if test -n "$RANLIB"; then | |
11804 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11805 | else | |
11806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11807 | for as_dir in $PATH | |
11808 | do | |
11809 | IFS=$as_save_IFS | |
11810 | test -z "$as_dir" && as_dir=. | |
11811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11812 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11813 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11815 | break 2 | |
11816 | fi | |
11817 | done | |
11818 | done | |
11819 | ||
11820 | fi | |
11821 | fi | |
11822 | RANLIB=$ac_cv_prog_RANLIB | |
11823 | if test -n "$RANLIB"; then | |
11824 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11825 | echo "${ECHO_T}$RANLIB" >&6 | |
11826 | else | |
11827 | echo "$as_me:$LINENO: result: no" >&5 | |
11828 | echo "${ECHO_T}no" >&6 | |
11829 | fi | |
11830 | ||
11831 | fi | |
11832 | if test -z "$ac_cv_prog_RANLIB"; then | |
11833 | ac_ct_RANLIB=$RANLIB | |
11834 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11835 | set dummy ranlib; ac_word=$2 | |
11836 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11838 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11840 | else | |
11841 | if test -n "$ac_ct_RANLIB"; then | |
11842 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11843 | else | |
11844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11845 | for as_dir in $PATH | |
11846 | do | |
11847 | IFS=$as_save_IFS | |
11848 | test -z "$as_dir" && as_dir=. | |
11849 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11850 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11851 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11852 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11853 | break 2 | |
11854 | fi | |
11855 | done | |
11856 | done | |
11857 | ||
11858 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11859 | fi | |
11860 | fi | |
11861 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11862 | if test -n "$ac_ct_RANLIB"; then | |
11863 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11864 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11865 | else | |
11866 | echo "$as_me:$LINENO: result: no" >&5 | |
11867 | echo "${ECHO_T}no" >&6 | |
11868 | fi | |
11869 | ||
11870 | RANLIB=$ac_ct_RANLIB | |
11871 | else | |
11872 | RANLIB="$ac_cv_prog_RANLIB" | |
11873 | fi | |
11874 | ||
11875 | ||
11876 | # Extract the first word of "ar", so it can be a program name with args. | |
11877 | set dummy ar; ac_word=$2 | |
11878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11880 | if test "${ac_cv_prog_AR+set}" = set; then | |
11881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11882 | else | |
11883 | if test -n "$AR"; then | |
11884 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11885 | else | |
11886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11887 | for as_dir in $PATH | |
11888 | do | |
11889 | IFS=$as_save_IFS | |
11890 | test -z "$as_dir" && as_dir=. | |
11891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11892 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11893 | ac_cv_prog_AR="ar" | |
11894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11895 | break 2 | |
11896 | fi | |
11897 | done | |
11898 | done | |
11899 | ||
11900 | fi | |
11901 | fi | |
11902 | AR=$ac_cv_prog_AR | |
11903 | if test -n "$AR"; then | |
11904 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11905 | echo "${ECHO_T}$AR" >&6 | |
11906 | else | |
11907 | echo "$as_me:$LINENO: result: no" >&5 | |
11908 | echo "${ECHO_T}no" >&6 | |
11909 | fi | |
11910 | ||
11911 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
11912 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
11913 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
11914 | { (exit 1); exit 1; }; } |
11915 | fi | |
11916 | ||
11917 | # Find a good install program. We prefer a C program (faster), | |
11918 | # so one script is as good as another. But avoid the broken or | |
11919 | # incompatible versions: | |
11920 | # SysV /etc/install, /usr/sbin/install | |
11921 | # SunOS /usr/etc/install | |
11922 | # IRIX /sbin/install | |
11923 | # AIX /bin/install | |
11924 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11925 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11926 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11927 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 11928 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
11929 | # ./install, which can be erroneously created by make from ./install.sh. |
11930 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
11931 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
11932 | if test -z "$INSTALL"; then | |
11933 | if test "${ac_cv_path_install+set}" = set; then | |
11934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11935 | else | |
11936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11937 | for as_dir in $PATH | |
11938 | do | |
11939 | IFS=$as_save_IFS | |
11940 | test -z "$as_dir" && as_dir=. | |
11941 | # Account for people who put trailing slashes in PATH elements. | |
11942 | case $as_dir/ in | |
11943 | ./ | .// | /cC/* | \ | |
11944 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 11945 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
11946 | /usr/ucb/* ) ;; |
11947 | *) | |
11948 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11949 | # Don't use installbsd from OSF since it installs stuff as root | |
11950 | # by default. | |
11951 | for ac_prog in ginstall scoinst install; do | |
11952 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
11953 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11954 | if test $ac_prog = install && | |
11955 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11956 | # AIX install. It has an incompatible calling convention. | |
11957 | : | |
11958 | elif test $ac_prog = install && | |
11959 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11960 | # program-specific install script used by HP pwplus--don't use. | |
11961 | : | |
11962 | else | |
11963 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11964 | break 3 | |
11965 | fi | |
11966 | fi | |
a848cd7e SC |
11967 | done |
11968 | done | |
11969 | ;; | |
11970 | esac | |
11971 | done | |
11972 | ||
11973 | ||
11974 | fi | |
11975 | if test "${ac_cv_path_install+set}" = set; then | |
11976 | INSTALL=$ac_cv_path_install | |
11977 | else | |
11978 | # As a last resort, use the slow shell script. We don't cache a | |
11979 | # path for INSTALL within a source directory, because that will | |
11980 | # break other packages using the cache if that directory is | |
11981 | # removed, or if the path is relative. | |
11982 | INSTALL=$ac_install_sh | |
11983 | fi | |
11984 | fi | |
11985 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
11986 | echo "${ECHO_T}$INSTALL" >&6 | |
11987 | ||
11988 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11989 | # It thinks the first close brace ends the variable substitution. | |
11990 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11991 | ||
11992 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
11993 | ||
11994 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
11995 | ||
11996 | ||
11997 | case ${INSTALL} in | |
11998 | /* ) # Absolute | |
11999 | ;; | |
12000 | ?:* ) # Drive letter, considered as absolute. | |
12001 | ;; | |
12002 | *) | |
12003 | INSTALL=`pwd`/${INSTALL} ;; | |
12004 | esac | |
12005 | ||
12006 | case ${host} in | |
12007 | *-hp-hpux* ) | |
12008 | INSTALL_DIR="mkdir" | |
12009 | ;; | |
12010 | ||
12011 | *) INSTALL_DIR="$INSTALL -d" | |
12012 | ;; | |
12013 | esac | |
12014 | ||
12015 | ||
12016 | case "${host}" in | |
12017 | ||
12018 | powerpc-*-darwin* ) | |
12019 | INSTALL_PROGRAM="cp -fp" | |
12020 | INSTALL_DATA="cp -fp" | |
12021 | ;; | |
12022 | *) | |
12023 | ;; | |
12024 | esac | |
12025 | ||
12026 | # Extract the first word of "strip", so it can be a program name with args. | |
12027 | set dummy strip; 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_STRIP+set}" = set; then | |
12031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12032 | else | |
12033 | if test -n "$STRIP"; then | |
12034 | ac_cv_prog_STRIP="$STRIP" # 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_STRIP="strip" | |
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 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12051 | fi | |
12052 | fi | |
12053 | STRIP=$ac_cv_prog_STRIP | |
12054 | if test -n "$STRIP"; then | |
12055 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12056 | echo "${ECHO_T}$STRIP" >&6 | |
12057 | else | |
12058 | echo "$as_me:$LINENO: result: no" >&5 | |
12059 | echo "${ECHO_T}no" >&6 | |
12060 | fi | |
12061 | ||
12062 | ||
12063 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12064 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12065 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12067 | else | |
12068 | ||
12069 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12070 | egrep -s GNU > /dev/null); then | |
12071 | wx_cv_prog_makeisgnu="yes" | |
12072 | else | |
12073 | wx_cv_prog_makeisgnu="no" | |
12074 | fi | |
12075 | ||
12076 | fi | |
12077 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12078 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12079 | ||
12080 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12081 | IF_GNU_MAKE="" | |
12082 | else | |
12083 | IF_GNU_MAKE="#" | |
12084 | fi | |
12085 | ||
12086 | ||
12087 | ||
12088 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12089 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12090 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12091 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12093 | else | |
12094 | ||
12095 | cat - << EOF > confMake | |
12096 | check : file | |
12097 | cp \$? \$@ | |
12098 | cp \$? final_file | |
12099 | EOF | |
12100 | ||
12101 | if test ! -d sub ; then | |
12102 | mkdir sub | |
12103 | fi | |
12104 | echo dummy > sub/file | |
12105 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12106 | RESULT=$? | |
12107 | rm -f sub/file check final_file confMake | |
12108 | rmdir sub | |
12109 | if test "$RESULT" = 0; then | |
12110 | wx_cv_prog_makevpath="yes" | |
12111 | else | |
12112 | wx_cv_prog_makevpath="no" | |
12113 | fi | |
12114 | ||
12115 | fi | |
12116 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12117 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12118 | ||
12119 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12120 | { { echo "$as_me:$LINENO: error: | |
12121 | You need a make-utility that is able to use the variable | |
12122 | VPATH correctly. | |
12123 | If your version of make does not support VPATH correctly, | |
12124 | please install GNU-make (possibly as gmake), and start | |
12125 | configure with the following command: | |
12126 | export MAKE=gmake; ./configure for sh-type shells | |
12127 | setenv MAKE gmake; ./configure for csh-type shells | |
12128 | Also please do remember to use gmake in this case every time | |
12129 | you are trying to compile. | |
12130 | " >&5 | |
12131 | echo "$as_me: error: | |
12132 | You need a make-utility that is able to use the variable | |
12133 | VPATH correctly. | |
12134 | If your version of make does not support VPATH correctly, | |
12135 | please install GNU-make (possibly as gmake), and start | |
12136 | configure with the following command: | |
12137 | export MAKE=gmake; ./configure for sh-type shells | |
12138 | setenv MAKE gmake; ./configure for csh-type shells | |
12139 | Also please do remember to use gmake in this case every time | |
12140 | you are trying to compile. | |
12141 | " >&2;} | |
12142 | { (exit 1); exit 1; }; } | |
12143 | fi fi | |
12144 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12145 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12146 | LN_S=$as_ln_s | |
12147 | if test "$LN_S" = "ln -s"; then | |
12148 | echo "$as_me:$LINENO: result: yes" >&5 | |
12149 | echo "${ECHO_T}yes" >&6 | |
12150 | else | |
12151 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12152 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12153 | fi | |
12154 | ||
12155 | ||
12156 | ||
12157 | case "${host}" in | |
12158 | *-pc-os2_emx | *-pc-os2-emx ) | |
12159 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12160 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12161 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12162 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12164 | else | |
12165 | ac_check_lib_save_LIBS=$LIBS | |
12166 | LIBS="-lcExt $LIBS" | |
12167 | cat >conftest.$ac_ext <<_ACEOF | |
12168 | /* confdefs.h. */ | |
12169 | _ACEOF | |
12170 | cat confdefs.h >>conftest.$ac_ext | |
12171 | cat >>conftest.$ac_ext <<_ACEOF | |
12172 | /* end confdefs.h. */ | |
12173 | ||
12174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12175 | #ifdef __cplusplus | |
12176 | extern "C" | |
12177 | #endif | |
12178 | /* We use char because int might match the return type of a gcc2 | |
12179 | builtin and then its argument prototype would still apply. */ | |
12180 | char drand48 (); | |
12181 | int | |
12182 | main () | |
12183 | { | |
12184 | drand48 (); | |
12185 | ; | |
12186 | return 0; | |
12187 | } | |
12188 | _ACEOF | |
12189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12191 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12192 | ac_status=$? |
ac1cb8d3 VS |
12193 | grep -v '^ *+' conftest.er1 >conftest.err |
12194 | rm -f conftest.er1 | |
12195 | cat conftest.err >&5 | |
a848cd7e SC |
12196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12197 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12198 | { ac_try='test -z "$ac_c_werror_flag" |
12199 | || test ! -s conftest.err' | |
12200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12201 | (eval $ac_try) 2>&5 | |
12202 | ac_status=$? | |
12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12204 | (exit $ac_status); }; } && | |
12205 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12207 | (eval $ac_try) 2>&5 | |
12208 | ac_status=$? | |
12209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12210 | (exit $ac_status); }; }; then | |
12211 | ac_cv_lib_cExt_drand48=yes | |
12212 | else | |
12213 | echo "$as_me: failed program was:" >&5 | |
12214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12215 | ||
12216 | ac_cv_lib_cExt_drand48=no | |
12217 | fi | |
ac1cb8d3 VS |
12218 | rm -f conftest.err conftest.$ac_objext \ |
12219 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12220 | LIBS=$ac_check_lib_save_LIBS |
12221 | fi | |
12222 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12223 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12224 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12225 | LIBS="$LIBS -lcExt" | |
12226 | fi | |
12227 | ||
12228 | else | |
12229 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12230 | fi | |
12231 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12232 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12233 | if test "${wx_cv_gccversion+set}" = set; then | |
12234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12235 | else | |
12236 | ||
12237 | cat >conftest.$ac_ext <<_ACEOF | |
12238 | /* confdefs.h. */ | |
12239 | _ACEOF | |
12240 | cat confdefs.h >>conftest.$ac_ext | |
12241 | cat >>conftest.$ac_ext <<_ACEOF | |
12242 | /* end confdefs.h. */ | |
12243 | ||
12244 | int | |
12245 | main () | |
12246 | { | |
12247 | ||
12248 | #if (__GNUC__ < 3) | |
12249 | #error old gcc | |
12250 | #endif | |
12251 | ||
12252 | ; | |
12253 | return 0; | |
12254 | } | |
12255 | _ACEOF | |
12256 | rm -f conftest.$ac_objext | |
12257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12258 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12259 | ac_status=$? |
ac1cb8d3 VS |
12260 | grep -v '^ *+' conftest.er1 >conftest.err |
12261 | rm -f conftest.er1 | |
12262 | cat conftest.err >&5 | |
a848cd7e SC |
12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12264 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12265 | { ac_try='test -z "$ac_c_werror_flag" |
12266 | || test ! -s conftest.err' | |
12267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12268 | (eval $ac_try) 2>&5 | |
12269 | ac_status=$? | |
12270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12271 | (exit $ac_status); }; } && | |
12272 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12274 | (eval $ac_try) 2>&5 | |
12275 | ac_status=$? | |
12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12277 | (exit $ac_status); }; }; then | |
12278 | ||
12279 | cat >conftest.$ac_ext <<_ACEOF | |
12280 | /* confdefs.h. */ | |
12281 | _ACEOF | |
12282 | cat confdefs.h >>conftest.$ac_ext | |
12283 | cat >>conftest.$ac_ext <<_ACEOF | |
12284 | /* end confdefs.h. */ | |
12285 | ||
12286 | int | |
12287 | main () | |
12288 | { | |
12289 | ||
12290 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12291 | #error intermediate gcc | |
12292 | #endif | |
12293 | ||
12294 | ; | |
12295 | return 0; | |
12296 | } | |
12297 | _ACEOF | |
12298 | rm -f conftest.$ac_objext | |
12299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12300 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12301 | ac_status=$? |
ac1cb8d3 VS |
12302 | grep -v '^ *+' conftest.er1 >conftest.err |
12303 | rm -f conftest.er1 | |
12304 | cat conftest.err >&5 | |
a848cd7e SC |
12305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12306 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12307 | { ac_try='test -z "$ac_c_werror_flag" |
12308 | || test ! -s conftest.err' | |
12309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12310 | (eval $ac_try) 2>&5 | |
12311 | ac_status=$? | |
12312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12313 | (exit $ac_status); }; } && | |
12314 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12316 | (eval $ac_try) 2>&5 | |
12317 | ac_status=$? | |
12318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12319 | (exit $ac_status); }; }; then | |
12320 | ||
12321 | wx_cv_gccversion=Innotek | |
12322 | ||
12323 | else | |
12324 | echo "$as_me: failed program was:" >&5 | |
12325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12326 | ||
12327 | ||
12328 | wx_cv_gccversion=3 | |
12329 | ||
12330 | ||
12331 | fi | |
ac1cb8d3 | 12332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12333 | |
12334 | else | |
12335 | echo "$as_me: failed program was:" >&5 | |
12336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12337 | ||
12338 | ||
12339 | wx_cv_gccversion=2 | |
12340 | ||
12341 | ||
12342 | fi | |
ac1cb8d3 | 12343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12344 | |
12345 | fi | |
12346 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12347 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12348 | if test "$wx_cv_gccversion" = "2"; then | |
12349 | LIBS="$LIBS -lstdcpp" | |
12350 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12351 | else | |
12352 | if test "$wx_cv_gccversion" = "3"; then | |
12353 | LIBS="$LIBS -lstdcxx" | |
12354 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12355 | else | |
12356 | LIBS="$LIBS -lstdc++" | |
12357 | fi | |
12358 | fi | |
12359 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12360 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12361 | fi |
12362 | ;; | |
12363 | *) | |
12364 | ||
12365 | ||
12366 | ||
12367 | ac_ext=cc | |
12368 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12369 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12370 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12371 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12372 | ||
12373 | ||
12374 | ||
12375 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12376 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12377 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12379 | else | |
12380 | ||
12381 | cat >conftest.$ac_ext <<_ACEOF | |
12382 | /* confdefs.h. */ | |
12383 | _ACEOF | |
12384 | cat confdefs.h >>conftest.$ac_ext | |
12385 | cat >>conftest.$ac_ext <<_ACEOF | |
12386 | /* end confdefs.h. */ | |
12387 | ||
12388 | #include <string.h> | |
12389 | ||
12390 | int | |
12391 | main () | |
12392 | { | |
12393 | ||
12394 | strcasecmp("foo", "bar"); | |
12395 | ||
12396 | ; | |
12397 | return 0; | |
12398 | } | |
12399 | _ACEOF | |
12400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12402 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12403 | ac_status=$? |
ac1cb8d3 VS |
12404 | grep -v '^ *+' conftest.er1 >conftest.err |
12405 | rm -f conftest.er1 | |
12406 | cat conftest.err >&5 | |
a848cd7e SC |
12407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12408 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12409 | { ac_try='test -z "$ac_cxx_werror_flag" |
12410 | || test ! -s conftest.err' | |
12411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12412 | (eval $ac_try) 2>&5 | |
12413 | ac_status=$? | |
12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12415 | (exit $ac_status); }; } && | |
12416 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12418 | (eval $ac_try) 2>&5 | |
12419 | ac_status=$? | |
12420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12421 | (exit $ac_status); }; }; then | |
12422 | ac_cv_string_strcasecmp=yes | |
12423 | else | |
12424 | echo "$as_me: failed program was:" >&5 | |
12425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12426 | ||
12427 | ac_cv_string_strcasecmp=no | |
12428 | ||
12429 | fi | |
ac1cb8d3 VS |
12430 | rm -f conftest.err conftest.$ac_objext \ |
12431 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12432 | |
12433 | fi | |
12434 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12435 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12436 | ||
12437 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12438 | cat >>confdefs.h <<\_ACEOF | |
12439 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12440 | _ACEOF | |
12441 | ||
12442 | else | |
12443 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12444 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12445 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12447 | else | |
12448 | ||
12449 | cat >conftest.$ac_ext <<_ACEOF | |
12450 | /* confdefs.h. */ | |
12451 | _ACEOF | |
12452 | cat confdefs.h >>conftest.$ac_ext | |
12453 | cat >>conftest.$ac_ext <<_ACEOF | |
12454 | /* end confdefs.h. */ | |
12455 | ||
12456 | #include <strings.h> | |
12457 | ||
12458 | int | |
12459 | main () | |
12460 | { | |
12461 | ||
12462 | strcasecmp("foo", "bar"); | |
12463 | ||
12464 | ; | |
12465 | return 0; | |
12466 | } | |
12467 | _ACEOF | |
12468 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12470 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12471 | ac_status=$? |
ac1cb8d3 VS |
12472 | grep -v '^ *+' conftest.er1 >conftest.err |
12473 | rm -f conftest.er1 | |
12474 | cat conftest.err >&5 | |
a848cd7e SC |
12475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12476 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12477 | { ac_try='test -z "$ac_cxx_werror_flag" |
12478 | || test ! -s conftest.err' | |
12479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12480 | (eval $ac_try) 2>&5 | |
12481 | ac_status=$? | |
12482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12483 | (exit $ac_status); }; } && | |
12484 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12486 | (eval $ac_try) 2>&5 | |
12487 | ac_status=$? | |
12488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12489 | (exit $ac_status); }; }; then | |
12490 | ac_cv_strings_strcasecmp=yes | |
12491 | else | |
12492 | echo "$as_me: failed program was:" >&5 | |
12493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12494 | ||
12495 | ac_cv_strings_strcasecmp=no | |
12496 | ||
12497 | fi | |
ac1cb8d3 VS |
12498 | rm -f conftest.err conftest.$ac_objext \ |
12499 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12500 | |
12501 | fi | |
12502 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12503 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12504 | ||
12505 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12506 | cat >>confdefs.h <<\_ACEOF | |
12507 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12508 | _ACEOF | |
12509 | ||
12510 | else | |
12511 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12512 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12513 | { (exit 1); exit 1; }; } | |
12514 | fi | |
12515 | fi | |
12516 | ||
12517 | ac_ext=c | |
12518 | ac_cpp='$CPP $CPPFLAGS' | |
12519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12522 | ||
12523 | ;; | |
12524 | esac | |
12525 | ||
12526 | ||
12527 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12528 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12529 | if test "${ac_cv_header_stdc+set}" = set; then | |
12530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12531 | else | |
12532 | cat >conftest.$ac_ext <<_ACEOF | |
12533 | /* confdefs.h. */ | |
12534 | _ACEOF | |
12535 | cat confdefs.h >>conftest.$ac_ext | |
12536 | cat >>conftest.$ac_ext <<_ACEOF | |
12537 | /* end confdefs.h. */ | |
12538 | #include <stdlib.h> | |
12539 | #include <stdarg.h> | |
12540 | #include <string.h> | |
12541 | #include <float.h> | |
12542 | ||
12543 | int | |
12544 | main () | |
12545 | { | |
12546 | ||
12547 | ; | |
12548 | return 0; | |
12549 | } | |
12550 | _ACEOF | |
12551 | rm -f conftest.$ac_objext | |
12552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12553 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12554 | ac_status=$? |
ac1cb8d3 VS |
12555 | grep -v '^ *+' conftest.er1 >conftest.err |
12556 | rm -f conftest.er1 | |
12557 | cat conftest.err >&5 | |
a848cd7e SC |
12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12559 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12560 | { ac_try='test -z "$ac_c_werror_flag" |
12561 | || test ! -s conftest.err' | |
12562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12563 | (eval $ac_try) 2>&5 | |
12564 | ac_status=$? | |
12565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12566 | (exit $ac_status); }; } && | |
12567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12569 | (eval $ac_try) 2>&5 | |
12570 | ac_status=$? | |
12571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12572 | (exit $ac_status); }; }; then | |
12573 | ac_cv_header_stdc=yes | |
12574 | else | |
12575 | echo "$as_me: failed program was:" >&5 | |
12576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12577 | ||
12578 | ac_cv_header_stdc=no | |
12579 | fi | |
ac1cb8d3 | 12580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12581 | |
12582 | if test $ac_cv_header_stdc = yes; then | |
12583 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12584 | cat >conftest.$ac_ext <<_ACEOF | |
12585 | /* confdefs.h. */ | |
12586 | _ACEOF | |
12587 | cat confdefs.h >>conftest.$ac_ext | |
12588 | cat >>conftest.$ac_ext <<_ACEOF | |
12589 | /* end confdefs.h. */ | |
12590 | #include <string.h> | |
12591 | ||
12592 | _ACEOF | |
12593 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12594 | $EGREP "memchr" >/dev/null 2>&1; then | |
12595 | : | |
12596 | else | |
12597 | ac_cv_header_stdc=no | |
12598 | fi | |
12599 | rm -f conftest* | |
12600 | ||
12601 | fi | |
12602 | ||
12603 | if test $ac_cv_header_stdc = yes; then | |
12604 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12605 | cat >conftest.$ac_ext <<_ACEOF | |
12606 | /* confdefs.h. */ | |
12607 | _ACEOF | |
12608 | cat confdefs.h >>conftest.$ac_ext | |
12609 | cat >>conftest.$ac_ext <<_ACEOF | |
12610 | /* end confdefs.h. */ | |
12611 | #include <stdlib.h> | |
12612 | ||
12613 | _ACEOF | |
12614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12615 | $EGREP "free" >/dev/null 2>&1; then | |
12616 | : | |
12617 | else | |
12618 | ac_cv_header_stdc=no | |
12619 | fi | |
12620 | rm -f conftest* | |
12621 | ||
12622 | fi | |
12623 | ||
12624 | if test $ac_cv_header_stdc = yes; then | |
12625 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12626 | if test "$cross_compiling" = yes; then | |
12627 | : | |
12628 | else | |
12629 | cat >conftest.$ac_ext <<_ACEOF | |
12630 | /* confdefs.h. */ | |
12631 | _ACEOF | |
12632 | cat confdefs.h >>conftest.$ac_ext | |
12633 | cat >>conftest.$ac_ext <<_ACEOF | |
12634 | /* end confdefs.h. */ | |
12635 | #include <ctype.h> | |
12636 | #if ((' ' & 0x0FF) == 0x020) | |
12637 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12638 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12639 | #else | |
12640 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12641 | (('a' <= (c) && (c) <= 'i') \ |
12642 | || ('j' <= (c) && (c) <= 'r') \ | |
12643 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12644 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12645 | #endif | |
12646 | ||
12647 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12648 | int | |
12649 | main () | |
12650 | { | |
12651 | int i; | |
12652 | for (i = 0; i < 256; i++) | |
12653 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12654 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12655 | exit(2); |
12656 | exit (0); | |
12657 | } | |
12658 | _ACEOF | |
12659 | rm -f conftest$ac_exeext | |
12660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12661 | (eval $ac_link) 2>&5 | |
12662 | ac_status=$? | |
12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12666 | (eval $ac_try) 2>&5 | |
12667 | ac_status=$? | |
12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12669 | (exit $ac_status); }; }; then | |
12670 | : | |
12671 | else | |
12672 | echo "$as_me: program exited with status $ac_status" >&5 | |
12673 | echo "$as_me: failed program was:" >&5 | |
12674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12675 | ||
12676 | ( exit $ac_status ) | |
12677 | ac_cv_header_stdc=no | |
12678 | fi | |
ac1cb8d3 | 12679 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12680 | fi |
12681 | fi | |
12682 | fi | |
12683 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12684 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12685 | if test $ac_cv_header_stdc = yes; then | |
12686 | ||
12687 | cat >>confdefs.h <<\_ACEOF | |
12688 | #define STDC_HEADERS 1 | |
12689 | _ACEOF | |
12690 | ||
12691 | fi | |
12692 | ||
12693 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12694 | ||
12695 | ||
12696 | ||
12697 | ||
12698 | ||
12699 | ||
12700 | ||
12701 | ||
12702 | ||
12703 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12704 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12705 | do |
12706 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12707 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12708 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12709 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12711 | else | |
12712 | cat >conftest.$ac_ext <<_ACEOF | |
12713 | /* confdefs.h. */ | |
12714 | _ACEOF | |
12715 | cat confdefs.h >>conftest.$ac_ext | |
12716 | cat >>conftest.$ac_ext <<_ACEOF | |
12717 | /* end confdefs.h. */ | |
12718 | $ac_includes_default | |
12719 | ||
12720 | #include <$ac_header> | |
12721 | _ACEOF | |
12722 | rm -f conftest.$ac_objext | |
12723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12724 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12725 | ac_status=$? |
ac1cb8d3 VS |
12726 | grep -v '^ *+' conftest.er1 >conftest.err |
12727 | rm -f conftest.er1 | |
12728 | cat conftest.err >&5 | |
a848cd7e SC |
12729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12730 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12731 | { ac_try='test -z "$ac_c_werror_flag" |
12732 | || test ! -s conftest.err' | |
12733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12734 | (eval $ac_try) 2>&5 | |
12735 | ac_status=$? | |
12736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12737 | (exit $ac_status); }; } && | |
12738 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12740 | (eval $ac_try) 2>&5 | |
12741 | ac_status=$? | |
12742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12743 | (exit $ac_status); }; }; then | |
12744 | eval "$as_ac_Header=yes" | |
12745 | else | |
12746 | echo "$as_me: failed program was:" >&5 | |
12747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12748 | ||
12749 | eval "$as_ac_Header=no" | |
12750 | fi | |
ac1cb8d3 | 12751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12752 | fi |
12753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12755 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12756 | cat >>confdefs.h <<_ACEOF | |
12757 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12758 | _ACEOF | |
12759 | ||
12760 | fi | |
12761 | ||
12762 | done | |
12763 | ||
12764 | ||
12765 | ||
12766 | for ac_header in stdlib.h | |
12767 | do | |
12768 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12774 | fi | |
12775 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12776 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12777 | else | |
12778 | # Is the header compilable? | |
12779 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12780 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12781 | cat >conftest.$ac_ext <<_ACEOF | |
12782 | /* confdefs.h. */ | |
12783 | _ACEOF | |
12784 | cat confdefs.h >>conftest.$ac_ext | |
12785 | cat >>conftest.$ac_ext <<_ACEOF | |
12786 | /* end confdefs.h. */ | |
12787 | $ac_includes_default | |
12788 | #include <$ac_header> | |
12789 | _ACEOF | |
12790 | rm -f conftest.$ac_objext | |
12791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12792 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12793 | ac_status=$? |
ac1cb8d3 VS |
12794 | grep -v '^ *+' conftest.er1 >conftest.err |
12795 | rm -f conftest.er1 | |
12796 | cat conftest.err >&5 | |
a848cd7e SC |
12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12798 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12799 | { ac_try='test -z "$ac_c_werror_flag" |
12800 | || test ! -s conftest.err' | |
12801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12802 | (eval $ac_try) 2>&5 | |
12803 | ac_status=$? | |
12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12805 | (exit $ac_status); }; } && | |
12806 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12808 | (eval $ac_try) 2>&5 | |
12809 | ac_status=$? | |
12810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12811 | (exit $ac_status); }; }; then | |
12812 | ac_header_compiler=yes | |
12813 | else | |
12814 | echo "$as_me: failed program was:" >&5 | |
12815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12816 | ||
12817 | ac_header_compiler=no | |
12818 | fi | |
ac1cb8d3 | 12819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12820 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12821 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12822 | ||
12823 | # Is the header present? | |
12824 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12825 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12826 | cat >conftest.$ac_ext <<_ACEOF | |
12827 | /* confdefs.h. */ | |
12828 | _ACEOF | |
12829 | cat confdefs.h >>conftest.$ac_ext | |
12830 | cat >>conftest.$ac_ext <<_ACEOF | |
12831 | /* end confdefs.h. */ | |
12832 | #include <$ac_header> | |
12833 | _ACEOF | |
12834 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12835 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12836 | ac_status=$? | |
12837 | grep -v '^ *+' conftest.er1 >conftest.err | |
12838 | rm -f conftest.er1 | |
12839 | cat conftest.err >&5 | |
12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12841 | (exit $ac_status); } >/dev/null; then | |
12842 | if test -s conftest.err; then | |
12843 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12844 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12845 | else |
12846 | ac_cpp_err= | |
12847 | fi | |
12848 | else | |
12849 | ac_cpp_err=yes | |
12850 | fi | |
12851 | if test -z "$ac_cpp_err"; then | |
12852 | ac_header_preproc=yes | |
12853 | else | |
12854 | echo "$as_me: failed program was:" >&5 | |
12855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12856 | ||
12857 | ac_header_preproc=no | |
12858 | fi | |
12859 | rm -f conftest.err conftest.$ac_ext | |
12860 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12861 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12862 | ||
12863 | # So? What about this header? | |
ac1cb8d3 VS |
12864 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12865 | yes:no: ) | |
a848cd7e SC |
12866 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12867 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12868 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12869 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12870 | ac_header_preproc=yes | |
a848cd7e | 12871 | ;; |
ac1cb8d3 | 12872 | no:yes:* ) |
a848cd7e SC |
12873 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12874 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12875 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12876 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12877 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12878 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12879 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12880 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
12881 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12882 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
12883 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12884 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
12885 | ( |
12886 | cat <<\_ASBOX | |
ac1cb8d3 VS |
12887 | ## ----------------------------------------- ## |
12888 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
12889 | ## ----------------------------------------- ## | |
a848cd7e SC |
12890 | _ASBOX |
12891 | ) | | |
12892 | sed "s/^/$as_me: WARNING: /" >&2 | |
12893 | ;; | |
12894 | esac | |
12895 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12896 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12897 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12899 | else | |
ac1cb8d3 | 12900 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
12901 | fi |
12902 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12903 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12904 | ||
12905 | fi | |
12906 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12907 | cat >>confdefs.h <<_ACEOF | |
12908 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12909 | _ACEOF | |
12910 | ||
12911 | fi | |
12912 | ||
12913 | done | |
12914 | ||
12915 | ||
12916 | for ac_header in malloc.h | |
12917 | do | |
12918 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12920 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12922 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12924 | fi | |
12925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12926 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12927 | else | |
12928 | # Is the header compilable? | |
12929 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12930 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12931 | cat >conftest.$ac_ext <<_ACEOF | |
12932 | /* confdefs.h. */ | |
12933 | _ACEOF | |
12934 | cat confdefs.h >>conftest.$ac_ext | |
12935 | cat >>conftest.$ac_ext <<_ACEOF | |
12936 | /* end confdefs.h. */ | |
12937 | $ac_includes_default | |
12938 | #include <$ac_header> | |
12939 | _ACEOF | |
12940 | rm -f conftest.$ac_objext | |
12941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12942 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12943 | ac_status=$? |
ac1cb8d3 VS |
12944 | grep -v '^ *+' conftest.er1 >conftest.err |
12945 | rm -f conftest.er1 | |
12946 | cat conftest.err >&5 | |
a848cd7e SC |
12947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12948 | (exit $ac_status); } && | |
ac1cb8d3 VS |
12949 | { ac_try='test -z "$ac_c_werror_flag" |
12950 | || test ! -s conftest.err' | |
12951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12952 | (eval $ac_try) 2>&5 | |
12953 | ac_status=$? | |
12954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12955 | (exit $ac_status); }; } && | |
12956 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12958 | (eval $ac_try) 2>&5 | |
12959 | ac_status=$? | |
12960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12961 | (exit $ac_status); }; }; then | |
12962 | ac_header_compiler=yes | |
12963 | else | |
12964 | echo "$as_me: failed program was:" >&5 | |
12965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12966 | ||
12967 | ac_header_compiler=no | |
12968 | fi | |
ac1cb8d3 | 12969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12970 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12971 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12972 | ||
12973 | # Is the header present? | |
12974 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12975 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12976 | cat >conftest.$ac_ext <<_ACEOF | |
12977 | /* confdefs.h. */ | |
12978 | _ACEOF | |
12979 | cat confdefs.h >>conftest.$ac_ext | |
12980 | cat >>conftest.$ac_ext <<_ACEOF | |
12981 | /* end confdefs.h. */ | |
12982 | #include <$ac_header> | |
12983 | _ACEOF | |
12984 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12985 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12986 | ac_status=$? | |
12987 | grep -v '^ *+' conftest.er1 >conftest.err | |
12988 | rm -f conftest.er1 | |
12989 | cat conftest.err >&5 | |
12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12991 | (exit $ac_status); } >/dev/null; then | |
12992 | if test -s conftest.err; then | |
12993 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12994 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12995 | else |
12996 | ac_cpp_err= | |
12997 | fi | |
12998 | else | |
12999 | ac_cpp_err=yes | |
13000 | fi | |
13001 | if test -z "$ac_cpp_err"; then | |
13002 | ac_header_preproc=yes | |
13003 | else | |
13004 | echo "$as_me: failed program was:" >&5 | |
13005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13006 | ||
13007 | ac_header_preproc=no | |
13008 | fi | |
13009 | rm -f conftest.err conftest.$ac_ext | |
13010 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13011 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13012 | ||
13013 | # So? What about this header? | |
ac1cb8d3 VS |
13014 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13015 | yes:no: ) | |
a848cd7e SC |
13016 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13017 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13018 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13019 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13020 | ac_header_preproc=yes | |
a848cd7e | 13021 | ;; |
ac1cb8d3 | 13022 | no:yes:* ) |
a848cd7e SC |
13023 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13024 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13025 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13026 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13027 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13028 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13029 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13030 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13031 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13032 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13033 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13034 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13035 | ( |
13036 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13037 | ## ----------------------------------------- ## |
13038 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13039 | ## ----------------------------------------- ## | |
a848cd7e SC |
13040 | _ASBOX |
13041 | ) | | |
13042 | sed "s/^/$as_me: WARNING: /" >&2 | |
13043 | ;; | |
13044 | esac | |
13045 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13047 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13049 | else | |
ac1cb8d3 | 13050 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13051 | fi |
13052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13054 | ||
13055 | fi | |
13056 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13057 | cat >>confdefs.h <<_ACEOF | |
13058 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13059 | _ACEOF | |
13060 | ||
13061 | fi | |
13062 | ||
13063 | done | |
13064 | ||
13065 | ||
13066 | for ac_header in unistd.h | |
13067 | do | |
13068 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13070 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13071 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13072 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13074 | fi | |
13075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13076 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13077 | else | |
13078 | # Is the header compilable? | |
13079 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13080 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13081 | cat >conftest.$ac_ext <<_ACEOF | |
13082 | /* confdefs.h. */ | |
13083 | _ACEOF | |
13084 | cat confdefs.h >>conftest.$ac_ext | |
13085 | cat >>conftest.$ac_ext <<_ACEOF | |
13086 | /* end confdefs.h. */ | |
13087 | $ac_includes_default | |
13088 | #include <$ac_header> | |
13089 | _ACEOF | |
13090 | rm -f conftest.$ac_objext | |
13091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13092 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13093 | ac_status=$? |
ac1cb8d3 VS |
13094 | grep -v '^ *+' conftest.er1 >conftest.err |
13095 | rm -f conftest.er1 | |
13096 | cat conftest.err >&5 | |
a848cd7e SC |
13097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13098 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13099 | { ac_try='test -z "$ac_c_werror_flag" |
13100 | || test ! -s conftest.err' | |
13101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13102 | (eval $ac_try) 2>&5 | |
13103 | ac_status=$? | |
13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13105 | (exit $ac_status); }; } && | |
13106 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13108 | (eval $ac_try) 2>&5 | |
13109 | ac_status=$? | |
13110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13111 | (exit $ac_status); }; }; then | |
13112 | ac_header_compiler=yes | |
13113 | else | |
13114 | echo "$as_me: failed program was:" >&5 | |
13115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13116 | ||
13117 | ac_header_compiler=no | |
13118 | fi | |
ac1cb8d3 | 13119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13120 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13121 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13122 | ||
13123 | # Is the header present? | |
13124 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13125 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13126 | cat >conftest.$ac_ext <<_ACEOF | |
13127 | /* confdefs.h. */ | |
13128 | _ACEOF | |
13129 | cat confdefs.h >>conftest.$ac_ext | |
13130 | cat >>conftest.$ac_ext <<_ACEOF | |
13131 | /* end confdefs.h. */ | |
13132 | #include <$ac_header> | |
13133 | _ACEOF | |
13134 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13135 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13136 | ac_status=$? | |
13137 | grep -v '^ *+' conftest.er1 >conftest.err | |
13138 | rm -f conftest.er1 | |
13139 | cat conftest.err >&5 | |
13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13141 | (exit $ac_status); } >/dev/null; then | |
13142 | if test -s conftest.err; then | |
13143 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13144 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13145 | else |
13146 | ac_cpp_err= | |
13147 | fi | |
13148 | else | |
13149 | ac_cpp_err=yes | |
13150 | fi | |
13151 | if test -z "$ac_cpp_err"; then | |
13152 | ac_header_preproc=yes | |
13153 | else | |
13154 | echo "$as_me: failed program was:" >&5 | |
13155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13156 | ||
13157 | ac_header_preproc=no | |
13158 | fi | |
13159 | rm -f conftest.err conftest.$ac_ext | |
13160 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13161 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13162 | ||
13163 | # So? What about this header? | |
ac1cb8d3 VS |
13164 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13165 | yes:no: ) | |
a848cd7e SC |
13166 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13167 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13169 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13170 | ac_header_preproc=yes | |
a848cd7e | 13171 | ;; |
ac1cb8d3 | 13172 | no:yes:* ) |
a848cd7e SC |
13173 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13174 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13175 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13176 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13177 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13178 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13179 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13180 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13182 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13183 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13184 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13185 | ( |
13186 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13187 | ## ----------------------------------------- ## |
13188 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13189 | ## ----------------------------------------- ## | |
a848cd7e SC |
13190 | _ASBOX |
13191 | ) | | |
13192 | sed "s/^/$as_me: WARNING: /" >&2 | |
13193 | ;; | |
13194 | esac | |
13195 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13199 | else | |
ac1cb8d3 | 13200 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13201 | fi |
13202 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13203 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13204 | ||
13205 | fi | |
13206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13207 | cat >>confdefs.h <<_ACEOF | |
13208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13209 | _ACEOF | |
13210 | ||
13211 | fi | |
13212 | ||
13213 | done | |
13214 | ||
13215 | ||
13216 | for ac_header in wchar.h | |
13217 | do | |
13218 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13219 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13220 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13221 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13222 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13224 | fi | |
13225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13226 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13227 | else | |
13228 | # Is the header compilable? | |
13229 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13230 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13231 | cat >conftest.$ac_ext <<_ACEOF | |
13232 | /* confdefs.h. */ | |
13233 | _ACEOF | |
13234 | cat confdefs.h >>conftest.$ac_ext | |
13235 | cat >>conftest.$ac_ext <<_ACEOF | |
13236 | /* end confdefs.h. */ | |
13237 | $ac_includes_default | |
13238 | #include <$ac_header> | |
13239 | _ACEOF | |
13240 | rm -f conftest.$ac_objext | |
13241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13242 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13243 | ac_status=$? |
ac1cb8d3 VS |
13244 | grep -v '^ *+' conftest.er1 >conftest.err |
13245 | rm -f conftest.er1 | |
13246 | cat conftest.err >&5 | |
a848cd7e SC |
13247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13248 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13249 | { ac_try='test -z "$ac_c_werror_flag" |
13250 | || test ! -s conftest.err' | |
13251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13252 | (eval $ac_try) 2>&5 | |
13253 | ac_status=$? | |
13254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13255 | (exit $ac_status); }; } && | |
13256 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13258 | (eval $ac_try) 2>&5 | |
13259 | ac_status=$? | |
13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13261 | (exit $ac_status); }; }; then | |
13262 | ac_header_compiler=yes | |
13263 | else | |
13264 | echo "$as_me: failed program was:" >&5 | |
13265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13266 | ||
13267 | ac_header_compiler=no | |
13268 | fi | |
ac1cb8d3 | 13269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13270 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13271 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13272 | ||
13273 | # Is the header present? | |
13274 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13275 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13276 | cat >conftest.$ac_ext <<_ACEOF | |
13277 | /* confdefs.h. */ | |
13278 | _ACEOF | |
13279 | cat confdefs.h >>conftest.$ac_ext | |
13280 | cat >>conftest.$ac_ext <<_ACEOF | |
13281 | /* end confdefs.h. */ | |
13282 | #include <$ac_header> | |
13283 | _ACEOF | |
13284 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13285 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13286 | ac_status=$? | |
13287 | grep -v '^ *+' conftest.er1 >conftest.err | |
13288 | rm -f conftest.er1 | |
13289 | cat conftest.err >&5 | |
13290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13291 | (exit $ac_status); } >/dev/null; then | |
13292 | if test -s conftest.err; then | |
13293 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13294 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13295 | else |
13296 | ac_cpp_err= | |
13297 | fi | |
13298 | else | |
13299 | ac_cpp_err=yes | |
13300 | fi | |
13301 | if test -z "$ac_cpp_err"; then | |
13302 | ac_header_preproc=yes | |
13303 | else | |
13304 | echo "$as_me: failed program was:" >&5 | |
13305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13306 | ||
13307 | ac_header_preproc=no | |
13308 | fi | |
13309 | rm -f conftest.err conftest.$ac_ext | |
13310 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13311 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13312 | ||
13313 | # So? What about this header? | |
ac1cb8d3 VS |
13314 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13315 | yes:no: ) | |
a848cd7e SC |
13316 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13317 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13318 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13319 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13320 | ac_header_preproc=yes | |
a848cd7e | 13321 | ;; |
ac1cb8d3 | 13322 | no:yes:* ) |
a848cd7e SC |
13323 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13324 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13325 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13326 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13327 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13328 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13329 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13330 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13332 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13333 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13334 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13335 | ( |
13336 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13337 | ## ----------------------------------------- ## |
13338 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13339 | ## ----------------------------------------- ## | |
a848cd7e SC |
13340 | _ASBOX |
13341 | ) | | |
13342 | sed "s/^/$as_me: WARNING: /" >&2 | |
13343 | ;; | |
13344 | esac | |
13345 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13347 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13349 | else | |
ac1cb8d3 | 13350 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13351 | fi |
13352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13353 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13354 | ||
13355 | fi | |
13356 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13357 | cat >>confdefs.h <<_ACEOF | |
13358 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13359 | _ACEOF | |
13360 | ||
13361 | fi | |
13362 | ||
13363 | done | |
13364 | ||
13365 | ||
13366 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13367 | ||
13368 | for ac_header in wcstr.h | |
13369 | do | |
13370 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13376 | fi | |
13377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13379 | else | |
13380 | # Is the header compilable? | |
13381 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13382 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13383 | cat >conftest.$ac_ext <<_ACEOF | |
13384 | /* confdefs.h. */ | |
13385 | _ACEOF | |
13386 | cat confdefs.h >>conftest.$ac_ext | |
13387 | cat >>conftest.$ac_ext <<_ACEOF | |
13388 | /* end confdefs.h. */ | |
13389 | $ac_includes_default | |
13390 | #include <$ac_header> | |
13391 | _ACEOF | |
13392 | rm -f conftest.$ac_objext | |
13393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13394 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13395 | ac_status=$? |
ac1cb8d3 VS |
13396 | grep -v '^ *+' conftest.er1 >conftest.err |
13397 | rm -f conftest.er1 | |
13398 | cat conftest.err >&5 | |
a848cd7e SC |
13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13400 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13401 | { ac_try='test -z "$ac_c_werror_flag" |
13402 | || test ! -s conftest.err' | |
13403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13404 | (eval $ac_try) 2>&5 | |
13405 | ac_status=$? | |
13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13407 | (exit $ac_status); }; } && | |
13408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13410 | (eval $ac_try) 2>&5 | |
13411 | ac_status=$? | |
13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13413 | (exit $ac_status); }; }; then | |
13414 | ac_header_compiler=yes | |
13415 | else | |
13416 | echo "$as_me: failed program was:" >&5 | |
13417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13418 | ||
13419 | ac_header_compiler=no | |
13420 | fi | |
ac1cb8d3 | 13421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13422 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13423 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13424 | ||
13425 | # Is the header present? | |
13426 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13427 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13428 | cat >conftest.$ac_ext <<_ACEOF | |
13429 | /* confdefs.h. */ | |
13430 | _ACEOF | |
13431 | cat confdefs.h >>conftest.$ac_ext | |
13432 | cat >>conftest.$ac_ext <<_ACEOF | |
13433 | /* end confdefs.h. */ | |
13434 | #include <$ac_header> | |
13435 | _ACEOF | |
13436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13438 | ac_status=$? | |
13439 | grep -v '^ *+' conftest.er1 >conftest.err | |
13440 | rm -f conftest.er1 | |
13441 | cat conftest.err >&5 | |
13442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13443 | (exit $ac_status); } >/dev/null; then | |
13444 | if test -s conftest.err; then | |
13445 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13446 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13447 | else |
13448 | ac_cpp_err= | |
13449 | fi | |
13450 | else | |
13451 | ac_cpp_err=yes | |
13452 | fi | |
13453 | if test -z "$ac_cpp_err"; then | |
13454 | ac_header_preproc=yes | |
13455 | else | |
13456 | echo "$as_me: failed program was:" >&5 | |
13457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13458 | ||
13459 | ac_header_preproc=no | |
13460 | fi | |
13461 | rm -f conftest.err conftest.$ac_ext | |
13462 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13463 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13464 | ||
13465 | # So? What about this header? | |
ac1cb8d3 VS |
13466 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13467 | yes:no: ) | |
a848cd7e SC |
13468 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13469 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13470 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13471 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13472 | ac_header_preproc=yes | |
a848cd7e | 13473 | ;; |
ac1cb8d3 | 13474 | no:yes:* ) |
a848cd7e SC |
13475 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13476 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13477 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13478 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13479 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13480 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13481 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13482 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13483 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13484 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13485 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13486 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13487 | ( |
13488 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13489 | ## ----------------------------------------- ## |
13490 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13491 | ## ----------------------------------------- ## | |
a848cd7e SC |
13492 | _ASBOX |
13493 | ) | | |
13494 | sed "s/^/$as_me: WARNING: /" >&2 | |
13495 | ;; | |
13496 | esac | |
13497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13501 | else | |
ac1cb8d3 | 13502 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13503 | fi |
13504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13506 | ||
13507 | fi | |
13508 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13509 | cat >>confdefs.h <<_ACEOF | |
13510 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13511 | _ACEOF | |
13512 | ||
13513 | fi | |
13514 | ||
13515 | done | |
13516 | ||
13517 | fi | |
13518 | ||
13519 | ||
13520 | for ac_header in fnmatch.h | |
13521 | do | |
13522 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13524 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13528 | fi | |
13529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13531 | else | |
13532 | # Is the header compilable? | |
13533 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13534 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13535 | cat >conftest.$ac_ext <<_ACEOF | |
13536 | /* confdefs.h. */ | |
13537 | _ACEOF | |
13538 | cat confdefs.h >>conftest.$ac_ext | |
13539 | cat >>conftest.$ac_ext <<_ACEOF | |
13540 | /* end confdefs.h. */ | |
13541 | $ac_includes_default | |
13542 | #include <$ac_header> | |
13543 | _ACEOF | |
13544 | rm -f conftest.$ac_objext | |
13545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13546 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13547 | ac_status=$? |
ac1cb8d3 VS |
13548 | grep -v '^ *+' conftest.er1 >conftest.err |
13549 | rm -f conftest.er1 | |
13550 | cat conftest.err >&5 | |
a848cd7e SC |
13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13552 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13553 | { ac_try='test -z "$ac_c_werror_flag" |
13554 | || test ! -s conftest.err' | |
13555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13556 | (eval $ac_try) 2>&5 | |
13557 | ac_status=$? | |
13558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13559 | (exit $ac_status); }; } && | |
13560 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13562 | (eval $ac_try) 2>&5 | |
13563 | ac_status=$? | |
13564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13565 | (exit $ac_status); }; }; then | |
13566 | ac_header_compiler=yes | |
13567 | else | |
13568 | echo "$as_me: failed program was:" >&5 | |
13569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13570 | ||
13571 | ac_header_compiler=no | |
13572 | fi | |
ac1cb8d3 | 13573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13574 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13575 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13576 | ||
13577 | # Is the header present? | |
13578 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13579 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13580 | cat >conftest.$ac_ext <<_ACEOF | |
13581 | /* confdefs.h. */ | |
13582 | _ACEOF | |
13583 | cat confdefs.h >>conftest.$ac_ext | |
13584 | cat >>conftest.$ac_ext <<_ACEOF | |
13585 | /* end confdefs.h. */ | |
13586 | #include <$ac_header> | |
13587 | _ACEOF | |
13588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13590 | ac_status=$? | |
13591 | grep -v '^ *+' conftest.er1 >conftest.err | |
13592 | rm -f conftest.er1 | |
13593 | cat conftest.err >&5 | |
13594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13595 | (exit $ac_status); } >/dev/null; then | |
13596 | if test -s conftest.err; then | |
13597 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13599 | else |
13600 | ac_cpp_err= | |
13601 | fi | |
13602 | else | |
13603 | ac_cpp_err=yes | |
13604 | fi | |
13605 | if test -z "$ac_cpp_err"; then | |
13606 | ac_header_preproc=yes | |
13607 | else | |
13608 | echo "$as_me: failed program was:" >&5 | |
13609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13610 | ||
13611 | ac_header_preproc=no | |
13612 | fi | |
13613 | rm -f conftest.err conftest.$ac_ext | |
13614 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13615 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13616 | ||
13617 | # So? What about this header? | |
ac1cb8d3 VS |
13618 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13619 | yes:no: ) | |
a848cd7e SC |
13620 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13621 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13623 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13624 | ac_header_preproc=yes | |
a848cd7e | 13625 | ;; |
ac1cb8d3 | 13626 | no:yes:* ) |
a848cd7e SC |
13627 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13628 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13629 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13630 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13631 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13632 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13633 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13634 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13635 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13636 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13637 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13638 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13639 | ( |
13640 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13641 | ## ----------------------------------------- ## |
13642 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13643 | ## ----------------------------------------- ## | |
a848cd7e SC |
13644 | _ASBOX |
13645 | ) | | |
13646 | sed "s/^/$as_me: WARNING: /" >&2 | |
13647 | ;; | |
13648 | esac | |
13649 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13653 | else | |
ac1cb8d3 | 13654 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13655 | fi |
13656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13658 | ||
13659 | fi | |
13660 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13661 | cat >>confdefs.h <<_ACEOF | |
13662 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13663 | _ACEOF | |
13664 | ||
13665 | fi | |
13666 | ||
13667 | done | |
13668 | ||
13669 | ||
13670 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13671 | ||
13672 | for ac_func in fnmatch | |
13673 | do | |
13674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13675 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13677 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13679 | else | |
13680 | cat >conftest.$ac_ext <<_ACEOF | |
13681 | /* confdefs.h. */ | |
13682 | _ACEOF | |
13683 | cat confdefs.h >>conftest.$ac_ext | |
13684 | cat >>conftest.$ac_ext <<_ACEOF | |
13685 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13686 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13687 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13688 | #define $ac_func innocuous_$ac_func | |
13689 | ||
a848cd7e SC |
13690 | /* System header to define __stub macros and hopefully few prototypes, |
13691 | which can conflict with char $ac_func (); below. | |
13692 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13693 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13694 | |
a848cd7e SC |
13695 | #ifdef __STDC__ |
13696 | # include <limits.h> | |
13697 | #else | |
13698 | # include <assert.h> | |
13699 | #endif | |
ac1cb8d3 VS |
13700 | |
13701 | #undef $ac_func | |
13702 | ||
a848cd7e SC |
13703 | /* Override any gcc2 internal prototype to avoid an error. */ |
13704 | #ifdef __cplusplus | |
13705 | extern "C" | |
13706 | { | |
13707 | #endif | |
13708 | /* We use char because int might match the return type of a gcc2 | |
13709 | builtin and then its argument prototype would still apply. */ | |
13710 | char $ac_func (); | |
13711 | /* The GNU C library defines this for functions which it implements | |
13712 | to always fail with ENOSYS. Some functions are actually named | |
13713 | something starting with __ and the normal name is an alias. */ | |
13714 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13715 | choke me | |
13716 | #else | |
13717 | char (*f) () = $ac_func; | |
13718 | #endif | |
13719 | #ifdef __cplusplus | |
13720 | } | |
13721 | #endif | |
13722 | ||
13723 | int | |
13724 | main () | |
13725 | { | |
13726 | return f != $ac_func; | |
13727 | ; | |
13728 | return 0; | |
13729 | } | |
13730 | _ACEOF | |
13731 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13733 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13734 | ac_status=$? |
ac1cb8d3 VS |
13735 | grep -v '^ *+' conftest.er1 >conftest.err |
13736 | rm -f conftest.er1 | |
13737 | cat conftest.err >&5 | |
a848cd7e SC |
13738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13739 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13740 | { ac_try='test -z "$ac_c_werror_flag" |
13741 | || test ! -s conftest.err' | |
13742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13743 | (eval $ac_try) 2>&5 | |
13744 | ac_status=$? | |
13745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13746 | (exit $ac_status); }; } && | |
13747 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13749 | (eval $ac_try) 2>&5 | |
13750 | ac_status=$? | |
13751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13752 | (exit $ac_status); }; }; then | |
13753 | eval "$as_ac_var=yes" | |
13754 | else | |
13755 | echo "$as_me: failed program was:" >&5 | |
13756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13757 | ||
13758 | eval "$as_ac_var=no" | |
13759 | fi | |
ac1cb8d3 VS |
13760 | rm -f conftest.err conftest.$ac_objext \ |
13761 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13762 | fi |
13763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13764 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13765 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13766 | cat >>confdefs.h <<_ACEOF | |
13767 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13768 | _ACEOF | |
13769 | ||
13770 | fi | |
13771 | done | |
13772 | ||
13773 | fi | |
13774 | ||
13775 | ||
13776 | for ac_header in langinfo.h | |
13777 | do | |
13778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13779 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13780 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13784 | fi | |
13785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13786 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13787 | else | |
13788 | # Is the header compilable? | |
13789 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13790 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13791 | cat >conftest.$ac_ext <<_ACEOF | |
13792 | /* confdefs.h. */ | |
13793 | _ACEOF | |
13794 | cat confdefs.h >>conftest.$ac_ext | |
13795 | cat >>conftest.$ac_ext <<_ACEOF | |
13796 | /* end confdefs.h. */ | |
13797 | $ac_includes_default | |
13798 | #include <$ac_header> | |
13799 | _ACEOF | |
13800 | rm -f conftest.$ac_objext | |
13801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13802 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13803 | ac_status=$? |
ac1cb8d3 VS |
13804 | grep -v '^ *+' conftest.er1 >conftest.err |
13805 | rm -f conftest.er1 | |
13806 | cat conftest.err >&5 | |
a848cd7e SC |
13807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13808 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13809 | { ac_try='test -z "$ac_c_werror_flag" |
13810 | || test ! -s conftest.err' | |
13811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13812 | (eval $ac_try) 2>&5 | |
13813 | ac_status=$? | |
13814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13815 | (exit $ac_status); }; } && | |
13816 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13818 | (eval $ac_try) 2>&5 | |
13819 | ac_status=$? | |
13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13821 | (exit $ac_status); }; }; then | |
13822 | ac_header_compiler=yes | |
13823 | else | |
13824 | echo "$as_me: failed program was:" >&5 | |
13825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13826 | ||
13827 | ac_header_compiler=no | |
13828 | fi | |
ac1cb8d3 | 13829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13830 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13831 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13832 | ||
13833 | # Is the header present? | |
13834 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13835 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13836 | cat >conftest.$ac_ext <<_ACEOF | |
13837 | /* confdefs.h. */ | |
13838 | _ACEOF | |
13839 | cat confdefs.h >>conftest.$ac_ext | |
13840 | cat >>conftest.$ac_ext <<_ACEOF | |
13841 | /* end confdefs.h. */ | |
13842 | #include <$ac_header> | |
13843 | _ACEOF | |
13844 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13845 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13846 | ac_status=$? | |
13847 | grep -v '^ *+' conftest.er1 >conftest.err | |
13848 | rm -f conftest.er1 | |
13849 | cat conftest.err >&5 | |
13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13851 | (exit $ac_status); } >/dev/null; then | |
13852 | if test -s conftest.err; then | |
13853 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13854 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13855 | else |
13856 | ac_cpp_err= | |
13857 | fi | |
13858 | else | |
13859 | ac_cpp_err=yes | |
13860 | fi | |
13861 | if test -z "$ac_cpp_err"; then | |
13862 | ac_header_preproc=yes | |
13863 | else | |
13864 | echo "$as_me: failed program was:" >&5 | |
13865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13866 | ||
13867 | ac_header_preproc=no | |
13868 | fi | |
13869 | rm -f conftest.err conftest.$ac_ext | |
13870 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13871 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13872 | ||
13873 | # So? What about this header? | |
ac1cb8d3 VS |
13874 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13875 | yes:no: ) | |
a848cd7e SC |
13876 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13877 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13878 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13879 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13880 | ac_header_preproc=yes | |
a848cd7e | 13881 | ;; |
ac1cb8d3 | 13882 | no:yes:* ) |
a848cd7e SC |
13883 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13884 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13885 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13886 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13887 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13888 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13889 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13890 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13891 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13892 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13893 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13894 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13895 | ( |
13896 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13897 | ## ----------------------------------------- ## |
13898 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13899 | ## ----------------------------------------- ## | |
a848cd7e SC |
13900 | _ASBOX |
13901 | ) | | |
13902 | sed "s/^/$as_me: WARNING: /" >&2 | |
13903 | ;; | |
13904 | esac | |
13905 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13906 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13907 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13909 | else | |
ac1cb8d3 | 13910 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13911 | fi |
13912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13913 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13914 | ||
13915 | fi | |
13916 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13917 | cat >>confdefs.h <<_ACEOF | |
13918 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13919 | _ACEOF | |
13920 | ||
13921 | fi | |
13922 | ||
13923 | done | |
13924 | ||
13925 | ||
13926 | case "${host}" in | |
13927 | *-pc-os2_emx | *-pc-os2-emx ) | |
13928 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13929 | LIBS="$LIBS -lintl" | |
13930 | fi | |
13931 | ;; | |
13932 | esac | |
13933 | ||
13934 | if test "$wxUSE_GUI" = "yes"; then | |
13935 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
13936 | ||
13937 | for ac_header in X11/Xlib.h | |
13938 | do | |
13939 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13940 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13941 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13945 | fi | |
13946 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13947 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13948 | else | |
13949 | # Is the header compilable? | |
13950 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13951 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13952 | cat >conftest.$ac_ext <<_ACEOF | |
13953 | /* confdefs.h. */ | |
13954 | _ACEOF | |
13955 | cat confdefs.h >>conftest.$ac_ext | |
13956 | cat >>conftest.$ac_ext <<_ACEOF | |
13957 | /* end confdefs.h. */ | |
13958 | $ac_includes_default | |
13959 | #include <$ac_header> | |
13960 | _ACEOF | |
13961 | rm -f conftest.$ac_objext | |
13962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13963 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13964 | ac_status=$? |
ac1cb8d3 VS |
13965 | grep -v '^ *+' conftest.er1 >conftest.err |
13966 | rm -f conftest.er1 | |
13967 | cat conftest.err >&5 | |
a848cd7e SC |
13968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13969 | (exit $ac_status); } && | |
ac1cb8d3 VS |
13970 | { ac_try='test -z "$ac_c_werror_flag" |
13971 | || test ! -s conftest.err' | |
13972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13973 | (eval $ac_try) 2>&5 | |
13974 | ac_status=$? | |
13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13976 | (exit $ac_status); }; } && | |
13977 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13979 | (eval $ac_try) 2>&5 | |
13980 | ac_status=$? | |
13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13982 | (exit $ac_status); }; }; then | |
13983 | ac_header_compiler=yes | |
13984 | else | |
13985 | echo "$as_me: failed program was:" >&5 | |
13986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13987 | ||
13988 | ac_header_compiler=no | |
13989 | fi | |
ac1cb8d3 | 13990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13991 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13992 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13993 | ||
13994 | # Is the header present? | |
13995 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13996 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13997 | cat >conftest.$ac_ext <<_ACEOF | |
13998 | /* confdefs.h. */ | |
13999 | _ACEOF | |
14000 | cat confdefs.h >>conftest.$ac_ext | |
14001 | cat >>conftest.$ac_ext <<_ACEOF | |
14002 | /* end confdefs.h. */ | |
14003 | #include <$ac_header> | |
14004 | _ACEOF | |
14005 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14007 | ac_status=$? | |
14008 | grep -v '^ *+' conftest.er1 >conftest.err | |
14009 | rm -f conftest.er1 | |
14010 | cat conftest.err >&5 | |
14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14012 | (exit $ac_status); } >/dev/null; then | |
14013 | if test -s conftest.err; then | |
14014 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14015 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14016 | else |
14017 | ac_cpp_err= | |
14018 | fi | |
14019 | else | |
14020 | ac_cpp_err=yes | |
14021 | fi | |
14022 | if test -z "$ac_cpp_err"; then | |
14023 | ac_header_preproc=yes | |
14024 | else | |
14025 | echo "$as_me: failed program was:" >&5 | |
14026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14027 | ||
14028 | ac_header_preproc=no | |
14029 | fi | |
14030 | rm -f conftest.err conftest.$ac_ext | |
14031 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14032 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14033 | ||
14034 | # So? What about this header? | |
ac1cb8d3 VS |
14035 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14036 | yes:no: ) | |
a848cd7e SC |
14037 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14038 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14039 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14040 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14041 | ac_header_preproc=yes | |
a848cd7e | 14042 | ;; |
ac1cb8d3 | 14043 | no:yes:* ) |
a848cd7e SC |
14044 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14045 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14046 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14047 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14048 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14049 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14050 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14051 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14054 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14055 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14056 | ( |
14057 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14058 | ## ----------------------------------------- ## |
14059 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14060 | ## ----------------------------------------- ## | |
a848cd7e SC |
14061 | _ASBOX |
14062 | ) | | |
14063 | sed "s/^/$as_me: WARNING: /" >&2 | |
14064 | ;; | |
14065 | esac | |
14066 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14070 | else | |
ac1cb8d3 | 14071 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14072 | fi |
14073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14075 | ||
14076 | fi | |
14077 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14078 | cat >>confdefs.h <<_ACEOF | |
14079 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14080 | _ACEOF | |
14081 | ||
14082 | fi | |
14083 | ||
14084 | done | |
14085 | ||
14086 | ||
14087 | for ac_header in X11/XKBlib.h | |
14088 | do | |
14089 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14090 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14091 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14094 | else | |
14095 | cat >conftest.$ac_ext <<_ACEOF | |
14096 | /* confdefs.h. */ | |
14097 | _ACEOF | |
14098 | cat confdefs.h >>conftest.$ac_ext | |
14099 | cat >>conftest.$ac_ext <<_ACEOF | |
14100 | /* end confdefs.h. */ | |
14101 | ||
14102 | #if HAVE_X11_XLIB_H | |
14103 | #include <X11/Xlib.h> | |
14104 | #endif | |
14105 | ||
14106 | ||
14107 | #include <$ac_header> | |
14108 | _ACEOF | |
14109 | rm -f conftest.$ac_objext | |
14110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14112 | ac_status=$? |
ac1cb8d3 VS |
14113 | grep -v '^ *+' conftest.er1 >conftest.err |
14114 | rm -f conftest.er1 | |
14115 | cat conftest.err >&5 | |
a848cd7e SC |
14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14117 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14118 | { ac_try='test -z "$ac_c_werror_flag" |
14119 | || test ! -s conftest.err' | |
14120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14121 | (eval $ac_try) 2>&5 | |
14122 | ac_status=$? | |
14123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14124 | (exit $ac_status); }; } && | |
14125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14127 | (eval $ac_try) 2>&5 | |
14128 | ac_status=$? | |
14129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14130 | (exit $ac_status); }; }; then | |
14131 | eval "$as_ac_Header=yes" | |
14132 | else | |
14133 | echo "$as_me: failed program was:" >&5 | |
14134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14135 | ||
14136 | eval "$as_ac_Header=no" | |
14137 | fi | |
ac1cb8d3 | 14138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14139 | fi |
14140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14143 | cat >>confdefs.h <<_ACEOF | |
14144 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14145 | _ACEOF | |
14146 | ||
14147 | fi | |
14148 | ||
14149 | done | |
14150 | ||
14151 | fi | |
14152 | fi | |
14153 | ||
14154 | ||
14155 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14156 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14157 | if test "${ac_cv_c_const+set}" = set; then | |
14158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14159 | else | |
14160 | cat >conftest.$ac_ext <<_ACEOF | |
14161 | /* confdefs.h. */ | |
14162 | _ACEOF | |
14163 | cat confdefs.h >>conftest.$ac_ext | |
14164 | cat >>conftest.$ac_ext <<_ACEOF | |
14165 | /* end confdefs.h. */ | |
14166 | ||
14167 | int | |
14168 | main () | |
14169 | { | |
14170 | /* FIXME: Include the comments suggested by Paul. */ | |
14171 | #ifndef __cplusplus | |
14172 | /* Ultrix mips cc rejects this. */ | |
14173 | typedef int charset[2]; | |
14174 | const charset x; | |
14175 | /* SunOS 4.1.1 cc rejects this. */ | |
14176 | char const *const *ccp; | |
14177 | char **p; | |
14178 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14179 | struct point {int x, y;}; | |
14180 | static struct point const zero = {0,0}; | |
14181 | /* AIX XL C 1.02.0.0 rejects this. | |
14182 | It does not let you subtract one const X* pointer from another in | |
14183 | an arm of an if-expression whose if-part is not a constant | |
14184 | expression */ | |
14185 | const char *g = "string"; | |
14186 | ccp = &g + (g ? g-g : 0); | |
14187 | /* HPUX 7.0 cc rejects these. */ | |
14188 | ++ccp; | |
14189 | p = (char**) ccp; | |
14190 | ccp = (char const *const *) p; | |
14191 | { /* SCO 3.2v4 cc rejects this. */ | |
14192 | char *t; | |
14193 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14194 | ||
14195 | *t++ = 0; | |
14196 | } | |
14197 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14198 | int x[] = {25, 17}; | |
14199 | const int *foo = &x[0]; | |
14200 | ++foo; | |
14201 | } | |
14202 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14203 | typedef const int *iptr; | |
14204 | iptr p = 0; | |
14205 | ++p; | |
14206 | } | |
14207 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14208 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14209 | struct s { int j; const int *ap[3]; }; | |
14210 | struct s *b; b->j = 5; | |
14211 | } | |
14212 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14213 | const int foo = 10; | |
14214 | } | |
14215 | #endif | |
14216 | ||
14217 | ; | |
14218 | return 0; | |
14219 | } | |
14220 | _ACEOF | |
14221 | rm -f conftest.$ac_objext | |
14222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14223 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14224 | ac_status=$? |
ac1cb8d3 VS |
14225 | grep -v '^ *+' conftest.er1 >conftest.err |
14226 | rm -f conftest.er1 | |
14227 | cat conftest.err >&5 | |
a848cd7e SC |
14228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14229 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14230 | { ac_try='test -z "$ac_c_werror_flag" |
14231 | || test ! -s conftest.err' | |
14232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14233 | (eval $ac_try) 2>&5 | |
14234 | ac_status=$? | |
14235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14236 | (exit $ac_status); }; } && | |
14237 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14239 | (eval $ac_try) 2>&5 | |
14240 | ac_status=$? | |
14241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14242 | (exit $ac_status); }; }; then | |
14243 | ac_cv_c_const=yes | |
14244 | else | |
14245 | echo "$as_me: failed program was:" >&5 | |
14246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14247 | ||
14248 | ac_cv_c_const=no | |
14249 | fi | |
ac1cb8d3 | 14250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14251 | fi |
14252 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14253 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14254 | if test $ac_cv_c_const = no; then | |
14255 | ||
14256 | cat >>confdefs.h <<\_ACEOF | |
14257 | #define const | |
14258 | _ACEOF | |
14259 | ||
14260 | fi | |
14261 | ||
14262 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14263 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14264 | if test "${ac_cv_c_inline+set}" = set; then | |
14265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14266 | else | |
14267 | ac_cv_c_inline=no | |
14268 | for ac_kw in inline __inline__ __inline; do | |
14269 | cat >conftest.$ac_ext <<_ACEOF | |
14270 | /* confdefs.h. */ | |
14271 | _ACEOF | |
14272 | cat confdefs.h >>conftest.$ac_ext | |
14273 | cat >>conftest.$ac_ext <<_ACEOF | |
14274 | /* end confdefs.h. */ | |
14275 | #ifndef __cplusplus | |
14276 | typedef int foo_t; | |
14277 | static $ac_kw foo_t static_foo () {return 0; } | |
14278 | $ac_kw foo_t foo () {return 0; } | |
14279 | #endif | |
14280 | ||
14281 | _ACEOF | |
14282 | rm -f conftest.$ac_objext | |
14283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14285 | ac_status=$? |
ac1cb8d3 VS |
14286 | grep -v '^ *+' conftest.er1 >conftest.err |
14287 | rm -f conftest.er1 | |
14288 | cat conftest.err >&5 | |
a848cd7e SC |
14289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14290 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14291 | { ac_try='test -z "$ac_c_werror_flag" |
14292 | || test ! -s conftest.err' | |
14293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14294 | (eval $ac_try) 2>&5 | |
14295 | ac_status=$? | |
14296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14297 | (exit $ac_status); }; } && | |
14298 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14300 | (eval $ac_try) 2>&5 | |
14301 | ac_status=$? | |
14302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14303 | (exit $ac_status); }; }; then | |
14304 | ac_cv_c_inline=$ac_kw; break | |
14305 | else | |
14306 | echo "$as_me: failed program was:" >&5 | |
14307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14308 | ||
14309 | fi | |
ac1cb8d3 | 14310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14311 | done |
14312 | ||
14313 | fi | |
14314 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14315 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14316 | |
14317 | ||
a848cd7e SC |
14318 | case $ac_cv_c_inline in |
14319 | inline | yes) ;; | |
ac1cb8d3 VS |
14320 | *) |
14321 | case $ac_cv_c_inline in | |
14322 | no) ac_val=;; | |
14323 | *) ac_val=$ac_cv_c_inline;; | |
14324 | esac | |
14325 | cat >>confdefs.h <<_ACEOF | |
14326 | #ifndef __cplusplus | |
14327 | #define inline $ac_val | |
14328 | #endif | |
de59c161 | 14329 | _ACEOF |
ac1cb8d3 | 14330 | ;; |
a848cd7e SC |
14331 | esac |
14332 | ||
14333 | ||
14334 | echo "$as_me:$LINENO: checking for char" >&5 | |
14335 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14336 | if test "${ac_cv_type_char+set}" = set; then | |
14337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14338 | else | |
14339 | cat >conftest.$ac_ext <<_ACEOF | |
14340 | /* confdefs.h. */ | |
14341 | _ACEOF | |
14342 | cat confdefs.h >>conftest.$ac_ext | |
14343 | cat >>conftest.$ac_ext <<_ACEOF | |
14344 | /* end confdefs.h. */ | |
14345 | $ac_includes_default | |
14346 | int | |
14347 | main () | |
14348 | { | |
14349 | if ((char *) 0) | |
14350 | return 0; | |
14351 | if (sizeof (char)) | |
14352 | return 0; | |
14353 | ; | |
14354 | return 0; | |
14355 | } | |
14356 | _ACEOF | |
14357 | rm -f conftest.$ac_objext | |
14358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14359 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14360 | ac_status=$? |
ac1cb8d3 VS |
14361 | grep -v '^ *+' conftest.er1 >conftest.err |
14362 | rm -f conftest.er1 | |
14363 | cat conftest.err >&5 | |
a848cd7e SC |
14364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14365 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14366 | { ac_try='test -z "$ac_c_werror_flag" |
14367 | || test ! -s conftest.err' | |
14368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14369 | (eval $ac_try) 2>&5 | |
14370 | ac_status=$? | |
14371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14372 | (exit $ac_status); }; } && | |
14373 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14375 | (eval $ac_try) 2>&5 | |
14376 | ac_status=$? | |
14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14378 | (exit $ac_status); }; }; then | |
14379 | ac_cv_type_char=yes | |
14380 | else | |
14381 | echo "$as_me: failed program was:" >&5 | |
14382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14383 | ||
14384 | ac_cv_type_char=no | |
14385 | fi | |
ac1cb8d3 | 14386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14387 | fi |
14388 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14389 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14390 | ||
14391 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14392 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14393 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14395 | else | |
14396 | if test "$ac_cv_type_char" = yes; then | |
14397 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14398 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14399 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14400 | # This bug is HP SR number 8606223364. | |
14401 | if test "$cross_compiling" = yes; then | |
14402 | # Depending upon the size, compute the lo and hi bounds. | |
14403 | cat >conftest.$ac_ext <<_ACEOF | |
14404 | /* confdefs.h. */ | |
14405 | _ACEOF | |
14406 | cat confdefs.h >>conftest.$ac_ext | |
14407 | cat >>conftest.$ac_ext <<_ACEOF | |
14408 | /* end confdefs.h. */ | |
14409 | $ac_includes_default | |
14410 | int | |
14411 | main () | |
14412 | { | |
14413 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14414 | test_array [0] = 0 | |
14415 | ||
14416 | ; | |
14417 | return 0; | |
14418 | } | |
14419 | _ACEOF | |
14420 | rm -f conftest.$ac_objext | |
14421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14422 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14423 | ac_status=$? |
ac1cb8d3 VS |
14424 | grep -v '^ *+' conftest.er1 >conftest.err |
14425 | rm -f conftest.er1 | |
14426 | cat conftest.err >&5 | |
a848cd7e SC |
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14428 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14429 | { ac_try='test -z "$ac_c_werror_flag" |
14430 | || test ! -s conftest.err' | |
14431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14432 | (eval $ac_try) 2>&5 | |
14433 | ac_status=$? | |
14434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14435 | (exit $ac_status); }; } && | |
14436 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14438 | (eval $ac_try) 2>&5 | |
14439 | ac_status=$? | |
14440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14441 | (exit $ac_status); }; }; then | |
14442 | ac_lo=0 ac_mid=0 | |
14443 | while :; do | |
14444 | cat >conftest.$ac_ext <<_ACEOF | |
14445 | /* confdefs.h. */ | |
14446 | _ACEOF | |
14447 | cat confdefs.h >>conftest.$ac_ext | |
14448 | cat >>conftest.$ac_ext <<_ACEOF | |
14449 | /* end confdefs.h. */ | |
14450 | $ac_includes_default | |
14451 | int | |
14452 | main () | |
14453 | { | |
14454 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14455 | test_array [0] = 0 | |
14456 | ||
14457 | ; | |
14458 | return 0; | |
14459 | } | |
14460 | _ACEOF | |
14461 | rm -f conftest.$ac_objext | |
14462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14463 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14464 | ac_status=$? |
ac1cb8d3 VS |
14465 | grep -v '^ *+' conftest.er1 >conftest.err |
14466 | rm -f conftest.er1 | |
14467 | cat conftest.err >&5 | |
a848cd7e SC |
14468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14469 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14470 | { ac_try='test -z "$ac_c_werror_flag" |
14471 | || test ! -s conftest.err' | |
14472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14473 | (eval $ac_try) 2>&5 | |
14474 | ac_status=$? | |
14475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14476 | (exit $ac_status); }; } && | |
14477 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14479 | (eval $ac_try) 2>&5 | |
14480 | ac_status=$? | |
14481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14482 | (exit $ac_status); }; }; then | |
14483 | ac_hi=$ac_mid; break | |
14484 | else | |
14485 | echo "$as_me: failed program was:" >&5 | |
14486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14487 | ||
14488 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14489 | if test $ac_lo -le $ac_mid; then |
14490 | ac_lo= ac_hi= | |
14491 | break | |
14492 | fi | |
14493 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14494 | fi |
ac1cb8d3 | 14495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14496 | done |
14497 | else | |
14498 | echo "$as_me: failed program was:" >&5 | |
14499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14500 | ||
14501 | cat >conftest.$ac_ext <<_ACEOF | |
14502 | /* confdefs.h. */ | |
14503 | _ACEOF | |
14504 | cat confdefs.h >>conftest.$ac_ext | |
14505 | cat >>conftest.$ac_ext <<_ACEOF | |
14506 | /* end confdefs.h. */ | |
14507 | $ac_includes_default | |
14508 | int | |
14509 | main () | |
14510 | { | |
14511 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14512 | test_array [0] = 0 | |
14513 | ||
14514 | ; | |
14515 | return 0; | |
14516 | } | |
14517 | _ACEOF | |
14518 | rm -f conftest.$ac_objext | |
14519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14520 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14521 | ac_status=$? |
ac1cb8d3 VS |
14522 | grep -v '^ *+' conftest.er1 >conftest.err |
14523 | rm -f conftest.er1 | |
14524 | cat conftest.err >&5 | |
a848cd7e SC |
14525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14526 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14527 | { ac_try='test -z "$ac_c_werror_flag" |
14528 | || test ! -s conftest.err' | |
14529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14530 | (eval $ac_try) 2>&5 | |
14531 | ac_status=$? | |
14532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14533 | (exit $ac_status); }; } && | |
14534 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14536 | (eval $ac_try) 2>&5 | |
14537 | ac_status=$? | |
14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14539 | (exit $ac_status); }; }; then | |
14540 | ac_hi=-1 ac_mid=-1 | |
14541 | while :; do | |
14542 | cat >conftest.$ac_ext <<_ACEOF | |
14543 | /* confdefs.h. */ | |
14544 | _ACEOF | |
14545 | cat confdefs.h >>conftest.$ac_ext | |
14546 | cat >>conftest.$ac_ext <<_ACEOF | |
14547 | /* end confdefs.h. */ | |
14548 | $ac_includes_default | |
14549 | int | |
14550 | main () | |
14551 | { | |
14552 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14553 | test_array [0] = 0 | |
14554 | ||
14555 | ; | |
14556 | return 0; | |
14557 | } | |
14558 | _ACEOF | |
14559 | rm -f conftest.$ac_objext | |
14560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14561 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14562 | ac_status=$? |
ac1cb8d3 VS |
14563 | grep -v '^ *+' conftest.er1 >conftest.err |
14564 | rm -f conftest.er1 | |
14565 | cat conftest.err >&5 | |
a848cd7e SC |
14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14567 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14568 | { ac_try='test -z "$ac_c_werror_flag" |
14569 | || test ! -s conftest.err' | |
14570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14571 | (eval $ac_try) 2>&5 | |
14572 | ac_status=$? | |
14573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14574 | (exit $ac_status); }; } && | |
14575 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14577 | (eval $ac_try) 2>&5 | |
14578 | ac_status=$? | |
14579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14580 | (exit $ac_status); }; }; then | |
14581 | ac_lo=$ac_mid; break | |
14582 | else | |
14583 | echo "$as_me: failed program was:" >&5 | |
14584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14585 | ||
14586 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14587 | if test $ac_mid -le $ac_hi; then |
14588 | ac_lo= ac_hi= | |
14589 | break | |
14590 | fi | |
14591 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14592 | fi |
ac1cb8d3 | 14593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14594 | done |
14595 | else | |
14596 | echo "$as_me: failed program was:" >&5 | |
14597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14598 | ||
14599 | ac_lo= ac_hi= | |
14600 | fi | |
ac1cb8d3 | 14601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14602 | fi |
ac1cb8d3 | 14603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14604 | # Binary search between lo and hi bounds. |
14605 | while test "x$ac_lo" != "x$ac_hi"; do | |
14606 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14607 | cat >conftest.$ac_ext <<_ACEOF | |
14608 | /* confdefs.h. */ | |
14609 | _ACEOF | |
14610 | cat confdefs.h >>conftest.$ac_ext | |
14611 | cat >>conftest.$ac_ext <<_ACEOF | |
14612 | /* end confdefs.h. */ | |
14613 | $ac_includes_default | |
14614 | int | |
14615 | main () | |
14616 | { | |
14617 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14618 | test_array [0] = 0 | |
14619 | ||
14620 | ; | |
14621 | return 0; | |
14622 | } | |
14623 | _ACEOF | |
14624 | rm -f conftest.$ac_objext | |
14625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14626 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14627 | ac_status=$? |
ac1cb8d3 VS |
14628 | grep -v '^ *+' conftest.er1 >conftest.err |
14629 | rm -f conftest.er1 | |
14630 | cat conftest.err >&5 | |
a848cd7e SC |
14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14632 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14633 | { ac_try='test -z "$ac_c_werror_flag" |
14634 | || test ! -s conftest.err' | |
14635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14636 | (eval $ac_try) 2>&5 | |
14637 | ac_status=$? | |
14638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14639 | (exit $ac_status); }; } && | |
14640 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14642 | (eval $ac_try) 2>&5 | |
14643 | ac_status=$? | |
14644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14645 | (exit $ac_status); }; }; then | |
14646 | ac_hi=$ac_mid | |
14647 | else | |
14648 | echo "$as_me: failed program was:" >&5 | |
14649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14650 | ||
14651 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14652 | fi | |
ac1cb8d3 | 14653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14654 | done |
14655 | case $ac_lo in | |
14656 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14657 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14658 | See \`config.log' for more details." >&5 | |
14659 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14660 | See \`config.log' for more details." >&2;} | |
14661 | { (exit 1); exit 1; }; } ;; | |
14662 | esac | |
14663 | else | |
14664 | if test "$cross_compiling" = yes; then | |
14665 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14666 | See \`config.log' for more details." >&5 | |
14667 | echo "$as_me: error: cannot run test program while cross compiling | |
14668 | See \`config.log' for more details." >&2;} | |
14669 | { (exit 1); exit 1; }; } | |
14670 | else | |
14671 | cat >conftest.$ac_ext <<_ACEOF | |
14672 | /* confdefs.h. */ | |
14673 | _ACEOF | |
14674 | cat confdefs.h >>conftest.$ac_ext | |
14675 | cat >>conftest.$ac_ext <<_ACEOF | |
14676 | /* end confdefs.h. */ | |
14677 | $ac_includes_default | |
14678 | long longval () { return (long) (sizeof (char)); } | |
14679 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14680 | #include <stdio.h> | |
14681 | #include <stdlib.h> | |
14682 | int | |
14683 | main () | |
14684 | { | |
14685 | ||
14686 | FILE *f = fopen ("conftest.val", "w"); | |
14687 | if (! f) | |
14688 | exit (1); | |
14689 | if (((long) (sizeof (char))) < 0) | |
14690 | { | |
14691 | long i = longval (); | |
14692 | if (i != ((long) (sizeof (char)))) | |
14693 | exit (1); | |
14694 | fprintf (f, "%ld\n", i); | |
14695 | } | |
14696 | else | |
14697 | { | |
14698 | unsigned long i = ulongval (); | |
14699 | if (i != ((long) (sizeof (char)))) | |
14700 | exit (1); | |
14701 | fprintf (f, "%lu\n", i); | |
14702 | } | |
14703 | exit (ferror (f) || fclose (f) != 0); | |
14704 | ||
14705 | ; | |
14706 | return 0; | |
14707 | } | |
14708 | _ACEOF | |
14709 | rm -f conftest$ac_exeext | |
14710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14711 | (eval $ac_link) 2>&5 | |
14712 | ac_status=$? | |
14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14714 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14716 | (eval $ac_try) 2>&5 | |
14717 | ac_status=$? | |
14718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14719 | (exit $ac_status); }; }; then | |
14720 | ac_cv_sizeof_char=`cat conftest.val` | |
14721 | else | |
14722 | echo "$as_me: program exited with status $ac_status" >&5 | |
14723 | echo "$as_me: failed program was:" >&5 | |
14724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14725 | ||
14726 | ( exit $ac_status ) | |
14727 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14728 | See \`config.log' for more details." >&5 | |
14729 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14730 | See \`config.log' for more details." >&2;} | |
14731 | { (exit 1); exit 1; }; } | |
14732 | fi | |
ac1cb8d3 | 14733 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14734 | fi |
14735 | fi | |
14736 | rm -f conftest.val | |
14737 | else | |
14738 | ac_cv_sizeof_char=0 | |
14739 | fi | |
14740 | fi | |
14741 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14742 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14743 | cat >>confdefs.h <<_ACEOF | |
14744 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14745 | _ACEOF | |
14746 | ||
14747 | ||
14748 | echo "$as_me:$LINENO: checking for short" >&5 | |
14749 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14750 | if test "${ac_cv_type_short+set}" = set; then | |
14751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14752 | else | |
14753 | cat >conftest.$ac_ext <<_ACEOF | |
14754 | /* confdefs.h. */ | |
14755 | _ACEOF | |
14756 | cat confdefs.h >>conftest.$ac_ext | |
14757 | cat >>conftest.$ac_ext <<_ACEOF | |
14758 | /* end confdefs.h. */ | |
14759 | $ac_includes_default | |
14760 | int | |
14761 | main () | |
14762 | { | |
14763 | if ((short *) 0) | |
14764 | return 0; | |
14765 | if (sizeof (short)) | |
14766 | return 0; | |
14767 | ; | |
14768 | return 0; | |
14769 | } | |
14770 | _ACEOF | |
14771 | rm -f conftest.$ac_objext | |
14772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14773 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14774 | ac_status=$? |
ac1cb8d3 VS |
14775 | grep -v '^ *+' conftest.er1 >conftest.err |
14776 | rm -f conftest.er1 | |
14777 | cat conftest.err >&5 | |
a848cd7e SC |
14778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14779 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14780 | { ac_try='test -z "$ac_c_werror_flag" |
14781 | || test ! -s conftest.err' | |
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); }; } && | |
14787 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14789 | (eval $ac_try) 2>&5 | |
14790 | ac_status=$? | |
14791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14792 | (exit $ac_status); }; }; then | |
14793 | ac_cv_type_short=yes | |
14794 | else | |
14795 | echo "$as_me: failed program was:" >&5 | |
14796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14797 | ||
14798 | ac_cv_type_short=no | |
14799 | fi | |
ac1cb8d3 | 14800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14801 | fi |
14802 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14803 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14804 | ||
14805 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14806 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14807 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14809 | else | |
14810 | if test "$ac_cv_type_short" = yes; then | |
14811 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14812 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14813 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14814 | # This bug is HP SR number 8606223364. | |
14815 | if test "$cross_compiling" = yes; then | |
14816 | # Depending upon the size, compute the lo and hi bounds. | |
14817 | cat >conftest.$ac_ext <<_ACEOF | |
14818 | /* confdefs.h. */ | |
14819 | _ACEOF | |
14820 | cat confdefs.h >>conftest.$ac_ext | |
14821 | cat >>conftest.$ac_ext <<_ACEOF | |
14822 | /* end confdefs.h. */ | |
14823 | $ac_includes_default | |
14824 | int | |
14825 | main () | |
14826 | { | |
14827 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14828 | test_array [0] = 0 | |
14829 | ||
14830 | ; | |
14831 | return 0; | |
14832 | } | |
14833 | _ACEOF | |
14834 | rm -f conftest.$ac_objext | |
14835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14836 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14837 | ac_status=$? |
ac1cb8d3 VS |
14838 | grep -v '^ *+' conftest.er1 >conftest.err |
14839 | rm -f conftest.er1 | |
14840 | cat conftest.err >&5 | |
a848cd7e SC |
14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14842 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14843 | { ac_try='test -z "$ac_c_werror_flag" |
14844 | || test ! -s conftest.err' | |
14845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14846 | (eval $ac_try) 2>&5 | |
14847 | ac_status=$? | |
14848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14849 | (exit $ac_status); }; } && | |
14850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14852 | (eval $ac_try) 2>&5 | |
14853 | ac_status=$? | |
14854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14855 | (exit $ac_status); }; }; then | |
14856 | ac_lo=0 ac_mid=0 | |
14857 | while :; do | |
14858 | cat >conftest.$ac_ext <<_ACEOF | |
14859 | /* confdefs.h. */ | |
14860 | _ACEOF | |
14861 | cat confdefs.h >>conftest.$ac_ext | |
14862 | cat >>conftest.$ac_ext <<_ACEOF | |
14863 | /* end confdefs.h. */ | |
14864 | $ac_includes_default | |
14865 | int | |
14866 | main () | |
14867 | { | |
14868 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14869 | test_array [0] = 0 | |
14870 | ||
14871 | ; | |
14872 | return 0; | |
14873 | } | |
14874 | _ACEOF | |
14875 | rm -f conftest.$ac_objext | |
14876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14877 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14878 | ac_status=$? |
ac1cb8d3 VS |
14879 | grep -v '^ *+' conftest.er1 >conftest.err |
14880 | rm -f conftest.er1 | |
14881 | cat conftest.err >&5 | |
a848cd7e SC |
14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14883 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14884 | { ac_try='test -z "$ac_c_werror_flag" |
14885 | || test ! -s conftest.err' | |
14886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14887 | (eval $ac_try) 2>&5 | |
14888 | ac_status=$? | |
14889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14890 | (exit $ac_status); }; } && | |
14891 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14893 | (eval $ac_try) 2>&5 | |
14894 | ac_status=$? | |
14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14896 | (exit $ac_status); }; }; then | |
14897 | ac_hi=$ac_mid; break | |
14898 | else | |
14899 | echo "$as_me: failed program was:" >&5 | |
14900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14901 | ||
14902 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14903 | if test $ac_lo -le $ac_mid; then |
14904 | ac_lo= ac_hi= | |
14905 | break | |
14906 | fi | |
14907 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14908 | fi |
ac1cb8d3 | 14909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14910 | done |
14911 | else | |
14912 | echo "$as_me: failed program was:" >&5 | |
14913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14914 | ||
14915 | cat >conftest.$ac_ext <<_ACEOF | |
14916 | /* confdefs.h. */ | |
14917 | _ACEOF | |
14918 | cat confdefs.h >>conftest.$ac_ext | |
14919 | cat >>conftest.$ac_ext <<_ACEOF | |
14920 | /* end confdefs.h. */ | |
14921 | $ac_includes_default | |
14922 | int | |
14923 | main () | |
14924 | { | |
14925 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14926 | test_array [0] = 0 | |
14927 | ||
14928 | ; | |
14929 | return 0; | |
14930 | } | |
14931 | _ACEOF | |
14932 | rm -f conftest.$ac_objext | |
14933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14934 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14935 | ac_status=$? |
ac1cb8d3 VS |
14936 | grep -v '^ *+' conftest.er1 >conftest.err |
14937 | rm -f conftest.er1 | |
14938 | cat conftest.err >&5 | |
a848cd7e SC |
14939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14940 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14941 | { ac_try='test -z "$ac_c_werror_flag" |
14942 | || test ! -s conftest.err' | |
14943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14944 | (eval $ac_try) 2>&5 | |
14945 | ac_status=$? | |
14946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14947 | (exit $ac_status); }; } && | |
14948 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14950 | (eval $ac_try) 2>&5 | |
14951 | ac_status=$? | |
14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14953 | (exit $ac_status); }; }; then | |
14954 | ac_hi=-1 ac_mid=-1 | |
14955 | while :; do | |
14956 | cat >conftest.$ac_ext <<_ACEOF | |
14957 | /* confdefs.h. */ | |
14958 | _ACEOF | |
14959 | cat confdefs.h >>conftest.$ac_ext | |
14960 | cat >>conftest.$ac_ext <<_ACEOF | |
14961 | /* end confdefs.h. */ | |
14962 | $ac_includes_default | |
14963 | int | |
14964 | main () | |
14965 | { | |
14966 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14967 | test_array [0] = 0 | |
14968 | ||
14969 | ; | |
14970 | return 0; | |
14971 | } | |
14972 | _ACEOF | |
14973 | rm -f conftest.$ac_objext | |
14974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14975 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14976 | ac_status=$? |
ac1cb8d3 VS |
14977 | grep -v '^ *+' conftest.er1 >conftest.err |
14978 | rm -f conftest.er1 | |
14979 | cat conftest.err >&5 | |
a848cd7e SC |
14980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14981 | (exit $ac_status); } && | |
ac1cb8d3 VS |
14982 | { ac_try='test -z "$ac_c_werror_flag" |
14983 | || test ! -s conftest.err' | |
14984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14985 | (eval $ac_try) 2>&5 | |
14986 | ac_status=$? | |
14987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14988 | (exit $ac_status); }; } && | |
14989 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14991 | (eval $ac_try) 2>&5 | |
14992 | ac_status=$? | |
14993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14994 | (exit $ac_status); }; }; then | |
14995 | ac_lo=$ac_mid; break | |
14996 | else | |
14997 | echo "$as_me: failed program was:" >&5 | |
14998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14999 | ||
15000 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15001 | if test $ac_mid -le $ac_hi; then |
15002 | ac_lo= ac_hi= | |
15003 | break | |
15004 | fi | |
15005 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15006 | fi |
ac1cb8d3 | 15007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15008 | done |
15009 | else | |
15010 | echo "$as_me: failed program was:" >&5 | |
15011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15012 | ||
15013 | ac_lo= ac_hi= | |
15014 | fi | |
ac1cb8d3 | 15015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15016 | fi |
ac1cb8d3 | 15017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15018 | # Binary search between lo and hi bounds. |
15019 | while test "x$ac_lo" != "x$ac_hi"; do | |
15020 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15021 | cat >conftest.$ac_ext <<_ACEOF | |
15022 | /* confdefs.h. */ | |
15023 | _ACEOF | |
15024 | cat confdefs.h >>conftest.$ac_ext | |
15025 | cat >>conftest.$ac_ext <<_ACEOF | |
15026 | /* end confdefs.h. */ | |
15027 | $ac_includes_default | |
15028 | int | |
15029 | main () | |
15030 | { | |
15031 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15032 | test_array [0] = 0 | |
15033 | ||
15034 | ; | |
15035 | return 0; | |
15036 | } | |
15037 | _ACEOF | |
15038 | rm -f conftest.$ac_objext | |
15039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15040 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15041 | ac_status=$? |
ac1cb8d3 VS |
15042 | grep -v '^ *+' conftest.er1 >conftest.err |
15043 | rm -f conftest.er1 | |
15044 | cat conftest.err >&5 | |
a848cd7e SC |
15045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15046 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15047 | { ac_try='test -z "$ac_c_werror_flag" |
15048 | || test ! -s conftest.err' | |
15049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15050 | (eval $ac_try) 2>&5 | |
15051 | ac_status=$? | |
15052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15053 | (exit $ac_status); }; } && | |
15054 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15056 | (eval $ac_try) 2>&5 | |
15057 | ac_status=$? | |
15058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15059 | (exit $ac_status); }; }; then | |
15060 | ac_hi=$ac_mid | |
15061 | else | |
15062 | echo "$as_me: failed program was:" >&5 | |
15063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15064 | ||
15065 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15066 | fi | |
ac1cb8d3 | 15067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15068 | done |
15069 | case $ac_lo in | |
15070 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15071 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15072 | See \`config.log' for more details." >&5 | |
15073 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15074 | See \`config.log' for more details." >&2;} | |
15075 | { (exit 1); exit 1; }; } ;; | |
15076 | esac | |
15077 | else | |
15078 | if test "$cross_compiling" = yes; then | |
15079 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15080 | See \`config.log' for more details." >&5 | |
15081 | echo "$as_me: error: cannot run test program while cross compiling | |
15082 | See \`config.log' for more details." >&2;} | |
15083 | { (exit 1); exit 1; }; } | |
15084 | else | |
15085 | cat >conftest.$ac_ext <<_ACEOF | |
15086 | /* confdefs.h. */ | |
15087 | _ACEOF | |
15088 | cat confdefs.h >>conftest.$ac_ext | |
15089 | cat >>conftest.$ac_ext <<_ACEOF | |
15090 | /* end confdefs.h. */ | |
15091 | $ac_includes_default | |
15092 | long longval () { return (long) (sizeof (short)); } | |
15093 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15094 | #include <stdio.h> | |
15095 | #include <stdlib.h> | |
15096 | int | |
15097 | main () | |
15098 | { | |
15099 | ||
15100 | FILE *f = fopen ("conftest.val", "w"); | |
15101 | if (! f) | |
15102 | exit (1); | |
15103 | if (((long) (sizeof (short))) < 0) | |
15104 | { | |
15105 | long i = longval (); | |
15106 | if (i != ((long) (sizeof (short)))) | |
15107 | exit (1); | |
15108 | fprintf (f, "%ld\n", i); | |
15109 | } | |
15110 | else | |
15111 | { | |
15112 | unsigned long i = ulongval (); | |
15113 | if (i != ((long) (sizeof (short)))) | |
15114 | exit (1); | |
15115 | fprintf (f, "%lu\n", i); | |
15116 | } | |
15117 | exit (ferror (f) || fclose (f) != 0); | |
15118 | ||
15119 | ; | |
15120 | return 0; | |
15121 | } | |
15122 | _ACEOF | |
15123 | rm -f conftest$ac_exeext | |
15124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15125 | (eval $ac_link) 2>&5 | |
15126 | ac_status=$? | |
15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15128 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15130 | (eval $ac_try) 2>&5 | |
15131 | ac_status=$? | |
15132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15133 | (exit $ac_status); }; }; then | |
15134 | ac_cv_sizeof_short=`cat conftest.val` | |
15135 | else | |
15136 | echo "$as_me: program exited with status $ac_status" >&5 | |
15137 | echo "$as_me: failed program was:" >&5 | |
15138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15139 | ||
15140 | ( exit $ac_status ) | |
15141 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15142 | See \`config.log' for more details." >&5 | |
15143 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15144 | See \`config.log' for more details." >&2;} | |
15145 | { (exit 1); exit 1; }; } | |
15146 | fi | |
ac1cb8d3 | 15147 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15148 | fi |
15149 | fi | |
15150 | rm -f conftest.val | |
15151 | else | |
15152 | ac_cv_sizeof_short=0 | |
15153 | fi | |
15154 | fi | |
15155 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15156 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15157 | cat >>confdefs.h <<_ACEOF | |
15158 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15159 | _ACEOF | |
15160 | ||
15161 | ||
15162 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15163 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15164 | if test "${ac_cv_type_void_p+set}" = set; then | |
15165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15166 | else | |
15167 | cat >conftest.$ac_ext <<_ACEOF | |
15168 | /* confdefs.h. */ | |
15169 | _ACEOF | |
15170 | cat confdefs.h >>conftest.$ac_ext | |
15171 | cat >>conftest.$ac_ext <<_ACEOF | |
15172 | /* end confdefs.h. */ | |
15173 | $ac_includes_default | |
15174 | int | |
15175 | main () | |
15176 | { | |
15177 | if ((void * *) 0) | |
15178 | return 0; | |
15179 | if (sizeof (void *)) | |
15180 | return 0; | |
15181 | ; | |
15182 | return 0; | |
15183 | } | |
15184 | _ACEOF | |
15185 | rm -f conftest.$ac_objext | |
15186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15187 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15188 | ac_status=$? |
ac1cb8d3 VS |
15189 | grep -v '^ *+' conftest.er1 >conftest.err |
15190 | rm -f conftest.er1 | |
15191 | cat conftest.err >&5 | |
a848cd7e SC |
15192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15193 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15194 | { ac_try='test -z "$ac_c_werror_flag" |
15195 | || test ! -s conftest.err' | |
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); }; } && | |
15201 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15203 | (eval $ac_try) 2>&5 | |
15204 | ac_status=$? | |
15205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15206 | (exit $ac_status); }; }; then | |
15207 | ac_cv_type_void_p=yes | |
15208 | else | |
15209 | echo "$as_me: failed program was:" >&5 | |
15210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15211 | ||
15212 | ac_cv_type_void_p=no | |
15213 | fi | |
ac1cb8d3 | 15214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15215 | fi |
15216 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15217 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15218 | ||
15219 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15220 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15221 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15223 | else | |
15224 | if test "$ac_cv_type_void_p" = yes; then | |
15225 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15226 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15227 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15228 | # This bug is HP SR number 8606223364. | |
15229 | if test "$cross_compiling" = yes; then | |
15230 | # Depending upon the size, compute the lo and hi bounds. | |
15231 | cat >conftest.$ac_ext <<_ACEOF | |
15232 | /* confdefs.h. */ | |
15233 | _ACEOF | |
15234 | cat confdefs.h >>conftest.$ac_ext | |
15235 | cat >>conftest.$ac_ext <<_ACEOF | |
15236 | /* end confdefs.h. */ | |
15237 | $ac_includes_default | |
15238 | int | |
15239 | main () | |
15240 | { | |
15241 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15242 | test_array [0] = 0 | |
15243 | ||
15244 | ; | |
15245 | return 0; | |
15246 | } | |
15247 | _ACEOF | |
15248 | rm -f conftest.$ac_objext | |
15249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15250 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15251 | ac_status=$? |
ac1cb8d3 VS |
15252 | grep -v '^ *+' conftest.er1 >conftest.err |
15253 | rm -f conftest.er1 | |
15254 | cat conftest.err >&5 | |
a848cd7e SC |
15255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15256 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15257 | { ac_try='test -z "$ac_c_werror_flag" |
15258 | || test ! -s conftest.err' | |
15259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15260 | (eval $ac_try) 2>&5 | |
15261 | ac_status=$? | |
15262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15263 | (exit $ac_status); }; } && | |
15264 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15266 | (eval $ac_try) 2>&5 | |
15267 | ac_status=$? | |
15268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15269 | (exit $ac_status); }; }; then | |
15270 | ac_lo=0 ac_mid=0 | |
15271 | while :; do | |
15272 | cat >conftest.$ac_ext <<_ACEOF | |
15273 | /* confdefs.h. */ | |
15274 | _ACEOF | |
15275 | cat confdefs.h >>conftest.$ac_ext | |
15276 | cat >>conftest.$ac_ext <<_ACEOF | |
15277 | /* end confdefs.h. */ | |
15278 | $ac_includes_default | |
15279 | int | |
15280 | main () | |
15281 | { | |
15282 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15283 | test_array [0] = 0 | |
15284 | ||
15285 | ; | |
15286 | return 0; | |
15287 | } | |
15288 | _ACEOF | |
15289 | rm -f conftest.$ac_objext | |
15290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15291 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15292 | ac_status=$? |
ac1cb8d3 VS |
15293 | grep -v '^ *+' conftest.er1 >conftest.err |
15294 | rm -f conftest.er1 | |
15295 | cat conftest.err >&5 | |
a848cd7e SC |
15296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15297 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15298 | { ac_try='test -z "$ac_c_werror_flag" |
15299 | || test ! -s conftest.err' | |
15300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15301 | (eval $ac_try) 2>&5 | |
15302 | ac_status=$? | |
15303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15304 | (exit $ac_status); }; } && | |
15305 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15307 | (eval $ac_try) 2>&5 | |
15308 | ac_status=$? | |
15309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15310 | (exit $ac_status); }; }; then | |
15311 | ac_hi=$ac_mid; break | |
15312 | else | |
15313 | echo "$as_me: failed program was:" >&5 | |
15314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15315 | ||
15316 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15317 | if test $ac_lo -le $ac_mid; then |
15318 | ac_lo= ac_hi= | |
15319 | break | |
15320 | fi | |
15321 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15322 | fi |
ac1cb8d3 | 15323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15324 | done |
15325 | else | |
15326 | echo "$as_me: failed program was:" >&5 | |
15327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15328 | ||
15329 | cat >conftest.$ac_ext <<_ACEOF | |
15330 | /* confdefs.h. */ | |
15331 | _ACEOF | |
15332 | cat confdefs.h >>conftest.$ac_ext | |
15333 | cat >>conftest.$ac_ext <<_ACEOF | |
15334 | /* end confdefs.h. */ | |
15335 | $ac_includes_default | |
15336 | int | |
15337 | main () | |
15338 | { | |
15339 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15340 | test_array [0] = 0 | |
15341 | ||
15342 | ; | |
15343 | return 0; | |
15344 | } | |
15345 | _ACEOF | |
15346 | rm -f conftest.$ac_objext | |
15347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15348 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15349 | ac_status=$? |
ac1cb8d3 VS |
15350 | grep -v '^ *+' conftest.er1 >conftest.err |
15351 | rm -f conftest.er1 | |
15352 | cat conftest.err >&5 | |
a848cd7e SC |
15353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15354 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15355 | { ac_try='test -z "$ac_c_werror_flag" |
15356 | || test ! -s conftest.err' | |
15357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15358 | (eval $ac_try) 2>&5 | |
15359 | ac_status=$? | |
15360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15361 | (exit $ac_status); }; } && | |
15362 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15364 | (eval $ac_try) 2>&5 | |
15365 | ac_status=$? | |
15366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15367 | (exit $ac_status); }; }; then | |
15368 | ac_hi=-1 ac_mid=-1 | |
15369 | while :; do | |
15370 | cat >conftest.$ac_ext <<_ACEOF | |
15371 | /* confdefs.h. */ | |
15372 | _ACEOF | |
15373 | cat confdefs.h >>conftest.$ac_ext | |
15374 | cat >>conftest.$ac_ext <<_ACEOF | |
15375 | /* end confdefs.h. */ | |
15376 | $ac_includes_default | |
15377 | int | |
15378 | main () | |
15379 | { | |
15380 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15381 | test_array [0] = 0 | |
15382 | ||
15383 | ; | |
15384 | return 0; | |
15385 | } | |
15386 | _ACEOF | |
15387 | rm -f conftest.$ac_objext | |
15388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15389 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15390 | ac_status=$? |
ac1cb8d3 VS |
15391 | grep -v '^ *+' conftest.er1 >conftest.err |
15392 | rm -f conftest.er1 | |
15393 | cat conftest.err >&5 | |
a848cd7e SC |
15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15395 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15396 | { ac_try='test -z "$ac_c_werror_flag" |
15397 | || test ! -s conftest.err' | |
15398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15399 | (eval $ac_try) 2>&5 | |
15400 | ac_status=$? | |
15401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15402 | (exit $ac_status); }; } && | |
15403 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15405 | (eval $ac_try) 2>&5 | |
15406 | ac_status=$? | |
15407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15408 | (exit $ac_status); }; }; then | |
15409 | ac_lo=$ac_mid; break | |
15410 | else | |
15411 | echo "$as_me: failed program was:" >&5 | |
15412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15413 | ||
15414 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15415 | if test $ac_mid -le $ac_hi; then |
15416 | ac_lo= ac_hi= | |
15417 | break | |
15418 | fi | |
15419 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15420 | fi |
ac1cb8d3 | 15421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15422 | done |
15423 | else | |
15424 | echo "$as_me: failed program was:" >&5 | |
15425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15426 | ||
15427 | ac_lo= ac_hi= | |
15428 | fi | |
ac1cb8d3 | 15429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15430 | fi |
ac1cb8d3 | 15431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15432 | # Binary search between lo and hi bounds. |
15433 | while test "x$ac_lo" != "x$ac_hi"; do | |
15434 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15435 | cat >conftest.$ac_ext <<_ACEOF | |
15436 | /* confdefs.h. */ | |
15437 | _ACEOF | |
15438 | cat confdefs.h >>conftest.$ac_ext | |
15439 | cat >>conftest.$ac_ext <<_ACEOF | |
15440 | /* end confdefs.h. */ | |
15441 | $ac_includes_default | |
15442 | int | |
15443 | main () | |
15444 | { | |
15445 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15446 | test_array [0] = 0 | |
15447 | ||
15448 | ; | |
15449 | return 0; | |
15450 | } | |
15451 | _ACEOF | |
15452 | rm -f conftest.$ac_objext | |
15453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15454 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15455 | ac_status=$? |
ac1cb8d3 VS |
15456 | grep -v '^ *+' conftest.er1 >conftest.err |
15457 | rm -f conftest.er1 | |
15458 | cat conftest.err >&5 | |
a848cd7e SC |
15459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15460 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15461 | { ac_try='test -z "$ac_c_werror_flag" |
15462 | || test ! -s conftest.err' | |
15463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15464 | (eval $ac_try) 2>&5 | |
15465 | ac_status=$? | |
15466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15467 | (exit $ac_status); }; } && | |
15468 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15470 | (eval $ac_try) 2>&5 | |
15471 | ac_status=$? | |
15472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15473 | (exit $ac_status); }; }; then | |
15474 | ac_hi=$ac_mid | |
15475 | else | |
15476 | echo "$as_me: failed program was:" >&5 | |
15477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15478 | ||
15479 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15480 | fi | |
ac1cb8d3 | 15481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15482 | done |
15483 | case $ac_lo in | |
15484 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15485 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15486 | See \`config.log' for more details." >&5 | |
15487 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15488 | See \`config.log' for more details." >&2;} | |
15489 | { (exit 1); exit 1; }; } ;; | |
15490 | esac | |
15491 | else | |
15492 | if test "$cross_compiling" = yes; then | |
15493 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15494 | See \`config.log' for more details." >&5 | |
15495 | echo "$as_me: error: cannot run test program while cross compiling | |
15496 | See \`config.log' for more details." >&2;} | |
15497 | { (exit 1); exit 1; }; } | |
15498 | else | |
15499 | cat >conftest.$ac_ext <<_ACEOF | |
15500 | /* confdefs.h. */ | |
15501 | _ACEOF | |
15502 | cat confdefs.h >>conftest.$ac_ext | |
15503 | cat >>conftest.$ac_ext <<_ACEOF | |
15504 | /* end confdefs.h. */ | |
15505 | $ac_includes_default | |
15506 | long longval () { return (long) (sizeof (void *)); } | |
15507 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15508 | #include <stdio.h> | |
15509 | #include <stdlib.h> | |
15510 | int | |
15511 | main () | |
15512 | { | |
15513 | ||
15514 | FILE *f = fopen ("conftest.val", "w"); | |
15515 | if (! f) | |
15516 | exit (1); | |
15517 | if (((long) (sizeof (void *))) < 0) | |
15518 | { | |
15519 | long i = longval (); | |
15520 | if (i != ((long) (sizeof (void *)))) | |
15521 | exit (1); | |
15522 | fprintf (f, "%ld\n", i); | |
15523 | } | |
15524 | else | |
15525 | { | |
15526 | unsigned long i = ulongval (); | |
15527 | if (i != ((long) (sizeof (void *)))) | |
15528 | exit (1); | |
15529 | fprintf (f, "%lu\n", i); | |
15530 | } | |
15531 | exit (ferror (f) || fclose (f) != 0); | |
15532 | ||
15533 | ; | |
15534 | return 0; | |
15535 | } | |
15536 | _ACEOF | |
15537 | rm -f conftest$ac_exeext | |
15538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15539 | (eval $ac_link) 2>&5 | |
15540 | ac_status=$? | |
15541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15542 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15544 | (eval $ac_try) 2>&5 | |
15545 | ac_status=$? | |
15546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15547 | (exit $ac_status); }; }; then | |
15548 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15549 | else | |
15550 | echo "$as_me: program exited with status $ac_status" >&5 | |
15551 | echo "$as_me: failed program was:" >&5 | |
15552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15553 | ||
15554 | ( exit $ac_status ) | |
15555 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15556 | See \`config.log' for more details." >&5 | |
15557 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15558 | See \`config.log' for more details." >&2;} | |
15559 | { (exit 1); exit 1; }; } | |
15560 | fi | |
ac1cb8d3 | 15561 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15562 | fi |
15563 | fi | |
15564 | rm -f conftest.val | |
15565 | else | |
15566 | ac_cv_sizeof_void_p=0 | |
15567 | fi | |
15568 | fi | |
15569 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15570 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15571 | cat >>confdefs.h <<_ACEOF | |
15572 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15573 | _ACEOF | |
15574 | ||
15575 | ||
15576 | echo "$as_me:$LINENO: checking for int" >&5 | |
15577 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15578 | if test "${ac_cv_type_int+set}" = set; then | |
15579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15580 | else | |
15581 | cat >conftest.$ac_ext <<_ACEOF | |
15582 | /* confdefs.h. */ | |
15583 | _ACEOF | |
15584 | cat confdefs.h >>conftest.$ac_ext | |
15585 | cat >>conftest.$ac_ext <<_ACEOF | |
15586 | /* end confdefs.h. */ | |
15587 | $ac_includes_default | |
15588 | int | |
15589 | main () | |
15590 | { | |
15591 | if ((int *) 0) | |
15592 | return 0; | |
15593 | if (sizeof (int)) | |
15594 | return 0; | |
15595 | ; | |
15596 | return 0; | |
15597 | } | |
15598 | _ACEOF | |
15599 | rm -f conftest.$ac_objext | |
15600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15602 | ac_status=$? |
ac1cb8d3 VS |
15603 | grep -v '^ *+' conftest.er1 >conftest.err |
15604 | rm -f conftest.er1 | |
15605 | cat conftest.err >&5 | |
a848cd7e SC |
15606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15607 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15608 | { ac_try='test -z "$ac_c_werror_flag" |
15609 | || test ! -s conftest.err' | |
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); }; } && | |
15615 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15617 | (eval $ac_try) 2>&5 | |
15618 | ac_status=$? | |
15619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15620 | (exit $ac_status); }; }; then | |
15621 | ac_cv_type_int=yes | |
15622 | else | |
15623 | echo "$as_me: failed program was:" >&5 | |
15624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15625 | ||
15626 | ac_cv_type_int=no | |
15627 | fi | |
ac1cb8d3 | 15628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15629 | fi |
15630 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15631 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15632 | ||
15633 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15634 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15635 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15637 | else | |
15638 | if test "$ac_cv_type_int" = yes; then | |
15639 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15640 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15641 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15642 | # This bug is HP SR number 8606223364. | |
15643 | if test "$cross_compiling" = yes; then | |
15644 | # Depending upon the size, compute the lo and hi bounds. | |
15645 | cat >conftest.$ac_ext <<_ACEOF | |
15646 | /* confdefs.h. */ | |
15647 | _ACEOF | |
15648 | cat confdefs.h >>conftest.$ac_ext | |
15649 | cat >>conftest.$ac_ext <<_ACEOF | |
15650 | /* end confdefs.h. */ | |
15651 | $ac_includes_default | |
15652 | int | |
15653 | main () | |
15654 | { | |
15655 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15656 | test_array [0] = 0 | |
15657 | ||
15658 | ; | |
15659 | return 0; | |
15660 | } | |
15661 | _ACEOF | |
15662 | rm -f conftest.$ac_objext | |
15663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15664 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15665 | ac_status=$? |
ac1cb8d3 VS |
15666 | grep -v '^ *+' conftest.er1 >conftest.err |
15667 | rm -f conftest.er1 | |
15668 | cat conftest.err >&5 | |
a848cd7e SC |
15669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15670 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15671 | { ac_try='test -z "$ac_c_werror_flag" |
15672 | || test ! -s conftest.err' | |
15673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15674 | (eval $ac_try) 2>&5 | |
15675 | ac_status=$? | |
15676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15677 | (exit $ac_status); }; } && | |
15678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15680 | (eval $ac_try) 2>&5 | |
15681 | ac_status=$? | |
15682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15683 | (exit $ac_status); }; }; then | |
15684 | ac_lo=0 ac_mid=0 | |
15685 | while :; do | |
15686 | cat >conftest.$ac_ext <<_ACEOF | |
15687 | /* confdefs.h. */ | |
15688 | _ACEOF | |
15689 | cat confdefs.h >>conftest.$ac_ext | |
15690 | cat >>conftest.$ac_ext <<_ACEOF | |
15691 | /* end confdefs.h. */ | |
15692 | $ac_includes_default | |
15693 | int | |
15694 | main () | |
15695 | { | |
15696 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15697 | test_array [0] = 0 | |
15698 | ||
15699 | ; | |
15700 | return 0; | |
15701 | } | |
15702 | _ACEOF | |
15703 | rm -f conftest.$ac_objext | |
15704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15705 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15706 | ac_status=$? |
ac1cb8d3 VS |
15707 | grep -v '^ *+' conftest.er1 >conftest.err |
15708 | rm -f conftest.er1 | |
15709 | cat conftest.err >&5 | |
a848cd7e SC |
15710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15711 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15712 | { ac_try='test -z "$ac_c_werror_flag" |
15713 | || test ! -s conftest.err' | |
15714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15715 | (eval $ac_try) 2>&5 | |
15716 | ac_status=$? | |
15717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15718 | (exit $ac_status); }; } && | |
15719 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15721 | (eval $ac_try) 2>&5 | |
15722 | ac_status=$? | |
15723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15724 | (exit $ac_status); }; }; then | |
15725 | ac_hi=$ac_mid; break | |
15726 | else | |
15727 | echo "$as_me: failed program was:" >&5 | |
15728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15729 | ||
15730 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15731 | if test $ac_lo -le $ac_mid; then |
15732 | ac_lo= ac_hi= | |
15733 | break | |
15734 | fi | |
15735 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15736 | fi |
ac1cb8d3 | 15737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15738 | done |
15739 | else | |
15740 | echo "$as_me: failed program was:" >&5 | |
15741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15742 | ||
15743 | cat >conftest.$ac_ext <<_ACEOF | |
15744 | /* confdefs.h. */ | |
15745 | _ACEOF | |
15746 | cat confdefs.h >>conftest.$ac_ext | |
15747 | cat >>conftest.$ac_ext <<_ACEOF | |
15748 | /* end confdefs.h. */ | |
15749 | $ac_includes_default | |
15750 | int | |
15751 | main () | |
15752 | { | |
15753 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15754 | test_array [0] = 0 | |
15755 | ||
15756 | ; | |
15757 | return 0; | |
15758 | } | |
15759 | _ACEOF | |
15760 | rm -f conftest.$ac_objext | |
15761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15762 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15763 | ac_status=$? |
ac1cb8d3 VS |
15764 | grep -v '^ *+' conftest.er1 >conftest.err |
15765 | rm -f conftest.er1 | |
15766 | cat conftest.err >&5 | |
a848cd7e SC |
15767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15768 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15769 | { ac_try='test -z "$ac_c_werror_flag" |
15770 | || test ! -s conftest.err' | |
15771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15772 | (eval $ac_try) 2>&5 | |
15773 | ac_status=$? | |
15774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15775 | (exit $ac_status); }; } && | |
15776 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15778 | (eval $ac_try) 2>&5 | |
15779 | ac_status=$? | |
15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15781 | (exit $ac_status); }; }; then | |
15782 | ac_hi=-1 ac_mid=-1 | |
15783 | while :; do | |
15784 | cat >conftest.$ac_ext <<_ACEOF | |
15785 | /* confdefs.h. */ | |
15786 | _ACEOF | |
15787 | cat confdefs.h >>conftest.$ac_ext | |
15788 | cat >>conftest.$ac_ext <<_ACEOF | |
15789 | /* end confdefs.h. */ | |
15790 | $ac_includes_default | |
15791 | int | |
15792 | main () | |
15793 | { | |
15794 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15795 | test_array [0] = 0 | |
15796 | ||
15797 | ; | |
15798 | return 0; | |
15799 | } | |
15800 | _ACEOF | |
15801 | rm -f conftest.$ac_objext | |
15802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15803 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15804 | ac_status=$? |
ac1cb8d3 VS |
15805 | grep -v '^ *+' conftest.er1 >conftest.err |
15806 | rm -f conftest.er1 | |
15807 | cat conftest.err >&5 | |
a848cd7e SC |
15808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15809 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15810 | { ac_try='test -z "$ac_c_werror_flag" |
15811 | || test ! -s conftest.err' | |
15812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15813 | (eval $ac_try) 2>&5 | |
15814 | ac_status=$? | |
15815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15816 | (exit $ac_status); }; } && | |
15817 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15819 | (eval $ac_try) 2>&5 | |
15820 | ac_status=$? | |
15821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15822 | (exit $ac_status); }; }; then | |
15823 | ac_lo=$ac_mid; break | |
15824 | else | |
15825 | echo "$as_me: failed program was:" >&5 | |
15826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15827 | ||
15828 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15829 | if test $ac_mid -le $ac_hi; then |
15830 | ac_lo= ac_hi= | |
15831 | break | |
15832 | fi | |
15833 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15834 | fi |
ac1cb8d3 | 15835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15836 | done |
15837 | else | |
15838 | echo "$as_me: failed program was:" >&5 | |
15839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15840 | ||
15841 | ac_lo= ac_hi= | |
15842 | fi | |
ac1cb8d3 | 15843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15844 | fi |
ac1cb8d3 | 15845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15846 | # Binary search between lo and hi bounds. |
15847 | while test "x$ac_lo" != "x$ac_hi"; do | |
15848 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15849 | cat >conftest.$ac_ext <<_ACEOF | |
15850 | /* confdefs.h. */ | |
15851 | _ACEOF | |
15852 | cat confdefs.h >>conftest.$ac_ext | |
15853 | cat >>conftest.$ac_ext <<_ACEOF | |
15854 | /* end confdefs.h. */ | |
15855 | $ac_includes_default | |
15856 | int | |
15857 | main () | |
15858 | { | |
15859 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15860 | test_array [0] = 0 | |
15861 | ||
15862 | ; | |
15863 | return 0; | |
15864 | } | |
15865 | _ACEOF | |
15866 | rm -f conftest.$ac_objext | |
15867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15869 | ac_status=$? |
ac1cb8d3 VS |
15870 | grep -v '^ *+' conftest.er1 >conftest.err |
15871 | rm -f conftest.er1 | |
15872 | cat conftest.err >&5 | |
a848cd7e SC |
15873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15874 | (exit $ac_status); } && | |
ac1cb8d3 VS |
15875 | { ac_try='test -z "$ac_c_werror_flag" |
15876 | || test ! -s conftest.err' | |
15877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15878 | (eval $ac_try) 2>&5 | |
15879 | ac_status=$? | |
15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15881 | (exit $ac_status); }; } && | |
15882 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15884 | (eval $ac_try) 2>&5 | |
15885 | ac_status=$? | |
15886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15887 | (exit $ac_status); }; }; then | |
15888 | ac_hi=$ac_mid | |
15889 | else | |
15890 | echo "$as_me: failed program was:" >&5 | |
15891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15892 | ||
15893 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15894 | fi | |
ac1cb8d3 | 15895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15896 | done |
15897 | case $ac_lo in | |
15898 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15899 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15900 | See \`config.log' for more details." >&5 | |
15901 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15902 | See \`config.log' for more details." >&2;} | |
15903 | { (exit 1); exit 1; }; } ;; | |
15904 | esac | |
15905 | else | |
15906 | if test "$cross_compiling" = yes; then | |
15907 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15908 | See \`config.log' for more details." >&5 | |
15909 | echo "$as_me: error: cannot run test program while cross compiling | |
15910 | See \`config.log' for more details." >&2;} | |
15911 | { (exit 1); exit 1; }; } | |
15912 | else | |
15913 | cat >conftest.$ac_ext <<_ACEOF | |
15914 | /* confdefs.h. */ | |
15915 | _ACEOF | |
15916 | cat confdefs.h >>conftest.$ac_ext | |
15917 | cat >>conftest.$ac_ext <<_ACEOF | |
15918 | /* end confdefs.h. */ | |
15919 | $ac_includes_default | |
15920 | long longval () { return (long) (sizeof (int)); } | |
15921 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15922 | #include <stdio.h> | |
15923 | #include <stdlib.h> | |
15924 | int | |
15925 | main () | |
15926 | { | |
15927 | ||
15928 | FILE *f = fopen ("conftest.val", "w"); | |
15929 | if (! f) | |
15930 | exit (1); | |
15931 | if (((long) (sizeof (int))) < 0) | |
15932 | { | |
15933 | long i = longval (); | |
15934 | if (i != ((long) (sizeof (int)))) | |
15935 | exit (1); | |
15936 | fprintf (f, "%ld\n", i); | |
15937 | } | |
15938 | else | |
15939 | { | |
15940 | unsigned long i = ulongval (); | |
15941 | if (i != ((long) (sizeof (int)))) | |
15942 | exit (1); | |
15943 | fprintf (f, "%lu\n", i); | |
15944 | } | |
15945 | exit (ferror (f) || fclose (f) != 0); | |
15946 | ||
15947 | ; | |
15948 | return 0; | |
15949 | } | |
15950 | _ACEOF | |
15951 | rm -f conftest$ac_exeext | |
15952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15953 | (eval $ac_link) 2>&5 | |
15954 | ac_status=$? | |
15955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15956 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15958 | (eval $ac_try) 2>&5 | |
15959 | ac_status=$? | |
15960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15961 | (exit $ac_status); }; }; then | |
15962 | ac_cv_sizeof_int=`cat conftest.val` | |
15963 | else | |
15964 | echo "$as_me: program exited with status $ac_status" >&5 | |
15965 | echo "$as_me: failed program was:" >&5 | |
15966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15967 | ||
15968 | ( exit $ac_status ) | |
15969 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15970 | See \`config.log' for more details." >&5 | |
15971 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15972 | See \`config.log' for more details." >&2;} | |
15973 | { (exit 1); exit 1; }; } | |
15974 | fi | |
ac1cb8d3 | 15975 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15976 | fi |
15977 | fi | |
15978 | rm -f conftest.val | |
15979 | else | |
15980 | ac_cv_sizeof_int=0 | |
15981 | fi | |
15982 | fi | |
15983 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
15984 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15985 | cat >>confdefs.h <<_ACEOF | |
15986 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15987 | _ACEOF | |
15988 | ||
15989 | ||
15990 | echo "$as_me:$LINENO: checking for long" >&5 | |
15991 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15992 | if test "${ac_cv_type_long+set}" = set; then | |
15993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15994 | else | |
15995 | cat >conftest.$ac_ext <<_ACEOF | |
15996 | /* confdefs.h. */ | |
15997 | _ACEOF | |
15998 | cat confdefs.h >>conftest.$ac_ext | |
15999 | cat >>conftest.$ac_ext <<_ACEOF | |
16000 | /* end confdefs.h. */ | |
16001 | $ac_includes_default | |
16002 | int | |
16003 | main () | |
16004 | { | |
16005 | if ((long *) 0) | |
16006 | return 0; | |
16007 | if (sizeof (long)) | |
16008 | return 0; | |
16009 | ; | |
16010 | return 0; | |
16011 | } | |
16012 | _ACEOF | |
16013 | rm -f conftest.$ac_objext | |
16014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16016 | ac_status=$? |
ac1cb8d3 VS |
16017 | grep -v '^ *+' conftest.er1 >conftest.err |
16018 | rm -f conftest.er1 | |
16019 | cat conftest.err >&5 | |
a848cd7e SC |
16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16021 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16022 | { ac_try='test -z "$ac_c_werror_flag" |
16023 | || test ! -s conftest.err' | |
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); }; } && | |
16029 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16031 | (eval $ac_try) 2>&5 | |
16032 | ac_status=$? | |
16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16034 | (exit $ac_status); }; }; then | |
16035 | ac_cv_type_long=yes | |
16036 | else | |
16037 | echo "$as_me: failed program was:" >&5 | |
16038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16039 | ||
16040 | ac_cv_type_long=no | |
16041 | fi | |
ac1cb8d3 | 16042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16043 | fi |
16044 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16045 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16046 | ||
16047 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16048 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16049 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16051 | else | |
16052 | if test "$ac_cv_type_long" = yes; then | |
16053 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16054 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16055 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16056 | # This bug is HP SR number 8606223364. | |
16057 | if test "$cross_compiling" = yes; then | |
16058 | # Depending upon the size, compute the lo and hi bounds. | |
16059 | cat >conftest.$ac_ext <<_ACEOF | |
16060 | /* confdefs.h. */ | |
16061 | _ACEOF | |
16062 | cat confdefs.h >>conftest.$ac_ext | |
16063 | cat >>conftest.$ac_ext <<_ACEOF | |
16064 | /* end confdefs.h. */ | |
16065 | $ac_includes_default | |
16066 | int | |
16067 | main () | |
16068 | { | |
16069 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16070 | test_array [0] = 0 | |
16071 | ||
16072 | ; | |
16073 | return 0; | |
16074 | } | |
16075 | _ACEOF | |
16076 | rm -f conftest.$ac_objext | |
16077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16078 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16079 | ac_status=$? |
ac1cb8d3 VS |
16080 | grep -v '^ *+' conftest.er1 >conftest.err |
16081 | rm -f conftest.er1 | |
16082 | cat conftest.err >&5 | |
a848cd7e SC |
16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16084 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16085 | { ac_try='test -z "$ac_c_werror_flag" |
16086 | || test ! -s conftest.err' | |
16087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16088 | (eval $ac_try) 2>&5 | |
16089 | ac_status=$? | |
16090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16091 | (exit $ac_status); }; } && | |
16092 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16094 | (eval $ac_try) 2>&5 | |
16095 | ac_status=$? | |
16096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16097 | (exit $ac_status); }; }; then | |
16098 | ac_lo=0 ac_mid=0 | |
16099 | while :; do | |
16100 | cat >conftest.$ac_ext <<_ACEOF | |
16101 | /* confdefs.h. */ | |
16102 | _ACEOF | |
16103 | cat confdefs.h >>conftest.$ac_ext | |
16104 | cat >>conftest.$ac_ext <<_ACEOF | |
16105 | /* end confdefs.h. */ | |
16106 | $ac_includes_default | |
16107 | int | |
16108 | main () | |
16109 | { | |
16110 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16111 | test_array [0] = 0 | |
16112 | ||
16113 | ; | |
16114 | return 0; | |
16115 | } | |
16116 | _ACEOF | |
16117 | rm -f conftest.$ac_objext | |
16118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16120 | ac_status=$? |
ac1cb8d3 VS |
16121 | grep -v '^ *+' conftest.er1 >conftest.err |
16122 | rm -f conftest.er1 | |
16123 | cat conftest.err >&5 | |
a848cd7e SC |
16124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16125 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16126 | { ac_try='test -z "$ac_c_werror_flag" |
16127 | || test ! -s conftest.err' | |
16128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16129 | (eval $ac_try) 2>&5 | |
16130 | ac_status=$? | |
16131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16132 | (exit $ac_status); }; } && | |
16133 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16135 | (eval $ac_try) 2>&5 | |
16136 | ac_status=$? | |
16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16138 | (exit $ac_status); }; }; then | |
16139 | ac_hi=$ac_mid; break | |
16140 | else | |
16141 | echo "$as_me: failed program was:" >&5 | |
16142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16143 | ||
16144 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16145 | if test $ac_lo -le $ac_mid; then |
16146 | ac_lo= ac_hi= | |
16147 | break | |
16148 | fi | |
16149 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16150 | fi |
ac1cb8d3 | 16151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16152 | done |
16153 | else | |
16154 | echo "$as_me: failed program was:" >&5 | |
16155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16156 | ||
16157 | cat >conftest.$ac_ext <<_ACEOF | |
16158 | /* confdefs.h. */ | |
16159 | _ACEOF | |
16160 | cat confdefs.h >>conftest.$ac_ext | |
16161 | cat >>conftest.$ac_ext <<_ACEOF | |
16162 | /* end confdefs.h. */ | |
16163 | $ac_includes_default | |
16164 | int | |
16165 | main () | |
16166 | { | |
16167 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16168 | test_array [0] = 0 | |
16169 | ||
16170 | ; | |
16171 | return 0; | |
16172 | } | |
16173 | _ACEOF | |
16174 | rm -f conftest.$ac_objext | |
16175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16176 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16177 | ac_status=$? |
ac1cb8d3 VS |
16178 | grep -v '^ *+' conftest.er1 >conftest.err |
16179 | rm -f conftest.er1 | |
16180 | cat conftest.err >&5 | |
a848cd7e SC |
16181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16182 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16183 | { ac_try='test -z "$ac_c_werror_flag" |
16184 | || test ! -s conftest.err' | |
16185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16186 | (eval $ac_try) 2>&5 | |
16187 | ac_status=$? | |
16188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16189 | (exit $ac_status); }; } && | |
16190 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16192 | (eval $ac_try) 2>&5 | |
16193 | ac_status=$? | |
16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 | (exit $ac_status); }; }; then | |
16196 | ac_hi=-1 ac_mid=-1 | |
16197 | while :; do | |
16198 | cat >conftest.$ac_ext <<_ACEOF | |
16199 | /* confdefs.h. */ | |
16200 | _ACEOF | |
16201 | cat confdefs.h >>conftest.$ac_ext | |
16202 | cat >>conftest.$ac_ext <<_ACEOF | |
16203 | /* end confdefs.h. */ | |
16204 | $ac_includes_default | |
16205 | int | |
16206 | main () | |
16207 | { | |
16208 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16209 | test_array [0] = 0 | |
16210 | ||
16211 | ; | |
16212 | return 0; | |
16213 | } | |
16214 | _ACEOF | |
16215 | rm -f conftest.$ac_objext | |
16216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16217 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16218 | ac_status=$? |
ac1cb8d3 VS |
16219 | grep -v '^ *+' conftest.er1 >conftest.err |
16220 | rm -f conftest.er1 | |
16221 | cat conftest.err >&5 | |
a848cd7e SC |
16222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16223 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16224 | { ac_try='test -z "$ac_c_werror_flag" |
16225 | || test ! -s conftest.err' | |
16226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16227 | (eval $ac_try) 2>&5 | |
16228 | ac_status=$? | |
16229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16230 | (exit $ac_status); }; } && | |
16231 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16233 | (eval $ac_try) 2>&5 | |
16234 | ac_status=$? | |
16235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16236 | (exit $ac_status); }; }; then | |
16237 | ac_lo=$ac_mid; break | |
16238 | else | |
16239 | echo "$as_me: failed program was:" >&5 | |
16240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16241 | ||
16242 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16243 | if test $ac_mid -le $ac_hi; then |
16244 | ac_lo= ac_hi= | |
16245 | break | |
16246 | fi | |
16247 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16248 | fi |
ac1cb8d3 | 16249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16250 | done |
16251 | else | |
16252 | echo "$as_me: failed program was:" >&5 | |
16253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16254 | ||
16255 | ac_lo= ac_hi= | |
16256 | fi | |
ac1cb8d3 | 16257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16258 | fi |
ac1cb8d3 | 16259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16260 | # Binary search between lo and hi bounds. |
16261 | while test "x$ac_lo" != "x$ac_hi"; do | |
16262 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16263 | cat >conftest.$ac_ext <<_ACEOF | |
16264 | /* confdefs.h. */ | |
16265 | _ACEOF | |
16266 | cat confdefs.h >>conftest.$ac_ext | |
16267 | cat >>conftest.$ac_ext <<_ACEOF | |
16268 | /* end confdefs.h. */ | |
16269 | $ac_includes_default | |
16270 | int | |
16271 | main () | |
16272 | { | |
16273 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16274 | test_array [0] = 0 | |
16275 | ||
16276 | ; | |
16277 | return 0; | |
16278 | } | |
16279 | _ACEOF | |
16280 | rm -f conftest.$ac_objext | |
16281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16282 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16283 | ac_status=$? |
ac1cb8d3 VS |
16284 | grep -v '^ *+' conftest.er1 >conftest.err |
16285 | rm -f conftest.er1 | |
16286 | cat conftest.err >&5 | |
a848cd7e SC |
16287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16288 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16289 | { ac_try='test -z "$ac_c_werror_flag" |
16290 | || test ! -s conftest.err' | |
16291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16292 | (eval $ac_try) 2>&5 | |
16293 | ac_status=$? | |
16294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16295 | (exit $ac_status); }; } && | |
16296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16298 | (eval $ac_try) 2>&5 | |
16299 | ac_status=$? | |
16300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16301 | (exit $ac_status); }; }; then | |
16302 | ac_hi=$ac_mid | |
16303 | else | |
16304 | echo "$as_me: failed program was:" >&5 | |
16305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16306 | ||
16307 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16308 | fi | |
ac1cb8d3 | 16309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16310 | done |
16311 | case $ac_lo in | |
16312 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16313 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16314 | See \`config.log' for more details." >&5 | |
16315 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16316 | See \`config.log' for more details." >&2;} | |
16317 | { (exit 1); exit 1; }; } ;; | |
16318 | esac | |
16319 | else | |
16320 | if test "$cross_compiling" = yes; then | |
16321 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16322 | See \`config.log' for more details." >&5 | |
16323 | echo "$as_me: error: cannot run test program while cross compiling | |
16324 | See \`config.log' for more details." >&2;} | |
16325 | { (exit 1); exit 1; }; } | |
16326 | else | |
16327 | cat >conftest.$ac_ext <<_ACEOF | |
16328 | /* confdefs.h. */ | |
16329 | _ACEOF | |
16330 | cat confdefs.h >>conftest.$ac_ext | |
16331 | cat >>conftest.$ac_ext <<_ACEOF | |
16332 | /* end confdefs.h. */ | |
16333 | $ac_includes_default | |
16334 | long longval () { return (long) (sizeof (long)); } | |
16335 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16336 | #include <stdio.h> | |
16337 | #include <stdlib.h> | |
16338 | int | |
16339 | main () | |
16340 | { | |
16341 | ||
16342 | FILE *f = fopen ("conftest.val", "w"); | |
16343 | if (! f) | |
16344 | exit (1); | |
16345 | if (((long) (sizeof (long))) < 0) | |
16346 | { | |
16347 | long i = longval (); | |
16348 | if (i != ((long) (sizeof (long)))) | |
16349 | exit (1); | |
16350 | fprintf (f, "%ld\n", i); | |
16351 | } | |
16352 | else | |
16353 | { | |
16354 | unsigned long i = ulongval (); | |
16355 | if (i != ((long) (sizeof (long)))) | |
16356 | exit (1); | |
16357 | fprintf (f, "%lu\n", i); | |
16358 | } | |
16359 | exit (ferror (f) || fclose (f) != 0); | |
16360 | ||
16361 | ; | |
16362 | return 0; | |
16363 | } | |
16364 | _ACEOF | |
16365 | rm -f conftest$ac_exeext | |
16366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16367 | (eval $ac_link) 2>&5 | |
16368 | ac_status=$? | |
16369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16370 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16372 | (eval $ac_try) 2>&5 | |
16373 | ac_status=$? | |
16374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16375 | (exit $ac_status); }; }; then | |
16376 | ac_cv_sizeof_long=`cat conftest.val` | |
16377 | else | |
16378 | echo "$as_me: program exited with status $ac_status" >&5 | |
16379 | echo "$as_me: failed program was:" >&5 | |
16380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16381 | ||
16382 | ( exit $ac_status ) | |
16383 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16384 | See \`config.log' for more details." >&5 | |
16385 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16386 | See \`config.log' for more details." >&2;} | |
16387 | { (exit 1); exit 1; }; } | |
16388 | fi | |
ac1cb8d3 | 16389 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16390 | fi |
16391 | fi | |
16392 | rm -f conftest.val | |
16393 | else | |
16394 | ac_cv_sizeof_long=0 | |
16395 | fi | |
16396 | fi | |
16397 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16398 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16399 | cat >>confdefs.h <<_ACEOF | |
16400 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16401 | _ACEOF | |
16402 | ||
16403 | ||
16404 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16405 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16406 | if test "${ac_cv_type_size_t+set}" = set; then | |
16407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16408 | else | |
16409 | cat >conftest.$ac_ext <<_ACEOF | |
16410 | /* confdefs.h. */ | |
16411 | _ACEOF | |
16412 | cat confdefs.h >>conftest.$ac_ext | |
16413 | cat >>conftest.$ac_ext <<_ACEOF | |
16414 | /* end confdefs.h. */ | |
16415 | $ac_includes_default | |
16416 | int | |
16417 | main () | |
16418 | { | |
16419 | if ((size_t *) 0) | |
16420 | return 0; | |
16421 | if (sizeof (size_t)) | |
16422 | return 0; | |
16423 | ; | |
16424 | return 0; | |
16425 | } | |
16426 | _ACEOF | |
16427 | rm -f conftest.$ac_objext | |
16428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16429 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16430 | ac_status=$? |
ac1cb8d3 VS |
16431 | grep -v '^ *+' conftest.er1 >conftest.err |
16432 | rm -f conftest.er1 | |
16433 | cat conftest.err >&5 | |
a848cd7e SC |
16434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16435 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16436 | { ac_try='test -z "$ac_c_werror_flag" |
16437 | || test ! -s conftest.err' | |
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); }; } && | |
16443 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16445 | (eval $ac_try) 2>&5 | |
16446 | ac_status=$? | |
16447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16448 | (exit $ac_status); }; }; then | |
16449 | ac_cv_type_size_t=yes | |
16450 | else | |
16451 | echo "$as_me: failed program was:" >&5 | |
16452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16453 | ||
16454 | ac_cv_type_size_t=no | |
16455 | fi | |
ac1cb8d3 | 16456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16457 | fi |
16458 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16459 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16460 | ||
16461 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16462 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16463 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16465 | else | |
16466 | if test "$ac_cv_type_size_t" = yes; then | |
16467 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16468 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16469 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16470 | # This bug is HP SR number 8606223364. | |
16471 | if test "$cross_compiling" = yes; then | |
16472 | # Depending upon the size, compute the lo and hi bounds. | |
16473 | cat >conftest.$ac_ext <<_ACEOF | |
16474 | /* confdefs.h. */ | |
16475 | _ACEOF | |
16476 | cat confdefs.h >>conftest.$ac_ext | |
16477 | cat >>conftest.$ac_ext <<_ACEOF | |
16478 | /* end confdefs.h. */ | |
16479 | $ac_includes_default | |
16480 | int | |
16481 | main () | |
16482 | { | |
16483 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16484 | test_array [0] = 0 | |
16485 | ||
16486 | ; | |
16487 | return 0; | |
16488 | } | |
16489 | _ACEOF | |
16490 | rm -f conftest.$ac_objext | |
16491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16492 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16493 | ac_status=$? |
ac1cb8d3 VS |
16494 | grep -v '^ *+' conftest.er1 >conftest.err |
16495 | rm -f conftest.er1 | |
16496 | cat conftest.err >&5 | |
a848cd7e SC |
16497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16498 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16499 | { ac_try='test -z "$ac_c_werror_flag" |
16500 | || test ! -s conftest.err' | |
16501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16502 | (eval $ac_try) 2>&5 | |
16503 | ac_status=$? | |
16504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16505 | (exit $ac_status); }; } && | |
16506 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16508 | (eval $ac_try) 2>&5 | |
16509 | ac_status=$? | |
16510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16511 | (exit $ac_status); }; }; then | |
16512 | ac_lo=0 ac_mid=0 | |
16513 | while :; do | |
16514 | cat >conftest.$ac_ext <<_ACEOF | |
16515 | /* confdefs.h. */ | |
16516 | _ACEOF | |
16517 | cat confdefs.h >>conftest.$ac_ext | |
16518 | cat >>conftest.$ac_ext <<_ACEOF | |
16519 | /* end confdefs.h. */ | |
16520 | $ac_includes_default | |
16521 | int | |
16522 | main () | |
16523 | { | |
16524 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16525 | test_array [0] = 0 | |
16526 | ||
16527 | ; | |
16528 | return 0; | |
16529 | } | |
16530 | _ACEOF | |
16531 | rm -f conftest.$ac_objext | |
16532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16533 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16534 | ac_status=$? |
ac1cb8d3 VS |
16535 | grep -v '^ *+' conftest.er1 >conftest.err |
16536 | rm -f conftest.er1 | |
16537 | cat conftest.err >&5 | |
a848cd7e SC |
16538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16539 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16540 | { ac_try='test -z "$ac_c_werror_flag" |
16541 | || test ! -s conftest.err' | |
16542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16543 | (eval $ac_try) 2>&5 | |
16544 | ac_status=$? | |
16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16546 | (exit $ac_status); }; } && | |
16547 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16549 | (eval $ac_try) 2>&5 | |
16550 | ac_status=$? | |
16551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16552 | (exit $ac_status); }; }; then | |
16553 | ac_hi=$ac_mid; break | |
16554 | else | |
16555 | echo "$as_me: failed program was:" >&5 | |
16556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16557 | ||
16558 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16559 | if test $ac_lo -le $ac_mid; then |
16560 | ac_lo= ac_hi= | |
16561 | break | |
16562 | fi | |
16563 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16564 | fi |
ac1cb8d3 | 16565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16566 | done |
16567 | else | |
16568 | echo "$as_me: failed program was:" >&5 | |
16569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16570 | ||
16571 | cat >conftest.$ac_ext <<_ACEOF | |
16572 | /* confdefs.h. */ | |
16573 | _ACEOF | |
16574 | cat confdefs.h >>conftest.$ac_ext | |
16575 | cat >>conftest.$ac_ext <<_ACEOF | |
16576 | /* end confdefs.h. */ | |
16577 | $ac_includes_default | |
16578 | int | |
16579 | main () | |
16580 | { | |
16581 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16582 | test_array [0] = 0 | |
16583 | ||
16584 | ; | |
16585 | return 0; | |
16586 | } | |
16587 | _ACEOF | |
16588 | rm -f conftest.$ac_objext | |
16589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16590 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16591 | ac_status=$? |
ac1cb8d3 VS |
16592 | grep -v '^ *+' conftest.er1 >conftest.err |
16593 | rm -f conftest.er1 | |
16594 | cat conftest.err >&5 | |
a848cd7e SC |
16595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16596 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16597 | { ac_try='test -z "$ac_c_werror_flag" |
16598 | || test ! -s conftest.err' | |
16599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16600 | (eval $ac_try) 2>&5 | |
16601 | ac_status=$? | |
16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16603 | (exit $ac_status); }; } && | |
16604 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16606 | (eval $ac_try) 2>&5 | |
16607 | ac_status=$? | |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16609 | (exit $ac_status); }; }; then | |
16610 | ac_hi=-1 ac_mid=-1 | |
16611 | while :; do | |
16612 | cat >conftest.$ac_ext <<_ACEOF | |
16613 | /* confdefs.h. */ | |
16614 | _ACEOF | |
16615 | cat confdefs.h >>conftest.$ac_ext | |
16616 | cat >>conftest.$ac_ext <<_ACEOF | |
16617 | /* end confdefs.h. */ | |
16618 | $ac_includes_default | |
16619 | int | |
16620 | main () | |
16621 | { | |
16622 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16623 | test_array [0] = 0 | |
16624 | ||
16625 | ; | |
16626 | return 0; | |
16627 | } | |
16628 | _ACEOF | |
16629 | rm -f conftest.$ac_objext | |
16630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16631 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16632 | ac_status=$? |
ac1cb8d3 VS |
16633 | grep -v '^ *+' conftest.er1 >conftest.err |
16634 | rm -f conftest.er1 | |
16635 | cat conftest.err >&5 | |
a848cd7e SC |
16636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16637 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16638 | { ac_try='test -z "$ac_c_werror_flag" |
16639 | || test ! -s conftest.err' | |
16640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16641 | (eval $ac_try) 2>&5 | |
16642 | ac_status=$? | |
16643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16644 | (exit $ac_status); }; } && | |
16645 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16647 | (eval $ac_try) 2>&5 | |
16648 | ac_status=$? | |
16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16650 | (exit $ac_status); }; }; then | |
16651 | ac_lo=$ac_mid; break | |
16652 | else | |
16653 | echo "$as_me: failed program was:" >&5 | |
16654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16655 | ||
16656 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16657 | if test $ac_mid -le $ac_hi; then |
16658 | ac_lo= ac_hi= | |
16659 | break | |
16660 | fi | |
16661 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16662 | fi |
ac1cb8d3 | 16663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16664 | done |
16665 | else | |
16666 | echo "$as_me: failed program was:" >&5 | |
16667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16668 | ||
16669 | ac_lo= ac_hi= | |
16670 | fi | |
ac1cb8d3 | 16671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16672 | fi |
ac1cb8d3 | 16673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16674 | # Binary search between lo and hi bounds. |
16675 | while test "x$ac_lo" != "x$ac_hi"; do | |
16676 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16677 | cat >conftest.$ac_ext <<_ACEOF | |
16678 | /* confdefs.h. */ | |
16679 | _ACEOF | |
16680 | cat confdefs.h >>conftest.$ac_ext | |
16681 | cat >>conftest.$ac_ext <<_ACEOF | |
16682 | /* end confdefs.h. */ | |
16683 | $ac_includes_default | |
16684 | int | |
16685 | main () | |
16686 | { | |
16687 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16688 | test_array [0] = 0 | |
16689 | ||
16690 | ; | |
16691 | return 0; | |
16692 | } | |
16693 | _ACEOF | |
16694 | rm -f conftest.$ac_objext | |
16695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16697 | ac_status=$? |
ac1cb8d3 VS |
16698 | grep -v '^ *+' conftest.er1 >conftest.err |
16699 | rm -f conftest.er1 | |
16700 | cat conftest.err >&5 | |
a848cd7e SC |
16701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16702 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16703 | { ac_try='test -z "$ac_c_werror_flag" |
16704 | || test ! -s conftest.err' | |
16705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16706 | (eval $ac_try) 2>&5 | |
16707 | ac_status=$? | |
16708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16709 | (exit $ac_status); }; } && | |
16710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16712 | (eval $ac_try) 2>&5 | |
16713 | ac_status=$? | |
16714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16715 | (exit $ac_status); }; }; then | |
16716 | ac_hi=$ac_mid | |
16717 | else | |
16718 | echo "$as_me: failed program was:" >&5 | |
16719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16720 | ||
16721 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16722 | fi | |
ac1cb8d3 | 16723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16724 | done |
16725 | case $ac_lo in | |
16726 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16727 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16728 | See \`config.log' for more details." >&5 | |
16729 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16730 | See \`config.log' for more details." >&2;} | |
16731 | { (exit 1); exit 1; }; } ;; | |
16732 | esac | |
16733 | else | |
16734 | if test "$cross_compiling" = yes; then | |
16735 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16736 | See \`config.log' for more details." >&5 | |
16737 | echo "$as_me: error: cannot run test program while cross compiling | |
16738 | See \`config.log' for more details." >&2;} | |
16739 | { (exit 1); exit 1; }; } | |
16740 | else | |
16741 | cat >conftest.$ac_ext <<_ACEOF | |
16742 | /* confdefs.h. */ | |
16743 | _ACEOF | |
16744 | cat confdefs.h >>conftest.$ac_ext | |
16745 | cat >>conftest.$ac_ext <<_ACEOF | |
16746 | /* end confdefs.h. */ | |
16747 | $ac_includes_default | |
16748 | long longval () { return (long) (sizeof (size_t)); } | |
16749 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16750 | #include <stdio.h> | |
16751 | #include <stdlib.h> | |
16752 | int | |
16753 | main () | |
16754 | { | |
16755 | ||
16756 | FILE *f = fopen ("conftest.val", "w"); | |
16757 | if (! f) | |
16758 | exit (1); | |
16759 | if (((long) (sizeof (size_t))) < 0) | |
16760 | { | |
16761 | long i = longval (); | |
16762 | if (i != ((long) (sizeof (size_t)))) | |
16763 | exit (1); | |
16764 | fprintf (f, "%ld\n", i); | |
16765 | } | |
16766 | else | |
16767 | { | |
16768 | unsigned long i = ulongval (); | |
16769 | if (i != ((long) (sizeof (size_t)))) | |
16770 | exit (1); | |
16771 | fprintf (f, "%lu\n", i); | |
16772 | } | |
16773 | exit (ferror (f) || fclose (f) != 0); | |
16774 | ||
16775 | ; | |
16776 | return 0; | |
16777 | } | |
16778 | _ACEOF | |
16779 | rm -f conftest$ac_exeext | |
16780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16781 | (eval $ac_link) 2>&5 | |
16782 | ac_status=$? | |
16783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16784 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16786 | (eval $ac_try) 2>&5 | |
16787 | ac_status=$? | |
16788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16789 | (exit $ac_status); }; }; then | |
16790 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16791 | else | |
16792 | echo "$as_me: program exited with status $ac_status" >&5 | |
16793 | echo "$as_me: failed program was:" >&5 | |
16794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16795 | ||
16796 | ( exit $ac_status ) | |
16797 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16798 | See \`config.log' for more details." >&5 | |
16799 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16800 | See \`config.log' for more details." >&2;} | |
16801 | { (exit 1); exit 1; }; } | |
16802 | fi | |
ac1cb8d3 | 16803 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16804 | fi |
16805 | fi | |
16806 | rm -f conftest.val | |
16807 | else | |
16808 | ac_cv_sizeof_size_t=0 | |
16809 | fi | |
16810 | fi | |
16811 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16812 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16813 | cat >>confdefs.h <<_ACEOF | |
16814 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16815 | _ACEOF | |
16816 | ||
16817 | ||
16818 | ||
16819 | case "${host}" in | |
16820 | arm-*-linux* ) | |
16821 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16822 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16823 | if test "${ac_cv_type_long_long+set}" = set; then | |
16824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16825 | else | |
16826 | cat >conftest.$ac_ext <<_ACEOF | |
16827 | /* confdefs.h. */ | |
16828 | _ACEOF | |
16829 | cat confdefs.h >>conftest.$ac_ext | |
16830 | cat >>conftest.$ac_ext <<_ACEOF | |
16831 | /* end confdefs.h. */ | |
16832 | $ac_includes_default | |
16833 | int | |
16834 | main () | |
16835 | { | |
16836 | if ((long long *) 0) | |
16837 | return 0; | |
16838 | if (sizeof (long long)) | |
16839 | return 0; | |
16840 | ; | |
16841 | return 0; | |
16842 | } | |
16843 | _ACEOF | |
16844 | rm -f conftest.$ac_objext | |
16845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16846 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16847 | ac_status=$? |
ac1cb8d3 VS |
16848 | grep -v '^ *+' conftest.er1 >conftest.err |
16849 | rm -f conftest.er1 | |
16850 | cat conftest.err >&5 | |
a848cd7e SC |
16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16852 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16853 | { ac_try='test -z "$ac_c_werror_flag" |
16854 | || test ! -s conftest.err' | |
16855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16856 | (eval $ac_try) 2>&5 | |
16857 | ac_status=$? | |
16858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16859 | (exit $ac_status); }; } && | |
16860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16862 | (eval $ac_try) 2>&5 | |
16863 | ac_status=$? | |
16864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16865 | (exit $ac_status); }; }; then | |
16866 | ac_cv_type_long_long=yes | |
16867 | else | |
16868 | echo "$as_me: failed program was:" >&5 | |
16869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16870 | ||
16871 | ac_cv_type_long_long=no | |
16872 | fi | |
ac1cb8d3 | 16873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16874 | fi |
16875 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16876 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16877 | ||
16878 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16879 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16880 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16882 | else | |
16883 | if test "$ac_cv_type_long_long" = yes; then | |
16884 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16885 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16886 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16887 | # This bug is HP SR number 8606223364. | |
16888 | if test "$cross_compiling" = yes; then | |
16889 | # Depending upon the size, compute the lo and hi bounds. | |
16890 | cat >conftest.$ac_ext <<_ACEOF | |
16891 | /* confdefs.h. */ | |
16892 | _ACEOF | |
16893 | cat confdefs.h >>conftest.$ac_ext | |
16894 | cat >>conftest.$ac_ext <<_ACEOF | |
16895 | /* end confdefs.h. */ | |
16896 | $ac_includes_default | |
16897 | int | |
16898 | main () | |
16899 | { | |
16900 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16901 | test_array [0] = 0 | |
16902 | ||
16903 | ; | |
16904 | return 0; | |
16905 | } | |
16906 | _ACEOF | |
16907 | rm -f conftest.$ac_objext | |
16908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16909 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16910 | ac_status=$? |
ac1cb8d3 VS |
16911 | grep -v '^ *+' conftest.er1 >conftest.err |
16912 | rm -f conftest.er1 | |
16913 | cat conftest.err >&5 | |
a848cd7e SC |
16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16915 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16916 | { ac_try='test -z "$ac_c_werror_flag" |
16917 | || test ! -s conftest.err' | |
16918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16919 | (eval $ac_try) 2>&5 | |
16920 | ac_status=$? | |
16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16922 | (exit $ac_status); }; } && | |
16923 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16925 | (eval $ac_try) 2>&5 | |
16926 | ac_status=$? | |
16927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16928 | (exit $ac_status); }; }; then | |
16929 | ac_lo=0 ac_mid=0 | |
16930 | while :; do | |
16931 | cat >conftest.$ac_ext <<_ACEOF | |
16932 | /* confdefs.h. */ | |
16933 | _ACEOF | |
16934 | cat confdefs.h >>conftest.$ac_ext | |
16935 | cat >>conftest.$ac_ext <<_ACEOF | |
16936 | /* end confdefs.h. */ | |
16937 | $ac_includes_default | |
16938 | int | |
16939 | main () | |
16940 | { | |
16941 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16942 | test_array [0] = 0 | |
16943 | ||
16944 | ; | |
16945 | return 0; | |
16946 | } | |
16947 | _ACEOF | |
16948 | rm -f conftest.$ac_objext | |
16949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16950 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16951 | ac_status=$? |
ac1cb8d3 VS |
16952 | grep -v '^ *+' conftest.er1 >conftest.err |
16953 | rm -f conftest.er1 | |
16954 | cat conftest.err >&5 | |
a848cd7e SC |
16955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16956 | (exit $ac_status); } && | |
ac1cb8d3 VS |
16957 | { ac_try='test -z "$ac_c_werror_flag" |
16958 | || test ! -s conftest.err' | |
16959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16960 | (eval $ac_try) 2>&5 | |
16961 | ac_status=$? | |
16962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16963 | (exit $ac_status); }; } && | |
16964 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16966 | (eval $ac_try) 2>&5 | |
16967 | ac_status=$? | |
16968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16969 | (exit $ac_status); }; }; then | |
16970 | ac_hi=$ac_mid; break | |
16971 | else | |
16972 | echo "$as_me: failed program was:" >&5 | |
16973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16974 | ||
16975 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16976 | if test $ac_lo -le $ac_mid; then |
16977 | ac_lo= ac_hi= | |
16978 | break | |
16979 | fi | |
16980 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16981 | fi |
ac1cb8d3 | 16982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16983 | done |
16984 | else | |
16985 | echo "$as_me: failed program was:" >&5 | |
16986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16987 | ||
16988 | cat >conftest.$ac_ext <<_ACEOF | |
16989 | /* confdefs.h. */ | |
16990 | _ACEOF | |
16991 | cat confdefs.h >>conftest.$ac_ext | |
16992 | cat >>conftest.$ac_ext <<_ACEOF | |
16993 | /* end confdefs.h. */ | |
16994 | $ac_includes_default | |
16995 | int | |
16996 | main () | |
16997 | { | |
16998 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16999 | test_array [0] = 0 | |
17000 | ||
17001 | ; | |
17002 | return 0; | |
17003 | } | |
17004 | _ACEOF | |
17005 | rm -f conftest.$ac_objext | |
17006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17008 | ac_status=$? |
ac1cb8d3 VS |
17009 | grep -v '^ *+' conftest.er1 >conftest.err |
17010 | rm -f conftest.er1 | |
17011 | cat conftest.err >&5 | |
a848cd7e SC |
17012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17013 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17014 | { ac_try='test -z "$ac_c_werror_flag" |
17015 | || test ! -s conftest.err' | |
17016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17017 | (eval $ac_try) 2>&5 | |
17018 | ac_status=$? | |
17019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17020 | (exit $ac_status); }; } && | |
17021 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17023 | (eval $ac_try) 2>&5 | |
17024 | ac_status=$? | |
17025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17026 | (exit $ac_status); }; }; then | |
17027 | ac_hi=-1 ac_mid=-1 | |
17028 | while :; do | |
17029 | cat >conftest.$ac_ext <<_ACEOF | |
17030 | /* confdefs.h. */ | |
17031 | _ACEOF | |
17032 | cat confdefs.h >>conftest.$ac_ext | |
17033 | cat >>conftest.$ac_ext <<_ACEOF | |
17034 | /* end confdefs.h. */ | |
17035 | $ac_includes_default | |
17036 | int | |
17037 | main () | |
17038 | { | |
17039 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17040 | test_array [0] = 0 | |
17041 | ||
17042 | ; | |
17043 | return 0; | |
17044 | } | |
17045 | _ACEOF | |
17046 | rm -f conftest.$ac_objext | |
17047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17048 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17049 | ac_status=$? |
ac1cb8d3 VS |
17050 | grep -v '^ *+' conftest.er1 >conftest.err |
17051 | rm -f conftest.er1 | |
17052 | cat conftest.err >&5 | |
a848cd7e SC |
17053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17054 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17055 | { ac_try='test -z "$ac_c_werror_flag" |
17056 | || test ! -s conftest.err' | |
17057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17058 | (eval $ac_try) 2>&5 | |
17059 | ac_status=$? | |
17060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17061 | (exit $ac_status); }; } && | |
17062 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17064 | (eval $ac_try) 2>&5 | |
17065 | ac_status=$? | |
17066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17067 | (exit $ac_status); }; }; then | |
17068 | ac_lo=$ac_mid; break | |
17069 | else | |
17070 | echo "$as_me: failed program was:" >&5 | |
17071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17072 | ||
17073 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17074 | if test $ac_mid -le $ac_hi; then |
17075 | ac_lo= ac_hi= | |
17076 | break | |
17077 | fi | |
17078 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17079 | fi |
ac1cb8d3 | 17080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17081 | done |
17082 | else | |
17083 | echo "$as_me: failed program was:" >&5 | |
17084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17085 | ||
17086 | ac_lo= ac_hi= | |
17087 | fi | |
ac1cb8d3 | 17088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17089 | fi |
ac1cb8d3 | 17090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17091 | # Binary search between lo and hi bounds. |
17092 | while test "x$ac_lo" != "x$ac_hi"; do | |
17093 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17094 | cat >conftest.$ac_ext <<_ACEOF | |
17095 | /* confdefs.h. */ | |
17096 | _ACEOF | |
17097 | cat confdefs.h >>conftest.$ac_ext | |
17098 | cat >>conftest.$ac_ext <<_ACEOF | |
17099 | /* end confdefs.h. */ | |
17100 | $ac_includes_default | |
17101 | int | |
17102 | main () | |
17103 | { | |
17104 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17105 | test_array [0] = 0 | |
17106 | ||
17107 | ; | |
17108 | return 0; | |
17109 | } | |
17110 | _ACEOF | |
17111 | rm -f conftest.$ac_objext | |
17112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17113 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17114 | ac_status=$? |
ac1cb8d3 VS |
17115 | grep -v '^ *+' conftest.er1 >conftest.err |
17116 | rm -f conftest.er1 | |
17117 | cat conftest.err >&5 | |
a848cd7e SC |
17118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17119 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17120 | { ac_try='test -z "$ac_c_werror_flag" |
17121 | || test ! -s conftest.err' | |
17122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17123 | (eval $ac_try) 2>&5 | |
17124 | ac_status=$? | |
17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17126 | (exit $ac_status); }; } && | |
17127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17129 | (eval $ac_try) 2>&5 | |
17130 | ac_status=$? | |
17131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17132 | (exit $ac_status); }; }; then | |
17133 | ac_hi=$ac_mid | |
17134 | else | |
17135 | echo "$as_me: failed program was:" >&5 | |
17136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17137 | ||
17138 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17139 | fi | |
ac1cb8d3 | 17140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17141 | done |
17142 | case $ac_lo in | |
17143 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17144 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17145 | See \`config.log' for more details." >&5 | |
17146 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17147 | See \`config.log' for more details." >&2;} | |
17148 | { (exit 1); exit 1; }; } ;; | |
17149 | esac | |
17150 | else | |
17151 | if test "$cross_compiling" = yes; then | |
17152 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17153 | See \`config.log' for more details." >&5 | |
17154 | echo "$as_me: error: cannot run test program while cross compiling | |
17155 | See \`config.log' for more details." >&2;} | |
17156 | { (exit 1); exit 1; }; } | |
17157 | else | |
17158 | cat >conftest.$ac_ext <<_ACEOF | |
17159 | /* confdefs.h. */ | |
17160 | _ACEOF | |
17161 | cat confdefs.h >>conftest.$ac_ext | |
17162 | cat >>conftest.$ac_ext <<_ACEOF | |
17163 | /* end confdefs.h. */ | |
17164 | $ac_includes_default | |
17165 | long longval () { return (long) (sizeof (long long)); } | |
17166 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17167 | #include <stdio.h> | |
17168 | #include <stdlib.h> | |
17169 | int | |
17170 | main () | |
17171 | { | |
17172 | ||
17173 | FILE *f = fopen ("conftest.val", "w"); | |
17174 | if (! f) | |
17175 | exit (1); | |
17176 | if (((long) (sizeof (long long))) < 0) | |
17177 | { | |
17178 | long i = longval (); | |
17179 | if (i != ((long) (sizeof (long long)))) | |
17180 | exit (1); | |
17181 | fprintf (f, "%ld\n", i); | |
17182 | } | |
17183 | else | |
17184 | { | |
17185 | unsigned long i = ulongval (); | |
17186 | if (i != ((long) (sizeof (long long)))) | |
17187 | exit (1); | |
17188 | fprintf (f, "%lu\n", i); | |
17189 | } | |
17190 | exit (ferror (f) || fclose (f) != 0); | |
17191 | ||
17192 | ; | |
17193 | return 0; | |
17194 | } | |
17195 | _ACEOF | |
17196 | rm -f conftest$ac_exeext | |
17197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17198 | (eval $ac_link) 2>&5 | |
17199 | ac_status=$? | |
17200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17201 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17203 | (eval $ac_try) 2>&5 | |
17204 | ac_status=$? | |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17206 | (exit $ac_status); }; }; then | |
17207 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17208 | else | |
17209 | echo "$as_me: program exited with status $ac_status" >&5 | |
17210 | echo "$as_me: failed program was:" >&5 | |
17211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17212 | ||
17213 | ( exit $ac_status ) | |
17214 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17215 | See \`config.log' for more details." >&5 | |
17216 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17217 | See \`config.log' for more details." >&2;} | |
17218 | { (exit 1); exit 1; }; } | |
17219 | fi | |
ac1cb8d3 | 17220 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17221 | fi |
17222 | fi | |
17223 | rm -f conftest.val | |
17224 | else | |
17225 | ac_cv_sizeof_long_long=0 | |
17226 | fi | |
17227 | fi | |
17228 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17229 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17230 | cat >>confdefs.h <<_ACEOF | |
17231 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17232 | _ACEOF | |
17233 | ||
17234 | ||
17235 | ;; | |
17236 | *-hp-hpux* ) | |
17237 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17238 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17239 | if test "${ac_cv_type_long_long+set}" = set; then | |
17240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17241 | else | |
17242 | cat >conftest.$ac_ext <<_ACEOF | |
17243 | /* confdefs.h. */ | |
17244 | _ACEOF | |
17245 | cat confdefs.h >>conftest.$ac_ext | |
17246 | cat >>conftest.$ac_ext <<_ACEOF | |
17247 | /* end confdefs.h. */ | |
17248 | $ac_includes_default | |
17249 | int | |
17250 | main () | |
17251 | { | |
17252 | if ((long long *) 0) | |
17253 | return 0; | |
17254 | if (sizeof (long long)) | |
17255 | return 0; | |
17256 | ; | |
17257 | return 0; | |
17258 | } | |
17259 | _ACEOF | |
17260 | rm -f conftest.$ac_objext | |
17261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17262 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17263 | ac_status=$? |
ac1cb8d3 VS |
17264 | grep -v '^ *+' conftest.er1 >conftest.err |
17265 | rm -f conftest.er1 | |
17266 | cat conftest.err >&5 | |
a848cd7e SC |
17267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17268 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17269 | { ac_try='test -z "$ac_c_werror_flag" |
17270 | || test ! -s conftest.err' | |
17271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17272 | (eval $ac_try) 2>&5 | |
17273 | ac_status=$? | |
17274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17275 | (exit $ac_status); }; } && | |
17276 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17278 | (eval $ac_try) 2>&5 | |
17279 | ac_status=$? | |
17280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17281 | (exit $ac_status); }; }; then | |
17282 | ac_cv_type_long_long=yes | |
17283 | else | |
17284 | echo "$as_me: failed program was:" >&5 | |
17285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17286 | ||
17287 | ac_cv_type_long_long=no | |
17288 | fi | |
ac1cb8d3 | 17289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17290 | fi |
17291 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17292 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17293 | ||
17294 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17295 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17296 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17298 | else | |
17299 | if test "$ac_cv_type_long_long" = yes; then | |
17300 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17301 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17302 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17303 | # This bug is HP SR number 8606223364. | |
17304 | if test "$cross_compiling" = yes; then | |
17305 | # Depending upon the size, compute the lo and hi bounds. | |
17306 | cat >conftest.$ac_ext <<_ACEOF | |
17307 | /* confdefs.h. */ | |
17308 | _ACEOF | |
17309 | cat confdefs.h >>conftest.$ac_ext | |
17310 | cat >>conftest.$ac_ext <<_ACEOF | |
17311 | /* end confdefs.h. */ | |
17312 | $ac_includes_default | |
17313 | int | |
17314 | main () | |
17315 | { | |
17316 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17317 | test_array [0] = 0 | |
17318 | ||
17319 | ; | |
17320 | return 0; | |
17321 | } | |
17322 | _ACEOF | |
17323 | rm -f conftest.$ac_objext | |
17324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17325 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17326 | ac_status=$? |
ac1cb8d3 VS |
17327 | grep -v '^ *+' conftest.er1 >conftest.err |
17328 | rm -f conftest.er1 | |
17329 | cat conftest.err >&5 | |
a848cd7e SC |
17330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17331 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17332 | { ac_try='test -z "$ac_c_werror_flag" |
17333 | || test ! -s conftest.err' | |
17334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17335 | (eval $ac_try) 2>&5 | |
17336 | ac_status=$? | |
17337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17338 | (exit $ac_status); }; } && | |
17339 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17341 | (eval $ac_try) 2>&5 | |
17342 | ac_status=$? | |
17343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17344 | (exit $ac_status); }; }; then | |
17345 | ac_lo=0 ac_mid=0 | |
17346 | while :; do | |
17347 | cat >conftest.$ac_ext <<_ACEOF | |
17348 | /* confdefs.h. */ | |
17349 | _ACEOF | |
17350 | cat confdefs.h >>conftest.$ac_ext | |
17351 | cat >>conftest.$ac_ext <<_ACEOF | |
17352 | /* end confdefs.h. */ | |
17353 | $ac_includes_default | |
17354 | int | |
17355 | main () | |
17356 | { | |
17357 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17358 | test_array [0] = 0 | |
17359 | ||
17360 | ; | |
17361 | return 0; | |
17362 | } | |
17363 | _ACEOF | |
17364 | rm -f conftest.$ac_objext | |
17365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17366 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17367 | ac_status=$? |
ac1cb8d3 VS |
17368 | grep -v '^ *+' conftest.er1 >conftest.err |
17369 | rm -f conftest.er1 | |
17370 | cat conftest.err >&5 | |
a848cd7e SC |
17371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17372 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17373 | { ac_try='test -z "$ac_c_werror_flag" |
17374 | || test ! -s conftest.err' | |
17375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17376 | (eval $ac_try) 2>&5 | |
17377 | ac_status=$? | |
17378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17379 | (exit $ac_status); }; } && | |
17380 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17382 | (eval $ac_try) 2>&5 | |
17383 | ac_status=$? | |
17384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17385 | (exit $ac_status); }; }; then | |
17386 | ac_hi=$ac_mid; break | |
17387 | else | |
17388 | echo "$as_me: failed program was:" >&5 | |
17389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17390 | ||
17391 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17392 | if test $ac_lo -le $ac_mid; then |
17393 | ac_lo= ac_hi= | |
17394 | break | |
17395 | fi | |
17396 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17397 | fi |
ac1cb8d3 | 17398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17399 | done |
17400 | else | |
17401 | echo "$as_me: failed program was:" >&5 | |
17402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17403 | ||
17404 | cat >conftest.$ac_ext <<_ACEOF | |
17405 | /* confdefs.h. */ | |
17406 | _ACEOF | |
17407 | cat confdefs.h >>conftest.$ac_ext | |
17408 | cat >>conftest.$ac_ext <<_ACEOF | |
17409 | /* end confdefs.h. */ | |
17410 | $ac_includes_default | |
17411 | int | |
17412 | main () | |
17413 | { | |
17414 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17415 | test_array [0] = 0 | |
17416 | ||
17417 | ; | |
17418 | return 0; | |
17419 | } | |
17420 | _ACEOF | |
17421 | rm -f conftest.$ac_objext | |
17422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17423 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17424 | ac_status=$? |
ac1cb8d3 VS |
17425 | grep -v '^ *+' conftest.er1 >conftest.err |
17426 | rm -f conftest.er1 | |
17427 | cat conftest.err >&5 | |
a848cd7e SC |
17428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17429 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17430 | { ac_try='test -z "$ac_c_werror_flag" |
17431 | || test ! -s conftest.err' | |
17432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17433 | (eval $ac_try) 2>&5 | |
17434 | ac_status=$? | |
17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17436 | (exit $ac_status); }; } && | |
17437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17439 | (eval $ac_try) 2>&5 | |
17440 | ac_status=$? | |
17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17442 | (exit $ac_status); }; }; then | |
17443 | ac_hi=-1 ac_mid=-1 | |
17444 | while :; do | |
17445 | cat >conftest.$ac_ext <<_ACEOF | |
17446 | /* confdefs.h. */ | |
17447 | _ACEOF | |
17448 | cat confdefs.h >>conftest.$ac_ext | |
17449 | cat >>conftest.$ac_ext <<_ACEOF | |
17450 | /* end confdefs.h. */ | |
17451 | $ac_includes_default | |
17452 | int | |
17453 | main () | |
17454 | { | |
17455 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17456 | test_array [0] = 0 | |
17457 | ||
17458 | ; | |
17459 | return 0; | |
17460 | } | |
17461 | _ACEOF | |
17462 | rm -f conftest.$ac_objext | |
17463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17464 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17465 | ac_status=$? |
ac1cb8d3 VS |
17466 | grep -v '^ *+' conftest.er1 >conftest.err |
17467 | rm -f conftest.er1 | |
17468 | cat conftest.err >&5 | |
a848cd7e SC |
17469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17470 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17471 | { ac_try='test -z "$ac_c_werror_flag" |
17472 | || test ! -s conftest.err' | |
17473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17474 | (eval $ac_try) 2>&5 | |
17475 | ac_status=$? | |
17476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17477 | (exit $ac_status); }; } && | |
17478 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17480 | (eval $ac_try) 2>&5 | |
17481 | ac_status=$? | |
17482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17483 | (exit $ac_status); }; }; then | |
17484 | ac_lo=$ac_mid; break | |
17485 | else | |
17486 | echo "$as_me: failed program was:" >&5 | |
17487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17488 | ||
17489 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17490 | if test $ac_mid -le $ac_hi; then |
17491 | ac_lo= ac_hi= | |
17492 | break | |
17493 | fi | |
17494 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17495 | fi |
ac1cb8d3 | 17496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17497 | done |
17498 | else | |
17499 | echo "$as_me: failed program was:" >&5 | |
17500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17501 | ||
17502 | ac_lo= ac_hi= | |
17503 | fi | |
ac1cb8d3 | 17504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17505 | fi |
ac1cb8d3 | 17506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17507 | # Binary search between lo and hi bounds. |
17508 | while test "x$ac_lo" != "x$ac_hi"; do | |
17509 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17510 | cat >conftest.$ac_ext <<_ACEOF | |
17511 | /* confdefs.h. */ | |
17512 | _ACEOF | |
17513 | cat confdefs.h >>conftest.$ac_ext | |
17514 | cat >>conftest.$ac_ext <<_ACEOF | |
17515 | /* end confdefs.h. */ | |
17516 | $ac_includes_default | |
17517 | int | |
17518 | main () | |
17519 | { | |
17520 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17521 | test_array [0] = 0 | |
17522 | ||
17523 | ; | |
17524 | return 0; | |
17525 | } | |
17526 | _ACEOF | |
17527 | rm -f conftest.$ac_objext | |
17528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17529 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17530 | ac_status=$? |
ac1cb8d3 VS |
17531 | grep -v '^ *+' conftest.er1 >conftest.err |
17532 | rm -f conftest.er1 | |
17533 | cat conftest.err >&5 | |
a848cd7e SC |
17534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17535 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17536 | { ac_try='test -z "$ac_c_werror_flag" |
17537 | || test ! -s conftest.err' | |
17538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17539 | (eval $ac_try) 2>&5 | |
17540 | ac_status=$? | |
17541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17542 | (exit $ac_status); }; } && | |
17543 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17545 | (eval $ac_try) 2>&5 | |
17546 | ac_status=$? | |
17547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17548 | (exit $ac_status); }; }; then | |
17549 | ac_hi=$ac_mid | |
17550 | else | |
17551 | echo "$as_me: failed program was:" >&5 | |
17552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17553 | ||
17554 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17555 | fi | |
ac1cb8d3 | 17556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17557 | done |
17558 | case $ac_lo in | |
17559 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17560 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17561 | See \`config.log' for more details." >&5 | |
17562 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17563 | See \`config.log' for more details." >&2;} | |
17564 | { (exit 1); exit 1; }; } ;; | |
17565 | esac | |
17566 | else | |
17567 | if test "$cross_compiling" = yes; then | |
17568 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17569 | See \`config.log' for more details." >&5 | |
17570 | echo "$as_me: error: cannot run test program while cross compiling | |
17571 | See \`config.log' for more details." >&2;} | |
17572 | { (exit 1); exit 1; }; } | |
17573 | else | |
17574 | cat >conftest.$ac_ext <<_ACEOF | |
17575 | /* confdefs.h. */ | |
17576 | _ACEOF | |
17577 | cat confdefs.h >>conftest.$ac_ext | |
17578 | cat >>conftest.$ac_ext <<_ACEOF | |
17579 | /* end confdefs.h. */ | |
17580 | $ac_includes_default | |
17581 | long longval () { return (long) (sizeof (long long)); } | |
17582 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17583 | #include <stdio.h> | |
17584 | #include <stdlib.h> | |
17585 | int | |
17586 | main () | |
17587 | { | |
17588 | ||
17589 | FILE *f = fopen ("conftest.val", "w"); | |
17590 | if (! f) | |
17591 | exit (1); | |
17592 | if (((long) (sizeof (long long))) < 0) | |
17593 | { | |
17594 | long i = longval (); | |
17595 | if (i != ((long) (sizeof (long long)))) | |
17596 | exit (1); | |
17597 | fprintf (f, "%ld\n", i); | |
17598 | } | |
17599 | else | |
17600 | { | |
17601 | unsigned long i = ulongval (); | |
17602 | if (i != ((long) (sizeof (long long)))) | |
17603 | exit (1); | |
17604 | fprintf (f, "%lu\n", i); | |
17605 | } | |
17606 | exit (ferror (f) || fclose (f) != 0); | |
17607 | ||
17608 | ; | |
17609 | return 0; | |
17610 | } | |
17611 | _ACEOF | |
17612 | rm -f conftest$ac_exeext | |
17613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17614 | (eval $ac_link) 2>&5 | |
17615 | ac_status=$? | |
17616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17619 | (eval $ac_try) 2>&5 | |
17620 | ac_status=$? | |
17621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17622 | (exit $ac_status); }; }; then | |
17623 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17624 | else | |
17625 | echo "$as_me: program exited with status $ac_status" >&5 | |
17626 | echo "$as_me: failed program was:" >&5 | |
17627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17628 | ||
17629 | ( exit $ac_status ) | |
17630 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17631 | See \`config.log' for more details." >&5 | |
17632 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17633 | See \`config.log' for more details." >&2;} | |
17634 | { (exit 1); exit 1; }; } | |
17635 | fi | |
ac1cb8d3 | 17636 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17637 | fi |
17638 | fi | |
17639 | rm -f conftest.val | |
17640 | else | |
17641 | ac_cv_sizeof_long_long=0 | |
17642 | fi | |
17643 | fi | |
17644 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17645 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17646 | cat >>confdefs.h <<_ACEOF | |
17647 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17648 | _ACEOF | |
17649 | ||
17650 | ||
17651 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17652 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17653 | fi | |
17654 | ;; | |
17655 | * ) | |
17656 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17657 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17658 | if test "${ac_cv_type_long_long+set}" = set; then | |
17659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17660 | else | |
17661 | cat >conftest.$ac_ext <<_ACEOF | |
17662 | /* confdefs.h. */ | |
17663 | _ACEOF | |
17664 | cat confdefs.h >>conftest.$ac_ext | |
17665 | cat >>conftest.$ac_ext <<_ACEOF | |
17666 | /* end confdefs.h. */ | |
17667 | $ac_includes_default | |
17668 | int | |
17669 | main () | |
17670 | { | |
17671 | if ((long long *) 0) | |
17672 | return 0; | |
17673 | if (sizeof (long long)) | |
17674 | return 0; | |
17675 | ; | |
17676 | return 0; | |
17677 | } | |
17678 | _ACEOF | |
17679 | rm -f conftest.$ac_objext | |
17680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17681 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17682 | ac_status=$? |
ac1cb8d3 VS |
17683 | grep -v '^ *+' conftest.er1 >conftest.err |
17684 | rm -f conftest.er1 | |
17685 | cat conftest.err >&5 | |
a848cd7e SC |
17686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17687 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17688 | { ac_try='test -z "$ac_c_werror_flag" |
17689 | || test ! -s conftest.err' | |
17690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17691 | (eval $ac_try) 2>&5 | |
17692 | ac_status=$? | |
17693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17694 | (exit $ac_status); }; } && | |
17695 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17697 | (eval $ac_try) 2>&5 | |
17698 | ac_status=$? | |
17699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17700 | (exit $ac_status); }; }; then | |
17701 | ac_cv_type_long_long=yes | |
17702 | else | |
17703 | echo "$as_me: failed program was:" >&5 | |
17704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17705 | ||
17706 | ac_cv_type_long_long=no | |
17707 | fi | |
ac1cb8d3 | 17708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17709 | fi |
17710 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17711 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17712 | ||
17713 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17714 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17715 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17717 | else | |
17718 | if test "$ac_cv_type_long_long" = yes; then | |
17719 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17720 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17721 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17722 | # This bug is HP SR number 8606223364. | |
17723 | if test "$cross_compiling" = yes; then | |
17724 | # Depending upon the size, compute the lo and hi bounds. | |
17725 | cat >conftest.$ac_ext <<_ACEOF | |
17726 | /* confdefs.h. */ | |
17727 | _ACEOF | |
17728 | cat confdefs.h >>conftest.$ac_ext | |
17729 | cat >>conftest.$ac_ext <<_ACEOF | |
17730 | /* end confdefs.h. */ | |
17731 | $ac_includes_default | |
17732 | int | |
17733 | main () | |
17734 | { | |
17735 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17736 | test_array [0] = 0 | |
17737 | ||
17738 | ; | |
17739 | return 0; | |
17740 | } | |
17741 | _ACEOF | |
17742 | rm -f conftest.$ac_objext | |
17743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17744 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17745 | ac_status=$? |
ac1cb8d3 VS |
17746 | grep -v '^ *+' conftest.er1 >conftest.err |
17747 | rm -f conftest.er1 | |
17748 | cat conftest.err >&5 | |
a848cd7e SC |
17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17750 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17751 | { ac_try='test -z "$ac_c_werror_flag" |
17752 | || test ! -s conftest.err' | |
17753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17754 | (eval $ac_try) 2>&5 | |
17755 | ac_status=$? | |
17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17757 | (exit $ac_status); }; } && | |
17758 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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_lo=0 ac_mid=0 | |
17765 | while :; do | |
17766 | cat >conftest.$ac_ext <<_ACEOF | |
17767 | /* confdefs.h. */ | |
17768 | _ACEOF | |
17769 | cat confdefs.h >>conftest.$ac_ext | |
17770 | cat >>conftest.$ac_ext <<_ACEOF | |
17771 | /* end confdefs.h. */ | |
17772 | $ac_includes_default | |
17773 | int | |
17774 | main () | |
17775 | { | |
17776 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17777 | test_array [0] = 0 | |
17778 | ||
17779 | ; | |
17780 | return 0; | |
17781 | } | |
17782 | _ACEOF | |
17783 | rm -f conftest.$ac_objext | |
17784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17785 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17786 | ac_status=$? |
ac1cb8d3 VS |
17787 | grep -v '^ *+' conftest.er1 >conftest.err |
17788 | rm -f conftest.er1 | |
17789 | cat conftest.err >&5 | |
a848cd7e SC |
17790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17791 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17792 | { ac_try='test -z "$ac_c_werror_flag" |
17793 | || test ! -s conftest.err' | |
17794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17795 | (eval $ac_try) 2>&5 | |
17796 | ac_status=$? | |
17797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17798 | (exit $ac_status); }; } && | |
17799 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17801 | (eval $ac_try) 2>&5 | |
17802 | ac_status=$? | |
17803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17804 | (exit $ac_status); }; }; then | |
17805 | ac_hi=$ac_mid; break | |
17806 | else | |
17807 | echo "$as_me: failed program was:" >&5 | |
17808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17809 | ||
17810 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17811 | if test $ac_lo -le $ac_mid; then |
17812 | ac_lo= ac_hi= | |
17813 | break | |
17814 | fi | |
17815 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17816 | fi |
ac1cb8d3 | 17817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17818 | done |
17819 | else | |
17820 | echo "$as_me: failed program was:" >&5 | |
17821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17822 | ||
17823 | cat >conftest.$ac_ext <<_ACEOF | |
17824 | /* confdefs.h. */ | |
17825 | _ACEOF | |
17826 | cat confdefs.h >>conftest.$ac_ext | |
17827 | cat >>conftest.$ac_ext <<_ACEOF | |
17828 | /* end confdefs.h. */ | |
17829 | $ac_includes_default | |
17830 | int | |
17831 | main () | |
17832 | { | |
17833 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17834 | test_array [0] = 0 | |
17835 | ||
17836 | ; | |
17837 | return 0; | |
17838 | } | |
17839 | _ACEOF | |
17840 | rm -f conftest.$ac_objext | |
17841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17842 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17843 | ac_status=$? |
ac1cb8d3 VS |
17844 | grep -v '^ *+' conftest.er1 >conftest.err |
17845 | rm -f conftest.er1 | |
17846 | cat conftest.err >&5 | |
a848cd7e SC |
17847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17848 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17849 | { ac_try='test -z "$ac_c_werror_flag" |
17850 | || test ! -s conftest.err' | |
17851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17852 | (eval $ac_try) 2>&5 | |
17853 | ac_status=$? | |
17854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17855 | (exit $ac_status); }; } && | |
17856 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17858 | (eval $ac_try) 2>&5 | |
17859 | ac_status=$? | |
17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17861 | (exit $ac_status); }; }; then | |
17862 | ac_hi=-1 ac_mid=-1 | |
17863 | while :; do | |
17864 | cat >conftest.$ac_ext <<_ACEOF | |
17865 | /* confdefs.h. */ | |
17866 | _ACEOF | |
17867 | cat confdefs.h >>conftest.$ac_ext | |
17868 | cat >>conftest.$ac_ext <<_ACEOF | |
17869 | /* end confdefs.h. */ | |
17870 | $ac_includes_default | |
17871 | int | |
17872 | main () | |
17873 | { | |
17874 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17875 | test_array [0] = 0 | |
17876 | ||
17877 | ; | |
17878 | return 0; | |
17879 | } | |
17880 | _ACEOF | |
17881 | rm -f conftest.$ac_objext | |
17882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17883 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17884 | ac_status=$? |
ac1cb8d3 VS |
17885 | grep -v '^ *+' conftest.er1 >conftest.err |
17886 | rm -f conftest.er1 | |
17887 | cat conftest.err >&5 | |
a848cd7e SC |
17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17889 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17890 | { ac_try='test -z "$ac_c_werror_flag" |
17891 | || test ! -s conftest.err' | |
17892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17893 | (eval $ac_try) 2>&5 | |
17894 | ac_status=$? | |
17895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17896 | (exit $ac_status); }; } && | |
17897 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17899 | (eval $ac_try) 2>&5 | |
17900 | ac_status=$? | |
17901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17902 | (exit $ac_status); }; }; then | |
17903 | ac_lo=$ac_mid; break | |
17904 | else | |
17905 | echo "$as_me: failed program was:" >&5 | |
17906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17907 | ||
17908 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17909 | if test $ac_mid -le $ac_hi; then |
17910 | ac_lo= ac_hi= | |
17911 | break | |
17912 | fi | |
17913 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17914 | fi |
ac1cb8d3 | 17915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17916 | done |
17917 | else | |
17918 | echo "$as_me: failed program was:" >&5 | |
17919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17920 | ||
17921 | ac_lo= ac_hi= | |
17922 | fi | |
ac1cb8d3 | 17923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17924 | fi |
ac1cb8d3 | 17925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17926 | # Binary search between lo and hi bounds. |
17927 | while test "x$ac_lo" != "x$ac_hi"; do | |
17928 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17929 | cat >conftest.$ac_ext <<_ACEOF | |
17930 | /* confdefs.h. */ | |
17931 | _ACEOF | |
17932 | cat confdefs.h >>conftest.$ac_ext | |
17933 | cat >>conftest.$ac_ext <<_ACEOF | |
17934 | /* end confdefs.h. */ | |
17935 | $ac_includes_default | |
17936 | int | |
17937 | main () | |
17938 | { | |
17939 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17940 | test_array [0] = 0 | |
17941 | ||
17942 | ; | |
17943 | return 0; | |
17944 | } | |
17945 | _ACEOF | |
17946 | rm -f conftest.$ac_objext | |
17947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17948 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17949 | ac_status=$? |
ac1cb8d3 VS |
17950 | grep -v '^ *+' conftest.er1 >conftest.err |
17951 | rm -f conftest.er1 | |
17952 | cat conftest.err >&5 | |
a848cd7e SC |
17953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17954 | (exit $ac_status); } && | |
ac1cb8d3 VS |
17955 | { ac_try='test -z "$ac_c_werror_flag" |
17956 | || test ! -s conftest.err' | |
17957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17958 | (eval $ac_try) 2>&5 | |
17959 | ac_status=$? | |
17960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17961 | (exit $ac_status); }; } && | |
17962 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17964 | (eval $ac_try) 2>&5 | |
17965 | ac_status=$? | |
17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17967 | (exit $ac_status); }; }; then | |
17968 | ac_hi=$ac_mid | |
17969 | else | |
17970 | echo "$as_me: failed program was:" >&5 | |
17971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17972 | ||
17973 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17974 | fi | |
ac1cb8d3 | 17975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17976 | done |
17977 | case $ac_lo in | |
17978 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17979 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17980 | See \`config.log' for more details." >&5 | |
17981 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17982 | See \`config.log' for more details." >&2;} | |
17983 | { (exit 1); exit 1; }; } ;; | |
17984 | esac | |
17985 | else | |
17986 | if test "$cross_compiling" = yes; then | |
17987 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17988 | See \`config.log' for more details." >&5 | |
17989 | echo "$as_me: error: cannot run test program while cross compiling | |
17990 | See \`config.log' for more details." >&2;} | |
17991 | { (exit 1); exit 1; }; } | |
17992 | else | |
17993 | cat >conftest.$ac_ext <<_ACEOF | |
17994 | /* confdefs.h. */ | |
17995 | _ACEOF | |
17996 | cat confdefs.h >>conftest.$ac_ext | |
17997 | cat >>conftest.$ac_ext <<_ACEOF | |
17998 | /* end confdefs.h. */ | |
17999 | $ac_includes_default | |
18000 | long longval () { return (long) (sizeof (long long)); } | |
18001 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18002 | #include <stdio.h> | |
18003 | #include <stdlib.h> | |
18004 | int | |
18005 | main () | |
18006 | { | |
18007 | ||
18008 | FILE *f = fopen ("conftest.val", "w"); | |
18009 | if (! f) | |
18010 | exit (1); | |
18011 | if (((long) (sizeof (long long))) < 0) | |
18012 | { | |
18013 | long i = longval (); | |
18014 | if (i != ((long) (sizeof (long long)))) | |
18015 | exit (1); | |
18016 | fprintf (f, "%ld\n", i); | |
18017 | } | |
18018 | else | |
18019 | { | |
18020 | unsigned long i = ulongval (); | |
18021 | if (i != ((long) (sizeof (long long)))) | |
18022 | exit (1); | |
18023 | fprintf (f, "%lu\n", i); | |
18024 | } | |
18025 | exit (ferror (f) || fclose (f) != 0); | |
18026 | ||
18027 | ; | |
18028 | return 0; | |
18029 | } | |
18030 | _ACEOF | |
18031 | rm -f conftest$ac_exeext | |
18032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18033 | (eval $ac_link) 2>&5 | |
18034 | ac_status=$? | |
18035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18036 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18038 | (eval $ac_try) 2>&5 | |
18039 | ac_status=$? | |
18040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18041 | (exit $ac_status); }; }; then | |
18042 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18043 | else | |
18044 | echo "$as_me: program exited with status $ac_status" >&5 | |
18045 | echo "$as_me: failed program was:" >&5 | |
18046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18047 | ||
18048 | ( exit $ac_status ) | |
18049 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18050 | See \`config.log' for more details." >&5 | |
18051 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18052 | See \`config.log' for more details." >&2;} | |
18053 | { (exit 1); exit 1; }; } | |
18054 | fi | |
ac1cb8d3 | 18055 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18056 | fi |
18057 | fi | |
18058 | rm -f conftest.val | |
18059 | else | |
18060 | ac_cv_sizeof_long_long=0 | |
18061 | fi | |
18062 | fi | |
18063 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18064 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18065 | cat >>confdefs.h <<_ACEOF | |
18066 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18067 | _ACEOF | |
18068 | ||
18069 | ||
18070 | esac | |
18071 | ||
18072 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18073 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18074 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18076 | else | |
18077 | ||
18078 | if test "$cross_compiling" = yes; then | |
18079 | ||
18080 | case "${host}" in | |
18081 | *-pc-msdosdjgpp ) | |
18082 | wx_cv_sizeof_wchar_t=0 | |
18083 | ;; | |
18084 | * ) | |
18085 | wx_cv_sizeof_wchar_t=4 | |
18086 | ;; | |
18087 | esac | |
18088 | ||
18089 | ||
18090 | else | |
18091 | cat >conftest.$ac_ext <<_ACEOF | |
18092 | /* confdefs.h. */ | |
18093 | _ACEOF | |
18094 | cat confdefs.h >>conftest.$ac_ext | |
18095 | cat >>conftest.$ac_ext <<_ACEOF | |
18096 | /* end confdefs.h. */ | |
18097 | ||
18098 | /* DJGPP only has fake wchar_t: */ | |
18099 | #ifdef __DJGPP__ | |
18100 | # error "fake wchar_t" | |
18101 | #endif | |
18102 | #ifdef HAVE_WCHAR_H | |
18103 | # ifdef __CYGWIN__ | |
18104 | # include <stddef.h> | |
18105 | # endif | |
18106 | # include <wchar.h> | |
18107 | #endif | |
18108 | #ifdef HAVE_STDLIB_H | |
18109 | # include <stdlib.h> | |
18110 | #endif | |
18111 | #include <stdio.h> | |
18112 | int main() | |
18113 | { | |
18114 | FILE *f=fopen("conftestval", "w"); | |
18115 | if (!f) exit(1); | |
18116 | fprintf(f, "%i", sizeof(wchar_t)); | |
18117 | exit(0); | |
18118 | } | |
18119 | ||
18120 | _ACEOF | |
18121 | rm -f conftest$ac_exeext | |
18122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18123 | (eval $ac_link) 2>&5 | |
18124 | ac_status=$? | |
18125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18126 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18128 | (eval $ac_try) 2>&5 | |
18129 | ac_status=$? | |
18130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18131 | (exit $ac_status); }; }; then | |
18132 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18133 | else | |
18134 | echo "$as_me: program exited with status $ac_status" >&5 | |
18135 | echo "$as_me: failed program was:" >&5 | |
18136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18137 | ||
18138 | ( exit $ac_status ) | |
18139 | wx_cv_sizeof_wchar_t=0 | |
18140 | fi | |
ac1cb8d3 | 18141 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18142 | fi |
18143 | ||
18144 | fi | |
18145 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18146 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18147 | ||
18148 | cat >>confdefs.h <<_ACEOF | |
18149 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18150 | _ACEOF | |
18151 | ||
18152 | ||
18153 | # Check whether --enable-largefile or --disable-largefile was given. | |
18154 | if test "${enable_largefile+set}" = set; then | |
18155 | enableval="$enable_largefile" | |
18156 | ||
18157 | fi; | |
18158 | if test "$enable_largefile" != no; then | |
18159 | wx_largefile=no | |
18160 | ||
18161 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18162 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18163 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18165 | else | |
18166 | ||
18167 | cat >conftest.$ac_ext <<_ACEOF | |
18168 | /* confdefs.h. */ | |
18169 | _ACEOF | |
18170 | cat confdefs.h >>conftest.$ac_ext | |
18171 | cat >>conftest.$ac_ext <<_ACEOF | |
18172 | /* end confdefs.h. */ | |
18173 | #define _FILE_OFFSET_BITS 64 | |
18174 | #include <sys/types.h> | |
18175 | int | |
18176 | main () | |
18177 | { | |
18178 | typedef struct { | |
18179 | unsigned int field: sizeof(off_t) == 8; | |
18180 | } wxlf; | |
18181 | ||
18182 | ; | |
18183 | return 0; | |
18184 | } | |
18185 | _ACEOF | |
18186 | rm -f conftest.$ac_objext | |
18187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18188 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18189 | ac_status=$? |
ac1cb8d3 VS |
18190 | grep -v '^ *+' conftest.er1 >conftest.err |
18191 | rm -f conftest.er1 | |
18192 | cat conftest.err >&5 | |
a848cd7e SC |
18193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18194 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18195 | { ac_try='test -z "$ac_c_werror_flag" |
18196 | || test ! -s conftest.err' | |
18197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18198 | (eval $ac_try) 2>&5 | |
18199 | ac_status=$? | |
18200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18201 | (exit $ac_status); }; } && | |
18202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18204 | (eval $ac_try) 2>&5 | |
18205 | ac_status=$? | |
18206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18207 | (exit $ac_status); }; }; then | |
18208 | ac_cv_sys_file_offset_bits=64 | |
18209 | else | |
18210 | echo "$as_me: failed program was:" >&5 | |
18211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18212 | ||
18213 | ac_cv_sys_file_offset_bits=no | |
18214 | fi | |
ac1cb8d3 | 18215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18216 | |
18217 | ||
18218 | fi | |
18219 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18220 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18221 | ||
18222 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18223 | wx_largefile=yes | |
18224 | cat >>confdefs.h <<_ACEOF | |
18225 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18226 | _ACEOF | |
18227 | ||
18228 | fi | |
18229 | ||
18230 | if test "x$wx_largefile" != "xyes"; then | |
18231 | ||
18232 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18233 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18234 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18236 | else | |
18237 | ||
18238 | cat >conftest.$ac_ext <<_ACEOF | |
18239 | /* confdefs.h. */ | |
18240 | _ACEOF | |
18241 | cat confdefs.h >>conftest.$ac_ext | |
18242 | cat >>conftest.$ac_ext <<_ACEOF | |
18243 | /* end confdefs.h. */ | |
18244 | #define _LARGE_FILES 1 | |
18245 | #include <sys/types.h> | |
18246 | int | |
18247 | main () | |
18248 | { | |
18249 | typedef struct { | |
18250 | unsigned int field: sizeof(off_t) == 8; | |
18251 | } wxlf; | |
18252 | ||
18253 | ; | |
18254 | return 0; | |
18255 | } | |
18256 | _ACEOF | |
18257 | rm -f conftest.$ac_objext | |
18258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18260 | ac_status=$? |
ac1cb8d3 VS |
18261 | grep -v '^ *+' conftest.er1 >conftest.err |
18262 | rm -f conftest.er1 | |
18263 | cat conftest.err >&5 | |
a848cd7e SC |
18264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18265 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18266 | { ac_try='test -z "$ac_c_werror_flag" |
18267 | || test ! -s conftest.err' | |
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); }; } && | |
18273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18275 | (eval $ac_try) 2>&5 | |
18276 | ac_status=$? | |
18277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18278 | (exit $ac_status); }; }; then | |
18279 | ac_cv_sys_large_files=1 | |
18280 | else | |
18281 | echo "$as_me: failed program was:" >&5 | |
18282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18283 | ||
18284 | ac_cv_sys_large_files=no | |
18285 | fi | |
ac1cb8d3 | 18286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18287 | |
18288 | ||
18289 | fi | |
18290 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18291 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18292 | ||
18293 | if test "$ac_cv_sys_large_files" != no; then | |
18294 | wx_largefile=yes | |
18295 | cat >>confdefs.h <<_ACEOF | |
18296 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18297 | _ACEOF | |
18298 | ||
18299 | fi | |
18300 | ||
18301 | fi | |
18302 | ||
18303 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18304 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18305 | if test "x$wx_largefile" = "xyes"; then | |
18306 | cat >>confdefs.h <<\_ACEOF | |
18307 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18308 | _ACEOF | |
18309 | ||
18310 | fi | |
18311 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18312 | echo "${ECHO_T}$wx_largefile" >&6 | |
18313 | fi | |
18314 | ||
18315 | ||
18316 | if test "x$wx_largefile" = "xyes"; then | |
18317 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18318 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18319 | else | |
18320 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18321 | fi | |
18322 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18323 | fi | |
18324 | ||
18325 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18326 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18327 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18329 | else | |
18330 | ac_cv_c_bigendian=unknown | |
18331 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18332 | cat >conftest.$ac_ext <<_ACEOF | |
18333 | /* confdefs.h. */ | |
18334 | _ACEOF | |
18335 | cat confdefs.h >>conftest.$ac_ext | |
18336 | cat >>conftest.$ac_ext <<_ACEOF | |
18337 | /* end confdefs.h. */ | |
18338 | #include <sys/types.h> | |
18339 | #include <sys/param.h> | |
18340 | int | |
18341 | main () | |
18342 | { | |
18343 | ||
18344 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18345 | bogus endian macros | |
18346 | #endif | |
18347 | ; | |
18348 | return 0; | |
18349 | } | |
18350 | _ACEOF | |
18351 | rm -f conftest.$ac_objext | |
18352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18354 | ac_status=$? |
ac1cb8d3 VS |
18355 | grep -v '^ *+' conftest.er1 >conftest.err |
18356 | rm -f conftest.er1 | |
18357 | cat conftest.err >&5 | |
a848cd7e SC |
18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18359 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18360 | { ac_try='test -z "$ac_c_werror_flag" |
18361 | || test ! -s conftest.err' | |
18362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18363 | (eval $ac_try) 2>&5 | |
18364 | ac_status=$? | |
18365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18366 | (exit $ac_status); }; } && | |
18367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18369 | (eval $ac_try) 2>&5 | |
18370 | ac_status=$? | |
18371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18372 | (exit $ac_status); }; }; then | |
18373 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18374 | cat >conftest.$ac_ext <<_ACEOF | |
18375 | /* confdefs.h. */ | |
18376 | _ACEOF | |
18377 | cat confdefs.h >>conftest.$ac_ext | |
18378 | cat >>conftest.$ac_ext <<_ACEOF | |
18379 | /* end confdefs.h. */ | |
18380 | #include <sys/types.h> | |
18381 | #include <sys/param.h> | |
18382 | int | |
18383 | main () | |
18384 | { | |
18385 | ||
18386 | #if BYTE_ORDER != BIG_ENDIAN | |
18387 | not big endian | |
18388 | #endif | |
18389 | ; | |
18390 | return 0; | |
18391 | } | |
18392 | _ACEOF | |
18393 | rm -f conftest.$ac_objext | |
18394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18395 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18396 | ac_status=$? |
ac1cb8d3 VS |
18397 | grep -v '^ *+' conftest.er1 >conftest.err |
18398 | rm -f conftest.er1 | |
18399 | cat conftest.err >&5 | |
a848cd7e SC |
18400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18401 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18402 | { ac_try='test -z "$ac_c_werror_flag" |
18403 | || test ! -s conftest.err' | |
18404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18405 | (eval $ac_try) 2>&5 | |
18406 | ac_status=$? | |
18407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18408 | (exit $ac_status); }; } && | |
18409 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18411 | (eval $ac_try) 2>&5 | |
18412 | ac_status=$? | |
18413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18414 | (exit $ac_status); }; }; then | |
18415 | ac_cv_c_bigendian=yes | |
18416 | else | |
18417 | echo "$as_me: failed program was:" >&5 | |
18418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18419 | ||
18420 | ac_cv_c_bigendian=no | |
18421 | fi | |
ac1cb8d3 | 18422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18423 | else |
18424 | echo "$as_me: failed program was:" >&5 | |
18425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18426 | ||
18427 | fi | |
ac1cb8d3 | 18428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18429 | if test $ac_cv_c_bigendian = unknown; then |
18430 | if test "$cross_compiling" = yes; then | |
18431 | ac_cv_c_bigendian=unknown | |
18432 | else | |
18433 | cat >conftest.$ac_ext <<_ACEOF | |
18434 | /* confdefs.h. */ | |
18435 | _ACEOF | |
18436 | cat confdefs.h >>conftest.$ac_ext | |
18437 | cat >>conftest.$ac_ext <<_ACEOF | |
18438 | /* end confdefs.h. */ | |
18439 | main () { | |
18440 | /* Are we little or big endian? From Harbison&Steele. */ | |
18441 | union | |
18442 | { | |
18443 | long l; | |
18444 | char c[sizeof (long)]; | |
18445 | } u; | |
18446 | u.l = 1; | |
18447 | exit (u.c[sizeof (long) - 1] == 1); | |
18448 | } | |
18449 | _ACEOF | |
18450 | rm -f conftest$ac_exeext | |
18451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18452 | (eval $ac_link) 2>&5 | |
18453 | ac_status=$? | |
18454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18457 | (eval $ac_try) 2>&5 | |
18458 | ac_status=$? | |
18459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18460 | (exit $ac_status); }; }; then | |
18461 | ac_cv_c_bigendian=no | |
18462 | else | |
18463 | echo "$as_me: program exited with status $ac_status" >&5 | |
18464 | echo "$as_me: failed program was:" >&5 | |
18465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18466 | ||
18467 | ( exit $ac_status ) | |
18468 | ac_cv_c_bigendian=yes | |
18469 | fi | |
ac1cb8d3 | 18470 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18471 | fi |
18472 | fi | |
18473 | fi | |
18474 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18475 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18476 | if test $ac_cv_c_bigendian = unknown; then | |
18477 | { 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 | |
18478 | 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;} | |
18479 | fi | |
18480 | if test $ac_cv_c_bigendian = yes; then | |
18481 | cat >>confdefs.h <<\_ACEOF | |
18482 | #define WORDS_BIGENDIAN 1 | |
18483 | _ACEOF | |
18484 | ||
18485 | fi | |
18486 | ||
18487 | ||
18488 | ac_ext=cc | |
18489 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18490 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18491 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18492 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18493 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18494 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18495 | if test -z "$CXXCPP"; then | |
18496 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18498 | else | |
18499 | # Double quotes because CXXCPP needs to be expanded | |
18500 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18501 | do | |
18502 | ac_preproc_ok=false | |
18503 | for ac_cxx_preproc_warn_flag in '' yes | |
18504 | do | |
18505 | # Use a header file that comes with gcc, so configuring glibc | |
18506 | # with a fresh cross-compiler works. | |
18507 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18508 | # <limits.h> exists even on freestanding compilers. | |
18509 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18510 | # not just through cpp. "Syntax error" is here to catch this case. | |
18511 | cat >conftest.$ac_ext <<_ACEOF | |
18512 | /* confdefs.h. */ | |
18513 | _ACEOF | |
18514 | cat confdefs.h >>conftest.$ac_ext | |
18515 | cat >>conftest.$ac_ext <<_ACEOF | |
18516 | /* end confdefs.h. */ | |
18517 | #ifdef __STDC__ | |
18518 | # include <limits.h> | |
18519 | #else | |
18520 | # include <assert.h> | |
18521 | #endif | |
ac1cb8d3 | 18522 | Syntax error |
a848cd7e SC |
18523 | _ACEOF |
18524 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18525 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18526 | ac_status=$? | |
18527 | grep -v '^ *+' conftest.er1 >conftest.err | |
18528 | rm -f conftest.er1 | |
18529 | cat conftest.err >&5 | |
18530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18531 | (exit $ac_status); } >/dev/null; then | |
18532 | if test -s conftest.err; then | |
18533 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18534 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18535 | else |
18536 | ac_cpp_err= | |
18537 | fi | |
18538 | else | |
18539 | ac_cpp_err=yes | |
18540 | fi | |
18541 | if test -z "$ac_cpp_err"; then | |
18542 | : | |
18543 | else | |
18544 | echo "$as_me: failed program was:" >&5 | |
18545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18546 | ||
18547 | # Broken: fails on valid input. | |
18548 | continue | |
18549 | fi | |
18550 | rm -f conftest.err conftest.$ac_ext | |
18551 | ||
18552 | # OK, works on sane cases. Now check whether non-existent headers | |
18553 | # can be detected and how. | |
18554 | cat >conftest.$ac_ext <<_ACEOF | |
18555 | /* confdefs.h. */ | |
18556 | _ACEOF | |
18557 | cat confdefs.h >>conftest.$ac_ext | |
18558 | cat >>conftest.$ac_ext <<_ACEOF | |
18559 | /* end confdefs.h. */ | |
18560 | #include <ac_nonexistent.h> | |
18561 | _ACEOF | |
18562 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18563 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18564 | ac_status=$? | |
18565 | grep -v '^ *+' conftest.er1 >conftest.err | |
18566 | rm -f conftest.er1 | |
18567 | cat conftest.err >&5 | |
18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18569 | (exit $ac_status); } >/dev/null; then | |
18570 | if test -s conftest.err; then | |
18571 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18572 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18573 | else |
18574 | ac_cpp_err= | |
18575 | fi | |
18576 | else | |
18577 | ac_cpp_err=yes | |
18578 | fi | |
18579 | if test -z "$ac_cpp_err"; then | |
18580 | # Broken: success on invalid input. | |
18581 | continue | |
18582 | else | |
18583 | echo "$as_me: failed program was:" >&5 | |
18584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18585 | ||
18586 | # Passes both tests. | |
18587 | ac_preproc_ok=: | |
18588 | break | |
18589 | fi | |
18590 | rm -f conftest.err conftest.$ac_ext | |
18591 | ||
18592 | done | |
18593 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18594 | rm -f conftest.err conftest.$ac_ext | |
18595 | if $ac_preproc_ok; then | |
18596 | break | |
18597 | fi | |
18598 | ||
18599 | done | |
18600 | ac_cv_prog_CXXCPP=$CXXCPP | |
18601 | ||
18602 | fi | |
18603 | CXXCPP=$ac_cv_prog_CXXCPP | |
18604 | else | |
18605 | ac_cv_prog_CXXCPP=$CXXCPP | |
18606 | fi | |
18607 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18608 | echo "${ECHO_T}$CXXCPP" >&6 | |
18609 | ac_preproc_ok=false | |
18610 | for ac_cxx_preproc_warn_flag in '' yes | |
18611 | do | |
18612 | # Use a header file that comes with gcc, so configuring glibc | |
18613 | # with a fresh cross-compiler works. | |
18614 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18615 | # <limits.h> exists even on freestanding compilers. | |
18616 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18617 | # not just through cpp. "Syntax error" is here to catch this case. | |
18618 | cat >conftest.$ac_ext <<_ACEOF | |
18619 | /* confdefs.h. */ | |
18620 | _ACEOF | |
18621 | cat confdefs.h >>conftest.$ac_ext | |
18622 | cat >>conftest.$ac_ext <<_ACEOF | |
18623 | /* end confdefs.h. */ | |
18624 | #ifdef __STDC__ | |
18625 | # include <limits.h> | |
18626 | #else | |
18627 | # include <assert.h> | |
18628 | #endif | |
ac1cb8d3 | 18629 | Syntax error |
a848cd7e SC |
18630 | _ACEOF |
18631 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18632 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18633 | ac_status=$? | |
18634 | grep -v '^ *+' conftest.er1 >conftest.err | |
18635 | rm -f conftest.er1 | |
18636 | cat conftest.err >&5 | |
18637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18638 | (exit $ac_status); } >/dev/null; then | |
18639 | if test -s conftest.err; then | |
18640 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18641 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18642 | else |
18643 | ac_cpp_err= | |
18644 | fi | |
18645 | else | |
18646 | ac_cpp_err=yes | |
18647 | fi | |
18648 | if test -z "$ac_cpp_err"; then | |
18649 | : | |
18650 | else | |
18651 | echo "$as_me: failed program was:" >&5 | |
18652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18653 | ||
18654 | # Broken: fails on valid input. | |
18655 | continue | |
18656 | fi | |
18657 | rm -f conftest.err conftest.$ac_ext | |
18658 | ||
18659 | # OK, works on sane cases. Now check whether non-existent headers | |
18660 | # can be detected and how. | |
18661 | cat >conftest.$ac_ext <<_ACEOF | |
18662 | /* confdefs.h. */ | |
18663 | _ACEOF | |
18664 | cat confdefs.h >>conftest.$ac_ext | |
18665 | cat >>conftest.$ac_ext <<_ACEOF | |
18666 | /* end confdefs.h. */ | |
18667 | #include <ac_nonexistent.h> | |
18668 | _ACEOF | |
18669 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18670 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18671 | ac_status=$? | |
18672 | grep -v '^ *+' conftest.er1 >conftest.err | |
18673 | rm -f conftest.er1 | |
18674 | cat conftest.err >&5 | |
18675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18676 | (exit $ac_status); } >/dev/null; then | |
18677 | if test -s conftest.err; then | |
18678 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18679 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18680 | else |
18681 | ac_cpp_err= | |
18682 | fi | |
18683 | else | |
18684 | ac_cpp_err=yes | |
18685 | fi | |
18686 | if test -z "$ac_cpp_err"; then | |
18687 | # Broken: success on invalid input. | |
18688 | continue | |
18689 | else | |
18690 | echo "$as_me: failed program was:" >&5 | |
18691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18692 | ||
18693 | # Passes both tests. | |
18694 | ac_preproc_ok=: | |
18695 | break | |
18696 | fi | |
18697 | rm -f conftest.err conftest.$ac_ext | |
18698 | ||
18699 | done | |
18700 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18701 | rm -f conftest.err conftest.$ac_ext | |
18702 | if $ac_preproc_ok; then | |
18703 | : | |
18704 | else | |
18705 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18706 | See \`config.log' for more details." >&5 | |
18707 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18708 | See \`config.log' for more details." >&2;} | |
18709 | { (exit 1); exit 1; }; } | |
18710 | fi | |
18711 | ||
18712 | ac_ext=cc | |
18713 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18714 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18715 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18716 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18717 | ||
18718 | ||
18719 | ||
9f45f08e VS |
18720 | if test "$cross_compiling" = "yes"; then |
18721 | cat >>confdefs.h <<\_ACEOF | |
18722 | #define wxUSE_IOSTREAMH 1 | |
18723 | _ACEOF | |
18724 | ||
18725 | else | |
a848cd7e SC |
18726 | |
18727 | ||
18728 | ac_ext=cc | |
18729 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18730 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18731 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18732 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18733 | ||
18734 | ||
18735 | ||
18736 | for ac_header in iostream | |
18737 | do | |
18738 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18740 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18741 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18742 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18744 | fi | |
18745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18746 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18747 | else | |
18748 | # Is the header compilable? | |
18749 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18750 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18751 | cat >conftest.$ac_ext <<_ACEOF | |
18752 | /* confdefs.h. */ | |
18753 | _ACEOF | |
18754 | cat confdefs.h >>conftest.$ac_ext | |
18755 | cat >>conftest.$ac_ext <<_ACEOF | |
18756 | /* end confdefs.h. */ | |
18757 | $ac_includes_default | |
18758 | #include <$ac_header> | |
18759 | _ACEOF | |
18760 | rm -f conftest.$ac_objext | |
18761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18762 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18763 | ac_status=$? |
ac1cb8d3 VS |
18764 | grep -v '^ *+' conftest.er1 >conftest.err |
18765 | rm -f conftest.er1 | |
18766 | cat conftest.err >&5 | |
a848cd7e SC |
18767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18768 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18769 | { ac_try='test -z "$ac_cxx_werror_flag" |
18770 | || test ! -s conftest.err' | |
18771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18772 | (eval $ac_try) 2>&5 | |
18773 | ac_status=$? | |
18774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18775 | (exit $ac_status); }; } && | |
18776 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18778 | (eval $ac_try) 2>&5 | |
18779 | ac_status=$? | |
18780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18781 | (exit $ac_status); }; }; then | |
18782 | ac_header_compiler=yes | |
18783 | else | |
18784 | echo "$as_me: failed program was:" >&5 | |
18785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18786 | ||
18787 | ac_header_compiler=no | |
18788 | fi | |
ac1cb8d3 | 18789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18790 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18791 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18792 | ||
18793 | # Is the header present? | |
18794 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18795 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18796 | cat >conftest.$ac_ext <<_ACEOF | |
18797 | /* confdefs.h. */ | |
18798 | _ACEOF | |
18799 | cat confdefs.h >>conftest.$ac_ext | |
18800 | cat >>conftest.$ac_ext <<_ACEOF | |
18801 | /* end confdefs.h. */ | |
18802 | #include <$ac_header> | |
18803 | _ACEOF | |
18804 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18806 | ac_status=$? | |
18807 | grep -v '^ *+' conftest.er1 >conftest.err | |
18808 | rm -f conftest.er1 | |
18809 | cat conftest.err >&5 | |
18810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18811 | (exit $ac_status); } >/dev/null; then | |
18812 | if test -s conftest.err; then | |
18813 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18814 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18815 | else |
18816 | ac_cpp_err= | |
18817 | fi | |
18818 | else | |
18819 | ac_cpp_err=yes | |
18820 | fi | |
18821 | if test -z "$ac_cpp_err"; then | |
18822 | ac_header_preproc=yes | |
18823 | else | |
18824 | echo "$as_me: failed program was:" >&5 | |
18825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18826 | ||
18827 | ac_header_preproc=no | |
18828 | fi | |
18829 | rm -f conftest.err conftest.$ac_ext | |
18830 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18831 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18832 | ||
18833 | # So? What about this header? | |
ac1cb8d3 VS |
18834 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18835 | yes:no: ) | |
a848cd7e SC |
18836 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18837 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
18838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18839 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18840 | ac_header_preproc=yes | |
a848cd7e | 18841 | ;; |
ac1cb8d3 | 18842 | no:yes:* ) |
a848cd7e SC |
18843 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18844 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
18845 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18846 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18847 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18848 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18849 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18850 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
18851 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18852 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
18853 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18854 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
18855 | ( |
18856 | cat <<\_ASBOX | |
ac1cb8d3 VS |
18857 | ## ----------------------------------------- ## |
18858 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
18859 | ## ----------------------------------------- ## | |
a848cd7e SC |
18860 | _ASBOX |
18861 | ) | | |
18862 | sed "s/^/$as_me: WARNING: /" >&2 | |
18863 | ;; | |
18864 | esac | |
18865 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18866 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18867 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18869 | else | |
ac1cb8d3 | 18870 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
18871 | fi |
18872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18874 | ||
18875 | fi | |
18876 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18877 | cat >>confdefs.h <<_ACEOF | |
18878 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18879 | _ACEOF | |
18880 | ||
18881 | fi | |
18882 | ||
18883 | done | |
18884 | ||
18885 | ||
18886 | if test "$ac_cv_header_iostream" = "yes" ; then | |
18887 | : | |
18888 | else | |
18889 | cat >>confdefs.h <<\_ACEOF | |
18890 | #define wxUSE_IOSTREAMH 1 | |
18891 | _ACEOF | |
18892 | ||
18893 | fi | |
18894 | ||
18895 | ac_ext=c | |
18896 | ac_cpp='$CPP $CPPFLAGS' | |
18897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18900 | ||
9f45f08e | 18901 | fi |
a848cd7e SC |
18902 | |
18903 | ||
18904 | ||
18905 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
18906 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18907 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18909 | else | |
18910 | ||
18911 | ||
18912 | ||
18913 | ac_ext=cc | |
18914 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18915 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18916 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18917 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18918 | ||
18919 | ||
18920 | cat >conftest.$ac_ext <<_ACEOF | |
18921 | /* confdefs.h. */ | |
18922 | _ACEOF | |
18923 | cat confdefs.h >>conftest.$ac_ext | |
18924 | cat >>conftest.$ac_ext <<_ACEOF | |
18925 | /* end confdefs.h. */ | |
18926 | ||
18927 | ||
18928 | int | |
18929 | main () | |
18930 | { | |
18931 | ||
18932 | bool b = true; | |
18933 | ||
18934 | return 0; | |
18935 | ||
18936 | ; | |
18937 | return 0; | |
18938 | } | |
18939 | _ACEOF | |
18940 | rm -f conftest.$ac_objext | |
18941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18942 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18943 | ac_status=$? |
ac1cb8d3 VS |
18944 | grep -v '^ *+' conftest.er1 >conftest.err |
18945 | rm -f conftest.er1 | |
18946 | cat conftest.err >&5 | |
a848cd7e SC |
18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18948 | (exit $ac_status); } && | |
ac1cb8d3 VS |
18949 | { ac_try='test -z "$ac_cxx_werror_flag" |
18950 | || test ! -s conftest.err' | |
18951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18952 | (eval $ac_try) 2>&5 | |
18953 | ac_status=$? | |
18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18955 | (exit $ac_status); }; } && | |
18956 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18958 | (eval $ac_try) 2>&5 | |
18959 | ac_status=$? | |
18960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18961 | (exit $ac_status); }; }; then | |
18962 | ||
18963 | wx_cv_cpp_bool=yes | |
18964 | ||
18965 | else | |
18966 | echo "$as_me: failed program was:" >&5 | |
18967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18968 | ||
18969 | ||
18970 | wx_cv_cpp_bool=no | |
18971 | ||
18972 | ||
18973 | fi | |
ac1cb8d3 | 18974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18975 | |
18976 | ac_ext=c | |
18977 | ac_cpp='$CPP $CPPFLAGS' | |
18978 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18981 | ||
18982 | ||
18983 | fi | |
18984 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18985 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
18986 | ||
18987 | if test "$wx_cv_cpp_bool" = "yes"; then | |
18988 | cat >>confdefs.h <<\_ACEOF | |
18989 | #define HAVE_BOOL 1 | |
18990 | _ACEOF | |
18991 | ||
18992 | fi | |
18993 | ||
18994 | ||
18995 | ||
18996 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
18997 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18998 | if test "${wx_cv_explicit+set}" = set; then | |
18999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19000 | else | |
19001 | ||
19002 | ||
19003 | ||
19004 | ac_ext=cc | |
19005 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19006 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19007 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19008 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19009 | ||
19010 | ||
19011 | cat >conftest.$ac_ext <<_ACEOF | |
19012 | /* confdefs.h. */ | |
19013 | _ACEOF | |
19014 | cat confdefs.h >>conftest.$ac_ext | |
19015 | cat >>conftest.$ac_ext <<_ACEOF | |
19016 | /* end confdefs.h. */ | |
19017 | ||
19018 | class Foo { public: explicit Foo(int) {} }; | |
19019 | ||
19020 | int | |
19021 | main () | |
19022 | { | |
19023 | ||
19024 | return 0; | |
19025 | ||
19026 | ; | |
19027 | return 0; | |
19028 | } | |
19029 | _ACEOF | |
19030 | rm -f conftest.$ac_objext | |
19031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19032 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19033 | ac_status=$? |
ac1cb8d3 VS |
19034 | grep -v '^ *+' conftest.er1 >conftest.err |
19035 | rm -f conftest.er1 | |
19036 | cat conftest.err >&5 | |
a848cd7e SC |
19037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19038 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19039 | { ac_try='test -z "$ac_cxx_werror_flag" |
19040 | || test ! -s conftest.err' | |
19041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19042 | (eval $ac_try) 2>&5 | |
19043 | ac_status=$? | |
19044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19045 | (exit $ac_status); }; } && | |
19046 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19048 | (eval $ac_try) 2>&5 | |
19049 | ac_status=$? | |
19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19051 | (exit $ac_status); }; }; then | |
19052 | ||
19053 | cat >conftest.$ac_ext <<_ACEOF | |
19054 | /* confdefs.h. */ | |
19055 | _ACEOF | |
19056 | cat confdefs.h >>conftest.$ac_ext | |
19057 | cat >>conftest.$ac_ext <<_ACEOF | |
19058 | /* end confdefs.h. */ | |
19059 | ||
19060 | class Foo { public: explicit Foo(int) {} }; | |
19061 | static void TakeFoo(const Foo& foo) { } | |
19062 | ||
19063 | int | |
19064 | main () | |
19065 | { | |
19066 | ||
19067 | TakeFoo(17); | |
19068 | return 0; | |
19069 | ||
19070 | ; | |
19071 | return 0; | |
19072 | } | |
19073 | _ACEOF | |
19074 | rm -f conftest.$ac_objext | |
19075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19076 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19077 | ac_status=$? |
ac1cb8d3 VS |
19078 | grep -v '^ *+' conftest.er1 >conftest.err |
19079 | rm -f conftest.er1 | |
19080 | cat conftest.err >&5 | |
a848cd7e SC |
19081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19082 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19083 | { ac_try='test -z "$ac_cxx_werror_flag" |
19084 | || test ! -s conftest.err' | |
19085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19086 | (eval $ac_try) 2>&5 | |
19087 | ac_status=$? | |
19088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19089 | (exit $ac_status); }; } && | |
19090 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19092 | (eval $ac_try) 2>&5 | |
19093 | ac_status=$? | |
19094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19095 | (exit $ac_status); }; }; then | |
19096 | wx_cv_explicit=no | |
19097 | else | |
19098 | echo "$as_me: failed program was:" >&5 | |
19099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19100 | ||
19101 | wx_cv_explicit=yes | |
19102 | ||
19103 | fi | |
ac1cb8d3 | 19104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19105 | |
19106 | else | |
19107 | echo "$as_me: failed program was:" >&5 | |
19108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19109 | ||
19110 | wx_cv_explicit=no | |
19111 | ||
19112 | fi | |
ac1cb8d3 | 19113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19114 | |
19115 | ac_ext=c | |
19116 | ac_cpp='$CPP $CPPFLAGS' | |
19117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19120 | ||
19121 | ||
19122 | fi | |
19123 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19124 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19125 | ||
19126 | if test "$wx_cv_explicit" = "yes"; then | |
19127 | cat >>confdefs.h <<\_ACEOF | |
19128 | #define HAVE_EXPLICIT 1 | |
19129 | _ACEOF | |
19130 | ||
19131 | fi | |
19132 | ||
19133 | ||
19134 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19135 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19136 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19138 | else | |
19139 | ||
19140 | ||
19141 | ac_ext=cc | |
19142 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19143 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19144 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19145 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19146 | ||
19147 | cat >conftest.$ac_ext <<_ACEOF | |
19148 | /* confdefs.h. */ | |
19149 | _ACEOF | |
19150 | cat confdefs.h >>conftest.$ac_ext | |
19151 | cat >>conftest.$ac_ext <<_ACEOF | |
19152 | /* end confdefs.h. */ | |
19153 | ||
19154 | int | |
19155 | main () | |
19156 | { | |
19157 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19158 | ; | |
19159 | return 0; | |
19160 | } | |
19161 | _ACEOF | |
19162 | rm -f conftest.$ac_objext | |
19163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19164 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19165 | ac_status=$? |
ac1cb8d3 VS |
19166 | grep -v '^ *+' conftest.er1 >conftest.err |
19167 | rm -f conftest.er1 | |
19168 | cat conftest.err >&5 | |
a848cd7e SC |
19169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19170 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19171 | { ac_try='test -z "$ac_cxx_werror_flag" |
19172 | || test ! -s conftest.err' | |
19173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19174 | (eval $ac_try) 2>&5 | |
19175 | ac_status=$? | |
19176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19177 | (exit $ac_status); }; } && | |
19178 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19180 | (eval $ac_try) 2>&5 | |
19181 | ac_status=$? | |
19182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19183 | (exit $ac_status); }; }; then | |
19184 | ac_cv_cxx_const_cast=yes | |
19185 | else | |
19186 | echo "$as_me: failed program was:" >&5 | |
19187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19188 | ||
19189 | ac_cv_cxx_const_cast=no | |
19190 | fi | |
ac1cb8d3 | 19191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19192 | ac_ext=c |
19193 | ac_cpp='$CPP $CPPFLAGS' | |
19194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19197 | ||
19198 | ||
19199 | fi | |
19200 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19201 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19202 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19203 | ||
19204 | cat >>confdefs.h <<\_ACEOF | |
19205 | #define HAVE_CONST_CAST | |
19206 | _ACEOF | |
19207 | ||
19208 | fi | |
19209 | ||
19210 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 | |
19211 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19212 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19214 | else | |
19215 | ||
19216 | ||
19217 | ac_ext=cc | |
19218 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19219 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19220 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19221 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19222 | ||
19223 | cat >conftest.$ac_ext <<_ACEOF | |
19224 | /* confdefs.h. */ | |
19225 | _ACEOF | |
19226 | cat confdefs.h >>conftest.$ac_ext | |
19227 | cat >>conftest.$ac_ext <<_ACEOF | |
19228 | /* end confdefs.h. */ | |
19229 | #include <typeinfo> | |
19230 | class Base { public : Base () {} virtual void f () = 0; }; | |
19231 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19232 | int g (Derived&) { return 0; } | |
19233 | int | |
19234 | main () | |
19235 | { | |
19236 | ||
19237 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19238 | ; | |
19239 | return 0; | |
19240 | } | |
19241 | _ACEOF | |
19242 | rm -f conftest.$ac_objext | |
19243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19244 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19245 | ac_status=$? |
ac1cb8d3 VS |
19246 | grep -v '^ *+' conftest.er1 >conftest.err |
19247 | rm -f conftest.er1 | |
19248 | cat conftest.err >&5 | |
a848cd7e SC |
19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19250 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19251 | { ac_try='test -z "$ac_cxx_werror_flag" |
19252 | || test ! -s conftest.err' | |
19253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19254 | (eval $ac_try) 2>&5 | |
19255 | ac_status=$? | |
19256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19257 | (exit $ac_status); }; } && | |
19258 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19260 | (eval $ac_try) 2>&5 | |
19261 | ac_status=$? | |
19262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19263 | (exit $ac_status); }; }; then | |
19264 | ac_cv_cxx_static_cast=yes | |
19265 | else | |
19266 | echo "$as_me: failed program was:" >&5 | |
19267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19268 | ||
19269 | ac_cv_cxx_static_cast=no | |
19270 | fi | |
ac1cb8d3 | 19271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19272 | ac_ext=c |
19273 | ac_cpp='$CPP $CPPFLAGS' | |
19274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19277 | ||
19278 | ||
19279 | fi | |
19280 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19281 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19282 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19283 | ||
19284 | cat >>confdefs.h <<\_ACEOF | |
19285 | #define HAVE_STATIC_CAST | |
19286 | _ACEOF | |
19287 | ||
19288 | fi | |
19289 | ||
19290 | ||
19291 | if test "$wxUSE_STL" = "yes"; then | |
19292 | ac_ext=cc | |
19293 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19294 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19295 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19296 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19297 | ||
19298 | ||
19299 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19300 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19301 | cat >conftest.$ac_ext <<_ACEOF | |
19302 | /* confdefs.h. */ | |
19303 | _ACEOF | |
19304 | cat confdefs.h >>conftest.$ac_ext | |
19305 | cat >>conftest.$ac_ext <<_ACEOF | |
19306 | /* end confdefs.h. */ | |
19307 | #include <string> | |
19308 | #include <functional> | |
19309 | #include <algorithm> | |
19310 | #include <vector> | |
19311 | #include <list> | |
19312 | int | |
19313 | main () | |
19314 | { | |
19315 | std::vector<int> moo; | |
19316 | std::list<int> foo; | |
19317 | std::vector<int>::iterator it = | |
19318 | std::find_if(moo.begin(), moo.end(), | |
19319 | std::bind2nd(std::less<int>(), 3)); | |
19320 | ; | |
19321 | return 0; | |
19322 | } | |
19323 | _ACEOF | |
19324 | rm -f conftest.$ac_objext | |
19325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19326 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19327 | ac_status=$? |
ac1cb8d3 VS |
19328 | grep -v '^ *+' conftest.er1 >conftest.err |
19329 | rm -f conftest.er1 | |
19330 | cat conftest.err >&5 | |
a848cd7e SC |
19331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19332 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19333 | { ac_try='test -z "$ac_cxx_werror_flag" |
19334 | || test ! -s conftest.err' | |
19335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19336 | (eval $ac_try) 2>&5 | |
19337 | ac_status=$? | |
19338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19339 | (exit $ac_status); }; } && | |
19340 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19342 | (eval $ac_try) 2>&5 | |
19343 | ac_status=$? | |
19344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19345 | (exit $ac_status); }; }; then | |
19346 | echo "$as_me:$LINENO: result: yes" >&5 | |
19347 | echo "${ECHO_T}yes" >&6 | |
19348 | else | |
19349 | echo "$as_me: failed program was:" >&5 | |
19350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19351 | ||
19352 | echo "$as_me:$LINENO: result: no" >&5 | |
19353 | echo "${ECHO_T}no" >&6 | |
19354 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19355 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19356 | { (exit 1); exit 1; }; } | |
19357 | fi | |
ac1cb8d3 | 19358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19359 | |
19360 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19361 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19362 | cat >conftest.$ac_ext <<_ACEOF | |
19363 | /* confdefs.h. */ | |
19364 | _ACEOF | |
19365 | cat confdefs.h >>conftest.$ac_ext | |
19366 | cat >>conftest.$ac_ext <<_ACEOF | |
19367 | /* end confdefs.h. */ | |
19368 | #include <string> | |
19369 | int | |
19370 | main () | |
19371 | { | |
19372 | std::wstring foo; | |
19373 | ; | |
19374 | return 0; | |
19375 | } | |
19376 | _ACEOF | |
19377 | rm -f conftest.$ac_objext | |
19378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19380 | ac_status=$? |
ac1cb8d3 VS |
19381 | grep -v '^ *+' conftest.er1 >conftest.err |
19382 | rm -f conftest.er1 | |
19383 | cat conftest.err >&5 | |
a848cd7e SC |
19384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19385 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19386 | { ac_try='test -z "$ac_cxx_werror_flag" |
19387 | || test ! -s conftest.err' | |
19388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19389 | (eval $ac_try) 2>&5 | |
19390 | ac_status=$? | |
19391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19392 | (exit $ac_status); }; } && | |
19393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19395 | (eval $ac_try) 2>&5 | |
19396 | ac_status=$? | |
19397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19398 | (exit $ac_status); }; }; then | |
19399 | echo "$as_me:$LINENO: result: yes" >&5 | |
19400 | echo "${ECHO_T}yes" >&6 | |
19401 | cat >>confdefs.h <<\_ACEOF | |
19402 | #define HAVE_STD_WSTRING 1 | |
19403 | _ACEOF | |
19404 | ||
19405 | else | |
19406 | echo "$as_me: failed program was:" >&5 | |
19407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19408 | ||
19409 | echo "$as_me:$LINENO: result: no" >&5 | |
19410 | echo "${ECHO_T}no" >&6 | |
19411 | fi | |
ac1cb8d3 | 19412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19413 | |
19414 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19415 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19416 | cat >conftest.$ac_ext <<_ACEOF | |
19417 | /* confdefs.h. */ | |
19418 | _ACEOF | |
19419 | cat confdefs.h >>conftest.$ac_ext | |
19420 | cat >>conftest.$ac_ext <<_ACEOF | |
19421 | /* end confdefs.h. */ | |
19422 | #include <string> | |
19423 | int | |
19424 | main () | |
19425 | { | |
19426 | std::string foo, bar; | |
19427 | foo.compare(bar); | |
19428 | foo.compare(1, 1, bar); | |
19429 | foo.compare(1, 1, bar, 1, 1); | |
19430 | foo.compare(""); | |
19431 | foo.compare(1, 1, ""); | |
19432 | foo.compare(1, 1, "", 2); | |
19433 | ; | |
19434 | return 0; | |
19435 | } | |
19436 | _ACEOF | |
19437 | rm -f conftest.$ac_objext | |
19438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19439 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19440 | ac_status=$? |
ac1cb8d3 VS |
19441 | grep -v '^ *+' conftest.er1 >conftest.err |
19442 | rm -f conftest.er1 | |
19443 | cat conftest.err >&5 | |
a848cd7e SC |
19444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19445 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19446 | { ac_try='test -z "$ac_cxx_werror_flag" |
19447 | || test ! -s conftest.err' | |
19448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19449 | (eval $ac_try) 2>&5 | |
19450 | ac_status=$? | |
19451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19452 | (exit $ac_status); }; } && | |
19453 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19455 | (eval $ac_try) 2>&5 | |
19456 | ac_status=$? | |
19457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19458 | (exit $ac_status); }; }; then | |
19459 | echo "$as_me:$LINENO: result: yes" >&5 | |
19460 | echo "${ECHO_T}yes" >&6 | |
19461 | cat >>confdefs.h <<\_ACEOF | |
19462 | #define HAVE_STD_STRING_COMPARE 1 | |
19463 | _ACEOF | |
19464 | ||
19465 | else | |
19466 | echo "$as_me: failed program was:" >&5 | |
19467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19468 | ||
19469 | echo "$as_me:$LINENO: result: no" >&5 | |
19470 | echo "${ECHO_T}no" >&6 | |
19471 | fi | |
ac1cb8d3 | 19472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19473 | |
19474 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19475 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19476 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19477 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19479 | fi | |
19480 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19481 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19482 | else | |
19483 | # Is the header compilable? | |
19484 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19485 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19486 | cat >conftest.$ac_ext <<_ACEOF | |
19487 | /* confdefs.h. */ | |
19488 | _ACEOF | |
19489 | cat confdefs.h >>conftest.$ac_ext | |
19490 | cat >>conftest.$ac_ext <<_ACEOF | |
19491 | /* end confdefs.h. */ | |
19492 | $ac_includes_default | |
19493 | #include <hash_map> | |
19494 | _ACEOF | |
19495 | rm -f conftest.$ac_objext | |
19496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19497 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19498 | ac_status=$? |
ac1cb8d3 VS |
19499 | grep -v '^ *+' conftest.er1 >conftest.err |
19500 | rm -f conftest.er1 | |
19501 | cat conftest.err >&5 | |
bdcade0a MB |
19502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19503 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19504 | { ac_try='test -z "$ac_cxx_werror_flag" |
19505 | || test ! -s conftest.err' | |
19506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19507 | (eval $ac_try) 2>&5 | |
19508 | ac_status=$? | |
19509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19510 | (exit $ac_status); }; } && | |
19511 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19513 | (eval $ac_try) 2>&5 | |
19514 | ac_status=$? | |
19515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19516 | (exit $ac_status); }; }; then | |
19517 | ac_header_compiler=yes | |
19518 | else | |
19519 | echo "$as_me: failed program was:" >&5 | |
19520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19521 | ||
19522 | ac_header_compiler=no | |
19523 | fi | |
ac1cb8d3 | 19524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19525 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19526 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19527 | ||
19528 | # Is the header present? | |
19529 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19530 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19531 | cat >conftest.$ac_ext <<_ACEOF | |
19532 | /* confdefs.h. */ | |
19533 | _ACEOF | |
19534 | cat confdefs.h >>conftest.$ac_ext | |
19535 | cat >>conftest.$ac_ext <<_ACEOF | |
19536 | /* end confdefs.h. */ | |
19537 | #include <hash_map> | |
19538 | _ACEOF | |
19539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19541 | ac_status=$? | |
19542 | grep -v '^ *+' conftest.er1 >conftest.err | |
19543 | rm -f conftest.er1 | |
19544 | cat conftest.err >&5 | |
19545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19546 | (exit $ac_status); } >/dev/null; then | |
19547 | if test -s conftest.err; then | |
19548 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19549 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19550 | else |
19551 | ac_cpp_err= | |
19552 | fi | |
19553 | else | |
19554 | ac_cpp_err=yes | |
19555 | fi | |
19556 | if test -z "$ac_cpp_err"; then | |
19557 | ac_header_preproc=yes | |
19558 | else | |
19559 | echo "$as_me: failed program was:" >&5 | |
19560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19561 | ||
19562 | ac_header_preproc=no | |
19563 | fi | |
19564 | rm -f conftest.err conftest.$ac_ext | |
19565 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19566 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19567 | ||
19568 | # So? What about this header? | |
ac1cb8d3 VS |
19569 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19570 | yes:no: ) | |
bdcade0a MB |
19571 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19572 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19573 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19574 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19575 | ac_header_preproc=yes | |
bdcade0a | 19576 | ;; |
ac1cb8d3 | 19577 | no:yes:* ) |
bdcade0a MB |
19578 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19579 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19580 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19581 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19582 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19583 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19584 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19585 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19586 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19587 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19588 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19589 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19590 | ( |
19591 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19592 | ## ----------------------------------------- ## |
19593 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19594 | ## ----------------------------------------- ## | |
bdcade0a MB |
19595 | _ASBOX |
19596 | ) | | |
19597 | sed "s/^/$as_me: WARNING: /" >&2 | |
19598 | ;; | |
19599 | esac | |
19600 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19601 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19602 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19604 | else | |
19605 | ac_cv_header_hash_map=$ac_header_preproc | |
19606 | fi | |
19607 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19608 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19609 | ||
19610 | fi | |
19611 | if test $ac_cv_header_hash_map = yes; then | |
19612 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19613 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19614 | cat >conftest.$ac_ext <<_ACEOF | |
19615 | /* confdefs.h. */ | |
19616 | _ACEOF | |
19617 | cat confdefs.h >>conftest.$ac_ext | |
19618 | cat >>conftest.$ac_ext <<_ACEOF | |
19619 | /* end confdefs.h. */ | |
19620 | #include <hash_map> | |
19621 | #include <hash_set> | |
19622 | int | |
19623 | main () | |
19624 | { | |
19625 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19626 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19627 | ; | |
19628 | return 0; | |
19629 | } | |
19630 | _ACEOF | |
19631 | rm -f conftest.$ac_objext | |
19632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19633 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19634 | ac_status=$? |
ac1cb8d3 VS |
19635 | grep -v '^ *+' conftest.er1 >conftest.err |
19636 | rm -f conftest.er1 | |
19637 | cat conftest.err >&5 | |
bdcade0a MB |
19638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19639 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19640 | { ac_try='test -z "$ac_cxx_werror_flag" |
19641 | || test ! -s conftest.err' | |
19642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19643 | (eval $ac_try) 2>&5 | |
19644 | ac_status=$? | |
19645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19646 | (exit $ac_status); }; } && | |
19647 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19649 | (eval $ac_try) 2>&5 | |
19650 | ac_status=$? | |
19651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19652 | (exit $ac_status); }; }; then | |
19653 | echo "$as_me:$LINENO: result: yes" >&5 | |
19654 | echo "${ECHO_T}yes" >&6 | |
19655 | cat >>confdefs.h <<\_ACEOF | |
19656 | #define HAVE_HASH_MAP 1 | |
19657 | _ACEOF | |
19658 | ||
19659 | cat >>confdefs.h <<\_ACEOF | |
19660 | #define HAVE_STD_HASH_MAP 1 | |
19661 | _ACEOF | |
19662 | ||
19663 | else | |
19664 | echo "$as_me: failed program was:" >&5 | |
19665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19666 | ||
19667 | echo "$as_me:$LINENO: result: no" >&5 | |
19668 | echo "${ECHO_T}no" >&6 | |
19669 | fi | |
ac1cb8d3 | 19670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19671 | |
19672 | fi | |
19673 | ||
19674 | ||
19675 | ||
19676 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19677 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19678 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19679 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19681 | fi | |
19682 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19683 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19684 | else | |
19685 | # Is the header compilable? | |
19686 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19687 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19688 | cat >conftest.$ac_ext <<_ACEOF | |
19689 | /* confdefs.h. */ | |
19690 | _ACEOF | |
19691 | cat confdefs.h >>conftest.$ac_ext | |
19692 | cat >>conftest.$ac_ext <<_ACEOF | |
19693 | /* end confdefs.h. */ | |
19694 | $ac_includes_default | |
19695 | #include <ext/hash_map> | |
19696 | _ACEOF | |
19697 | rm -f conftest.$ac_objext | |
19698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19699 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19700 | ac_status=$? |
ac1cb8d3 VS |
19701 | grep -v '^ *+' conftest.er1 >conftest.err |
19702 | rm -f conftest.er1 | |
19703 | cat conftest.err >&5 | |
bdcade0a MB |
19704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19705 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19706 | { ac_try='test -z "$ac_cxx_werror_flag" |
19707 | || test ! -s conftest.err' | |
19708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19709 | (eval $ac_try) 2>&5 | |
19710 | ac_status=$? | |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 | (exit $ac_status); }; } && | |
19713 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19715 | (eval $ac_try) 2>&5 | |
19716 | ac_status=$? | |
19717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19718 | (exit $ac_status); }; }; then | |
19719 | ac_header_compiler=yes | |
19720 | else | |
19721 | echo "$as_me: failed program was:" >&5 | |
19722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19723 | ||
19724 | ac_header_compiler=no | |
19725 | fi | |
ac1cb8d3 | 19726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19727 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19728 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19729 | ||
19730 | # Is the header present? | |
19731 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
19732 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
19733 | cat >conftest.$ac_ext <<_ACEOF | |
19734 | /* confdefs.h. */ | |
19735 | _ACEOF | |
19736 | cat confdefs.h >>conftest.$ac_ext | |
19737 | cat >>conftest.$ac_ext <<_ACEOF | |
19738 | /* end confdefs.h. */ | |
19739 | #include <ext/hash_map> | |
19740 | _ACEOF | |
19741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19743 | ac_status=$? | |
19744 | grep -v '^ *+' conftest.er1 >conftest.err | |
19745 | rm -f conftest.er1 | |
19746 | cat conftest.err >&5 | |
19747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19748 | (exit $ac_status); } >/dev/null; then | |
19749 | if test -s conftest.err; then | |
19750 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19751 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19752 | else |
19753 | ac_cpp_err= | |
19754 | fi | |
19755 | else | |
19756 | ac_cpp_err=yes | |
19757 | fi | |
19758 | if test -z "$ac_cpp_err"; then | |
19759 | ac_header_preproc=yes | |
19760 | else | |
19761 | echo "$as_me: failed program was:" >&5 | |
19762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19763 | ||
19764 | ac_header_preproc=no | |
19765 | fi | |
19766 | rm -f conftest.err conftest.$ac_ext | |
19767 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19768 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19769 | ||
19770 | # So? What about this header? | |
ac1cb8d3 VS |
19771 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19772 | yes:no: ) | |
bdcade0a MB |
19773 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19774 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19775 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
19776 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
19777 | ac_header_preproc=yes | |
bdcade0a | 19778 | ;; |
ac1cb8d3 | 19779 | no:yes:* ) |
bdcade0a MB |
19780 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
19781 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19782 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
19783 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
19784 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
19785 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
19786 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19787 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19788 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
19789 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19790 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
19791 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19792 | ( |
19793 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19794 | ## ----------------------------------------- ## |
19795 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19796 | ## ----------------------------------------- ## | |
bdcade0a MB |
19797 | _ASBOX |
19798 | ) | | |
19799 | sed "s/^/$as_me: WARNING: /" >&2 | |
19800 | ;; | |
19801 | esac | |
19802 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19803 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19804 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19806 | else | |
19807 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
19808 | fi | |
19809 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19810 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19811 | ||
19812 | fi | |
19813 | if test $ac_cv_header_ext_hash_map = yes; then | |
19814 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19815 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19816 | cat >conftest.$ac_ext <<_ACEOF | |
19817 | /* confdefs.h. */ | |
19818 | _ACEOF | |
19819 | cat confdefs.h >>conftest.$ac_ext | |
19820 | cat >>conftest.$ac_ext <<_ACEOF | |
19821 | /* end confdefs.h. */ | |
19822 | #include <ext/hash_map> | |
19823 | #include <ext/hash_set> | |
19824 | int | |
19825 | main () | |
19826 | { | |
19827 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
19828 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
19829 | ; | |
19830 | return 0; | |
19831 | } | |
19832 | _ACEOF | |
19833 | rm -f conftest.$ac_objext | |
19834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19835 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19836 | ac_status=$? |
ac1cb8d3 VS |
19837 | grep -v '^ *+' conftest.er1 >conftest.err |
19838 | rm -f conftest.er1 | |
19839 | cat conftest.err >&5 | |
bdcade0a MB |
19840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19841 | (exit $ac_status); } && | |
ac1cb8d3 VS |
19842 | { ac_try='test -z "$ac_cxx_werror_flag" |
19843 | || test ! -s conftest.err' | |
19844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19845 | (eval $ac_try) 2>&5 | |
19846 | ac_status=$? | |
19847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19848 | (exit $ac_status); }; } && | |
19849 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19851 | (eval $ac_try) 2>&5 | |
19852 | ac_status=$? | |
19853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19854 | (exit $ac_status); }; }; then | |
19855 | echo "$as_me:$LINENO: result: yes" >&5 | |
19856 | echo "${ECHO_T}yes" >&6 | |
19857 | cat >>confdefs.h <<\_ACEOF | |
19858 | #define HAVE_EXT_HASH_MAP 1 | |
19859 | _ACEOF | |
19860 | ||
19861 | cat >>confdefs.h <<\_ACEOF | |
19862 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
19863 | _ACEOF | |
19864 | ||
19865 | else | |
19866 | echo "$as_me: failed program was:" >&5 | |
19867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19868 | ||
19869 | echo "$as_me:$LINENO: result: no" >&5 | |
19870 | echo "${ECHO_T}no" >&6 | |
19871 | fi | |
ac1cb8d3 | 19872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19873 | |
19874 | fi | |
19875 | ||
19876 | ||
a848cd7e SC |
19877 | |
19878 | ac_ext=c | |
19879 | ac_cpp='$CPP $CPPFLAGS' | |
19880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19883 | ||
19884 | fi | |
19885 | ||
19886 | ||
19887 | SEARCH_INCLUDE="\ | |
19888 | /usr/local/include \ | |
19889 | \ | |
19890 | /usr/Motif-2.1/include \ | |
19891 | /usr/Motif-1.2/include \ | |
19892 | /usr/include/Motif1.2 \ | |
19893 | /opt/xpm/include/X11 \ | |
19894 | /opt/GBxpm/include/ \ | |
19895 | /opt/GBxpm/X11/include/ \ | |
19896 | \ | |
19897 | /usr/dt/include \ | |
19898 | /usr/openwin/include \ | |
19899 | \ | |
19900 | /usr/include/Xm \ | |
19901 | \ | |
19902 | /usr/X11R6/include \ | |
19903 | /usr/X11R6.4/include \ | |
19904 | /usr/X11R5/include \ | |
19905 | /usr/X11R4/include \ | |
19906 | \ | |
19907 | /usr/include/X11R6 \ | |
19908 | /usr/include/X11R5 \ | |
19909 | /usr/include/X11R4 \ | |
19910 | \ | |
19911 | /usr/local/X11R6/include \ | |
19912 | /usr/local/X11R5/include \ | |
19913 | /usr/local/X11R4/include \ | |
19914 | \ | |
19915 | /usr/local/include/X11R6 \ | |
19916 | /usr/local/include/X11R5 \ | |
19917 | /usr/local/include/X11R4 \ | |
19918 | \ | |
19919 | /usr/X11/include \ | |
19920 | /usr/include/X11 \ | |
19921 | /usr/local/X11/include \ | |
19922 | /usr/local/include/X11 \ | |
19923 | \ | |
19924 | /usr/X386/include \ | |
19925 | /usr/x386/include \ | |
19926 | /usr/XFree86/include/X11 \ | |
19927 | \ | |
19928 | X:/XFree86/include \ | |
19929 | X:/XFree86/include/X11 \ | |
19930 | \ | |
19931 | /usr/include/gtk \ | |
19932 | /usr/local/include/gtk \ | |
19933 | /usr/include/glib \ | |
19934 | /usr/local/include/glib \ | |
19935 | \ | |
19936 | /usr/include/qt \ | |
19937 | /usr/local/include/qt \ | |
19938 | \ | |
19939 | /usr/local/arm/3.3.2/include \ | |
19940 | \ | |
19941 | /usr/include/windows \ | |
19942 | /usr/include/wine \ | |
19943 | /usr/local/include/wine \ | |
19944 | \ | |
19945 | /usr/unsupported/include \ | |
19946 | /usr/athena/include \ | |
19947 | /usr/local/x11r5/include \ | |
19948 | /usr/lpp/Xamples/include \ | |
19949 | \ | |
19950 | /usr/openwin/share/include" | |
19951 | ||
19952 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
19953 | ||
19954 | ||
19955 | cat >confcache <<\_ACEOF | |
19956 | # This file is a shell script that caches the results of configure | |
19957 | # tests run on this system so they can be shared between configure | |
19958 | # scripts and configure runs, see configure's option --config-cache. | |
19959 | # It is not useful on other systems. If it contains results you don't | |
19960 | # want to keep, you may remove or edit it. | |
19961 | # | |
19962 | # config.status only pays attention to the cache file if you give it | |
19963 | # the --recheck option to rerun configure. | |
19964 | # | |
19965 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19966 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19967 | # following values. | |
19968 | ||
19969 | _ACEOF | |
19970 | ||
19971 | # The following way of writing the cache mishandles newlines in values, | |
19972 | # but we know of no workaround that is simple, portable, and efficient. | |
19973 | # So, don't put newlines in cache variables' values. | |
19974 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19975 | # and sets the high bit in the cache file unless we assign to the vars. | |
19976 | { | |
19977 | (set) 2>&1 | | |
19978 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19979 | *ac_space=\ *) | |
19980 | # `set' does not quote correctly, so add quotes (double-quote | |
19981 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19982 | sed -n \ | |
ac1cb8d3 VS |
19983 | "s/'/'\\\\''/g; |
19984 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
19985 | ;; |
19986 | *) | |
19987 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19988 | sed -n \ | |
ac1cb8d3 | 19989 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
19990 | ;; |
19991 | esac; | |
19992 | } | | |
19993 | sed ' | |
19994 | t clear | |
19995 | : clear | |
19996 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19997 | t end | |
19998 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19999 | : end' >>confcache | |
20000 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20001 | if test -w $cache_file; then | |
20002 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20003 | cat confcache >$cache_file | |
20004 | else | |
20005 | echo "not updating unwritable cache $cache_file" | |
20006 | fi | |
20007 | fi | |
20008 | rm -f confcache | |
20009 | ||
20010 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20011 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20012 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20013 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20015 | else | |
20016 | ||
20017 | cat >conftest.$ac_ext <<_ACEOF | |
20018 | /* confdefs.h. */ | |
20019 | _ACEOF | |
20020 | cat confdefs.h >>conftest.$ac_ext | |
20021 | cat >>conftest.$ac_ext <<_ACEOF | |
20022 | /* end confdefs.h. */ | |
20023 | #include <features.h> | |
20024 | int | |
20025 | main () | |
20026 | { | |
20027 | ||
20028 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20029 | #error not glibc2.1 | |
20030 | #endif | |
20031 | ||
20032 | ; | |
20033 | return 0; | |
20034 | } | |
20035 | _ACEOF | |
20036 | rm -f conftest.$ac_objext | |
20037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20038 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20039 | ac_status=$? |
ac1cb8d3 VS |
20040 | grep -v '^ *+' conftest.er1 >conftest.err |
20041 | rm -f conftest.er1 | |
20042 | cat conftest.err >&5 | |
a848cd7e SC |
20043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20044 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20045 | { ac_try='test -z "$ac_c_werror_flag" |
20046 | || test ! -s conftest.err' | |
20047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20048 | (eval $ac_try) 2>&5 | |
20049 | ac_status=$? | |
20050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20051 | (exit $ac_status); }; } && | |
20052 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20054 | (eval $ac_try) 2>&5 | |
20055 | ac_status=$? | |
20056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20057 | (exit $ac_status); }; }; then | |
20058 | ||
20059 | wx_cv_lib_glibc21=yes | |
20060 | ||
20061 | else | |
20062 | echo "$as_me: failed program was:" >&5 | |
20063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20064 | ||
20065 | ||
20066 | wx_cv_lib_glibc21=no | |
20067 | ||
20068 | ||
20069 | fi | |
ac1cb8d3 | 20070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20071 | |
20072 | fi | |
20073 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20074 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20075 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20076 | cat >>confdefs.h <<\_ACEOF | |
20077 | #define wxHAVE_GLIBC2 1 | |
20078 | _ACEOF | |
20079 | ||
20080 | fi | |
20081 | fi | |
20082 | ||
20083 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20084 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20085 | cat >>confdefs.h <<\_ACEOF | |
20086 | #define _GNU_SOURCE 1 | |
20087 | _ACEOF | |
20088 | ||
20089 | fi | |
20090 | fi | |
20091 | ||
20092 | ||
20093 | ||
20094 | if test "$wxUSE_REGEX" != "no"; then | |
20095 | cat >>confdefs.h <<\_ACEOF | |
20096 | #define wxUSE_REGEX 1 | |
20097 | _ACEOF | |
20098 | ||
20099 | ||
20100 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20101 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20102 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20103 | wxUSE_REGEX=builtin | |
20104 | fi | |
20105 | ||
20106 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20107 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20108 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20109 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20110 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20112 | fi | |
20113 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20114 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20115 | else | |
20116 | # Is the header compilable? | |
20117 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20118 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20119 | cat >conftest.$ac_ext <<_ACEOF | |
20120 | /* confdefs.h. */ | |
20121 | _ACEOF | |
20122 | cat confdefs.h >>conftest.$ac_ext | |
20123 | cat >>conftest.$ac_ext <<_ACEOF | |
20124 | /* end confdefs.h. */ | |
20125 | $ac_includes_default | |
20126 | #include <regex.h> | |
20127 | _ACEOF | |
20128 | rm -f conftest.$ac_objext | |
20129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20130 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20131 | ac_status=$? |
ac1cb8d3 VS |
20132 | grep -v '^ *+' conftest.er1 >conftest.err |
20133 | rm -f conftest.er1 | |
20134 | cat conftest.err >&5 | |
a848cd7e SC |
20135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20136 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20137 | { ac_try='test -z "$ac_c_werror_flag" |
20138 | || test ! -s conftest.err' | |
20139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20140 | (eval $ac_try) 2>&5 | |
20141 | ac_status=$? | |
20142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20143 | (exit $ac_status); }; } && | |
20144 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20146 | (eval $ac_try) 2>&5 | |
20147 | ac_status=$? | |
20148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20149 | (exit $ac_status); }; }; then | |
20150 | ac_header_compiler=yes | |
20151 | else | |
20152 | echo "$as_me: failed program was:" >&5 | |
20153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20154 | ||
20155 | ac_header_compiler=no | |
20156 | fi | |
ac1cb8d3 | 20157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20158 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20159 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20160 | ||
20161 | # Is the header present? | |
20162 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20163 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20164 | cat >conftest.$ac_ext <<_ACEOF | |
20165 | /* confdefs.h. */ | |
20166 | _ACEOF | |
20167 | cat confdefs.h >>conftest.$ac_ext | |
20168 | cat >>conftest.$ac_ext <<_ACEOF | |
20169 | /* end confdefs.h. */ | |
20170 | #include <regex.h> | |
20171 | _ACEOF | |
20172 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20173 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20174 | ac_status=$? | |
20175 | grep -v '^ *+' conftest.er1 >conftest.err | |
20176 | rm -f conftest.er1 | |
20177 | cat conftest.err >&5 | |
20178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20179 | (exit $ac_status); } >/dev/null; then | |
20180 | if test -s conftest.err; then | |
20181 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20182 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20183 | else |
20184 | ac_cpp_err= | |
20185 | fi | |
20186 | else | |
20187 | ac_cpp_err=yes | |
20188 | fi | |
20189 | if test -z "$ac_cpp_err"; then | |
20190 | ac_header_preproc=yes | |
20191 | else | |
20192 | echo "$as_me: failed program was:" >&5 | |
20193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20194 | ||
20195 | ac_header_preproc=no | |
20196 | fi | |
20197 | rm -f conftest.err conftest.$ac_ext | |
20198 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20199 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20200 | ||
20201 | # So? What about this header? | |
ac1cb8d3 VS |
20202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20203 | yes:no: ) | |
a848cd7e SC |
20204 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20205 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20206 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20207 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20208 | ac_header_preproc=yes | |
a848cd7e | 20209 | ;; |
ac1cb8d3 | 20210 | no:yes:* ) |
a848cd7e SC |
20211 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20212 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20213 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20214 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20215 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20216 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20217 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20218 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20219 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20220 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20221 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20222 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20223 | ( |
20224 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20225 | ## ----------------------------------------- ## |
20226 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20227 | ## ----------------------------------------- ## | |
a848cd7e SC |
20228 | _ASBOX |
20229 | ) | | |
20230 | sed "s/^/$as_me: WARNING: /" >&2 | |
20231 | ;; | |
20232 | esac | |
20233 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20234 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20235 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20237 | else | |
20238 | ac_cv_header_regex_h=$ac_header_preproc | |
20239 | fi | |
20240 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20241 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20242 | ||
20243 | fi | |
20244 | if test $ac_cv_header_regex_h = yes; then | |
20245 | ||
20246 | for ac_func in regcomp | |
20247 | do | |
20248 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20249 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20250 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20251 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20253 | else | |
20254 | cat >conftest.$ac_ext <<_ACEOF | |
20255 | /* confdefs.h. */ | |
20256 | _ACEOF | |
20257 | cat confdefs.h >>conftest.$ac_ext | |
20258 | cat >>conftest.$ac_ext <<_ACEOF | |
20259 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20260 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20261 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20262 | #define $ac_func innocuous_$ac_func | |
20263 | ||
a848cd7e SC |
20264 | /* System header to define __stub macros and hopefully few prototypes, |
20265 | which can conflict with char $ac_func (); below. | |
20266 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20267 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20268 | |
a848cd7e SC |
20269 | #ifdef __STDC__ |
20270 | # include <limits.h> | |
20271 | #else | |
20272 | # include <assert.h> | |
20273 | #endif | |
ac1cb8d3 VS |
20274 | |
20275 | #undef $ac_func | |
20276 | ||
a848cd7e SC |
20277 | /* Override any gcc2 internal prototype to avoid an error. */ |
20278 | #ifdef __cplusplus | |
20279 | extern "C" | |
20280 | { | |
20281 | #endif | |
20282 | /* We use char because int might match the return type of a gcc2 | |
20283 | builtin and then its argument prototype would still apply. */ | |
20284 | char $ac_func (); | |
20285 | /* The GNU C library defines this for functions which it implements | |
20286 | to always fail with ENOSYS. Some functions are actually named | |
20287 | something starting with __ and the normal name is an alias. */ | |
20288 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20289 | choke me | |
20290 | #else | |
20291 | char (*f) () = $ac_func; | |
20292 | #endif | |
20293 | #ifdef __cplusplus | |
20294 | } | |
20295 | #endif | |
20296 | ||
20297 | int | |
20298 | main () | |
20299 | { | |
20300 | return f != $ac_func; | |
20301 | ; | |
20302 | return 0; | |
20303 | } | |
20304 | _ACEOF | |
20305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20307 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20308 | ac_status=$? |
ac1cb8d3 VS |
20309 | grep -v '^ *+' conftest.er1 >conftest.err |
20310 | rm -f conftest.er1 | |
20311 | cat conftest.err >&5 | |
a848cd7e SC |
20312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20313 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20314 | { ac_try='test -z "$ac_c_werror_flag" |
20315 | || test ! -s conftest.err' | |
20316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20317 | (eval $ac_try) 2>&5 | |
20318 | ac_status=$? | |
20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20320 | (exit $ac_status); }; } && | |
20321 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20323 | (eval $ac_try) 2>&5 | |
20324 | ac_status=$? | |
20325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20326 | (exit $ac_status); }; }; then | |
20327 | eval "$as_ac_var=yes" | |
20328 | else | |
20329 | echo "$as_me: failed program was:" >&5 | |
20330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20331 | ||
20332 | eval "$as_ac_var=no" | |
20333 | fi | |
ac1cb8d3 VS |
20334 | rm -f conftest.err conftest.$ac_objext \ |
20335 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20336 | fi |
20337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20338 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20339 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20340 | cat >>confdefs.h <<_ACEOF | |
20341 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20342 | _ACEOF | |
20343 | ||
20344 | fi | |
20345 | done | |
20346 | ||
20347 | fi | |
20348 | ||
20349 | ||
20350 | ||
20351 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20352 | if test "$wxUSE_REGEX" = "sys" ; then | |
20353 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20354 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20355 | { (exit 1); exit 1; }; } | |
20356 | else | |
20357 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20358 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20359 | wxUSE_REGEX=builtin | |
20360 | fi | |
20361 | else | |
20362 | wxUSE_REGEX=sys | |
20363 | cat >>confdefs.h <<\_ACEOF | |
20364 | #define WX_NO_REGEX_ADVANCED 1 | |
20365 | _ACEOF | |
20366 | ||
20367 | fi | |
20368 | fi | |
20369 | fi | |
20370 | ||
20371 | ||
20372 | ZLIB_LINK= | |
20373 | if test "$wxUSE_ZLIB" != "no" ; then | |
20374 | cat >>confdefs.h <<\_ACEOF | |
20375 | #define wxUSE_ZLIB 1 | |
20376 | _ACEOF | |
20377 | ||
20378 | ||
20379 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20380 | if test "$USE_DARWIN" = 1; then | |
20381 | system_zlib_h_ok="yes" | |
20382 | else | |
20383 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20384 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20385 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20387 | else | |
20388 | if test "$cross_compiling" = yes; then | |
20389 | unset ac_cv_header_zlib_h | |
20390 | ||
20391 | else | |
20392 | cat >conftest.$ac_ext <<_ACEOF | |
20393 | /* confdefs.h. */ | |
20394 | _ACEOF | |
20395 | cat confdefs.h >>conftest.$ac_ext | |
20396 | cat >>conftest.$ac_ext <<_ACEOF | |
20397 | /* end confdefs.h. */ | |
20398 | ||
20399 | #include <zlib.h> | |
20400 | #include <stdio.h> | |
20401 | ||
20402 | int main() | |
20403 | { | |
20404 | FILE *f=fopen("conftestval", "w"); | |
20405 | if (!f) exit(1); | |
20406 | fprintf(f, "%s", | |
20407 | ZLIB_VERSION[0] == '1' && | |
20408 | (ZLIB_VERSION[2] > '1' || | |
20409 | (ZLIB_VERSION[2] == '1' && | |
20410 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20411 | exit(0); | |
20412 | } | |
20413 | ||
20414 | _ACEOF | |
20415 | rm -f conftest$ac_exeext | |
20416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20417 | (eval $ac_link) 2>&5 | |
20418 | ac_status=$? | |
20419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20420 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20422 | (eval $ac_try) 2>&5 | |
20423 | ac_status=$? | |
20424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20425 | (exit $ac_status); }; }; then | |
20426 | ac_cv_header_zlib_h=`cat conftestval` | |
20427 | else | |
20428 | echo "$as_me: program exited with status $ac_status" >&5 | |
20429 | echo "$as_me: failed program was:" >&5 | |
20430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20431 | ||
20432 | ( exit $ac_status ) | |
20433 | ac_cv_header_zlib_h=no | |
20434 | fi | |
ac1cb8d3 | 20435 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20436 | fi |
20437 | ||
20438 | fi | |
20439 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20440 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20441 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20442 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20443 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20444 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20446 | fi | |
20447 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20448 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20449 | else | |
20450 | # Is the header compilable? | |
20451 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20452 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20453 | cat >conftest.$ac_ext <<_ACEOF | |
20454 | /* confdefs.h. */ | |
20455 | _ACEOF | |
20456 | cat confdefs.h >>conftest.$ac_ext | |
20457 | cat >>conftest.$ac_ext <<_ACEOF | |
20458 | /* end confdefs.h. */ | |
20459 | $ac_includes_default | |
20460 | #include <zlib.h> | |
20461 | _ACEOF | |
20462 | rm -f conftest.$ac_objext | |
20463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20464 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20465 | ac_status=$? |
ac1cb8d3 VS |
20466 | grep -v '^ *+' conftest.er1 >conftest.err |
20467 | rm -f conftest.er1 | |
20468 | cat conftest.err >&5 | |
a848cd7e SC |
20469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20470 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20471 | { ac_try='test -z "$ac_c_werror_flag" |
20472 | || test ! -s conftest.err' | |
20473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20474 | (eval $ac_try) 2>&5 | |
20475 | ac_status=$? | |
20476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20477 | (exit $ac_status); }; } && | |
20478 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20480 | (eval $ac_try) 2>&5 | |
20481 | ac_status=$? | |
20482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20483 | (exit $ac_status); }; }; then | |
20484 | ac_header_compiler=yes | |
20485 | else | |
20486 | echo "$as_me: failed program was:" >&5 | |
20487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20488 | ||
20489 | ac_header_compiler=no | |
20490 | fi | |
ac1cb8d3 | 20491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20492 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20493 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20494 | ||
20495 | # Is the header present? | |
20496 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20497 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20498 | cat >conftest.$ac_ext <<_ACEOF | |
20499 | /* confdefs.h. */ | |
20500 | _ACEOF | |
20501 | cat confdefs.h >>conftest.$ac_ext | |
20502 | cat >>conftest.$ac_ext <<_ACEOF | |
20503 | /* end confdefs.h. */ | |
20504 | #include <zlib.h> | |
20505 | _ACEOF | |
20506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20508 | ac_status=$? | |
20509 | grep -v '^ *+' conftest.er1 >conftest.err | |
20510 | rm -f conftest.er1 | |
20511 | cat conftest.err >&5 | |
20512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20513 | (exit $ac_status); } >/dev/null; then | |
20514 | if test -s conftest.err; then | |
20515 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20516 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20517 | else |
20518 | ac_cpp_err= | |
20519 | fi | |
20520 | else | |
20521 | ac_cpp_err=yes | |
20522 | fi | |
20523 | if test -z "$ac_cpp_err"; then | |
20524 | ac_header_preproc=yes | |
20525 | else | |
20526 | echo "$as_me: failed program was:" >&5 | |
20527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20528 | ||
20529 | ac_header_preproc=no | |
20530 | fi | |
20531 | rm -f conftest.err conftest.$ac_ext | |
20532 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20533 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20534 | ||
20535 | # So? What about this header? | |
ac1cb8d3 VS |
20536 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20537 | yes:no: ) | |
a848cd7e SC |
20538 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20539 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20540 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20541 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20542 | ac_header_preproc=yes | |
a848cd7e | 20543 | ;; |
ac1cb8d3 | 20544 | no:yes:* ) |
a848cd7e SC |
20545 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20546 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20547 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20548 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20549 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20550 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20551 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20552 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20553 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20554 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20555 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20556 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20557 | ( |
20558 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20559 | ## ----------------------------------------- ## |
20560 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20561 | ## ----------------------------------------- ## | |
a848cd7e SC |
20562 | _ASBOX |
20563 | ) | | |
20564 | sed "s/^/$as_me: WARNING: /" >&2 | |
20565 | ;; | |
20566 | esac | |
20567 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20568 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20569 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20571 | else | |
20572 | ac_cv_header_zlib_h=$ac_header_preproc | |
20573 | fi | |
20574 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20575 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20576 | ||
20577 | fi | |
20578 | ||
20579 | ||
20580 | ||
20581 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20582 | fi | |
20583 | ||
20584 | if test "$system_zlib_h_ok" = "yes"; then | |
20585 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20586 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20587 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20589 | else | |
20590 | ac_check_lib_save_LIBS=$LIBS | |
20591 | LIBS="-lz $LIBS" | |
20592 | cat >conftest.$ac_ext <<_ACEOF | |
20593 | /* confdefs.h. */ | |
20594 | _ACEOF | |
20595 | cat confdefs.h >>conftest.$ac_ext | |
20596 | cat >>conftest.$ac_ext <<_ACEOF | |
20597 | /* end confdefs.h. */ | |
20598 | ||
20599 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20600 | #ifdef __cplusplus | |
20601 | extern "C" | |
20602 | #endif | |
20603 | /* We use char because int might match the return type of a gcc2 | |
20604 | builtin and then its argument prototype would still apply. */ | |
20605 | char deflate (); | |
20606 | int | |
20607 | main () | |
20608 | { | |
20609 | deflate (); | |
20610 | ; | |
20611 | return 0; | |
20612 | } | |
20613 | _ACEOF | |
20614 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20616 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20617 | ac_status=$? |
ac1cb8d3 VS |
20618 | grep -v '^ *+' conftest.er1 >conftest.err |
20619 | rm -f conftest.er1 | |
20620 | cat conftest.err >&5 | |
a848cd7e SC |
20621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20622 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20623 | { ac_try='test -z "$ac_c_werror_flag" |
20624 | || test ! -s conftest.err' | |
20625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20626 | (eval $ac_try) 2>&5 | |
20627 | ac_status=$? | |
20628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20629 | (exit $ac_status); }; } && | |
20630 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20632 | (eval $ac_try) 2>&5 | |
20633 | ac_status=$? | |
20634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20635 | (exit $ac_status); }; }; then | |
20636 | ac_cv_lib_z_deflate=yes | |
20637 | else | |
20638 | echo "$as_me: failed program was:" >&5 | |
20639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20640 | ||
20641 | ac_cv_lib_z_deflate=no | |
20642 | fi | |
ac1cb8d3 VS |
20643 | rm -f conftest.err conftest.$ac_objext \ |
20644 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20645 | LIBS=$ac_check_lib_save_LIBS |
20646 | fi | |
20647 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20648 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20649 | if test $ac_cv_lib_z_deflate = yes; then | |
20650 | ZLIB_LINK=" -lz" | |
20651 | fi | |
20652 | ||
20653 | fi | |
20654 | ||
20655 | if test "x$ZLIB_LINK" = "x" ; then | |
20656 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20657 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20658 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20659 | { (exit 1); exit 1; }; } | |
20660 | else | |
20661 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20662 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20663 | wxUSE_ZLIB=builtin | |
20664 | fi | |
20665 | else | |
20666 | wxUSE_ZLIB=sys | |
20667 | fi | |
20668 | fi | |
20669 | fi | |
20670 | ||
20671 | ||
20672 | PNG_LINK= | |
20673 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20674 | cat >>confdefs.h <<\_ACEOF | |
20675 | #define wxUSE_LIBPNG 1 | |
20676 | _ACEOF | |
20677 | ||
20678 | ||
20679 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20680 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20681 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20682 | wxUSE_LIBPNG=sys | |
20683 | fi | |
20684 | ||
20685 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20686 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20687 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20688 | wxUSE_LIBPNG=builtin | |
20689 | fi | |
20690 | ||
20691 | if test "$wxUSE_MGL" != 1 ; then | |
20692 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20693 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20694 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20695 | if test "${ac_cv_header_png_h+set}" = set; then | |
20696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20697 | else | |
20698 | if test "$cross_compiling" = yes; then | |
20699 | unset ac_cv_header_png_h | |
20700 | ||
20701 | else | |
20702 | cat >conftest.$ac_ext <<_ACEOF | |
20703 | /* confdefs.h. */ | |
20704 | _ACEOF | |
20705 | cat confdefs.h >>conftest.$ac_ext | |
20706 | cat >>conftest.$ac_ext <<_ACEOF | |
20707 | /* end confdefs.h. */ | |
20708 | ||
20709 | #include <png.h> | |
20710 | #include <stdio.h> | |
20711 | ||
20712 | int main() | |
20713 | { | |
20714 | FILE *f=fopen("conftestval", "w"); | |
20715 | if (!f) exit(1); | |
20716 | fprintf(f, "%s", | |
20717 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20718 | exit(0); | |
20719 | } | |
20720 | ||
20721 | _ACEOF | |
20722 | rm -f conftest$ac_exeext | |
20723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20724 | (eval $ac_link) 2>&5 | |
20725 | ac_status=$? | |
20726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20727 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20729 | (eval $ac_try) 2>&5 | |
20730 | ac_status=$? | |
20731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20732 | (exit $ac_status); }; }; then | |
20733 | ac_cv_header_png_h=`cat conftestval` | |
20734 | else | |
20735 | echo "$as_me: program exited with status $ac_status" >&5 | |
20736 | echo "$as_me: failed program was:" >&5 | |
20737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20738 | ||
20739 | ( exit $ac_status ) | |
20740 | ac_cv_header_png_h=no | |
20741 | fi | |
ac1cb8d3 | 20742 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20743 | fi |
20744 | ||
20745 | fi | |
20746 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20747 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20748 | if test "${ac_cv_header_png_h+set}" = set; then | |
20749 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20750 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20751 | if test "${ac_cv_header_png_h+set}" = set; then | |
20752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20753 | fi | |
20754 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20755 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20756 | else | |
20757 | # Is the header compilable? | |
20758 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20759 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20760 | cat >conftest.$ac_ext <<_ACEOF | |
20761 | /* confdefs.h. */ | |
20762 | _ACEOF | |
20763 | cat confdefs.h >>conftest.$ac_ext | |
20764 | cat >>conftest.$ac_ext <<_ACEOF | |
20765 | /* end confdefs.h. */ | |
20766 | $ac_includes_default | |
20767 | #include <png.h> | |
20768 | _ACEOF | |
20769 | rm -f conftest.$ac_objext | |
20770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20771 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20772 | ac_status=$? |
ac1cb8d3 VS |
20773 | grep -v '^ *+' conftest.er1 >conftest.err |
20774 | rm -f conftest.er1 | |
20775 | cat conftest.err >&5 | |
a848cd7e SC |
20776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20777 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20778 | { ac_try='test -z "$ac_c_werror_flag" |
20779 | || test ! -s conftest.err' | |
20780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20781 | (eval $ac_try) 2>&5 | |
20782 | ac_status=$? | |
20783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20784 | (exit $ac_status); }; } && | |
20785 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20787 | (eval $ac_try) 2>&5 | |
20788 | ac_status=$? | |
20789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20790 | (exit $ac_status); }; }; then | |
20791 | ac_header_compiler=yes | |
20792 | else | |
20793 | echo "$as_me: failed program was:" >&5 | |
20794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20795 | ||
20796 | ac_header_compiler=no | |
20797 | fi | |
ac1cb8d3 | 20798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20799 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20800 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20801 | ||
20802 | # Is the header present? | |
20803 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20804 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20805 | cat >conftest.$ac_ext <<_ACEOF | |
20806 | /* confdefs.h. */ | |
20807 | _ACEOF | |
20808 | cat confdefs.h >>conftest.$ac_ext | |
20809 | cat >>conftest.$ac_ext <<_ACEOF | |
20810 | /* end confdefs.h. */ | |
20811 | #include <png.h> | |
20812 | _ACEOF | |
20813 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20814 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20815 | ac_status=$? | |
20816 | grep -v '^ *+' conftest.er1 >conftest.err | |
20817 | rm -f conftest.er1 | |
20818 | cat conftest.err >&5 | |
20819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20820 | (exit $ac_status); } >/dev/null; then | |
20821 | if test -s conftest.err; then | |
20822 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20823 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20824 | else |
20825 | ac_cpp_err= | |
20826 | fi | |
20827 | else | |
20828 | ac_cpp_err=yes | |
20829 | fi | |
20830 | if test -z "$ac_cpp_err"; then | |
20831 | ac_header_preproc=yes | |
20832 | else | |
20833 | echo "$as_me: failed program was:" >&5 | |
20834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20835 | ||
20836 | ac_header_preproc=no | |
20837 | fi | |
20838 | rm -f conftest.err conftest.$ac_ext | |
20839 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20840 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20841 | ||
20842 | # So? What about this header? | |
ac1cb8d3 VS |
20843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20844 | yes:no: ) | |
a848cd7e SC |
20845 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20846 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20847 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20848 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20849 | ac_header_preproc=yes | |
a848cd7e | 20850 | ;; |
ac1cb8d3 | 20851 | no:yes:* ) |
a848cd7e SC |
20852 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20853 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20854 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
20855 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
20856 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
20857 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
20858 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20859 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20860 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
20861 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20862 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
20863 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20864 | ( |
20865 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20866 | ## ----------------------------------------- ## |
20867 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20868 | ## ----------------------------------------- ## | |
a848cd7e SC |
20869 | _ASBOX |
20870 | ) | | |
20871 | sed "s/^/$as_me: WARNING: /" >&2 | |
20872 | ;; | |
20873 | esac | |
20874 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20875 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20876 | if test "${ac_cv_header_png_h+set}" = set; then | |
20877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20878 | else | |
20879 | ac_cv_header_png_h=$ac_header_preproc | |
20880 | fi | |
20881 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20882 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20883 | ||
20884 | fi | |
20885 | ||
20886 | ||
20887 | ||
20888 | if test "$ac_cv_header_png_h" = "yes"; then | |
20889 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
20890 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
20891 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
20892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20893 | else | |
20894 | ac_check_lib_save_LIBS=$LIBS | |
20895 | LIBS="-lpng -lz -lm $LIBS" | |
20896 | cat >conftest.$ac_ext <<_ACEOF | |
20897 | /* confdefs.h. */ | |
20898 | _ACEOF | |
20899 | cat confdefs.h >>conftest.$ac_ext | |
20900 | cat >>conftest.$ac_ext <<_ACEOF | |
20901 | /* end confdefs.h. */ | |
20902 | ||
20903 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20904 | #ifdef __cplusplus | |
20905 | extern "C" | |
20906 | #endif | |
20907 | /* We use char because int might match the return type of a gcc2 | |
20908 | builtin and then its argument prototype would still apply. */ | |
20909 | char png_check_sig (); | |
20910 | int | |
20911 | main () | |
20912 | { | |
20913 | png_check_sig (); | |
20914 | ; | |
20915 | return 0; | |
20916 | } | |
20917 | _ACEOF | |
20918 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20920 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20921 | ac_status=$? |
ac1cb8d3 VS |
20922 | grep -v '^ *+' conftest.er1 >conftest.err |
20923 | rm -f conftest.er1 | |
20924 | cat conftest.err >&5 | |
a848cd7e SC |
20925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20926 | (exit $ac_status); } && | |
ac1cb8d3 VS |
20927 | { ac_try='test -z "$ac_c_werror_flag" |
20928 | || test ! -s conftest.err' | |
20929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20930 | (eval $ac_try) 2>&5 | |
20931 | ac_status=$? | |
20932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20933 | (exit $ac_status); }; } && | |
20934 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20936 | (eval $ac_try) 2>&5 | |
20937 | ac_status=$? | |
20938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20939 | (exit $ac_status); }; }; then | |
20940 | ac_cv_lib_png_png_check_sig=yes | |
20941 | else | |
20942 | echo "$as_me: failed program was:" >&5 | |
20943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20944 | ||
20945 | ac_cv_lib_png_png_check_sig=no | |
20946 | fi | |
ac1cb8d3 VS |
20947 | rm -f conftest.err conftest.$ac_objext \ |
20948 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20949 | LIBS=$ac_check_lib_save_LIBS |
20950 | fi | |
20951 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
20952 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
20953 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
20954 | PNG_LINK=" -lpng -lz" | |
20955 | fi | |
20956 | ||
20957 | fi | |
20958 | ||
20959 | if test "x$PNG_LINK" = "x" ; then | |
20960 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
20961 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
20962 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
20963 | { (exit 1); exit 1; }; } | |
20964 | else | |
20965 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
20966 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
20967 | wxUSE_LIBPNG=builtin | |
20968 | fi | |
20969 | else | |
20970 | wxUSE_LIBPNG=sys | |
20971 | fi | |
20972 | fi | |
20973 | fi | |
20974 | ||
20975 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
20976 | fi | |
20977 | ||
20978 | ||
20979 | JPEG_LINK= | |
20980 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
20981 | cat >>confdefs.h <<\_ACEOF | |
20982 | #define wxUSE_LIBJPEG 1 | |
20983 | _ACEOF | |
20984 | ||
20985 | ||
20986 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
20987 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
20988 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
20989 | wxUSE_LIBJPEG=sys | |
20990 | fi | |
20991 | ||
20992 | if test "$wxUSE_MGL" != 1 ; then | |
20993 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
20994 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
20995 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
20996 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
20997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20998 | else | |
20999 | cat >conftest.$ac_ext <<_ACEOF | |
21000 | /* confdefs.h. */ | |
21001 | _ACEOF | |
21002 | cat confdefs.h >>conftest.$ac_ext | |
21003 | cat >>conftest.$ac_ext <<_ACEOF | |
21004 | /* end confdefs.h. */ | |
21005 | ||
21006 | #undef HAVE_STDLIB_H | |
21007 | #include <stdio.h> | |
21008 | #include <jpeglib.h> | |
21009 | ||
21010 | int | |
21011 | main () | |
21012 | { | |
21013 | ||
21014 | ||
21015 | ; | |
21016 | return 0; | |
21017 | } | |
21018 | _ACEOF | |
21019 | rm -f conftest.$ac_objext | |
21020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21021 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21022 | ac_status=$? |
ac1cb8d3 VS |
21023 | grep -v '^ *+' conftest.er1 >conftest.err |
21024 | rm -f conftest.er1 | |
21025 | cat conftest.err >&5 | |
a848cd7e SC |
21026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21027 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21028 | { ac_try='test -z "$ac_c_werror_flag" |
21029 | || test ! -s conftest.err' | |
21030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21031 | (eval $ac_try) 2>&5 | |
21032 | ac_status=$? | |
21033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21034 | (exit $ac_status); }; } && | |
21035 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21037 | (eval $ac_try) 2>&5 | |
21038 | ac_status=$? | |
21039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21040 | (exit $ac_status); }; }; then | |
21041 | ac_cv_header_jpeglib_h=yes | |
21042 | else | |
21043 | echo "$as_me: failed program was:" >&5 | |
21044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21045 | ||
21046 | ac_cv_header_jpeglib_h=no | |
21047 | ||
21048 | fi | |
ac1cb8d3 | 21049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21050 | |
21051 | fi | |
21052 | ||
21053 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21054 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21055 | ||
21056 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21057 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21058 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21059 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21061 | else | |
21062 | ac_check_lib_save_LIBS=$LIBS | |
21063 | LIBS="-ljpeg $LIBS" | |
21064 | cat >conftest.$ac_ext <<_ACEOF | |
21065 | /* confdefs.h. */ | |
21066 | _ACEOF | |
21067 | cat confdefs.h >>conftest.$ac_ext | |
21068 | cat >>conftest.$ac_ext <<_ACEOF | |
21069 | /* end confdefs.h. */ | |
21070 | ||
21071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21072 | #ifdef __cplusplus | |
21073 | extern "C" | |
21074 | #endif | |
21075 | /* We use char because int might match the return type of a gcc2 | |
21076 | builtin and then its argument prototype would still apply. */ | |
21077 | char jpeg_read_header (); | |
21078 | int | |
21079 | main () | |
21080 | { | |
21081 | jpeg_read_header (); | |
21082 | ; | |
21083 | return 0; | |
21084 | } | |
21085 | _ACEOF | |
21086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21088 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21089 | ac_status=$? |
ac1cb8d3 VS |
21090 | grep -v '^ *+' conftest.er1 >conftest.err |
21091 | rm -f conftest.er1 | |
21092 | cat conftest.err >&5 | |
a848cd7e SC |
21093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21094 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21095 | { ac_try='test -z "$ac_c_werror_flag" |
21096 | || test ! -s conftest.err' | |
21097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21098 | (eval $ac_try) 2>&5 | |
21099 | ac_status=$? | |
21100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21101 | (exit $ac_status); }; } && | |
21102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21104 | (eval $ac_try) 2>&5 | |
21105 | ac_status=$? | |
21106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21107 | (exit $ac_status); }; }; then | |
21108 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21109 | else | |
21110 | echo "$as_me: failed program was:" >&5 | |
21111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21112 | ||
21113 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21114 | fi | |
ac1cb8d3 VS |
21115 | rm -f conftest.err conftest.$ac_objext \ |
21116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21117 | LIBS=$ac_check_lib_save_LIBS |
21118 | fi | |
21119 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21120 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21121 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21122 | JPEG_LINK=" -ljpeg" | |
21123 | fi | |
21124 | ||
21125 | fi | |
21126 | ||
21127 | if test "x$JPEG_LINK" = "x" ; then | |
21128 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21129 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21130 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21131 | { (exit 1); exit 1; }; } | |
21132 | else | |
21133 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21134 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21135 | wxUSE_LIBJPEG=builtin | |
21136 | fi | |
21137 | else | |
21138 | wxUSE_LIBJPEG=sys | |
21139 | fi | |
21140 | fi | |
21141 | fi | |
21142 | fi | |
21143 | ||
21144 | ||
21145 | TIFF_LINK= | |
21146 | TIFF_PREREQ_LINKS=-lm | |
21147 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21148 | cat >>confdefs.h <<\_ACEOF | |
21149 | #define wxUSE_LIBTIFF 1 | |
21150 | _ACEOF | |
21151 | ||
21152 | ||
21153 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21154 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21155 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21156 | fi | |
21157 | if test "$wxUSE_ZLIB" = "sys"; then | |
21158 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21159 | fi | |
21160 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21161 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21162 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21163 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21165 | fi | |
21166 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21167 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21168 | else | |
21169 | # Is the header compilable? | |
21170 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21171 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21172 | cat >conftest.$ac_ext <<_ACEOF | |
21173 | /* confdefs.h. */ | |
21174 | _ACEOF | |
21175 | cat confdefs.h >>conftest.$ac_ext | |
21176 | cat >>conftest.$ac_ext <<_ACEOF | |
21177 | /* end confdefs.h. */ | |
21178 | $ac_includes_default | |
21179 | #include <tiffio.h> | |
21180 | _ACEOF | |
21181 | rm -f conftest.$ac_objext | |
21182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21183 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21184 | ac_status=$? |
ac1cb8d3 VS |
21185 | grep -v '^ *+' conftest.er1 >conftest.err |
21186 | rm -f conftest.er1 | |
21187 | cat conftest.err >&5 | |
a848cd7e SC |
21188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21189 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21190 | { ac_try='test -z "$ac_c_werror_flag" |
21191 | || test ! -s conftest.err' | |
21192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21193 | (eval $ac_try) 2>&5 | |
21194 | ac_status=$? | |
21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21196 | (exit $ac_status); }; } && | |
21197 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21199 | (eval $ac_try) 2>&5 | |
21200 | ac_status=$? | |
21201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21202 | (exit $ac_status); }; }; then | |
21203 | ac_header_compiler=yes | |
21204 | else | |
21205 | echo "$as_me: failed program was:" >&5 | |
21206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21207 | ||
21208 | ac_header_compiler=no | |
21209 | fi | |
ac1cb8d3 | 21210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21211 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21212 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21213 | ||
21214 | # Is the header present? | |
21215 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21216 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21217 | cat >conftest.$ac_ext <<_ACEOF | |
21218 | /* confdefs.h. */ | |
21219 | _ACEOF | |
21220 | cat confdefs.h >>conftest.$ac_ext | |
21221 | cat >>conftest.$ac_ext <<_ACEOF | |
21222 | /* end confdefs.h. */ | |
21223 | #include <tiffio.h> | |
21224 | _ACEOF | |
21225 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21226 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21227 | ac_status=$? | |
21228 | grep -v '^ *+' conftest.er1 >conftest.err | |
21229 | rm -f conftest.er1 | |
21230 | cat conftest.err >&5 | |
21231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21232 | (exit $ac_status); } >/dev/null; then | |
21233 | if test -s conftest.err; then | |
21234 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21235 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21236 | else |
21237 | ac_cpp_err= | |
21238 | fi | |
21239 | else | |
21240 | ac_cpp_err=yes | |
21241 | fi | |
21242 | if test -z "$ac_cpp_err"; then | |
21243 | ac_header_preproc=yes | |
21244 | else | |
21245 | echo "$as_me: failed program was:" >&5 | |
21246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21247 | ||
21248 | ac_header_preproc=no | |
21249 | fi | |
21250 | rm -f conftest.err conftest.$ac_ext | |
21251 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21252 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21253 | ||
21254 | # So? What about this header? | |
ac1cb8d3 VS |
21255 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21256 | yes:no: ) | |
a848cd7e SC |
21257 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21258 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21259 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21260 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21261 | ac_header_preproc=yes | |
a848cd7e | 21262 | ;; |
ac1cb8d3 | 21263 | no:yes:* ) |
a848cd7e SC |
21264 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21265 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21266 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21267 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21268 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21269 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21270 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21271 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21272 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21273 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21274 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21275 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21276 | ( |
21277 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21278 | ## ----------------------------------------- ## |
21279 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21280 | ## ----------------------------------------- ## | |
a848cd7e SC |
21281 | _ASBOX |
21282 | ) | | |
21283 | sed "s/^/$as_me: WARNING: /" >&2 | |
21284 | ;; | |
21285 | esac | |
21286 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21287 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21288 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21290 | else | |
21291 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21292 | fi | |
21293 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21294 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21295 | ||
21296 | fi | |
21297 | if test $ac_cv_header_tiffio_h = yes; then | |
21298 | ||
21299 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21300 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21301 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21303 | else | |
21304 | ac_check_lib_save_LIBS=$LIBS | |
21305 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21306 | cat >conftest.$ac_ext <<_ACEOF | |
21307 | /* confdefs.h. */ | |
21308 | _ACEOF | |
21309 | cat confdefs.h >>conftest.$ac_ext | |
21310 | cat >>conftest.$ac_ext <<_ACEOF | |
21311 | /* end confdefs.h. */ | |
21312 | ||
21313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21314 | #ifdef __cplusplus | |
21315 | extern "C" | |
21316 | #endif | |
21317 | /* We use char because int might match the return type of a gcc2 | |
21318 | builtin and then its argument prototype would still apply. */ | |
21319 | char TIFFError (); | |
21320 | int | |
21321 | main () | |
21322 | { | |
21323 | TIFFError (); | |
21324 | ; | |
21325 | return 0; | |
21326 | } | |
21327 | _ACEOF | |
21328 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21330 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21331 | ac_status=$? |
ac1cb8d3 VS |
21332 | grep -v '^ *+' conftest.er1 >conftest.err |
21333 | rm -f conftest.er1 | |
21334 | cat conftest.err >&5 | |
a848cd7e SC |
21335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21336 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21337 | { ac_try='test -z "$ac_c_werror_flag" |
21338 | || test ! -s conftest.err' | |
21339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21340 | (eval $ac_try) 2>&5 | |
21341 | ac_status=$? | |
21342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21343 | (exit $ac_status); }; } && | |
21344 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21346 | (eval $ac_try) 2>&5 | |
21347 | ac_status=$? | |
21348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21349 | (exit $ac_status); }; }; then | |
21350 | ac_cv_lib_tiff_TIFFError=yes | |
21351 | else | |
21352 | echo "$as_me: failed program was:" >&5 | |
21353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21354 | ||
21355 | ac_cv_lib_tiff_TIFFError=no | |
21356 | fi | |
ac1cb8d3 VS |
21357 | rm -f conftest.err conftest.$ac_objext \ |
21358 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21359 | LIBS=$ac_check_lib_save_LIBS |
21360 | fi | |
21361 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21362 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21363 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21364 | TIFF_LINK=" -ltiff" | |
21365 | fi | |
21366 | ||
21367 | ||
21368 | ||
21369 | fi | |
21370 | ||
21371 | ||
21372 | ||
21373 | if test "x$TIFF_LINK" = "x" ; then | |
21374 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21375 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21376 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21377 | { (exit 1); exit 1; }; } | |
21378 | else | |
21379 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21380 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21381 | wxUSE_LIBTIFF=builtin | |
21382 | fi | |
21383 | else | |
21384 | wxUSE_LIBTIFF=sys | |
21385 | fi | |
21386 | fi | |
21387 | fi | |
21388 | ||
21389 | ||
21390 | if test "$wxUSE_EXPAT" != "no"; then | |
21391 | wxUSE_XML=yes | |
21392 | cat >>confdefs.h <<\_ACEOF | |
21393 | #define wxUSE_EXPAT 1 | |
21394 | _ACEOF | |
21395 | ||
21396 | cat >>confdefs.h <<\_ACEOF | |
21397 | #define wxUSE_XML 1 | |
21398 | _ACEOF | |
21399 | ||
21400 | ||
21401 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21402 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21403 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21404 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21405 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21407 | fi | |
21408 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21409 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21410 | else | |
21411 | # Is the header compilable? | |
21412 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21413 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21414 | cat >conftest.$ac_ext <<_ACEOF | |
21415 | /* confdefs.h. */ | |
21416 | _ACEOF | |
21417 | cat confdefs.h >>conftest.$ac_ext | |
21418 | cat >>conftest.$ac_ext <<_ACEOF | |
21419 | /* end confdefs.h. */ | |
21420 | $ac_includes_default | |
21421 | #include <expat.h> | |
21422 | _ACEOF | |
21423 | rm -f conftest.$ac_objext | |
21424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21425 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21426 | ac_status=$? |
ac1cb8d3 VS |
21427 | grep -v '^ *+' conftest.er1 >conftest.err |
21428 | rm -f conftest.er1 | |
21429 | cat conftest.err >&5 | |
a848cd7e SC |
21430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21431 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21432 | { ac_try='test -z "$ac_c_werror_flag" |
21433 | || test ! -s conftest.err' | |
21434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21435 | (eval $ac_try) 2>&5 | |
21436 | ac_status=$? | |
21437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21438 | (exit $ac_status); }; } && | |
21439 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21441 | (eval $ac_try) 2>&5 | |
21442 | ac_status=$? | |
21443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21444 | (exit $ac_status); }; }; then | |
21445 | ac_header_compiler=yes | |
21446 | else | |
21447 | echo "$as_me: failed program was:" >&5 | |
21448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21449 | ||
21450 | ac_header_compiler=no | |
21451 | fi | |
ac1cb8d3 | 21452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21453 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21454 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21455 | ||
21456 | # Is the header present? | |
21457 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21458 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21459 | cat >conftest.$ac_ext <<_ACEOF | |
21460 | /* confdefs.h. */ | |
21461 | _ACEOF | |
21462 | cat confdefs.h >>conftest.$ac_ext | |
21463 | cat >>conftest.$ac_ext <<_ACEOF | |
21464 | /* end confdefs.h. */ | |
21465 | #include <expat.h> | |
21466 | _ACEOF | |
21467 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21468 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21469 | ac_status=$? | |
21470 | grep -v '^ *+' conftest.er1 >conftest.err | |
21471 | rm -f conftest.er1 | |
21472 | cat conftest.err >&5 | |
21473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21474 | (exit $ac_status); } >/dev/null; then | |
21475 | if test -s conftest.err; then | |
21476 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21477 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21478 | else |
21479 | ac_cpp_err= | |
21480 | fi | |
21481 | else | |
21482 | ac_cpp_err=yes | |
21483 | fi | |
21484 | if test -z "$ac_cpp_err"; then | |
21485 | ac_header_preproc=yes | |
21486 | else | |
21487 | echo "$as_me: failed program was:" >&5 | |
21488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21489 | ||
21490 | ac_header_preproc=no | |
21491 | fi | |
21492 | rm -f conftest.err conftest.$ac_ext | |
21493 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21494 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21495 | ||
21496 | # So? What about this header? | |
ac1cb8d3 VS |
21497 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21498 | yes:no: ) | |
a848cd7e SC |
21499 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21500 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21501 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21502 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21503 | ac_header_preproc=yes | |
a848cd7e | 21504 | ;; |
ac1cb8d3 | 21505 | no:yes:* ) |
a848cd7e SC |
21506 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21507 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21508 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21509 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21510 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21511 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21512 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21513 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21514 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21515 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21516 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21517 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21518 | ( |
21519 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21520 | ## ----------------------------------------- ## |
21521 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21522 | ## ----------------------------------------- ## | |
a848cd7e SC |
21523 | _ASBOX |
21524 | ) | | |
21525 | sed "s/^/$as_me: WARNING: /" >&2 | |
21526 | ;; | |
21527 | esac | |
21528 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21529 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21530 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21532 | else | |
21533 | ac_cv_header_expat_h=$ac_header_preproc | |
21534 | fi | |
21535 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21536 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21537 | ||
21538 | fi | |
21539 | if test $ac_cv_header_expat_h = yes; then | |
21540 | found_expat_h=1 | |
21541 | fi | |
21542 | ||
21543 | ||
21544 | if test "x$found_expat_h" = "x1"; then | |
21545 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21546 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21547 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21549 | else | |
21550 | ||
21551 | ||
21552 | ||
21553 | ac_ext=cc | |
21554 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21555 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21556 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21557 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21558 | ||
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 <expat.h> | |
21566 | int | |
21567 | main () | |
21568 | { | |
21569 | ||
21570 | ; | |
21571 | return 0; | |
21572 | } | |
21573 | _ACEOF | |
21574 | rm -f conftest.$ac_objext | |
21575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21576 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21577 | ac_status=$? |
ac1cb8d3 VS |
21578 | grep -v '^ *+' conftest.er1 >conftest.err |
21579 | rm -f conftest.er1 | |
21580 | cat conftest.err >&5 | |
a848cd7e SC |
21581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21582 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21583 | { ac_try='test -z "$ac_cxx_werror_flag" |
21584 | || test ! -s conftest.err' | |
21585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21586 | (eval $ac_try) 2>&5 | |
21587 | ac_status=$? | |
21588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21589 | (exit $ac_status); }; } && | |
21590 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21592 | (eval $ac_try) 2>&5 | |
21593 | ac_status=$? | |
21594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21595 | (exit $ac_status); }; }; then | |
21596 | wx_cv_expat_is_not_broken=yes | |
21597 | else | |
21598 | echo "$as_me: failed program was:" >&5 | |
21599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21600 | ||
21601 | wx_cv_expat_is_not_broken=no | |
21602 | ||
21603 | fi | |
ac1cb8d3 | 21604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21605 | ac_ext=c |
21606 | ac_cpp='$CPP $CPPFLAGS' | |
21607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21610 | ||
21611 | ||
21612 | ||
21613 | fi | |
21614 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21615 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21616 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21617 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21618 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21619 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21621 | else | |
21622 | ac_check_lib_save_LIBS=$LIBS | |
21623 | LIBS="-lexpat $LIBS" | |
21624 | cat >conftest.$ac_ext <<_ACEOF | |
21625 | /* confdefs.h. */ | |
21626 | _ACEOF | |
21627 | cat confdefs.h >>conftest.$ac_ext | |
21628 | cat >>conftest.$ac_ext <<_ACEOF | |
21629 | /* end confdefs.h. */ | |
21630 | ||
21631 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21632 | #ifdef __cplusplus | |
21633 | extern "C" | |
21634 | #endif | |
21635 | /* We use char because int might match the return type of a gcc2 | |
21636 | builtin and then its argument prototype would still apply. */ | |
21637 | char XML_ParserCreate (); | |
21638 | int | |
21639 | main () | |
21640 | { | |
21641 | XML_ParserCreate (); | |
21642 | ; | |
21643 | return 0; | |
21644 | } | |
21645 | _ACEOF | |
21646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21648 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21649 | ac_status=$? |
ac1cb8d3 VS |
21650 | grep -v '^ *+' conftest.er1 >conftest.err |
21651 | rm -f conftest.er1 | |
21652 | cat conftest.err >&5 | |
a848cd7e SC |
21653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21654 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21655 | { ac_try='test -z "$ac_c_werror_flag" |
21656 | || test ! -s conftest.err' | |
21657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21658 | (eval $ac_try) 2>&5 | |
21659 | ac_status=$? | |
21660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21661 | (exit $ac_status); }; } && | |
21662 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21664 | (eval $ac_try) 2>&5 | |
21665 | ac_status=$? | |
21666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21667 | (exit $ac_status); }; }; then | |
21668 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21669 | else | |
21670 | echo "$as_me: failed program was:" >&5 | |
21671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21672 | ||
21673 | ac_cv_lib_expat_XML_ParserCreate=no | |
21674 | fi | |
ac1cb8d3 VS |
21675 | rm -f conftest.err conftest.$ac_objext \ |
21676 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21677 | LIBS=$ac_check_lib_save_LIBS |
21678 | fi | |
21679 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21680 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21681 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21682 | EXPAT_LINK=" -lexpat" | |
21683 | fi | |
21684 | ||
21685 | fi | |
21686 | fi | |
21687 | if test "x$EXPAT_LINK" = "x" ; then | |
21688 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21689 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21690 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21691 | { (exit 1); exit 1; }; } | |
21692 | else | |
21693 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21694 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21695 | wxUSE_EXPAT=builtin | |
21696 | fi | |
21697 | else | |
21698 | wxUSE_EXPAT=sys | |
21699 | fi | |
21700 | fi | |
21701 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21702 | ||
21703 | ||
21704 | subdirs="$subdirs src/expat" | |
21705 | ||
21706 | fi | |
21707 | fi | |
21708 | ||
21709 | ||
21710 | ||
21711 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21712 | ||
21713 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21714 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21715 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21716 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21718 | fi | |
21719 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21720 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21721 | else | |
21722 | # Is the header compilable? | |
21723 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21724 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21725 | cat >conftest.$ac_ext <<_ACEOF | |
21726 | /* confdefs.h. */ | |
21727 | _ACEOF | |
21728 | cat confdefs.h >>conftest.$ac_ext | |
21729 | cat >>conftest.$ac_ext <<_ACEOF | |
21730 | /* end confdefs.h. */ | |
21731 | $ac_includes_default | |
21732 | #include <mspack.h> | |
21733 | _ACEOF | |
21734 | rm -f conftest.$ac_objext | |
21735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21736 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21737 | ac_status=$? |
ac1cb8d3 VS |
21738 | grep -v '^ *+' conftest.er1 >conftest.err |
21739 | rm -f conftest.er1 | |
21740 | cat conftest.err >&5 | |
a848cd7e SC |
21741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21742 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21743 | { ac_try='test -z "$ac_c_werror_flag" |
21744 | || test ! -s conftest.err' | |
21745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21746 | (eval $ac_try) 2>&5 | |
21747 | ac_status=$? | |
21748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21749 | (exit $ac_status); }; } && | |
21750 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21752 | (eval $ac_try) 2>&5 | |
21753 | ac_status=$? | |
21754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21755 | (exit $ac_status); }; }; then | |
21756 | ac_header_compiler=yes | |
21757 | else | |
21758 | echo "$as_me: failed program was:" >&5 | |
21759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21760 | ||
21761 | ac_header_compiler=no | |
21762 | fi | |
ac1cb8d3 | 21763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21764 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21765 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21766 | ||
21767 | # Is the header present? | |
21768 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21769 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21770 | cat >conftest.$ac_ext <<_ACEOF | |
21771 | /* confdefs.h. */ | |
21772 | _ACEOF | |
21773 | cat confdefs.h >>conftest.$ac_ext | |
21774 | cat >>conftest.$ac_ext <<_ACEOF | |
21775 | /* end confdefs.h. */ | |
21776 | #include <mspack.h> | |
21777 | _ACEOF | |
21778 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21779 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21780 | ac_status=$? | |
21781 | grep -v '^ *+' conftest.er1 >conftest.err | |
21782 | rm -f conftest.er1 | |
21783 | cat conftest.err >&5 | |
21784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21785 | (exit $ac_status); } >/dev/null; then | |
21786 | if test -s conftest.err; then | |
21787 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21788 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21789 | else |
21790 | ac_cpp_err= | |
21791 | fi | |
21792 | else | |
21793 | ac_cpp_err=yes | |
21794 | fi | |
21795 | if test -z "$ac_cpp_err"; then | |
21796 | ac_header_preproc=yes | |
21797 | else | |
21798 | echo "$as_me: failed program was:" >&5 | |
21799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21800 | ||
21801 | ac_header_preproc=no | |
21802 | fi | |
21803 | rm -f conftest.err conftest.$ac_ext | |
21804 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21805 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21806 | ||
21807 | # So? What about this header? | |
ac1cb8d3 VS |
21808 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21809 | yes:no: ) | |
a848cd7e SC |
21810 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21811 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21812 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21813 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21814 | ac_header_preproc=yes | |
a848cd7e | 21815 | ;; |
ac1cb8d3 | 21816 | no:yes:* ) |
a848cd7e SC |
21817 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21818 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21819 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21820 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21821 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21822 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21823 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21824 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21825 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21826 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21827 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21828 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21829 | ( |
21830 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21831 | ## ----------------------------------------- ## |
21832 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21833 | ## ----------------------------------------- ## | |
a848cd7e SC |
21834 | _ASBOX |
21835 | ) | | |
21836 | sed "s/^/$as_me: WARNING: /" >&2 | |
21837 | ;; | |
21838 | esac | |
21839 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21840 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21841 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21843 | else | |
21844 | ac_cv_header_mspack_h=$ac_header_preproc | |
21845 | fi | |
21846 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21847 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21848 | ||
21849 | fi | |
21850 | if test $ac_cv_header_mspack_h = yes; then | |
21851 | found_mspack_h=1 | |
21852 | fi | |
21853 | ||
21854 | ||
21855 | if test "x$found_mspack_h" = "x1"; then | |
21856 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21857 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21858 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21860 | else | |
21861 | ac_check_lib_save_LIBS=$LIBS | |
21862 | LIBS="-lmspack $LIBS" | |
21863 | cat >conftest.$ac_ext <<_ACEOF | |
21864 | /* confdefs.h. */ | |
21865 | _ACEOF | |
21866 | cat confdefs.h >>conftest.$ac_ext | |
21867 | cat >>conftest.$ac_ext <<_ACEOF | |
21868 | /* end confdefs.h. */ | |
21869 | ||
21870 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21871 | #ifdef __cplusplus | |
21872 | extern "C" | |
21873 | #endif | |
21874 | /* We use char because int might match the return type of a gcc2 | |
21875 | builtin and then its argument prototype would still apply. */ | |
21876 | char mspack_create_chm_decompressor (); | |
21877 | int | |
21878 | main () | |
21879 | { | |
21880 | mspack_create_chm_decompressor (); | |
21881 | ; | |
21882 | return 0; | |
21883 | } | |
21884 | _ACEOF | |
21885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21887 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21888 | ac_status=$? |
ac1cb8d3 VS |
21889 | grep -v '^ *+' conftest.er1 >conftest.err |
21890 | rm -f conftest.er1 | |
21891 | cat conftest.err >&5 | |
a848cd7e SC |
21892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21893 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21894 | { ac_try='test -z "$ac_c_werror_flag" |
21895 | || test ! -s conftest.err' | |
21896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21897 | (eval $ac_try) 2>&5 | |
21898 | ac_status=$? | |
21899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21900 | (exit $ac_status); }; } && | |
21901 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21903 | (eval $ac_try) 2>&5 | |
21904 | ac_status=$? | |
21905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21906 | (exit $ac_status); }; }; then | |
21907 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
21908 | else | |
21909 | echo "$as_me: failed program was:" >&5 | |
21910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21911 | ||
21912 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
21913 | fi | |
ac1cb8d3 VS |
21914 | rm -f conftest.err conftest.$ac_objext \ |
21915 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21916 | LIBS=$ac_check_lib_save_LIBS |
21917 | fi | |
21918 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
21919 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
21920 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
21921 | MSPACK_LINK=" -lmspack" | |
21922 | fi | |
21923 | ||
21924 | fi | |
21925 | if test "x$MSPACK_LINK" = "x" ; then | |
21926 | wxUSE_LIBMSPACK=no | |
21927 | else | |
21928 | cat >>confdefs.h <<\_ACEOF | |
21929 | #define wxUSE_LIBMSPACK 1 | |
21930 | _ACEOF | |
21931 | ||
21932 | fi | |
21933 | fi | |
21934 | ||
21935 | ||
21936 | ||
21937 | AFMINSTALL= | |
21938 | WIN32INSTALL= | |
21939 | ||
21940 | TOOLKIT= | |
21941 | TOOLKIT_INCLUDE= | |
21942 | WIDGET_SET= | |
21943 | ||
21944 | if test "$USE_WIN32" = 1 ; then | |
21945 | ||
21946 | for ac_header in w32api.h | |
21947 | do | |
21948 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21950 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21951 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21952 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21954 | fi | |
21955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21956 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21957 | else | |
21958 | # Is the header compilable? | |
21959 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21960 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21961 | cat >conftest.$ac_ext <<_ACEOF | |
21962 | /* confdefs.h. */ | |
21963 | _ACEOF | |
21964 | cat confdefs.h >>conftest.$ac_ext | |
21965 | cat >>conftest.$ac_ext <<_ACEOF | |
21966 | /* end confdefs.h. */ | |
21967 | $ac_includes_default | |
21968 | #include <$ac_header> | |
21969 | _ACEOF | |
21970 | rm -f conftest.$ac_objext | |
21971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21973 | ac_status=$? |
ac1cb8d3 VS |
21974 | grep -v '^ *+' conftest.er1 >conftest.err |
21975 | rm -f conftest.er1 | |
21976 | cat conftest.err >&5 | |
a848cd7e SC |
21977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21978 | (exit $ac_status); } && | |
ac1cb8d3 VS |
21979 | { ac_try='test -z "$ac_c_werror_flag" |
21980 | || test ! -s conftest.err' | |
21981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21982 | (eval $ac_try) 2>&5 | |
21983 | ac_status=$? | |
21984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21985 | (exit $ac_status); }; } && | |
21986 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21988 | (eval $ac_try) 2>&5 | |
21989 | ac_status=$? | |
21990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21991 | (exit $ac_status); }; }; then | |
21992 | ac_header_compiler=yes | |
21993 | else | |
21994 | echo "$as_me: failed program was:" >&5 | |
21995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21996 | ||
21997 | ac_header_compiler=no | |
21998 | fi | |
ac1cb8d3 | 21999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22000 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22001 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22002 | ||
22003 | # Is the header present? | |
22004 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22005 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22006 | cat >conftest.$ac_ext <<_ACEOF | |
22007 | /* confdefs.h. */ | |
22008 | _ACEOF | |
22009 | cat confdefs.h >>conftest.$ac_ext | |
22010 | cat >>conftest.$ac_ext <<_ACEOF | |
22011 | /* end confdefs.h. */ | |
22012 | #include <$ac_header> | |
22013 | _ACEOF | |
22014 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22016 | ac_status=$? | |
22017 | grep -v '^ *+' conftest.er1 >conftest.err | |
22018 | rm -f conftest.er1 | |
22019 | cat conftest.err >&5 | |
22020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22021 | (exit $ac_status); } >/dev/null; then | |
22022 | if test -s conftest.err; then | |
22023 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22024 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22025 | else |
22026 | ac_cpp_err= | |
22027 | fi | |
22028 | else | |
22029 | ac_cpp_err=yes | |
22030 | fi | |
22031 | if test -z "$ac_cpp_err"; then | |
22032 | ac_header_preproc=yes | |
22033 | else | |
22034 | echo "$as_me: failed program was:" >&5 | |
22035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22036 | ||
22037 | ac_header_preproc=no | |
22038 | fi | |
22039 | rm -f conftest.err conftest.$ac_ext | |
22040 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22041 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22042 | ||
22043 | # So? What about this header? | |
ac1cb8d3 VS |
22044 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22045 | yes:no: ) | |
a848cd7e SC |
22046 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22047 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22048 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22049 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22050 | ac_header_preproc=yes | |
a848cd7e | 22051 | ;; |
ac1cb8d3 | 22052 | no:yes:* ) |
a848cd7e SC |
22053 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22054 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22055 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22056 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22057 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22058 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22059 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22060 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22061 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22062 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22063 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22064 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22065 | ( |
22066 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22067 | ## ----------------------------------------- ## |
22068 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22069 | ## ----------------------------------------- ## | |
a848cd7e SC |
22070 | _ASBOX |
22071 | ) | | |
22072 | sed "s/^/$as_me: WARNING: /" >&2 | |
22073 | ;; | |
22074 | esac | |
22075 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22079 | else | |
ac1cb8d3 | 22080 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22081 | fi |
22082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22084 | ||
22085 | fi | |
22086 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22087 | cat >>confdefs.h <<_ACEOF | |
22088 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22089 | _ACEOF | |
22090 | ||
22091 | fi | |
22092 | ||
22093 | done | |
22094 | ||
22095 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22096 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22097 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22098 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22100 | fi | |
22101 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22102 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22103 | else | |
22104 | # Is the header compilable? | |
22105 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22106 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22107 | cat >conftest.$ac_ext <<_ACEOF | |
22108 | /* confdefs.h. */ | |
22109 | _ACEOF | |
22110 | cat confdefs.h >>conftest.$ac_ext | |
22111 | cat >>conftest.$ac_ext <<_ACEOF | |
22112 | /* end confdefs.h. */ | |
22113 | $ac_includes_default | |
22114 | #include <windows.h> | |
22115 | _ACEOF | |
22116 | rm -f conftest.$ac_objext | |
22117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22119 | ac_status=$? |
ac1cb8d3 VS |
22120 | grep -v '^ *+' conftest.er1 >conftest.err |
22121 | rm -f conftest.er1 | |
22122 | cat conftest.err >&5 | |
a848cd7e SC |
22123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22124 | (exit $ac_status); } && | |
ac1cb8d3 VS |
22125 | { ac_try='test -z "$ac_c_werror_flag" |
22126 | || test ! -s conftest.err' | |
22127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22128 | (eval $ac_try) 2>&5 | |
22129 | ac_status=$? | |
22130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22131 | (exit $ac_status); }; } && | |
22132 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22134 | (eval $ac_try) 2>&5 | |
22135 | ac_status=$? | |
22136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22137 | (exit $ac_status); }; }; then | |
22138 | ac_header_compiler=yes | |
22139 | else | |
22140 | echo "$as_me: failed program was:" >&5 | |
22141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22142 | ||
22143 | ac_header_compiler=no | |
22144 | fi | |
ac1cb8d3 | 22145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22146 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22147 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22148 | ||
22149 | # Is the header present? | |
22150 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22151 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22152 | cat >conftest.$ac_ext <<_ACEOF | |
22153 | /* confdefs.h. */ | |
22154 | _ACEOF | |
22155 | cat confdefs.h >>conftest.$ac_ext | |
22156 | cat >>conftest.$ac_ext <<_ACEOF | |
22157 | /* end confdefs.h. */ | |
22158 | #include <windows.h> | |
22159 | _ACEOF | |
22160 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22161 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22162 | ac_status=$? | |
22163 | grep -v '^ *+' conftest.er1 >conftest.err | |
22164 | rm -f conftest.er1 | |
22165 | cat conftest.err >&5 | |
22166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22167 | (exit $ac_status); } >/dev/null; then | |
22168 | if test -s conftest.err; then | |
22169 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22170 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22171 | else |
22172 | ac_cpp_err= | |
22173 | fi | |
22174 | else | |
22175 | ac_cpp_err=yes | |
22176 | fi | |
22177 | if test -z "$ac_cpp_err"; then | |
22178 | ac_header_preproc=yes | |
22179 | else | |
22180 | echo "$as_me: failed program was:" >&5 | |
22181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22182 | ||
22183 | ac_header_preproc=no | |
22184 | fi | |
22185 | rm -f conftest.err conftest.$ac_ext | |
22186 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22187 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22188 | ||
22189 | # So? What about this header? | |
ac1cb8d3 VS |
22190 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22191 | yes:no: ) | |
a848cd7e SC |
22192 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22193 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22194 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22195 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22196 | ac_header_preproc=yes | |
a848cd7e | 22197 | ;; |
ac1cb8d3 | 22198 | no:yes:* ) |
a848cd7e SC |
22199 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22200 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22201 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22202 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22203 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22204 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22205 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22206 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22207 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22208 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22209 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22210 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22211 | ( |
22212 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22213 | ## ----------------------------------------- ## |
22214 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22215 | ## ----------------------------------------- ## | |
a848cd7e SC |
22216 | _ASBOX |
22217 | ) | | |
22218 | sed "s/^/$as_me: WARNING: /" >&2 | |
22219 | ;; | |
22220 | esac | |
22221 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22222 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22223 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22225 | else | |
22226 | ac_cv_header_windows_h=$ac_header_preproc | |
22227 | fi | |
22228 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22229 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22230 | ||
22231 | fi | |
22232 | if test $ac_cv_header_windows_h = yes; then | |
22233 | : | |
22234 | else | |
22235 | ||
22236 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22237 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22238 | { (exit 1); exit 1; }; } | |
22239 | ||
22240 | fi | |
22241 | ||
22242 | ||
22243 | ||
22244 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22245 | ||
22246 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22247 | LIBS="$LIBS -loleacc" | |
22248 | fi | |
22249 | ||
22250 | case "${host}" in | |
22251 | *-*-cygwin* ) | |
22252 | LIBS="$LIBS -lkernel32 -luser32" | |
22253 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22254 | esac | |
22255 | ||
22256 | if test "$wxUSE_ODBC" = "sys" ; then | |
22257 | wxUSE_ODBC = "yes" | |
22258 | fi | |
22259 | if test "$wxUSE_ODBC" = "yes" ; then | |
22260 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22261 | cat >>confdefs.h <<\_ACEOF | |
22262 | #define wxUSE_ODBC 1 | |
22263 | _ACEOF | |
22264 | ||
22265 | fi | |
22266 | ||
22267 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22268 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22269 | ||
22270 | WIN32INSTALL=win32install | |
22271 | fi | |
22272 | ||
22273 | if test "$wxUSE_GUI" = "yes"; then | |
22274 | USE_GUI=1 | |
22275 | ||
22276 | GUI_TK_LIBRARY= | |
22277 | ||
22278 | WXGTK12= | |
22279 | WXGTK127= | |
22280 | WXGTK20= | |
22281 | WXGPE= | |
22282 | ||
22283 | if test "$wxUSE_MSW" = 1 ; then | |
22284 | TOOLKIT=MSW | |
22285 | GUIDIST=MSW_DIST | |
22286 | ||
22287 | case "${host}" in | |
22288 | *-*-mingw32* ) | |
22289 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22290 | esac | |
22291 | fi | |
22292 | ||
22293 | if test "$wxUSE_GTK" = 1; then | |
22294 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22295 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22296 | ||
22297 | gtk_version_cached=1 | |
22298 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22300 | else | |
22301 | ||
22302 | gtk_version_cached=0 | |
22303 | echo "$as_me:$LINENO: result: " >&5 | |
22304 | echo "${ECHO_T}" >&6 | |
22305 | ||
22306 | GTK_MODULES= | |
22307 | if test "$wxUSE_THREADS" = "yes"; then | |
22308 | GTK_MODULES=gthread | |
22309 | fi | |
22310 | ||
22311 | wx_cv_lib_gtk= | |
22312 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22313 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22314 | if test "${enable_gtktest+set}" = set; then | |
22315 | enableval="$enable_gtktest" | |
22316 | ||
22317 | else | |
22318 | enable_gtktest=yes | |
22319 | fi; | |
22320 | ||
22321 | pkg_config_args=gtk+-2.0 | |
22322 | for module in . $GTK_MODULES | |
22323 | do | |
22324 | case "$module" in | |
22325 | gthread) | |
22326 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22327 | ;; | |
22328 | esac | |
22329 | done | |
22330 | ||
22331 | no_gtk="" | |
22332 | ||
22333 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22334 | set dummy pkg-config; ac_word=$2 | |
22335 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22337 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22339 | else | |
22340 | case $PKG_CONFIG in | |
22341 | [\\/]* | ?:[\\/]*) | |
22342 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22343 | ;; | |
22344 | *) | |
22345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22346 | for as_dir in $PATH | |
22347 | do | |
22348 | IFS=$as_save_IFS | |
22349 | test -z "$as_dir" && as_dir=. | |
22350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22351 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22352 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22354 | break 2 | |
22355 | fi | |
22356 | done | |
22357 | done | |
22358 | ||
22359 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22360 | ;; | |
22361 | esac | |
22362 | fi | |
22363 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22364 | ||
22365 | if test -n "$PKG_CONFIG"; then | |
22366 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22367 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22368 | else | |
22369 | echo "$as_me:$LINENO: result: no" >&5 | |
22370 | echo "${ECHO_T}no" >&6 | |
22371 | fi | |
22372 | ||
22373 | ||
22374 | if test x$PKG_CONFIG != xno ; then | |
22375 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22376 | : | |
22377 | else | |
c2218763 | 22378 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22379 | no_gtk=yes |
22380 | PKG_CONFIG=no | |
22381 | fi | |
22382 | else | |
22383 | no_gtk=yes | |
22384 | fi | |
22385 | ||
22386 | min_gtk_version=2.0.0 | |
22387 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22388 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22389 | ||
22390 | if test x$PKG_CONFIG != xno ; then | |
22391 | ## don't try to run the test against uninstalled libtool libs | |
22392 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22393 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22394 | enable_gtktest=no | |
22395 | fi | |
22396 | ||
22397 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22398 | : | |
22399 | else | |
22400 | no_gtk=yes | |
22401 | fi | |
22402 | fi | |
22403 | ||
22404 | if test x"$no_gtk" = x ; then | |
22405 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22406 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22407 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22408 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22409 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22410 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22411 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22412 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22413 | if test "x$enable_gtktest" = "xyes" ; then | |
22414 | ac_save_CFLAGS="$CFLAGS" | |
22415 | ac_save_LIBS="$LIBS" | |
22416 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22417 | LIBS="$GTK_LIBS $LIBS" | |
22418 | rm -f conf.gtktest | |
22419 | if test "$cross_compiling" = yes; then | |
22420 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22421 | else | |
22422 | cat >conftest.$ac_ext <<_ACEOF | |
22423 | /* confdefs.h. */ | |
22424 | _ACEOF | |
22425 | cat confdefs.h >>conftest.$ac_ext | |
22426 | cat >>conftest.$ac_ext <<_ACEOF | |
22427 | /* end confdefs.h. */ | |
22428 | ||
22429 | #include <gtk/gtk.h> | |
22430 | #include <stdio.h> | |
22431 | #include <stdlib.h> | |
22432 | ||
22433 | int | |
22434 | main () | |
22435 | { | |
22436 | int major, minor, micro; | |
22437 | char *tmp_version; | |
22438 | ||
22439 | system ("touch conf.gtktest"); | |
22440 | ||
22441 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22442 | tmp_version = g_strdup("$min_gtk_version"); | |
22443 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22444 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22445 | exit(1); | |
22446 | } | |
22447 | ||
22448 | if ((gtk_major_version != $gtk_config_major_version) || | |
22449 | (gtk_minor_version != $gtk_config_minor_version) || | |
22450 | (gtk_micro_version != $gtk_config_micro_version)) | |
22451 | { | |
22452 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22453 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22454 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22455 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22456 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22457 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22458 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22459 | printf("*** required on your system.\n"); | |
22460 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22461 | printf("*** to point to the correct configuration files\n"); | |
22462 | } | |
22463 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22464 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22465 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22466 | { | |
22467 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22468 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22469 | printf("*** library (version %d.%d.%d)\n", | |
22470 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22471 | } | |
22472 | else | |
22473 | { | |
22474 | if ((gtk_major_version > major) || | |
22475 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22476 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22477 | { | |
22478 | return 0; | |
22479 | } | |
22480 | else | |
22481 | { | |
22482 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22483 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22484 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22485 | major, minor, micro); | |
22486 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22487 | printf("***\n"); | |
22488 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22489 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22490 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22491 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22492 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22493 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22494 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22495 | } | |
22496 | } | |
22497 | return 1; | |
22498 | } | |
22499 | ||
22500 | _ACEOF | |
22501 | rm -f conftest$ac_exeext | |
22502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22503 | (eval $ac_link) 2>&5 | |
22504 | ac_status=$? | |
22505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22506 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22508 | (eval $ac_try) 2>&5 | |
22509 | ac_status=$? | |
22510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22511 | (exit $ac_status); }; }; then | |
22512 | : | |
22513 | else | |
22514 | echo "$as_me: program exited with status $ac_status" >&5 | |
22515 | echo "$as_me: failed program was:" >&5 | |
22516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22517 | ||
22518 | ( exit $ac_status ) | |
22519 | no_gtk=yes | |
22520 | fi | |
ac1cb8d3 | 22521 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22522 | fi |
22523 | CFLAGS="$ac_save_CFLAGS" | |
22524 | LIBS="$ac_save_LIBS" | |
22525 | fi | |
22526 | fi | |
22527 | if test "x$no_gtk" = x ; then | |
22528 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22529 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22530 | wx_cv_lib_gtk=2.0 | |
22531 | else | |
22532 | echo "$as_me:$LINENO: result: no" >&5 | |
22533 | echo "${ECHO_T}no" >&6 | |
22534 | if test "$PKG_CONFIG" = "no" ; then | |
22535 | echo "*** A new enough version of pkg-config was not found." | |
22536 | echo "*** See http://pkgconfig.sourceforge.net" | |
22537 | else | |
22538 | if test -f conf.gtktest ; then | |
22539 | : | |
22540 | else | |
22541 | echo "*** Could not run GTK+ test program, checking why..." | |
22542 | ac_save_CFLAGS="$CFLAGS" | |
22543 | ac_save_LIBS="$LIBS" | |
22544 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22545 | LIBS="$LIBS $GTK_LIBS" | |
22546 | cat >conftest.$ac_ext <<_ACEOF | |
22547 | /* confdefs.h. */ | |
22548 | _ACEOF | |
22549 | cat confdefs.h >>conftest.$ac_ext | |
22550 | cat >>conftest.$ac_ext <<_ACEOF | |
22551 | /* end confdefs.h. */ | |
22552 | ||
22553 | #include <gtk/gtk.h> | |
22554 | #include <stdio.h> | |
22555 | ||
22556 | int | |
22557 | main () | |
22558 | { | |
22559 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22560 | ; | |
22561 | return 0; | |
22562 | } | |
22563 | _ACEOF | |
22564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22566 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22567 | ac_status=$? |
ac1cb8d3 VS |
22568 | grep -v '^ *+' conftest.er1 >conftest.err |
22569 | rm -f conftest.er1 | |
22570 | cat conftest.err >&5 | |
a848cd7e SC |
22571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22572 | (exit $ac_status); } && | |
ac1cb8d3 VS |
22573 | { ac_try='test -z "$ac_c_werror_flag" |
22574 | || test ! -s conftest.err' | |
22575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22576 | (eval $ac_try) 2>&5 | |
22577 | ac_status=$? | |
22578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22579 | (exit $ac_status); }; } && | |
22580 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22582 | (eval $ac_try) 2>&5 | |
22583 | ac_status=$? | |
22584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22585 | (exit $ac_status); }; }; then | |
22586 | echo "*** The test program compiled, but did not run. This usually means" | |
22587 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22588 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22589 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22590 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22591 | echo "*** is required on your system" | |
22592 | echo "***" | |
22593 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22594 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22595 | else | |
22596 | echo "$as_me: failed program was:" >&5 | |
22597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22598 | ||
22599 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22600 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22601 | fi | |
ac1cb8d3 VS |
22602 | rm -f conftest.err conftest.$ac_objext \ |
22603 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22604 | CFLAGS="$ac_save_CFLAGS" |
22605 | LIBS="$ac_save_LIBS" | |
22606 | fi | |
22607 | fi | |
22608 | GTK_CFLAGS="" | |
22609 | GTK_LIBS="" | |
22610 | : | |
22611 | fi | |
22612 | ||
22613 | ||
22614 | rm -f conf.gtktest | |
22615 | ||
22616 | else | |
22617 | ||
22618 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22619 | if test "${with_gtk_prefix+set}" = set; then | |
22620 | withval="$with_gtk_prefix" | |
22621 | gtk_config_prefix="$withval" | |
22622 | else | |
22623 | gtk_config_prefix="" | |
22624 | fi; | |
22625 | ||
22626 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22627 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22628 | withval="$with_gtk_exec_prefix" | |
22629 | gtk_config_exec_prefix="$withval" | |
22630 | else | |
22631 | gtk_config_exec_prefix="" | |
22632 | fi; | |
22633 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22634 | if test "${enable_gtktest+set}" = set; then | |
22635 | enableval="$enable_gtktest" | |
22636 | ||
22637 | else | |
22638 | enable_gtktest=yes | |
22639 | fi; | |
22640 | ||
22641 | for module in . $GTK_MODULES | |
22642 | do | |
22643 | case "$module" in | |
22644 | gthread) | |
22645 | gtk_config_args="$gtk_config_args gthread" | |
22646 | ;; | |
22647 | esac | |
22648 | done | |
22649 | ||
22650 | if test x$gtk_config_exec_prefix != x ; then | |
22651 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22652 | if test x${GTK_CONFIG+set} != xset ; then | |
22653 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22654 | fi | |
22655 | fi | |
22656 | if test x$gtk_config_prefix != x ; then | |
22657 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22658 | if test x${GTK_CONFIG+set} != xset ; then | |
22659 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22660 | fi | |
22661 | fi | |
22662 | ||
22663 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22664 | set dummy gtk-config; ac_word=$2 | |
22665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22667 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22669 | else | |
22670 | case $GTK_CONFIG in | |
22671 | [\\/]* | ?:[\\/]*) | |
22672 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22673 | ;; | |
22674 | *) | |
22675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22676 | for as_dir in $PATH | |
22677 | do | |
22678 | IFS=$as_save_IFS | |
22679 | test -z "$as_dir" && as_dir=. | |
22680 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22681 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22682 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22684 | break 2 | |
22685 | fi | |
22686 | done | |
22687 | done | |
22688 | ||
22689 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22690 | ;; | |
22691 | esac | |
22692 | fi | |
22693 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22694 | ||
22695 | if test -n "$GTK_CONFIG"; then | |
22696 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22697 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22698 | else | |
22699 | echo "$as_me:$LINENO: result: no" >&5 | |
22700 | echo "${ECHO_T}no" >&6 | |
22701 | fi | |
22702 | ||
22703 | min_gtk_version=1.2.7 | |
22704 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22705 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22706 | no_gtk="" | |
22707 | if test "$GTK_CONFIG" = "no" ; then | |
22708 | no_gtk=yes | |
22709 | else | |
22710 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22711 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22712 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22713 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22714 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22715 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22716 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22717 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22718 | if test "x$enable_gtktest" = "xyes" ; then | |
22719 | ac_save_CFLAGS="$CFLAGS" | |
22720 | ac_save_LIBS="$LIBS" | |
22721 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22722 | LIBS="$GTK_LIBS $LIBS" | |
22723 | rm -f conf.gtktest | |
22724 | if test "$cross_compiling" = yes; then | |
22725 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22726 | else | |
22727 | cat >conftest.$ac_ext <<_ACEOF | |
22728 | /* confdefs.h. */ | |
22729 | _ACEOF | |
22730 | cat confdefs.h >>conftest.$ac_ext | |
22731 | cat >>conftest.$ac_ext <<_ACEOF | |
22732 | /* end confdefs.h. */ | |
22733 | ||
22734 | #include <gtk/gtk.h> | |
22735 | #include <stdio.h> | |
22736 | #include <stdlib.h> | |
22737 | ||
22738 | int | |
22739 | main () | |
22740 | { | |
22741 | int major, minor, micro; | |
22742 | char *tmp_version; | |
22743 | ||
22744 | system ("touch conf.gtktest"); | |
22745 | ||
22746 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22747 | tmp_version = g_strdup("$min_gtk_version"); | |
22748 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22749 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22750 | exit(1); | |
22751 | } | |
22752 | ||
22753 | if ((gtk_major_version != $gtk_config_major_version) || | |
22754 | (gtk_minor_version != $gtk_config_minor_version) || | |
22755 | (gtk_micro_version != $gtk_config_micro_version)) | |
22756 | { | |
22757 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22758 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22759 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22760 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22761 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22762 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22763 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22764 | printf("*** required on your system.\n"); | |
22765 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22766 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22767 | printf("*** before re-running configure\n"); | |
22768 | } | |
22769 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22770 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22771 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22772 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22773 | { | |
22774 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22775 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22776 | printf("*** library (version %d.%d.%d)\n", | |
22777 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22778 | } | |
22779 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22780 | else | |
22781 | { | |
22782 | if ((gtk_major_version > major) || | |
22783 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22784 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22785 | { | |
22786 | return 0; | |
22787 | } | |
22788 | else | |
22789 | { | |
22790 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22791 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22792 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22793 | major, minor, micro); | |
22794 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22795 | printf("***\n"); | |
22796 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22797 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22798 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22799 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22800 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22801 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22802 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22803 | } | |
22804 | } | |
22805 | return 1; | |
22806 | } | |
22807 | ||
22808 | _ACEOF | |
22809 | rm -f conftest$ac_exeext | |
22810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22811 | (eval $ac_link) 2>&5 | |
22812 | ac_status=$? | |
22813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22816 | (eval $ac_try) 2>&5 | |
22817 | ac_status=$? | |
22818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22819 | (exit $ac_status); }; }; then | |
22820 | : | |
22821 | else | |
22822 | echo "$as_me: program exited with status $ac_status" >&5 | |
22823 | echo "$as_me: failed program was:" >&5 | |
22824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22825 | ||
22826 | ( exit $ac_status ) | |
22827 | no_gtk=yes | |
22828 | fi | |
ac1cb8d3 | 22829 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22830 | fi |
22831 | CFLAGS="$ac_save_CFLAGS" | |
22832 | LIBS="$ac_save_LIBS" | |
22833 | fi | |
22834 | fi | |
22835 | if test "x$no_gtk" = x ; then | |
22836 | echo "$as_me:$LINENO: result: yes" >&5 | |
22837 | echo "${ECHO_T}yes" >&6 | |
22838 | wx_cv_lib_gtk=1.2.7 | |
22839 | else | |
22840 | echo "$as_me:$LINENO: result: no" >&5 | |
22841 | echo "${ECHO_T}no" >&6 | |
22842 | if test "$GTK_CONFIG" = "no" ; then | |
22843 | echo "*** The gtk-config script installed by GTK could not be found" | |
22844 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22845 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22846 | echo "*** full path to gtk-config." | |
22847 | else | |
22848 | if test -f conf.gtktest ; then | |
22849 | : | |
22850 | else | |
22851 | echo "*** Could not run GTK test program, checking why..." | |
22852 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22853 | LIBS="$LIBS $GTK_LIBS" | |
22854 | cat >conftest.$ac_ext <<_ACEOF | |
22855 | /* confdefs.h. */ | |
22856 | _ACEOF | |
22857 | cat confdefs.h >>conftest.$ac_ext | |
22858 | cat >>conftest.$ac_ext <<_ACEOF | |
22859 | /* end confdefs.h. */ | |
22860 | ||
22861 | #include <gtk/gtk.h> | |
22862 | #include <stdio.h> | |
22863 | ||
22864 | int | |
22865 | main () | |
22866 | { | |
22867 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22868 | ; | |
22869 | return 0; | |
22870 | } | |
22871 | _ACEOF | |
22872 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22874 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22875 | ac_status=$? |
ac1cb8d3 VS |
22876 | grep -v '^ *+' conftest.er1 >conftest.err |
22877 | rm -f conftest.er1 | |
22878 | cat conftest.err >&5 | |
a848cd7e SC |
22879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22880 | (exit $ac_status); } && | |
ac1cb8d3 VS |
22881 | { ac_try='test -z "$ac_c_werror_flag" |
22882 | || test ! -s conftest.err' | |
22883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22884 | (eval $ac_try) 2>&5 | |
22885 | ac_status=$? | |
22886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22887 | (exit $ac_status); }; } && | |
22888 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22890 | (eval $ac_try) 2>&5 | |
22891 | ac_status=$? | |
22892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22893 | (exit $ac_status); }; }; then | |
22894 | echo "*** The test program compiled, but did not run. This usually means" | |
22895 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22896 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22897 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22898 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22899 | echo "*** is required on your system" | |
22900 | echo "***" | |
22901 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22902 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22903 | echo "***" | |
22904 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22905 | echo "*** came with the system with the command" | |
22906 | echo "***" | |
22907 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
22908 | else | |
22909 | echo "$as_me: failed program was:" >&5 | |
22910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22911 | ||
22912 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22913 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
22914 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
22915 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
22916 | fi | |
ac1cb8d3 VS |
22917 | rm -f conftest.err conftest.$ac_objext \ |
22918 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22919 | CFLAGS="$ac_save_CFLAGS" |
22920 | LIBS="$ac_save_LIBS" | |
22921 | fi | |
22922 | fi | |
22923 | GTK_CFLAGS="" | |
22924 | GTK_LIBS="" | |
22925 | : | |
22926 | fi | |
22927 | ||
22928 | ||
22929 | rm -f conf.gtktest | |
22930 | ||
22931 | ||
22932 | if test -z "$wx_cv_lib_gtk"; then | |
22933 | ||
22934 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22935 | if test "${with_gtk_prefix+set}" = set; then | |
22936 | withval="$with_gtk_prefix" | |
22937 | gtk_config_prefix="$withval" | |
22938 | else | |
22939 | gtk_config_prefix="" | |
22940 | fi; | |
22941 | ||
22942 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22943 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22944 | withval="$with_gtk_exec_prefix" | |
22945 | gtk_config_exec_prefix="$withval" | |
22946 | else | |
22947 | gtk_config_exec_prefix="" | |
22948 | fi; | |
22949 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22950 | if test "${enable_gtktest+set}" = set; then | |
22951 | enableval="$enable_gtktest" | |
22952 | ||
22953 | else | |
22954 | enable_gtktest=yes | |
22955 | fi; | |
22956 | ||
22957 | for module in . $GTK_MODULES | |
22958 | do | |
22959 | case "$module" in | |
22960 | gthread) | |
22961 | gtk_config_args="$gtk_config_args gthread" | |
22962 | ;; | |
22963 | esac | |
22964 | done | |
22965 | ||
22966 | if test x$gtk_config_exec_prefix != x ; then | |
22967 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22968 | if test x${GTK_CONFIG+set} != xset ; then | |
22969 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22970 | fi | |
22971 | fi | |
22972 | if test x$gtk_config_prefix != x ; then | |
22973 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22974 | if test x${GTK_CONFIG+set} != xset ; then | |
22975 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22976 | fi | |
22977 | fi | |
22978 | ||
22979 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22980 | set dummy gtk-config; ac_word=$2 | |
22981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22983 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22985 | else | |
22986 | case $GTK_CONFIG in | |
22987 | [\\/]* | ?:[\\/]*) | |
22988 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22989 | ;; | |
22990 | *) | |
22991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22992 | for as_dir in $PATH | |
22993 | do | |
22994 | IFS=$as_save_IFS | |
22995 | test -z "$as_dir" && as_dir=. | |
22996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22998 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23000 | break 2 | |
23001 | fi | |
23002 | done | |
23003 | done | |
23004 | ||
23005 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23006 | ;; | |
23007 | esac | |
23008 | fi | |
23009 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23010 | ||
23011 | if test -n "$GTK_CONFIG"; then | |
23012 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23013 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23014 | else | |
23015 | echo "$as_me:$LINENO: result: no" >&5 | |
23016 | echo "${ECHO_T}no" >&6 | |
23017 | fi | |
23018 | ||
23019 | min_gtk_version=1.2.3 | |
23020 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23021 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23022 | no_gtk="" | |
23023 | if test "$GTK_CONFIG" = "no" ; then | |
23024 | no_gtk=yes | |
23025 | else | |
23026 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23027 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23028 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23029 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23030 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23031 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23032 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23033 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23034 | if test "x$enable_gtktest" = "xyes" ; then | |
23035 | ac_save_CFLAGS="$CFLAGS" | |
23036 | ac_save_LIBS="$LIBS" | |
23037 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23038 | LIBS="$GTK_LIBS $LIBS" | |
23039 | rm -f conf.gtktest | |
23040 | if test "$cross_compiling" = yes; then | |
23041 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23042 | else | |
23043 | cat >conftest.$ac_ext <<_ACEOF | |
23044 | /* confdefs.h. */ | |
23045 | _ACEOF | |
23046 | cat confdefs.h >>conftest.$ac_ext | |
23047 | cat >>conftest.$ac_ext <<_ACEOF | |
23048 | /* end confdefs.h. */ | |
23049 | ||
23050 | #include <gtk/gtk.h> | |
23051 | #include <stdio.h> | |
23052 | #include <stdlib.h> | |
23053 | ||
23054 | int | |
23055 | main () | |
23056 | { | |
23057 | int major, minor, micro; | |
23058 | char *tmp_version; | |
23059 | ||
23060 | system ("touch conf.gtktest"); | |
23061 | ||
23062 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23063 | tmp_version = g_strdup("$min_gtk_version"); | |
23064 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23065 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23066 | exit(1); | |
23067 | } | |
23068 | ||
23069 | if ((gtk_major_version != $gtk_config_major_version) || | |
23070 | (gtk_minor_version != $gtk_config_minor_version) || | |
23071 | (gtk_micro_version != $gtk_config_micro_version)) | |
23072 | { | |
23073 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23074 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23075 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23076 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23077 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23078 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23079 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23080 | printf("*** required on your system.\n"); | |
23081 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23082 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23083 | printf("*** before re-running configure\n"); | |
23084 | } | |
23085 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23086 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23087 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23088 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23089 | { | |
23090 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23091 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23092 | printf("*** library (version %d.%d.%d)\n", | |
23093 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23094 | } | |
23095 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23096 | else | |
23097 | { | |
23098 | if ((gtk_major_version > major) || | |
23099 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23100 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23101 | { | |
23102 | return 0; | |
23103 | } | |
23104 | else | |
23105 | { | |
23106 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23107 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23108 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23109 | major, minor, micro); | |
23110 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23111 | printf("***\n"); | |
23112 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23113 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23114 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23115 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23116 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23117 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23118 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23119 | } | |
23120 | } | |
23121 | return 1; | |
23122 | } | |
23123 | ||
23124 | _ACEOF | |
23125 | rm -f conftest$ac_exeext | |
23126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23127 | (eval $ac_link) 2>&5 | |
23128 | ac_status=$? | |
23129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23132 | (eval $ac_try) 2>&5 | |
23133 | ac_status=$? | |
23134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23135 | (exit $ac_status); }; }; then | |
23136 | : | |
23137 | else | |
23138 | echo "$as_me: program exited with status $ac_status" >&5 | |
23139 | echo "$as_me: failed program was:" >&5 | |
23140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23141 | ||
23142 | ( exit $ac_status ) | |
23143 | no_gtk=yes | |
23144 | fi | |
ac1cb8d3 | 23145 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23146 | fi |
23147 | CFLAGS="$ac_save_CFLAGS" | |
23148 | LIBS="$ac_save_LIBS" | |
23149 | fi | |
23150 | fi | |
23151 | if test "x$no_gtk" = x ; then | |
23152 | echo "$as_me:$LINENO: result: yes" >&5 | |
23153 | echo "${ECHO_T}yes" >&6 | |
23154 | wx_cv_lib_gtk=1.2.3 | |
23155 | else | |
23156 | echo "$as_me:$LINENO: result: no" >&5 | |
23157 | echo "${ECHO_T}no" >&6 | |
23158 | if test "$GTK_CONFIG" = "no" ; then | |
23159 | echo "*** The gtk-config script installed by GTK could not be found" | |
23160 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23161 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23162 | echo "*** full path to gtk-config." | |
23163 | else | |
23164 | if test -f conf.gtktest ; then | |
23165 | : | |
23166 | else | |
23167 | echo "*** Could not run GTK test program, checking why..." | |
23168 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23169 | LIBS="$LIBS $GTK_LIBS" | |
23170 | cat >conftest.$ac_ext <<_ACEOF | |
23171 | /* confdefs.h. */ | |
23172 | _ACEOF | |
23173 | cat confdefs.h >>conftest.$ac_ext | |
23174 | cat >>conftest.$ac_ext <<_ACEOF | |
23175 | /* end confdefs.h. */ | |
23176 | ||
23177 | #include <gtk/gtk.h> | |
23178 | #include <stdio.h> | |
23179 | ||
23180 | int | |
23181 | main () | |
23182 | { | |
23183 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23184 | ; | |
23185 | return 0; | |
23186 | } | |
23187 | _ACEOF | |
23188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23190 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23191 | ac_status=$? |
ac1cb8d3 VS |
23192 | grep -v '^ *+' conftest.er1 >conftest.err |
23193 | rm -f conftest.er1 | |
23194 | cat conftest.err >&5 | |
a848cd7e SC |
23195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23196 | (exit $ac_status); } && | |
ac1cb8d3 VS |
23197 | { ac_try='test -z "$ac_c_werror_flag" |
23198 | || test ! -s conftest.err' | |
23199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23200 | (eval $ac_try) 2>&5 | |
23201 | ac_status=$? | |
23202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23203 | (exit $ac_status); }; } && | |
23204 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23206 | (eval $ac_try) 2>&5 | |
23207 | ac_status=$? | |
23208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23209 | (exit $ac_status); }; }; then | |
23210 | echo "*** The test program compiled, but did not run. This usually means" | |
23211 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23212 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23213 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23214 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23215 | echo "*** is required on your system" | |
23216 | echo "***" | |
23217 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23218 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23219 | echo "***" | |
23220 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23221 | echo "*** came with the system with the command" | |
23222 | echo "***" | |
23223 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23224 | else | |
23225 | echo "$as_me: failed program was:" >&5 | |
23226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23227 | ||
23228 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23229 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23230 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23231 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23232 | fi | |
ac1cb8d3 VS |
23233 | rm -f conftest.err conftest.$ac_objext \ |
23234 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23235 | CFLAGS="$ac_save_CFLAGS" |
23236 | LIBS="$ac_save_LIBS" | |
23237 | fi | |
23238 | fi | |
23239 | GTK_CFLAGS="" | |
23240 | GTK_LIBS="" | |
23241 | : | |
23242 | fi | |
23243 | ||
23244 | ||
23245 | rm -f conf.gtktest | |
23246 | ||
23247 | fi | |
23248 | fi | |
23249 | ||
23250 | if test -z "$wx_cv_lib_gtk"; then | |
23251 | wx_cv_lib_gtk=none | |
23252 | else | |
23253 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23254 | wx_cv_libs_gtk=$GTK_LIBS | |
23255 | fi | |
23256 | ||
23257 | ||
23258 | fi | |
23259 | ||
23260 | ||
23261 | if test "$gtk_version_cached" = 1; then | |
23262 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23263 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23264 | fi | |
23265 | ||
23266 | case "$wx_cv_lib_gtk" in | |
23267 | 2.0) WXGTK20=1 | |
23268 | TOOLKIT_VERSION=2 | |
23269 | ;; | |
23270 | 1.2.7) WXGTK127=1 | |
23271 | WXGTK12=1 | |
23272 | ;; | |
23273 | 1.2.3) WXGTK12=1 | |
23274 | ;; | |
23275 | *) { { echo "$as_me:$LINENO: error: | |
23276 | Please check that gtk-config is in path, the directory | |
23277 | where GTK+ libraries are installed (returned by | |
23278 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23279 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23280 | " >&5 | |
23281 | echo "$as_me: error: | |
23282 | Please check that gtk-config is in path, the directory | |
23283 | where GTK+ libraries are installed (returned by | |
23284 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23285 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23286 | " >&2;} | |
23287 | { (exit 1); exit 1; }; } | |
23288 | ;; | |
23289 | esac | |
23290 | ||
23291 | if test "$WXGTK20" = 1; then | |
23292 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
23293 | ||
23294 | succeeded=no | |
23295 | ||
23296 | if test -z "$PKG_CONFIG"; then | |
23297 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23298 | set dummy pkg-config; ac_word=$2 | |
23299 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23301 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23303 | else | |
23304 | case $PKG_CONFIG in | |
23305 | [\\/]* | ?:[\\/]*) | |
23306 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23307 | ;; | |
23308 | *) | |
23309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23310 | for as_dir in $PATH | |
23311 | do | |
23312 | IFS=$as_save_IFS | |
23313 | test -z "$as_dir" && as_dir=. | |
23314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23315 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23316 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23318 | break 2 | |
23319 | fi | |
23320 | done | |
23321 | done | |
23322 | ||
23323 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23324 | ;; | |
23325 | esac | |
23326 | fi | |
23327 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23328 | ||
23329 | if test -n "$PKG_CONFIG"; then | |
23330 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23331 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23332 | else | |
23333 | echo "$as_me:$LINENO: result: no" >&5 | |
23334 | echo "${ECHO_T}no" >&6 | |
23335 | fi | |
23336 | ||
23337 | fi | |
23338 | ||
23339 | if test "$PKG_CONFIG" = "no" ; then | |
23340 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23341 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23342 | echo "*** to the full path to pkg-config." | |
23343 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23344 | else | |
23345 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23346 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23347 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
23348 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
23349 | ||
23350 | if $PKG_CONFIG --exists "pangoft2" ; then | |
23351 | echo "$as_me:$LINENO: result: yes" >&5 | |
23352 | echo "${ECHO_T}yes" >&6 | |
23353 | succeeded=yes | |
23354 | ||
23355 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
23356 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
23357 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
23358 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
23359 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
23360 | ||
23361 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
23362 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
23363 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
23364 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
23365 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
23366 | else | |
23367 | PANGOFT2_CFLAGS="" | |
23368 | PANGOFT2_LIBS="" | |
23369 | ## If we have a custom action on failure, don't print errors, but | |
23370 | ## do set a variable so people can do so. | |
23371 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
23372 | ||
23373 | fi | |
23374 | ||
23375 | ||
23376 | ||
23377 | else | |
23378 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23379 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23380 | fi | |
23381 | fi | |
23382 | ||
23383 | if test $succeeded = yes; then | |
23384 | ||
23385 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
23386 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
23387 | ||
23388 | else | |
23389 | ||
23390 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23391 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
23392 | wxUSE_PRINTING_ARCHITECTURE="no" | |
23393 | ||
23394 | ||
23395 | fi | |
23396 | ||
23397 | fi | |
304205f1 VS |
23398 | |
23399 | save_CFLAGS="$CFLAGS" | |
23400 | save_LIBS="$LIBS" | |
23401 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23402 | LIBS="$LIBS $GTK_LIBS" | |
23403 | ||
23404 | for ac_func in pango_font_family_is_monospace | |
23405 | do | |
23406 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23407 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23408 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23409 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23411 | else | |
23412 | cat >conftest.$ac_ext <<_ACEOF | |
23413 | /* confdefs.h. */ | |
23414 | _ACEOF | |
23415 | cat confdefs.h >>conftest.$ac_ext | |
23416 | cat >>conftest.$ac_ext <<_ACEOF | |
23417 | /* end confdefs.h. */ | |
23418 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23419 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23420 | #define $ac_func innocuous_$ac_func | |
23421 | ||
23422 | /* System header to define __stub macros and hopefully few prototypes, | |
23423 | which can conflict with char $ac_func (); below. | |
23424 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23425 | <limits.h> exists even on freestanding compilers. */ | |
23426 | ||
23427 | #ifdef __STDC__ | |
23428 | # include <limits.h> | |
23429 | #else | |
23430 | # include <assert.h> | |
23431 | #endif | |
23432 | ||
23433 | #undef $ac_func | |
23434 | ||
23435 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23436 | #ifdef __cplusplus | |
23437 | extern "C" | |
23438 | { | |
23439 | #endif | |
23440 | /* We use char because int might match the return type of a gcc2 | |
23441 | builtin and then its argument prototype would still apply. */ | |
23442 | char $ac_func (); | |
23443 | /* The GNU C library defines this for functions which it implements | |
23444 | to always fail with ENOSYS. Some functions are actually named | |
23445 | something starting with __ and the normal name is an alias. */ | |
23446 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23447 | choke me | |
23448 | #else | |
23449 | char (*f) () = $ac_func; | |
23450 | #endif | |
23451 | #ifdef __cplusplus | |
23452 | } | |
23453 | #endif | |
23454 | ||
23455 | int | |
23456 | main () | |
23457 | { | |
23458 | return f != $ac_func; | |
23459 | ; | |
23460 | return 0; | |
23461 | } | |
23462 | _ACEOF | |
23463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23465 | (eval $ac_link) 2>conftest.er1 | |
23466 | ac_status=$? | |
23467 | grep -v '^ *+' conftest.er1 >conftest.err | |
23468 | rm -f conftest.er1 | |
23469 | cat conftest.err >&5 | |
23470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23471 | (exit $ac_status); } && | |
23472 | { ac_try='test -z "$ac_c_werror_flag" | |
23473 | || test ! -s conftest.err' | |
23474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23475 | (eval $ac_try) 2>&5 | |
23476 | ac_status=$? | |
23477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23478 | (exit $ac_status); }; } && | |
23479 | { ac_try='test -s conftest$ac_exeext' | |
23480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23481 | (eval $ac_try) 2>&5 | |
23482 | ac_status=$? | |
23483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23484 | (exit $ac_status); }; }; then | |
23485 | eval "$as_ac_var=yes" | |
23486 | else | |
23487 | echo "$as_me: failed program was:" >&5 | |
23488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23489 | ||
23490 | eval "$as_ac_var=no" | |
23491 | fi | |
23492 | rm -f conftest.err conftest.$ac_objext \ | |
23493 | conftest$ac_exeext conftest.$ac_ext | |
23494 | fi | |
23495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23496 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23497 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23498 | cat >>confdefs.h <<_ACEOF | |
23499 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23500 | _ACEOF | |
23501 | ||
23502 | fi | |
23503 | done | |
23504 | ||
23505 | CFLAGS="$save_CFLAGS" | |
23506 | LIBS="$save_LIBS" | |
a848cd7e SC |
23507 | else |
23508 | if test "$wxUSE_UNICODE" = "yes"; then | |
23509 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23510 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23511 | wxUSE_UNICODE=no | |
23512 | fi | |
23513 | fi | |
23514 | ||
23515 | if test "$USE_DARWIN" != 1; then | |
23516 | ||
23517 | for ac_func in poll | |
23518 | do | |
23519 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23520 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23521 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23522 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23524 | else | |
23525 | cat >conftest.$ac_ext <<_ACEOF | |
23526 | /* confdefs.h. */ | |
23527 | _ACEOF | |
23528 | cat confdefs.h >>conftest.$ac_ext | |
23529 | cat >>conftest.$ac_ext <<_ACEOF | |
23530 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23531 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23533 | #define $ac_func innocuous_$ac_func | |
23534 | ||
a848cd7e SC |
23535 | /* System header to define __stub macros and hopefully few prototypes, |
23536 | which can conflict with char $ac_func (); below. | |
23537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23538 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23539 | |
a848cd7e SC |
23540 | #ifdef __STDC__ |
23541 | # include <limits.h> | |
23542 | #else | |
23543 | # include <assert.h> | |
23544 | #endif | |
ac1cb8d3 VS |
23545 | |
23546 | #undef $ac_func | |
23547 | ||
a848cd7e SC |
23548 | /* Override any gcc2 internal prototype to avoid an error. */ |
23549 | #ifdef __cplusplus | |
23550 | extern "C" | |
23551 | { | |
23552 | #endif | |
23553 | /* We use char because int might match the return type of a gcc2 | |
23554 | builtin and then its argument prototype would still apply. */ | |
23555 | char $ac_func (); | |
23556 | /* The GNU C library defines this for functions which it implements | |
23557 | to always fail with ENOSYS. Some functions are actually named | |
23558 | something starting with __ and the normal name is an alias. */ | |
23559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23560 | choke me | |
23561 | #else | |
23562 | char (*f) () = $ac_func; | |
23563 | #endif | |
23564 | #ifdef __cplusplus | |
23565 | } | |
23566 | #endif | |
23567 | ||
23568 | int | |
23569 | main () | |
23570 | { | |
23571 | return f != $ac_func; | |
23572 | ; | |
23573 | return 0; | |
23574 | } | |
23575 | _ACEOF | |
23576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23578 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23579 | ac_status=$? |
ac1cb8d3 VS |
23580 | grep -v '^ *+' conftest.er1 >conftest.err |
23581 | rm -f conftest.er1 | |
23582 | cat conftest.err >&5 | |
a848cd7e SC |
23583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23584 | (exit $ac_status); } && | |
ac1cb8d3 VS |
23585 | { ac_try='test -z "$ac_c_werror_flag" |
23586 | || test ! -s conftest.err' | |
23587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23588 | (eval $ac_try) 2>&5 | |
23589 | ac_status=$? | |
23590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23591 | (exit $ac_status); }; } && | |
23592 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23594 | (eval $ac_try) 2>&5 | |
23595 | ac_status=$? | |
23596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23597 | (exit $ac_status); }; }; then | |
23598 | eval "$as_ac_var=yes" | |
23599 | else | |
23600 | echo "$as_me: failed program was:" >&5 | |
23601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23602 | ||
23603 | eval "$as_ac_var=no" | |
23604 | fi | |
ac1cb8d3 VS |
23605 | rm -f conftest.err conftest.$ac_objext \ |
23606 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23607 | fi |
23608 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23609 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23610 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23611 | cat >>confdefs.h <<_ACEOF | |
23612 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23613 | _ACEOF | |
23614 | ||
23615 | fi | |
23616 | done | |
23617 | ||
23618 | fi | |
23619 | ||
23620 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23621 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23622 | ||
23623 | AFMINSTALL=afminstall | |
23624 | TOOLKIT=GTK | |
23625 | GUIDIST=GTK_DIST | |
23626 | ||
23627 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23628 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23629 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23631 | else | |
23632 | ac_check_lib_save_LIBS=$LIBS | |
23633 | LIBS="-lgdk $LIBS" | |
23634 | cat >conftest.$ac_ext <<_ACEOF | |
23635 | /* confdefs.h. */ | |
23636 | _ACEOF | |
23637 | cat confdefs.h >>conftest.$ac_ext | |
23638 | cat >>conftest.$ac_ext <<_ACEOF | |
23639 | /* end confdefs.h. */ | |
23640 | ||
23641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23642 | #ifdef __cplusplus | |
23643 | extern "C" | |
23644 | #endif | |
23645 | /* We use char because int might match the return type of a gcc2 | |
23646 | builtin and then its argument prototype would still apply. */ | |
23647 | char gdk_im_open (); | |
23648 | int | |
23649 | main () | |
23650 | { | |
23651 | gdk_im_open (); | |
23652 | ; | |
23653 | return 0; | |
23654 | } | |
23655 | _ACEOF | |
23656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23658 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23659 | ac_status=$? |
ac1cb8d3 VS |
23660 | grep -v '^ *+' conftest.er1 >conftest.err |
23661 | rm -f conftest.er1 | |
23662 | cat conftest.err >&5 | |
a848cd7e SC |
23663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23664 | (exit $ac_status); } && | |
ac1cb8d3 VS |
23665 | { ac_try='test -z "$ac_c_werror_flag" |
23666 | || test ! -s conftest.err' | |
23667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23668 | (eval $ac_try) 2>&5 | |
23669 | ac_status=$? | |
23670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23671 | (exit $ac_status); }; } && | |
23672 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23674 | (eval $ac_try) 2>&5 | |
23675 | ac_status=$? | |
23676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23677 | (exit $ac_status); }; }; then | |
23678 | ac_cv_lib_gdk_gdk_im_open=yes | |
23679 | else | |
23680 | echo "$as_me: failed program was:" >&5 | |
23681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23682 | ||
23683 | ac_cv_lib_gdk_gdk_im_open=no | |
23684 | fi | |
ac1cb8d3 VS |
23685 | rm -f conftest.err conftest.$ac_objext \ |
23686 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23687 | LIBS=$ac_check_lib_save_LIBS |
23688 | fi | |
23689 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23690 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23691 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23692 | cat >>confdefs.h <<\_ACEOF | |
23693 | #define HAVE_XIM 1 | |
23694 | _ACEOF | |
23695 | ||
23696 | fi | |
23697 | ||
23698 | ||
23699 | ||
23700 | if test "$wxUSE_GPE" = "yes"; then | |
23701 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23702 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23703 | ||
23704 | ac_find_libraries= | |
23705 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23706 | do | |
23707 | for ac_extension in a so sl dylib; do | |
23708 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23709 | ac_find_libraries=$ac_dir | |
23710 | break 2 | |
23711 | fi | |
23712 | done | |
23713 | done | |
23714 | ||
23715 | if test "$ac_find_libraries" != "" ; then | |
23716 | ||
23717 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23718 | result=$? | |
23719 | if test $result = 0; then | |
23720 | ac_path_to_link="" | |
23721 | else | |
23722 | ac_path_to_link=" -L$ac_find_libraries" | |
23723 | fi | |
23724 | ||
23725 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23726 | WXGPE=1 | |
23727 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23728 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23729 | else | |
23730 | echo "$as_me:$LINENO: result: not found" >&5 | |
23731 | echo "${ECHO_T}not found" >&6 | |
23732 | fi | |
23733 | ||
23734 | fi | |
23735 | fi | |
23736 | ||
23737 | if test "$wxUSE_MGL" = 1; then | |
23738 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23739 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23740 | if test "x$MGL_ROOT" = x ; then | |
23741 | echo "$as_me:$LINENO: result: not found" >&5 | |
23742 | echo "${ECHO_T}not found" >&6 | |
23743 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23744 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23745 | { (exit 1); exit 1; }; } | |
23746 | else | |
23747 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
23748 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
23749 | fi | |
23750 | ||
23751 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
23752 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
23753 | case "${host}" in | |
23754 | *-*-linux* ) | |
23755 | if test "x$wxUSE_SHARED" = xyes ; then | |
23756 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
23757 | else | |
23758 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
23759 | fi | |
23760 | ;; | |
23761 | *-pc-msdosdjgpp ) | |
23762 | mgl_os_candidates="dos32/dj2" | |
23763 | ;; | |
23764 | *) | |
23765 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
23766 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23767 | { (exit 1); exit 1; }; } | |
23768 | esac | |
23769 | ||
23770 | mgl_lib_type="" | |
23771 | mgl_os="" | |
23772 | ||
23773 | for mgl_os_i in $mgl_os_candidates ; do | |
23774 | if test "x$mgl_os" = x ; then | |
23775 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23776 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23777 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23778 | mgl_lib_type=debug | |
23779 | mgl_os=$mgl_os_i | |
23780 | fi | |
23781 | fi | |
23782 | if test "x$mgl_lib_type" = x ; then | |
23783 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23784 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23785 | mgl_lib_type=release | |
23786 | mgl_os=$mgl_os_i | |
23787 | fi | |
23788 | fi | |
23789 | fi | |
23790 | done | |
23791 | ||
23792 | if test "x$mgl_os" = x ; then | |
23793 | echo "$as_me:$LINENO: result: not found" >&5 | |
23794 | echo "${ECHO_T}not found" >&6 | |
23795 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23796 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23797 | { (exit 1); exit 1; }; } | |
23798 | fi | |
23799 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
23800 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
23801 | ||
23802 | wxUSE_UNIVERSAL="yes" | |
23803 | ||
23804 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
23805 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23806 | ||
23807 | AFMINSTALL=afminstall | |
23808 | TOOLKIT=MGL | |
23809 | GUIDIST=MGL_DIST | |
23810 | fi | |
23811 | ||
23812 | if test "$wxUSE_MICROWIN" = 1; then | |
23813 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
23814 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
23815 | if test "x$MICROWINDOWS" = x ; then | |
23816 | echo "$as_me:$LINENO: result: not found" >&5 | |
23817 | echo "${ECHO_T}not found" >&6 | |
23818 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23819 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23820 | { (exit 1); exit 1; }; } | |
23821 | else | |
23822 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
23823 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
23824 | fi | |
23825 | ||
23826 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
23827 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
23828 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
23829 | else | |
23830 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
23831 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23832 | { (exit 1); exit 1; }; } | |
23833 | fi | |
23834 | ||
23835 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
23836 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23837 | ||
23838 | wxUSE_UNIVERSAL="yes" | |
23839 | ||
23840 | AFMINSTALL=afminstall | |
23841 | TOOLKIT=MICROWIN | |
23842 | GUIDIST=MICROWIN_DIST | |
23843 | ||
23844 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
23845 | fi | |
23846 | ||
74b84332 VS |
23847 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
23848 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
23849 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
23850 | ||
23851 | ||
23852 | # Check whether --with-x or --without-x was given. | |
23853 | if test "${with_x+set}" = set; then | |
23854 | withval="$with_x" | |
23855 | ||
23856 | fi; | |
23857 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
23858 | if test "x$with_x" = xno; then | |
23859 | # The user explicitly disabled X. | |
23860 | have_x=disabled | |
23861 | else | |
23862 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23863 | # Both variables are already set. | |
23864 | have_x=yes | |
23865 | else | |
23866 | if test "${ac_cv_have_x+set}" = set; then | |
23867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23868 | else | |
23869 | # One or both of the vars are not set, and there is no cached value. | |
23870 | ac_x_includes=no ac_x_libraries=no | |
23871 | rm -fr conftest.dir | |
23872 | if mkdir conftest.dir; then | |
23873 | cd conftest.dir | |
23874 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
23875 | cat >Imakefile <<'_ACEOF' | |
23876 | acfindx: | |
23877 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
23878 | _ACEOF | |
23879 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
23880 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23881 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23882 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23883 | for ac_extension in a so sl; do | |
23884 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
23885 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23886 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
23887 | fi |
23888 | done | |
23889 | # Screen out bogus values from the imake configuration. They are | |
23890 | # bogus both because they are the default anyway, and because | |
23891 | # using them would break gcc on systems where it needs fixed includes. | |
23892 | case $ac_im_incroot in | |
23893 | /usr/include) ;; | |
23894 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
23895 | esac | |
23896 | case $ac_im_usrlibdir in | |
23897 | /usr/lib | /lib) ;; | |
23898 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
23899 | esac | |
23900 | fi | |
23901 | cd .. | |
23902 | rm -fr conftest.dir | |
23903 | fi | |
23904 | ||
23905 | # Standard set of common directories for X headers. | |
23906 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23907 | ac_x_header_dirs=' | |
23908 | /usr/X11/include | |
23909 | /usr/X11R6/include | |
23910 | /usr/X11R5/include | |
23911 | /usr/X11R4/include | |
23912 | ||
23913 | /usr/include/X11 | |
23914 | /usr/include/X11R6 | |
23915 | /usr/include/X11R5 | |
23916 | /usr/include/X11R4 | |
23917 | ||
23918 | /usr/local/X11/include | |
23919 | /usr/local/X11R6/include | |
23920 | /usr/local/X11R5/include | |
23921 | /usr/local/X11R4/include | |
23922 | ||
23923 | /usr/local/include/X11 | |
23924 | /usr/local/include/X11R6 | |
23925 | /usr/local/include/X11R5 | |
23926 | /usr/local/include/X11R4 | |
23927 | ||
23928 | /usr/X386/include | |
23929 | /usr/x386/include | |
23930 | /usr/XFree86/include/X11 | |
23931 | ||
23932 | /usr/include | |
23933 | /usr/local/include | |
23934 | /usr/unsupported/include | |
23935 | /usr/athena/include | |
23936 | /usr/local/x11r5/include | |
23937 | /usr/lpp/Xamples/include | |
23938 | ||
23939 | /usr/openwin/include | |
23940 | /usr/openwin/share/include' | |
23941 | ||
23942 | if test "$ac_x_includes" = no; then | |
23943 | # Guess where to find include files, by looking for Intrinsic.h. | |
23944 | # First, try using that file with no special directory specified. | |
23945 | cat >conftest.$ac_ext <<_ACEOF | |
23946 | /* confdefs.h. */ | |
23947 | _ACEOF | |
23948 | cat confdefs.h >>conftest.$ac_ext | |
23949 | cat >>conftest.$ac_ext <<_ACEOF | |
23950 | /* end confdefs.h. */ | |
23951 | #include <X11/Intrinsic.h> | |
23952 | _ACEOF | |
23953 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23954 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23955 | ac_status=$? | |
23956 | grep -v '^ *+' conftest.er1 >conftest.err | |
23957 | rm -f conftest.er1 | |
23958 | cat conftest.err >&5 | |
23959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23960 | (exit $ac_status); } >/dev/null; then | |
23961 | if test -s conftest.err; then | |
23962 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23963 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23964 | else |
23965 | ac_cpp_err= | |
23966 | fi | |
23967 | else | |
23968 | ac_cpp_err=yes | |
23969 | fi | |
23970 | if test -z "$ac_cpp_err"; then | |
23971 | # We can compile using X headers with no special include directory. | |
23972 | ac_x_includes= | |
23973 | else | |
23974 | echo "$as_me: failed program was:" >&5 | |
23975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23976 | ||
23977 | for ac_dir in $ac_x_header_dirs; do | |
23978 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
23979 | ac_x_includes=$ac_dir | |
23980 | break | |
23981 | fi | |
23982 | done | |
23983 | fi | |
23984 | rm -f conftest.err conftest.$ac_ext | |
23985 | fi # $ac_x_includes = no | |
23986 | ||
23987 | if test "$ac_x_libraries" = no; then | |
23988 | # Check for the libraries. | |
23989 | # See if we find them without any special options. | |
23990 | # Don't add to $LIBS permanently. | |
23991 | ac_save_LIBS=$LIBS | |
23992 | LIBS="-lXt $LIBS" | |
23993 | cat >conftest.$ac_ext <<_ACEOF | |
23994 | /* confdefs.h. */ | |
23995 | _ACEOF | |
23996 | cat confdefs.h >>conftest.$ac_ext | |
23997 | cat >>conftest.$ac_ext <<_ACEOF | |
23998 | /* end confdefs.h. */ | |
23999 | #include <X11/Intrinsic.h> | |
24000 | int | |
24001 | main () | |
24002 | { | |
24003 | XtMalloc (0) | |
24004 | ; | |
24005 | return 0; | |
24006 | } | |
24007 | _ACEOF | |
24008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24010 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24011 | ac_status=$? |
ac1cb8d3 VS |
24012 | grep -v '^ *+' conftest.er1 >conftest.err |
24013 | rm -f conftest.er1 | |
24014 | cat conftest.err >&5 | |
a848cd7e SC |
24015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24016 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24017 | { ac_try='test -z "$ac_c_werror_flag" |
24018 | || test ! -s conftest.err' | |
24019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24020 | (eval $ac_try) 2>&5 | |
24021 | ac_status=$? | |
24022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24023 | (exit $ac_status); }; } && | |
24024 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24026 | (eval $ac_try) 2>&5 | |
24027 | ac_status=$? | |
24028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24029 | (exit $ac_status); }; }; then | |
24030 | LIBS=$ac_save_LIBS | |
24031 | # We can link X programs with no special library path. | |
24032 | ac_x_libraries= | |
24033 | else | |
24034 | echo "$as_me: failed program was:" >&5 | |
24035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24036 | ||
24037 | LIBS=$ac_save_LIBS | |
24038 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24039 | do | |
24040 | # Don't even attempt the hair of trying to link an X program! | |
24041 | for ac_extension in a so sl; do | |
24042 | if test -r $ac_dir/libXt.$ac_extension; then | |
24043 | ac_x_libraries=$ac_dir | |
24044 | break 2 | |
24045 | fi | |
24046 | done | |
24047 | done | |
24048 | fi | |
ac1cb8d3 VS |
24049 | rm -f conftest.err conftest.$ac_objext \ |
24050 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24051 | fi # $ac_x_libraries = no |
24052 | ||
24053 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24054 | # Didn't find X anywhere. Cache the known absence of X. | |
24055 | ac_cv_have_x="have_x=no" | |
24056 | else | |
24057 | # Record where we found X for the cache. | |
24058 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24059 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24060 | fi |
24061 | fi | |
24062 | ||
24063 | fi | |
24064 | eval "$ac_cv_have_x" | |
24065 | fi # $with_x != no | |
24066 | ||
24067 | if test "$have_x" != yes; then | |
24068 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24069 | echo "${ECHO_T}$have_x" >&6 | |
24070 | no_x=yes | |
24071 | else | |
24072 | # If each of the values was on the command line, it overrides each guess. | |
24073 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24074 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24075 | # Update the cache value to reflect the command line values. | |
24076 | ac_cv_have_x="have_x=yes \ | |
24077 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
24078 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
24079 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
24080 | fi | |
24081 | ||
24082 | if test "$no_x" = yes; then | |
24083 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24084 | ||
24085 | cat >>confdefs.h <<\_ACEOF | |
24086 | #define X_DISPLAY_MISSING 1 | |
24087 | _ACEOF | |
24088 | ||
24089 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24090 | else | |
24091 | if test -n "$x_includes"; then | |
24092 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24093 | fi | |
24094 | ||
24095 | # It would also be nice to do this for all -L options, not just this one. | |
24096 | if test -n "$x_libraries"; then | |
24097 | X_LIBS="$X_LIBS -L$x_libraries" | |
24098 | # For Solaris; some versions of Sun CC require a space after -R and | |
24099 | # others require no space. Words are not sufficient . . . . | |
24100 | case `(uname -sr) 2>/dev/null` in | |
24101 | "SunOS 5"*) | |
24102 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24103 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24104 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24105 | cat >conftest.$ac_ext <<_ACEOF | |
24106 | /* confdefs.h. */ | |
24107 | _ACEOF | |
24108 | cat confdefs.h >>conftest.$ac_ext | |
24109 | cat >>conftest.$ac_ext <<_ACEOF | |
24110 | /* end confdefs.h. */ | |
24111 | ||
24112 | int | |
24113 | main () | |
24114 | { | |
24115 | ||
24116 | ; | |
24117 | return 0; | |
24118 | } | |
24119 | _ACEOF | |
24120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24122 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24123 | ac_status=$? |
ac1cb8d3 VS |
24124 | grep -v '^ *+' conftest.er1 >conftest.err |
24125 | rm -f conftest.er1 | |
24126 | cat conftest.err >&5 | |
a848cd7e SC |
24127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24128 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24129 | { ac_try='test -z "$ac_c_werror_flag" |
24130 | || test ! -s conftest.err' | |
24131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24132 | (eval $ac_try) 2>&5 | |
24133 | ac_status=$? | |
24134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24135 | (exit $ac_status); }; } && | |
24136 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24138 | (eval $ac_try) 2>&5 | |
24139 | ac_status=$? | |
24140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24141 | (exit $ac_status); }; }; then | |
24142 | ac_R_nospace=yes | |
24143 | else | |
24144 | echo "$as_me: failed program was:" >&5 | |
24145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24146 | ||
24147 | ac_R_nospace=no | |
24148 | fi | |
ac1cb8d3 VS |
24149 | rm -f conftest.err conftest.$ac_objext \ |
24150 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24151 | if test $ac_R_nospace = yes; then |
24152 | echo "$as_me:$LINENO: result: no" >&5 | |
24153 | echo "${ECHO_T}no" >&6 | |
24154 | X_LIBS="$X_LIBS -R$x_libraries" | |
24155 | else | |
24156 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24157 | cat >conftest.$ac_ext <<_ACEOF | |
24158 | /* confdefs.h. */ | |
24159 | _ACEOF | |
24160 | cat confdefs.h >>conftest.$ac_ext | |
24161 | cat >>conftest.$ac_ext <<_ACEOF | |
24162 | /* end confdefs.h. */ | |
24163 | ||
24164 | int | |
24165 | main () | |
24166 | { | |
24167 | ||
24168 | ; | |
24169 | return 0; | |
24170 | } | |
24171 | _ACEOF | |
24172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24174 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24175 | ac_status=$? |
ac1cb8d3 VS |
24176 | grep -v '^ *+' conftest.er1 >conftest.err |
24177 | rm -f conftest.er1 | |
24178 | cat conftest.err >&5 | |
a848cd7e SC |
24179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24180 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24181 | { ac_try='test -z "$ac_c_werror_flag" |
24182 | || test ! -s conftest.err' | |
24183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24184 | (eval $ac_try) 2>&5 | |
24185 | ac_status=$? | |
24186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24187 | (exit $ac_status); }; } && | |
24188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24190 | (eval $ac_try) 2>&5 | |
24191 | ac_status=$? | |
24192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24193 | (exit $ac_status); }; }; then | |
24194 | ac_R_space=yes | |
24195 | else | |
24196 | echo "$as_me: failed program was:" >&5 | |
24197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24198 | ||
24199 | ac_R_space=no | |
24200 | fi | |
ac1cb8d3 VS |
24201 | rm -f conftest.err conftest.$ac_objext \ |
24202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24203 | if test $ac_R_space = yes; then |
24204 | echo "$as_me:$LINENO: result: yes" >&5 | |
24205 | echo "${ECHO_T}yes" >&6 | |
24206 | X_LIBS="$X_LIBS -R $x_libraries" | |
24207 | else | |
24208 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24209 | echo "${ECHO_T}neither works" >&6 | |
24210 | fi | |
24211 | fi | |
24212 | LIBS=$ac_xsave_LIBS | |
24213 | esac | |
24214 | fi | |
24215 | ||
24216 | # Check for system-dependent libraries X programs must link with. | |
24217 | # Do this before checking for the system-independent R6 libraries | |
24218 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24219 | ||
24220 | if test "$ISC" = yes; then | |
24221 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24222 | else | |
24223 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24224 | # libraries were built with DECnet support. And Karl Berry says | |
24225 | # the Alpha needs dnet_stub (dnet does not exist). | |
24226 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24227 | cat >conftest.$ac_ext <<_ACEOF | |
24228 | /* confdefs.h. */ | |
24229 | _ACEOF | |
24230 | cat confdefs.h >>conftest.$ac_ext | |
24231 | cat >>conftest.$ac_ext <<_ACEOF | |
24232 | /* end confdefs.h. */ | |
24233 | ||
24234 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24235 | #ifdef __cplusplus | |
24236 | extern "C" | |
24237 | #endif | |
24238 | /* We use char because int might match the return type of a gcc2 | |
24239 | builtin and then its argument prototype would still apply. */ | |
24240 | char XOpenDisplay (); | |
24241 | int | |
24242 | main () | |
24243 | { | |
24244 | XOpenDisplay (); | |
24245 | ; | |
24246 | return 0; | |
24247 | } | |
24248 | _ACEOF | |
24249 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24251 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24252 | ac_status=$? |
ac1cb8d3 VS |
24253 | grep -v '^ *+' conftest.er1 >conftest.err |
24254 | rm -f conftest.er1 | |
24255 | cat conftest.err >&5 | |
a848cd7e SC |
24256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24257 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24258 | { ac_try='test -z "$ac_c_werror_flag" |
24259 | || test ! -s conftest.err' | |
24260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24261 | (eval $ac_try) 2>&5 | |
24262 | ac_status=$? | |
24263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24264 | (exit $ac_status); }; } && | |
24265 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24267 | (eval $ac_try) 2>&5 | |
24268 | ac_status=$? | |
24269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24270 | (exit $ac_status); }; }; then | |
24271 | : | |
24272 | else | |
24273 | echo "$as_me: failed program was:" >&5 | |
24274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24275 | ||
24276 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24277 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24278 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24280 | else | |
24281 | ac_check_lib_save_LIBS=$LIBS | |
24282 | LIBS="-ldnet $LIBS" | |
24283 | cat >conftest.$ac_ext <<_ACEOF | |
24284 | /* confdefs.h. */ | |
24285 | _ACEOF | |
24286 | cat confdefs.h >>conftest.$ac_ext | |
24287 | cat >>conftest.$ac_ext <<_ACEOF | |
24288 | /* end confdefs.h. */ | |
24289 | ||
24290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24291 | #ifdef __cplusplus | |
24292 | extern "C" | |
24293 | #endif | |
24294 | /* We use char because int might match the return type of a gcc2 | |
24295 | builtin and then its argument prototype would still apply. */ | |
24296 | char dnet_ntoa (); | |
24297 | int | |
24298 | main () | |
24299 | { | |
24300 | dnet_ntoa (); | |
24301 | ; | |
24302 | return 0; | |
24303 | } | |
24304 | _ACEOF | |
24305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24307 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24308 | ac_status=$? |
ac1cb8d3 VS |
24309 | grep -v '^ *+' conftest.er1 >conftest.err |
24310 | rm -f conftest.er1 | |
24311 | cat conftest.err >&5 | |
a848cd7e SC |
24312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24313 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24314 | { ac_try='test -z "$ac_c_werror_flag" |
24315 | || test ! -s conftest.err' | |
24316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24317 | (eval $ac_try) 2>&5 | |
24318 | ac_status=$? | |
24319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24320 | (exit $ac_status); }; } && | |
24321 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24323 | (eval $ac_try) 2>&5 | |
24324 | ac_status=$? | |
24325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24326 | (exit $ac_status); }; }; then | |
24327 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24328 | else | |
24329 | echo "$as_me: failed program was:" >&5 | |
24330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24331 | ||
24332 | ac_cv_lib_dnet_dnet_ntoa=no | |
24333 | fi | |
ac1cb8d3 VS |
24334 | rm -f conftest.err conftest.$ac_objext \ |
24335 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24336 | LIBS=$ac_check_lib_save_LIBS |
24337 | fi | |
24338 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24339 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24340 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24341 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24342 | fi | |
24343 | ||
24344 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24345 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24346 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24347 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24349 | else | |
24350 | ac_check_lib_save_LIBS=$LIBS | |
24351 | LIBS="-ldnet_stub $LIBS" | |
24352 | cat >conftest.$ac_ext <<_ACEOF | |
24353 | /* confdefs.h. */ | |
24354 | _ACEOF | |
24355 | cat confdefs.h >>conftest.$ac_ext | |
24356 | cat >>conftest.$ac_ext <<_ACEOF | |
24357 | /* end confdefs.h. */ | |
24358 | ||
24359 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24360 | #ifdef __cplusplus | |
24361 | extern "C" | |
24362 | #endif | |
24363 | /* We use char because int might match the return type of a gcc2 | |
24364 | builtin and then its argument prototype would still apply. */ | |
24365 | char dnet_ntoa (); | |
24366 | int | |
24367 | main () | |
24368 | { | |
24369 | dnet_ntoa (); | |
24370 | ; | |
24371 | return 0; | |
24372 | } | |
24373 | _ACEOF | |
24374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24376 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24377 | ac_status=$? |
ac1cb8d3 VS |
24378 | grep -v '^ *+' conftest.er1 >conftest.err |
24379 | rm -f conftest.er1 | |
24380 | cat conftest.err >&5 | |
a848cd7e SC |
24381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24382 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24383 | { ac_try='test -z "$ac_c_werror_flag" |
24384 | || test ! -s conftest.err' | |
24385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24386 | (eval $ac_try) 2>&5 | |
24387 | ac_status=$? | |
24388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24389 | (exit $ac_status); }; } && | |
24390 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24392 | (eval $ac_try) 2>&5 | |
24393 | ac_status=$? | |
24394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24395 | (exit $ac_status); }; }; then | |
24396 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24397 | else | |
24398 | echo "$as_me: failed program was:" >&5 | |
24399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24400 | ||
24401 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24402 | fi | |
ac1cb8d3 VS |
24403 | rm -f conftest.err conftest.$ac_objext \ |
24404 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24405 | LIBS=$ac_check_lib_save_LIBS |
24406 | fi | |
24407 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24408 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24409 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24410 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24411 | fi | |
24412 | ||
24413 | fi | |
24414 | fi | |
ac1cb8d3 VS |
24415 | rm -f conftest.err conftest.$ac_objext \ |
24416 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24417 | LIBS="$ac_xsave_LIBS" |
24418 | ||
24419 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24420 | # to get the SysV transport functions. | |
24421 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24422 | # needs -lnsl. | |
24423 | # The nsl library prevents programs from opening the X display | |
24424 | # on Irix 5.2, according to T.E. Dickey. | |
24425 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24426 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24427 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24428 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24429 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24431 | else | |
24432 | cat >conftest.$ac_ext <<_ACEOF | |
24433 | /* confdefs.h. */ | |
24434 | _ACEOF | |
24435 | cat confdefs.h >>conftest.$ac_ext | |
24436 | cat >>conftest.$ac_ext <<_ACEOF | |
24437 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24438 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24440 | #define gethostbyname innocuous_gethostbyname | |
24441 | ||
a848cd7e SC |
24442 | /* System header to define __stub macros and hopefully few prototypes, |
24443 | which can conflict with char gethostbyname (); below. | |
24444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24445 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24446 | |
a848cd7e SC |
24447 | #ifdef __STDC__ |
24448 | # include <limits.h> | |
24449 | #else | |
24450 | # include <assert.h> | |
24451 | #endif | |
ac1cb8d3 VS |
24452 | |
24453 | #undef gethostbyname | |
24454 | ||
a848cd7e SC |
24455 | /* Override any gcc2 internal prototype to avoid an error. */ |
24456 | #ifdef __cplusplus | |
24457 | extern "C" | |
24458 | { | |
24459 | #endif | |
24460 | /* We use char because int might match the return type of a gcc2 | |
24461 | builtin and then its argument prototype would still apply. */ | |
24462 | char gethostbyname (); | |
24463 | /* The GNU C library defines this for functions which it implements | |
24464 | to always fail with ENOSYS. Some functions are actually named | |
24465 | something starting with __ and the normal name is an alias. */ | |
24466 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24467 | choke me | |
24468 | #else | |
24469 | char (*f) () = gethostbyname; | |
24470 | #endif | |
24471 | #ifdef __cplusplus | |
24472 | } | |
24473 | #endif | |
24474 | ||
24475 | int | |
24476 | main () | |
24477 | { | |
24478 | return f != gethostbyname; | |
24479 | ; | |
24480 | return 0; | |
24481 | } | |
24482 | _ACEOF | |
24483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24485 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24486 | ac_status=$? |
ac1cb8d3 VS |
24487 | grep -v '^ *+' conftest.er1 >conftest.err |
24488 | rm -f conftest.er1 | |
24489 | cat conftest.err >&5 | |
a848cd7e SC |
24490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24491 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24492 | { ac_try='test -z "$ac_c_werror_flag" |
24493 | || test ! -s conftest.err' | |
24494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24495 | (eval $ac_try) 2>&5 | |
24496 | ac_status=$? | |
24497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24498 | (exit $ac_status); }; } && | |
24499 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24501 | (eval $ac_try) 2>&5 | |
24502 | ac_status=$? | |
24503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24504 | (exit $ac_status); }; }; then | |
24505 | ac_cv_func_gethostbyname=yes | |
24506 | else | |
24507 | echo "$as_me: failed program was:" >&5 | |
24508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24509 | ||
24510 | ac_cv_func_gethostbyname=no | |
24511 | fi | |
ac1cb8d3 VS |
24512 | rm -f conftest.err conftest.$ac_objext \ |
24513 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24514 | fi |
24515 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24516 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24517 | ||
24518 | if test $ac_cv_func_gethostbyname = no; then | |
24519 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24520 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24521 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24523 | else | |
24524 | ac_check_lib_save_LIBS=$LIBS | |
24525 | LIBS="-lnsl $LIBS" | |
24526 | cat >conftest.$ac_ext <<_ACEOF | |
24527 | /* confdefs.h. */ | |
24528 | _ACEOF | |
24529 | cat confdefs.h >>conftest.$ac_ext | |
24530 | cat >>conftest.$ac_ext <<_ACEOF | |
24531 | /* end confdefs.h. */ | |
24532 | ||
24533 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24534 | #ifdef __cplusplus | |
24535 | extern "C" | |
24536 | #endif | |
24537 | /* We use char because int might match the return type of a gcc2 | |
24538 | builtin and then its argument prototype would still apply. */ | |
24539 | char gethostbyname (); | |
24540 | int | |
24541 | main () | |
24542 | { | |
24543 | gethostbyname (); | |
24544 | ; | |
24545 | return 0; | |
24546 | } | |
24547 | _ACEOF | |
24548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24550 | (eval $ac_link) 2>conftest.er1 |
24551 | ac_status=$? | |
24552 | grep -v '^ *+' conftest.er1 >conftest.err | |
24553 | rm -f conftest.er1 | |
24554 | cat conftest.err >&5 | |
24555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24556 | (exit $ac_status); } && | |
24557 | { ac_try='test -z "$ac_c_werror_flag" | |
24558 | || test ! -s conftest.err' | |
24559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24560 | (eval $ac_try) 2>&5 | |
24561 | ac_status=$? | |
24562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24563 | (exit $ac_status); }; } && | |
24564 | { ac_try='test -s conftest$ac_exeext' | |
24565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24566 | (eval $ac_try) 2>&5 | |
24567 | ac_status=$? | |
24568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24569 | (exit $ac_status); }; }; then | |
24570 | ac_cv_lib_nsl_gethostbyname=yes | |
24571 | else | |
24572 | echo "$as_me: failed program was:" >&5 | |
24573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24574 | ||
24575 | ac_cv_lib_nsl_gethostbyname=no | |
24576 | fi | |
24577 | rm -f conftest.err conftest.$ac_objext \ | |
24578 | conftest$ac_exeext conftest.$ac_ext | |
24579 | LIBS=$ac_check_lib_save_LIBS | |
24580 | fi | |
24581 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24582 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24583 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24584 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24585 | fi | |
24586 | ||
24587 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24588 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24589 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24590 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24592 | else | |
24593 | ac_check_lib_save_LIBS=$LIBS | |
24594 | LIBS="-lbsd $LIBS" | |
24595 | cat >conftest.$ac_ext <<_ACEOF | |
24596 | /* confdefs.h. */ | |
24597 | _ACEOF | |
24598 | cat confdefs.h >>conftest.$ac_ext | |
24599 | cat >>conftest.$ac_ext <<_ACEOF | |
24600 | /* end confdefs.h. */ | |
24601 | ||
24602 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24603 | #ifdef __cplusplus | |
24604 | extern "C" | |
24605 | #endif | |
24606 | /* We use char because int might match the return type of a gcc2 | |
24607 | builtin and then its argument prototype would still apply. */ | |
24608 | char gethostbyname (); | |
24609 | int | |
24610 | main () | |
24611 | { | |
24612 | gethostbyname (); | |
24613 | ; | |
24614 | return 0; | |
24615 | } | |
24616 | _ACEOF | |
24617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24619 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24620 | ac_status=$? |
ac1cb8d3 VS |
24621 | grep -v '^ *+' conftest.er1 >conftest.err |
24622 | rm -f conftest.er1 | |
24623 | cat conftest.err >&5 | |
a848cd7e SC |
24624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24625 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24626 | { ac_try='test -z "$ac_c_werror_flag" |
24627 | || test ! -s conftest.err' | |
a848cd7e SC |
24628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24629 | (eval $ac_try) 2>&5 | |
24630 | ac_status=$? | |
24631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24632 | (exit $ac_status); }; } && |
24633 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24635 | (eval $ac_try) 2>&5 | |
24636 | ac_status=$? | |
24637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24638 | (exit $ac_status); }; }; then | |
24639 | ac_cv_lib_bsd_gethostbyname=yes | |
24640 | else | |
24641 | echo "$as_me: failed program was:" >&5 | |
24642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24643 | ||
24644 | ac_cv_lib_bsd_gethostbyname=no | |
24645 | fi | |
ac1cb8d3 VS |
24646 | rm -f conftest.err conftest.$ac_objext \ |
24647 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24648 | LIBS=$ac_check_lib_save_LIBS |
24649 | fi | |
24650 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24651 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24652 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24653 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24654 | fi | |
24655 | ||
24656 | fi | |
24657 | fi | |
24658 | ||
24659 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24660 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24661 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24662 | # on later versions), says Simon Leinen: it contains gethostby* | |
24663 | # variants that don't use the name server (or something). -lsocket | |
24664 | # must be given before -lnsl if both are needed. We assume that | |
24665 | # if connect needs -lnsl, so does gethostbyname. | |
24666 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24667 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24668 | if test "${ac_cv_func_connect+set}" = set; then | |
24669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24670 | else | |
24671 | cat >conftest.$ac_ext <<_ACEOF | |
24672 | /* confdefs.h. */ | |
24673 | _ACEOF | |
24674 | cat confdefs.h >>conftest.$ac_ext | |
24675 | cat >>conftest.$ac_ext <<_ACEOF | |
24676 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24677 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24679 | #define connect innocuous_connect | |
24680 | ||
a848cd7e SC |
24681 | /* System header to define __stub macros and hopefully few prototypes, |
24682 | which can conflict with char connect (); below. | |
24683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24684 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24685 | |
a848cd7e SC |
24686 | #ifdef __STDC__ |
24687 | # include <limits.h> | |
24688 | #else | |
24689 | # include <assert.h> | |
24690 | #endif | |
ac1cb8d3 VS |
24691 | |
24692 | #undef connect | |
24693 | ||
a848cd7e SC |
24694 | /* Override any gcc2 internal prototype to avoid an error. */ |
24695 | #ifdef __cplusplus | |
24696 | extern "C" | |
24697 | { | |
24698 | #endif | |
24699 | /* We use char because int might match the return type of a gcc2 | |
24700 | builtin and then its argument prototype would still apply. */ | |
24701 | char connect (); | |
24702 | /* The GNU C library defines this for functions which it implements | |
24703 | to always fail with ENOSYS. Some functions are actually named | |
24704 | something starting with __ and the normal name is an alias. */ | |
24705 | #if defined (__stub_connect) || defined (__stub___connect) | |
24706 | choke me | |
24707 | #else | |
24708 | char (*f) () = connect; | |
24709 | #endif | |
24710 | #ifdef __cplusplus | |
24711 | } | |
24712 | #endif | |
24713 | ||
24714 | int | |
24715 | main () | |
24716 | { | |
24717 | return f != connect; | |
24718 | ; | |
24719 | return 0; | |
24720 | } | |
24721 | _ACEOF | |
24722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24724 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24725 | ac_status=$? |
ac1cb8d3 VS |
24726 | grep -v '^ *+' conftest.er1 >conftest.err |
24727 | rm -f conftest.er1 | |
24728 | cat conftest.err >&5 | |
a848cd7e SC |
24729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24730 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24731 | { ac_try='test -z "$ac_c_werror_flag" |
24732 | || test ! -s conftest.err' | |
24733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24734 | (eval $ac_try) 2>&5 | |
24735 | ac_status=$? | |
24736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24737 | (exit $ac_status); }; } && | |
24738 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24740 | (eval $ac_try) 2>&5 | |
24741 | ac_status=$? | |
24742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24743 | (exit $ac_status); }; }; then | |
24744 | ac_cv_func_connect=yes | |
24745 | else | |
24746 | echo "$as_me: failed program was:" >&5 | |
24747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24748 | ||
24749 | ac_cv_func_connect=no | |
24750 | fi | |
ac1cb8d3 VS |
24751 | rm -f conftest.err conftest.$ac_objext \ |
24752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24753 | fi |
24754 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24755 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24756 | ||
24757 | if test $ac_cv_func_connect = no; then | |
24758 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24759 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24760 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24762 | else | |
24763 | ac_check_lib_save_LIBS=$LIBS | |
24764 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
24765 | cat >conftest.$ac_ext <<_ACEOF | |
24766 | /* confdefs.h. */ | |
24767 | _ACEOF | |
24768 | cat confdefs.h >>conftest.$ac_ext | |
24769 | cat >>conftest.$ac_ext <<_ACEOF | |
24770 | /* end confdefs.h. */ | |
24771 | ||
24772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24773 | #ifdef __cplusplus | |
24774 | extern "C" | |
24775 | #endif | |
24776 | /* We use char because int might match the return type of a gcc2 | |
24777 | builtin and then its argument prototype would still apply. */ | |
24778 | char connect (); | |
24779 | int | |
24780 | main () | |
24781 | { | |
24782 | connect (); | |
24783 | ; | |
24784 | return 0; | |
24785 | } | |
24786 | _ACEOF | |
24787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24789 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24790 | ac_status=$? |
ac1cb8d3 VS |
24791 | grep -v '^ *+' conftest.er1 >conftest.err |
24792 | rm -f conftest.er1 | |
24793 | cat conftest.err >&5 | |
a848cd7e SC |
24794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24795 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24796 | { ac_try='test -z "$ac_c_werror_flag" |
24797 | || test ! -s conftest.err' | |
24798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24799 | (eval $ac_try) 2>&5 | |
24800 | ac_status=$? | |
24801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24802 | (exit $ac_status); }; } && | |
24803 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24805 | (eval $ac_try) 2>&5 | |
24806 | ac_status=$? | |
24807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24808 | (exit $ac_status); }; }; then | |
24809 | ac_cv_lib_socket_connect=yes | |
24810 | else | |
24811 | echo "$as_me: failed program was:" >&5 | |
24812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24813 | ||
24814 | ac_cv_lib_socket_connect=no | |
24815 | fi | |
ac1cb8d3 VS |
24816 | rm -f conftest.err conftest.$ac_objext \ |
24817 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24818 | LIBS=$ac_check_lib_save_LIBS |
24819 | fi | |
24820 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24821 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24822 | if test $ac_cv_lib_socket_connect = yes; then | |
24823 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24824 | fi | |
24825 | ||
24826 | fi | |
24827 | ||
24828 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24829 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24830 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24831 | if test "${ac_cv_func_remove+set}" = set; then | |
24832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24833 | else | |
24834 | cat >conftest.$ac_ext <<_ACEOF | |
24835 | /* confdefs.h. */ | |
24836 | _ACEOF | |
24837 | cat confdefs.h >>conftest.$ac_ext | |
24838 | cat >>conftest.$ac_ext <<_ACEOF | |
24839 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24840 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24841 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24842 | #define remove innocuous_remove | |
24843 | ||
a848cd7e SC |
24844 | /* System header to define __stub macros and hopefully few prototypes, |
24845 | which can conflict with char remove (); below. | |
24846 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24847 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24848 | |
a848cd7e SC |
24849 | #ifdef __STDC__ |
24850 | # include <limits.h> | |
24851 | #else | |
24852 | # include <assert.h> | |
24853 | #endif | |
ac1cb8d3 VS |
24854 | |
24855 | #undef remove | |
24856 | ||
a848cd7e SC |
24857 | /* Override any gcc2 internal prototype to avoid an error. */ |
24858 | #ifdef __cplusplus | |
24859 | extern "C" | |
24860 | { | |
24861 | #endif | |
24862 | /* We use char because int might match the return type of a gcc2 | |
24863 | builtin and then its argument prototype would still apply. */ | |
24864 | char remove (); | |
24865 | /* The GNU C library defines this for functions which it implements | |
24866 | to always fail with ENOSYS. Some functions are actually named | |
24867 | something starting with __ and the normal name is an alias. */ | |
24868 | #if defined (__stub_remove) || defined (__stub___remove) | |
24869 | choke me | |
24870 | #else | |
24871 | char (*f) () = remove; | |
24872 | #endif | |
24873 | #ifdef __cplusplus | |
24874 | } | |
24875 | #endif | |
24876 | ||
24877 | int | |
24878 | main () | |
24879 | { | |
24880 | return f != remove; | |
24881 | ; | |
24882 | return 0; | |
24883 | } | |
24884 | _ACEOF | |
24885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24887 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24888 | ac_status=$? |
ac1cb8d3 VS |
24889 | grep -v '^ *+' conftest.er1 >conftest.err |
24890 | rm -f conftest.er1 | |
24891 | cat conftest.err >&5 | |
a848cd7e SC |
24892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24893 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24894 | { ac_try='test -z "$ac_c_werror_flag" |
24895 | || test ! -s conftest.err' | |
24896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24897 | (eval $ac_try) 2>&5 | |
24898 | ac_status=$? | |
24899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24900 | (exit $ac_status); }; } && | |
24901 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24903 | (eval $ac_try) 2>&5 | |
24904 | ac_status=$? | |
24905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24906 | (exit $ac_status); }; }; then | |
24907 | ac_cv_func_remove=yes | |
24908 | else | |
24909 | echo "$as_me: failed program was:" >&5 | |
24910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24911 | ||
24912 | ac_cv_func_remove=no | |
24913 | fi | |
ac1cb8d3 VS |
24914 | rm -f conftest.err conftest.$ac_objext \ |
24915 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24916 | fi |
24917 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24918 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
24919 | ||
24920 | if test $ac_cv_func_remove = no; then | |
24921 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
24922 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24923 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24925 | else | |
24926 | ac_check_lib_save_LIBS=$LIBS | |
24927 | LIBS="-lposix $LIBS" | |
24928 | cat >conftest.$ac_ext <<_ACEOF | |
24929 | /* confdefs.h. */ | |
24930 | _ACEOF | |
24931 | cat confdefs.h >>conftest.$ac_ext | |
24932 | cat >>conftest.$ac_ext <<_ACEOF | |
24933 | /* end confdefs.h. */ | |
24934 | ||
24935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24936 | #ifdef __cplusplus | |
24937 | extern "C" | |
24938 | #endif | |
24939 | /* We use char because int might match the return type of a gcc2 | |
24940 | builtin and then its argument prototype would still apply. */ | |
24941 | char remove (); | |
24942 | int | |
24943 | main () | |
24944 | { | |
24945 | remove (); | |
24946 | ; | |
24947 | return 0; | |
24948 | } | |
24949 | _ACEOF | |
24950 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24952 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24953 | ac_status=$? |
ac1cb8d3 VS |
24954 | grep -v '^ *+' conftest.er1 >conftest.err |
24955 | rm -f conftest.er1 | |
24956 | cat conftest.err >&5 | |
a848cd7e SC |
24957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24958 | (exit $ac_status); } && | |
ac1cb8d3 VS |
24959 | { ac_try='test -z "$ac_c_werror_flag" |
24960 | || test ! -s conftest.err' | |
24961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24962 | (eval $ac_try) 2>&5 | |
24963 | ac_status=$? | |
24964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24965 | (exit $ac_status); }; } && | |
24966 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24968 | (eval $ac_try) 2>&5 | |
24969 | ac_status=$? | |
24970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24971 | (exit $ac_status); }; }; then | |
24972 | ac_cv_lib_posix_remove=yes | |
24973 | else | |
24974 | echo "$as_me: failed program was:" >&5 | |
24975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24976 | ||
24977 | ac_cv_lib_posix_remove=no | |
24978 | fi | |
ac1cb8d3 VS |
24979 | rm -f conftest.err conftest.$ac_objext \ |
24980 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24981 | LIBS=$ac_check_lib_save_LIBS |
24982 | fi | |
24983 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24984 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24985 | if test $ac_cv_lib_posix_remove = yes; then | |
24986 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
24987 | fi | |
24988 | ||
24989 | fi | |
24990 | ||
24991 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
24992 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
24993 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24994 | if test "${ac_cv_func_shmat+set}" = set; then | |
24995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24996 | else | |
24997 | cat >conftest.$ac_ext <<_ACEOF | |
24998 | /* confdefs.h. */ | |
24999 | _ACEOF | |
25000 | cat confdefs.h >>conftest.$ac_ext | |
25001 | cat >>conftest.$ac_ext <<_ACEOF | |
25002 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25003 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25004 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25005 | #define shmat innocuous_shmat | |
25006 | ||
a848cd7e SC |
25007 | /* System header to define __stub macros and hopefully few prototypes, |
25008 | which can conflict with char shmat (); below. | |
25009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25010 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25011 | |
a848cd7e SC |
25012 | #ifdef __STDC__ |
25013 | # include <limits.h> | |
25014 | #else | |
25015 | # include <assert.h> | |
25016 | #endif | |
ac1cb8d3 VS |
25017 | |
25018 | #undef shmat | |
25019 | ||
a848cd7e SC |
25020 | /* Override any gcc2 internal prototype to avoid an error. */ |
25021 | #ifdef __cplusplus | |
25022 | extern "C" | |
25023 | { | |
25024 | #endif | |
25025 | /* We use char because int might match the return type of a gcc2 | |
25026 | builtin and then its argument prototype would still apply. */ | |
25027 | char shmat (); | |
25028 | /* The GNU C library defines this for functions which it implements | |
25029 | to always fail with ENOSYS. Some functions are actually named | |
25030 | something starting with __ and the normal name is an alias. */ | |
25031 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25032 | choke me | |
25033 | #else | |
25034 | char (*f) () = shmat; | |
25035 | #endif | |
25036 | #ifdef __cplusplus | |
25037 | } | |
25038 | #endif | |
25039 | ||
25040 | int | |
25041 | main () | |
25042 | { | |
25043 | return f != shmat; | |
25044 | ; | |
25045 | return 0; | |
25046 | } | |
25047 | _ACEOF | |
25048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25050 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25051 | ac_status=$? |
ac1cb8d3 VS |
25052 | grep -v '^ *+' conftest.er1 >conftest.err |
25053 | rm -f conftest.er1 | |
25054 | cat conftest.err >&5 | |
a848cd7e SC |
25055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25056 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25057 | { ac_try='test -z "$ac_c_werror_flag" |
25058 | || test ! -s conftest.err' | |
25059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25060 | (eval $ac_try) 2>&5 | |
25061 | ac_status=$? | |
25062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25063 | (exit $ac_status); }; } && | |
25064 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25066 | (eval $ac_try) 2>&5 | |
25067 | ac_status=$? | |
25068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25069 | (exit $ac_status); }; }; then | |
25070 | ac_cv_func_shmat=yes | |
25071 | else | |
25072 | echo "$as_me: failed program was:" >&5 | |
25073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25074 | ||
25075 | ac_cv_func_shmat=no | |
25076 | fi | |
ac1cb8d3 VS |
25077 | rm -f conftest.err conftest.$ac_objext \ |
25078 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25079 | fi |
25080 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25081 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25082 | ||
25083 | if test $ac_cv_func_shmat = no; then | |
25084 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25085 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25086 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25088 | else | |
25089 | ac_check_lib_save_LIBS=$LIBS | |
25090 | LIBS="-lipc $LIBS" | |
25091 | cat >conftest.$ac_ext <<_ACEOF | |
25092 | /* confdefs.h. */ | |
25093 | _ACEOF | |
25094 | cat confdefs.h >>conftest.$ac_ext | |
25095 | cat >>conftest.$ac_ext <<_ACEOF | |
25096 | /* end confdefs.h. */ | |
25097 | ||
25098 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25099 | #ifdef __cplusplus | |
25100 | extern "C" | |
25101 | #endif | |
25102 | /* We use char because int might match the return type of a gcc2 | |
25103 | builtin and then its argument prototype would still apply. */ | |
25104 | char shmat (); | |
25105 | int | |
25106 | main () | |
25107 | { | |
25108 | shmat (); | |
25109 | ; | |
25110 | return 0; | |
25111 | } | |
25112 | _ACEOF | |
25113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25115 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25116 | ac_status=$? |
ac1cb8d3 VS |
25117 | grep -v '^ *+' conftest.er1 >conftest.err |
25118 | rm -f conftest.er1 | |
25119 | cat conftest.err >&5 | |
a848cd7e SC |
25120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25121 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25122 | { ac_try='test -z "$ac_c_werror_flag" |
25123 | || test ! -s conftest.err' | |
25124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25125 | (eval $ac_try) 2>&5 | |
25126 | ac_status=$? | |
25127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25128 | (exit $ac_status); }; } && | |
25129 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25131 | (eval $ac_try) 2>&5 | |
25132 | ac_status=$? | |
25133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25134 | (exit $ac_status); }; }; then | |
25135 | ac_cv_lib_ipc_shmat=yes | |
25136 | else | |
25137 | echo "$as_me: failed program was:" >&5 | |
25138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25139 | ||
25140 | ac_cv_lib_ipc_shmat=no | |
25141 | fi | |
ac1cb8d3 VS |
25142 | rm -f conftest.err conftest.$ac_objext \ |
25143 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25144 | LIBS=$ac_check_lib_save_LIBS |
25145 | fi | |
25146 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25147 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25148 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25149 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25150 | fi | |
25151 | ||
25152 | fi | |
25153 | fi | |
25154 | ||
25155 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25156 | ac_save_LDFLAGS=$LDFLAGS | |
25157 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25158 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25159 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25160 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25161 | # These have to be linked with before -lX11, unlike the other | |
25162 | # libraries we check for below, so use a different variable. | |
25163 | # John Interrante, Karl Berry | |
25164 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25165 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25166 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25168 | else | |
25169 | ac_check_lib_save_LIBS=$LIBS | |
25170 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25171 | cat >conftest.$ac_ext <<_ACEOF | |
25172 | /* confdefs.h. */ | |
25173 | _ACEOF | |
25174 | cat confdefs.h >>conftest.$ac_ext | |
25175 | cat >>conftest.$ac_ext <<_ACEOF | |
25176 | /* end confdefs.h. */ | |
25177 | ||
25178 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25179 | #ifdef __cplusplus | |
25180 | extern "C" | |
25181 | #endif | |
25182 | /* We use char because int might match the return type of a gcc2 | |
25183 | builtin and then its argument prototype would still apply. */ | |
25184 | char IceConnectionNumber (); | |
25185 | int | |
25186 | main () | |
25187 | { | |
25188 | IceConnectionNumber (); | |
25189 | ; | |
25190 | return 0; | |
25191 | } | |
25192 | _ACEOF | |
25193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25195 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25196 | ac_status=$? |
ac1cb8d3 VS |
25197 | grep -v '^ *+' conftest.er1 >conftest.err |
25198 | rm -f conftest.er1 | |
25199 | cat conftest.err >&5 | |
a848cd7e SC |
25200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25201 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25202 | { ac_try='test -z "$ac_c_werror_flag" |
25203 | || test ! -s conftest.err' | |
25204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25205 | (eval $ac_try) 2>&5 | |
25206 | ac_status=$? | |
25207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25208 | (exit $ac_status); }; } && | |
25209 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25211 | (eval $ac_try) 2>&5 | |
25212 | ac_status=$? | |
25213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25214 | (exit $ac_status); }; }; then | |
25215 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25216 | else | |
25217 | echo "$as_me: failed program was:" >&5 | |
25218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25219 | ||
25220 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25221 | fi | |
ac1cb8d3 VS |
25222 | rm -f conftest.err conftest.$ac_objext \ |
25223 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25224 | LIBS=$ac_check_lib_save_LIBS |
25225 | fi | |
25226 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25227 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25228 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25229 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25230 | fi | |
25231 | ||
25232 | LDFLAGS=$ac_save_LDFLAGS | |
25233 | ||
25234 | fi | |
25235 | ||
25236 | ||
25237 | if test "$no_x" = "yes"; then | |
25238 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25239 | echo "$as_me: error: X11 not found" >&2;} | |
25240 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25241 | fi | |
25242 | ||
74b84332 VS |
25243 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25244 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25245 | AFMINSTALL=afminstall |
25246 | COMPILED_X_PROGRAM=0 | |
25247 | ||
74b84332 VS |
25248 | fi |
25249 | ||
25250 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25251 | if test "$wxUSE_NANOX" = "yes"; then |
25252 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25253 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25254 | if test "x$MICROWIN" = x ; then | |
25255 | echo "$as_me:$LINENO: result: not found" >&5 | |
25256 | echo "${ECHO_T}not found" >&6 | |
25257 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25258 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25259 | { (exit 1); exit 1; }; } | |
25260 | else | |
25261 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25262 | echo "${ECHO_T}$MICROWIN" >&6 | |
25263 | cat >>confdefs.h <<\_ACEOF | |
25264 | #define wxUSE_NANOX 1 | |
25265 | _ACEOF | |
25266 | ||
25267 | fi | |
25268 | fi | |
25269 | ||
25270 | if test "$wxUSE_UNICODE" = "yes"; then | |
25271 | ||
25272 | succeeded=no | |
25273 | ||
25274 | if test -z "$PKG_CONFIG"; then | |
25275 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25276 | set dummy pkg-config; ac_word=$2 | |
25277 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25279 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25281 | else | |
25282 | case $PKG_CONFIG in | |
25283 | [\\/]* | ?:[\\/]*) | |
25284 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25285 | ;; | |
25286 | *) | |
25287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25288 | for as_dir in $PATH | |
25289 | do | |
25290 | IFS=$as_save_IFS | |
25291 | test -z "$as_dir" && as_dir=. | |
25292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25293 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25294 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25295 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25296 | break 2 | |
25297 | fi | |
25298 | done | |
25299 | done | |
25300 | ||
25301 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25302 | ;; | |
25303 | esac | |
25304 | fi | |
25305 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25306 | ||
25307 | if test -n "$PKG_CONFIG"; then | |
25308 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25309 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25310 | else | |
25311 | echo "$as_me:$LINENO: result: no" >&5 | |
25312 | echo "${ECHO_T}no" >&6 | |
25313 | fi | |
25314 | ||
25315 | fi | |
25316 | ||
25317 | if test "$PKG_CONFIG" = "no" ; then | |
25318 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25319 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25320 | echo "*** to the full path to pkg-config." | |
25321 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25322 | else | |
25323 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25324 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25325 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25326 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25327 | ||
25328 | if $PKG_CONFIG --exists "pangox" ; then | |
25329 | echo "$as_me:$LINENO: result: yes" >&5 | |
25330 | echo "${ECHO_T}yes" >&6 | |
25331 | succeeded=yes | |
25332 | ||
25333 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25334 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25335 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25336 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25337 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25338 | ||
25339 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25340 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25341 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25342 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25343 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25344 | else | |
25345 | PANGOX_CFLAGS="" | |
25346 | PANGOX_LIBS="" | |
25347 | ## If we have a custom action on failure, don't print errors, but | |
25348 | ## do set a variable so people can do so. | |
25349 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25350 | ||
25351 | fi | |
25352 | ||
25353 | ||
25354 | ||
25355 | else | |
25356 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25357 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25358 | fi | |
25359 | fi | |
25360 | ||
25361 | if test $succeeded = yes; then | |
25362 | ||
25363 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25364 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25365 | ||
25366 | else | |
25367 | ||
25368 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25369 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25370 | { (exit 1); exit 1; }; } | |
25371 | ||
25372 | ||
25373 | fi | |
25374 | ||
25375 | ||
25376 | succeeded=no | |
25377 | ||
25378 | if test -z "$PKG_CONFIG"; then | |
25379 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25380 | set dummy pkg-config; ac_word=$2 | |
25381 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25383 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25385 | else | |
25386 | case $PKG_CONFIG in | |
25387 | [\\/]* | ?:[\\/]*) | |
25388 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25389 | ;; | |
25390 | *) | |
25391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25392 | for as_dir in $PATH | |
25393 | do | |
25394 | IFS=$as_save_IFS | |
25395 | test -z "$as_dir" && as_dir=. | |
25396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25398 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25400 | break 2 | |
25401 | fi | |
25402 | done | |
25403 | done | |
25404 | ||
25405 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25406 | ;; | |
25407 | esac | |
25408 | fi | |
25409 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25410 | ||
25411 | if test -n "$PKG_CONFIG"; then | |
25412 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25413 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25414 | else | |
25415 | echo "$as_me:$LINENO: result: no" >&5 | |
25416 | echo "${ECHO_T}no" >&6 | |
25417 | fi | |
25418 | ||
25419 | fi | |
25420 | ||
25421 | if test "$PKG_CONFIG" = "no" ; then | |
25422 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25423 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25424 | echo "*** to the full path to pkg-config." | |
25425 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25426 | else | |
25427 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25428 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25429 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25430 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25431 | ||
25432 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25433 | echo "$as_me:$LINENO: result: yes" >&5 | |
25434 | echo "${ECHO_T}yes" >&6 | |
25435 | succeeded=yes | |
25436 | ||
25437 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25438 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25439 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25440 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25441 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25442 | ||
25443 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25444 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25445 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25446 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25447 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25448 | else | |
25449 | PANGOFT2_CFLAGS="" | |
25450 | PANGOFT2_LIBS="" | |
25451 | ## If we have a custom action on failure, don't print errors, but | |
25452 | ## do set a variable so people can do so. | |
25453 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25454 | ||
25455 | fi | |
25456 | ||
25457 | ||
25458 | ||
25459 | else | |
25460 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25461 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25462 | fi | |
25463 | fi | |
25464 | ||
25465 | if test $succeeded = yes; then | |
25466 | ||
25467 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25468 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25469 | ||
25470 | else | |
25471 | ||
25472 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25473 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25474 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25475 | ||
25476 | ||
25477 | fi | |
25478 | ||
25479 | ||
25480 | succeeded=no | |
25481 | ||
25482 | if test -z "$PKG_CONFIG"; then | |
25483 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25484 | set dummy pkg-config; ac_word=$2 | |
25485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25487 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25489 | else | |
25490 | case $PKG_CONFIG in | |
25491 | [\\/]* | ?:[\\/]*) | |
25492 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25493 | ;; | |
25494 | *) | |
25495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25496 | for as_dir in $PATH | |
25497 | do | |
25498 | IFS=$as_save_IFS | |
25499 | test -z "$as_dir" && as_dir=. | |
25500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25501 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25502 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25503 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25504 | break 2 | |
25505 | fi | |
25506 | done | |
25507 | done | |
25508 | ||
25509 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25510 | ;; | |
25511 | esac | |
25512 | fi | |
25513 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25514 | ||
25515 | if test -n "$PKG_CONFIG"; then | |
25516 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25517 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25518 | else | |
25519 | echo "$as_me:$LINENO: result: no" >&5 | |
25520 | echo "${ECHO_T}no" >&6 | |
25521 | fi | |
25522 | ||
25523 | fi | |
25524 | ||
25525 | if test "$PKG_CONFIG" = "no" ; then | |
25526 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25527 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25528 | echo "*** to the full path to pkg-config." | |
25529 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25530 | else | |
25531 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25532 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25533 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25534 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25535 | ||
25536 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25537 | echo "$as_me:$LINENO: result: yes" >&5 | |
25538 | echo "${ECHO_T}yes" >&6 | |
25539 | succeeded=yes | |
25540 | ||
25541 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25542 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25543 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25544 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25545 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25546 | ||
25547 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25548 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25549 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25550 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25551 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25552 | else | |
25553 | PANGOXFT_CFLAGS="" | |
25554 | PANGOXFT_LIBS="" | |
25555 | ## If we have a custom action on failure, don't print errors, but | |
25556 | ## do set a variable so people can do so. | |
25557 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25558 | ||
25559 | fi | |
25560 | ||
25561 | ||
25562 | ||
25563 | else | |
25564 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25565 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25566 | fi | |
25567 | fi | |
25568 | ||
25569 | if test $succeeded = yes; then | |
25570 | ||
25571 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25572 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25573 | ||
25574 | else | |
25575 | ||
25576 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25577 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25578 | ||
25579 | ||
25580 | fi | |
25581 | ||
304205f1 VS |
25582 | save_CFLAGS="$CFLAGS" |
25583 | save_LIBS="$LIBS" | |
25584 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25585 | LIBS="$LIBS $PANGOX_LIBS" | |
25586 | ||
25587 | for ac_func in pango_font_family_is_monospace | |
25588 | do | |
25589 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25590 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25591 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25592 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25594 | else | |
25595 | cat >conftest.$ac_ext <<_ACEOF | |
25596 | /* confdefs.h. */ | |
25597 | _ACEOF | |
25598 | cat confdefs.h >>conftest.$ac_ext | |
25599 | cat >>conftest.$ac_ext <<_ACEOF | |
25600 | /* end confdefs.h. */ | |
25601 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25602 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25603 | #define $ac_func innocuous_$ac_func | |
25604 | ||
25605 | /* System header to define __stub macros and hopefully few prototypes, | |
25606 | which can conflict with char $ac_func (); below. | |
25607 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25608 | <limits.h> exists even on freestanding compilers. */ | |
25609 | ||
25610 | #ifdef __STDC__ | |
25611 | # include <limits.h> | |
25612 | #else | |
25613 | # include <assert.h> | |
25614 | #endif | |
25615 | ||
25616 | #undef $ac_func | |
25617 | ||
25618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25619 | #ifdef __cplusplus | |
25620 | extern "C" | |
25621 | { | |
25622 | #endif | |
25623 | /* We use char because int might match the return type of a gcc2 | |
25624 | builtin and then its argument prototype would still apply. */ | |
25625 | char $ac_func (); | |
25626 | /* The GNU C library defines this for functions which it implements | |
25627 | to always fail with ENOSYS. Some functions are actually named | |
25628 | something starting with __ and the normal name is an alias. */ | |
25629 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25630 | choke me | |
25631 | #else | |
25632 | char (*f) () = $ac_func; | |
25633 | #endif | |
25634 | #ifdef __cplusplus | |
25635 | } | |
25636 | #endif | |
25637 | ||
25638 | int | |
25639 | main () | |
25640 | { | |
25641 | return f != $ac_func; | |
25642 | ; | |
25643 | return 0; | |
25644 | } | |
25645 | _ACEOF | |
25646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25648 | (eval $ac_link) 2>conftest.er1 | |
25649 | ac_status=$? | |
25650 | grep -v '^ *+' conftest.er1 >conftest.err | |
25651 | rm -f conftest.er1 | |
25652 | cat conftest.err >&5 | |
25653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25654 | (exit $ac_status); } && | |
25655 | { ac_try='test -z "$ac_c_werror_flag" | |
25656 | || test ! -s conftest.err' | |
25657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25658 | (eval $ac_try) 2>&5 | |
25659 | ac_status=$? | |
25660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25661 | (exit $ac_status); }; } && | |
25662 | { ac_try='test -s conftest$ac_exeext' | |
25663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25664 | (eval $ac_try) 2>&5 | |
25665 | ac_status=$? | |
25666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25667 | (exit $ac_status); }; }; then | |
25668 | eval "$as_ac_var=yes" | |
25669 | else | |
25670 | echo "$as_me: failed program was:" >&5 | |
25671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25672 | ||
25673 | eval "$as_ac_var=no" | |
25674 | fi | |
25675 | rm -f conftest.err conftest.$ac_objext \ | |
25676 | conftest$ac_exeext conftest.$ac_ext | |
25677 | fi | |
25678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25679 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25680 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25681 | cat >>confdefs.h <<_ACEOF | |
25682 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25683 | _ACEOF | |
25684 | ||
25685 | fi | |
25686 | done | |
25687 | ||
25688 | CFLAGS="$save_CFLAGS" | |
25689 | LIBS="$save_LIBS" | |
a848cd7e SC |
25690 | fi |
25691 | ||
25692 | wxUSE_UNIVERSAL="yes" | |
25693 | ||
25694 | if test "$wxUSE_NANOX" = "yes"; then | |
25695 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25696 | 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" | |
25697 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25698 | else | |
25699 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25700 | fi | |
25701 | ||
25702 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
25703 | TOOLKIT=X11 | |
25704 | GUIDIST=X11_DIST | |
25705 | fi | |
25706 | ||
25707 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25708 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25709 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25710 | |
74b84332 VS |
25711 | ac_find_includes= |
25712 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25713 | do | |
25714 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25715 | ac_find_includes=$ac_dir | |
25716 | break | |
25717 | fi | |
25718 | done | |
a848cd7e | 25719 | |
74b84332 VS |
25720 | if test "$ac_find_includes" != "" ; then |
25721 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25722 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25723 | ||
25724 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25725 | ac_path_to_include="" | |
25726 | else | |
25727 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25728 | result=$? | |
25729 | if test $result = 0; then | |
25730 | ac_path_to_include="" | |
25731 | else | |
25732 | ac_path_to_include=" -I$ac_find_includes" | |
25733 | fi | |
a848cd7e SC |
25734 | fi |
25735 | ||
74b84332 VS |
25736 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25737 | else | |
25738 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25739 | /* confdefs.h. */ |
25740 | _ACEOF | |
25741 | cat confdefs.h >>conftest.$ac_ext | |
25742 | cat >>conftest.$ac_ext <<_ACEOF | |
25743 | /* end confdefs.h. */ | |
25744 | ||
74b84332 VS |
25745 | #include <Xm/Xm.h> |
25746 | ||
a848cd7e SC |
25747 | int |
25748 | main () | |
25749 | { | |
25750 | ||
74b84332 VS |
25751 | int version; |
25752 | version = xmUseVersion; | |
25753 | ||
a848cd7e SC |
25754 | ; |
25755 | return 0; | |
25756 | } | |
25757 | _ACEOF | |
74b84332 VS |
25758 | rm -f conftest.$ac_objext |
25759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25760 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25761 | ac_status=$? |
ac1cb8d3 VS |
25762 | grep -v '^ *+' conftest.er1 >conftest.err |
25763 | rm -f conftest.er1 | |
25764 | cat conftest.err >&5 | |
a848cd7e SC |
25765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25766 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25767 | { ac_try='test -z "$ac_c_werror_flag" |
25768 | || test ! -s conftest.err' | |
25769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25770 | (eval $ac_try) 2>&5 | |
25771 | ac_status=$? | |
25772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25773 | (exit $ac_status); }; } && | |
74b84332 | 25774 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25776 | (eval $ac_try) 2>&5 | |
25777 | ac_status=$? | |
25778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25779 | (exit $ac_status); }; }; then | |
74b84332 VS |
25780 | |
25781 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25782 | echo "${ECHO_T}found in default search path" >&6 | |
25783 | COMPILED_X_PROGRAM=1 | |
25784 | ||
a848cd7e SC |
25785 | else |
25786 | echo "$as_me: failed program was:" >&5 | |
25787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25788 | ||
a848cd7e | 25789 | |
74b84332 VS |
25790 | echo "$as_me:$LINENO: result: no" >&5 |
25791 | echo "${ECHO_T}no" >&6 | |
25792 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25793 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25794 | { (exit 1); exit 1; }; } | |
a848cd7e | 25795 | |
a848cd7e | 25796 | |
a848cd7e | 25797 | fi |
74b84332 VS |
25798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25799 | fi | |
25800 | ||
25801 | if test "$COMPILED_X_PROGRAM" = 0; then | |
25802 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
25803 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25804 | ||
25805 | ac_find_libraries= | |
25806 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25807 | do | |
25808 | for ac_extension in a so sl dylib; do | |
25809 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25810 | ac_find_libraries=$ac_dir | |
25811 | break 2 | |
a848cd7e | 25812 | fi |
74b84332 VS |
25813 | done |
25814 | done | |
a848cd7e | 25815 | |
74b84332 VS |
25816 | if test "$ac_find_libraries" != "" ; then |
25817 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25818 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 25819 | |
74b84332 VS |
25820 | |
25821 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25822 | result=$? | |
25823 | if test $result = 0; then | |
25824 | ac_path_to_link="" | |
a848cd7e | 25825 | else |
74b84332 VS |
25826 | ac_path_to_link=" -L$ac_find_libraries" |
25827 | fi | |
25828 | ||
25829 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25830 | else | |
25831 | save_CFLAGS=$CFLAGS | |
25832 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25833 | ||
25834 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25835 | /* confdefs.h. */ |
25836 | _ACEOF | |
25837 | cat confdefs.h >>conftest.$ac_ext | |
25838 | cat >>conftest.$ac_ext <<_ACEOF | |
25839 | /* end confdefs.h. */ | |
25840 | ||
74b84332 VS |
25841 | #include <Xm/Xm.h> |
25842 | ||
a848cd7e SC |
25843 | int |
25844 | main () | |
25845 | { | |
74b84332 VS |
25846 | |
25847 | int version; | |
25848 | version = xmUseVersion; | |
25849 | ||
a848cd7e SC |
25850 | ; |
25851 | return 0; | |
25852 | } | |
25853 | _ACEOF | |
74b84332 VS |
25854 | rm -f conftest.$ac_objext |
25855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25856 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25857 | ac_status=$? |
ac1cb8d3 VS |
25858 | grep -v '^ *+' conftest.er1 >conftest.err |
25859 | rm -f conftest.er1 | |
25860 | cat conftest.err >&5 | |
a848cd7e SC |
25861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25862 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25863 | { ac_try='test -z "$ac_c_werror_flag" |
25864 | || test ! -s conftest.err' | |
25865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25866 | (eval $ac_try) 2>&5 | |
25867 | ac_status=$? | |
25868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25869 | (exit $ac_status); }; } && | |
74b84332 | 25870 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25872 | (eval $ac_try) 2>&5 | |
25873 | ac_status=$? | |
25874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25875 | (exit $ac_status); }; }; then | |
74b84332 VS |
25876 | |
25877 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25878 | echo "${ECHO_T}found in default search path" >&6 | |
25879 | COMPILED_X_PROGRAM=1 | |
25880 | ||
a848cd7e SC |
25881 | else |
25882 | echo "$as_me: failed program was:" >&5 | |
25883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25884 | ||
74b84332 VS |
25885 | |
25886 | echo "$as_me:$LINENO: result: no" >&5 | |
25887 | echo "${ECHO_T}no" >&6 | |
25888 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
25889 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
25890 | { (exit 1); exit 1; }; } | |
25891 | ||
25892 | ||
25893 | fi | |
25894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25895 | ||
25896 | CFLAGS=$save_CFLAGS | |
25897 | fi | |
25898 | fi | |
25899 | ||
25900 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
25901 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
25902 | libp_link="" | |
25903 | libsm_ice_link="" | |
25904 | libs_found=0 | |
25905 | for libp in "" " -lXp"; do | |
25906 | if test "$libs_found" = "0"; then | |
25907 | for libsm_ice in "" " -lSM -lICE"; do | |
25908 | if test "$libs_found" = "0"; then | |
25909 | save_LIBS="$LIBS" | |
25910 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
25911 | save_CFLAGS=$CFLAGS | |
25912 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25913 | ||
25914 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25915 | /* confdefs.h. */ |
25916 | _ACEOF | |
25917 | cat confdefs.h >>conftest.$ac_ext | |
25918 | cat >>conftest.$ac_ext <<_ACEOF | |
25919 | /* end confdefs.h. */ | |
25920 | ||
74b84332 VS |
25921 | #include <Xm/Xm.h> |
25922 | #include <Xm/List.h> | |
25923 | ||
a848cd7e SC |
25924 | int |
25925 | main () | |
25926 | { | |
74b84332 VS |
25927 | |
25928 | XmString string = NULL; | |
25929 | Widget w = NULL; | |
25930 | int position = 0; | |
25931 | XmListAddItem(w, string, position); | |
25932 | ||
a848cd7e SC |
25933 | ; |
25934 | return 0; | |
25935 | } | |
25936 | _ACEOF | |
25937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25939 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25940 | ac_status=$? |
ac1cb8d3 VS |
25941 | grep -v '^ *+' conftest.er1 >conftest.err |
25942 | rm -f conftest.er1 | |
25943 | cat conftest.err >&5 | |
a848cd7e SC |
25944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25945 | (exit $ac_status); } && | |
ac1cb8d3 VS |
25946 | { ac_try='test -z "$ac_c_werror_flag" |
25947 | || test ! -s conftest.err' | |
25948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25949 | (eval $ac_try) 2>&5 | |
25950 | ac_status=$? | |
25951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25952 | (exit $ac_status); }; } && | |
25953 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25955 | (eval $ac_try) 2>&5 | |
25956 | ac_status=$? | |
25957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25958 | (exit $ac_status); }; }; then | |
25959 | ||
25960 | libp_link="$libp" | |
25961 | libsm_ice_link="$libsm_ice" | |
25962 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
25963 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
25964 | libs_found=1 | |
25965 | ||
25966 | else | |
25967 | echo "$as_me: failed program was:" >&5 | |
25968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25969 | ||
25970 | ||
25971 | ||
25972 | fi | |
ac1cb8d3 VS |
25973 | rm -f conftest.err conftest.$ac_objext \ |
25974 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25975 | |
25976 | LIBS="$save_LIBS" | |
25977 | CFLAGS=$save_CFLAGS | |
25978 | fi | |
25979 | done | |
25980 | fi | |
25981 | done | |
25982 | ||
25983 | if test "$libs_found" = "0"; then | |
25984 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
25985 | echo "${ECHO_T}can't find the right libraries" >&6 | |
25986 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
25987 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
25988 | { (exit 1); exit 1; }; } | |
25989 | fi | |
25990 | ||
25991 | save_CFLAGS=$CFLAGS | |
25992 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25993 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
25994 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
25995 | cat >conftest.$ac_ext <<_ACEOF | |
25996 | /* confdefs.h. */ | |
25997 | _ACEOF | |
25998 | cat confdefs.h >>conftest.$ac_ext | |
25999 | cat >>conftest.$ac_ext <<_ACEOF | |
26000 | /* end confdefs.h. */ | |
26001 | ||
26002 | #include <Xm/Xm.h> | |
26003 | ||
26004 | int | |
26005 | main () | |
26006 | { | |
26007 | ||
26008 | #if XmVersion < 2000 | |
26009 | #error "Not Motif 2" | |
26010 | #endif | |
26011 | ||
26012 | ; | |
26013 | return 0; | |
26014 | } | |
26015 | _ACEOF | |
26016 | rm -f conftest.$ac_objext | |
26017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26018 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26019 | ac_status=$? |
ac1cb8d3 VS |
26020 | grep -v '^ *+' conftest.er1 >conftest.err |
26021 | rm -f conftest.er1 | |
26022 | cat conftest.err >&5 | |
a848cd7e SC |
26023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26024 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26025 | { ac_try='test -z "$ac_c_werror_flag" |
26026 | || test ! -s conftest.err' | |
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); }; } && | |
26032 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26034 | (eval $ac_try) 2>&5 | |
26035 | ac_status=$? | |
26036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26037 | (exit $ac_status); }; }; then | |
26038 | ||
26039 | cat >>confdefs.h <<\_ACEOF | |
26040 | #define __WXMOTIF20__ 1 | |
26041 | _ACEOF | |
26042 | ||
26043 | echo "$as_me:$LINENO: result: found" >&5 | |
26044 | echo "${ECHO_T}found" >&6 | |
26045 | ||
26046 | else | |
26047 | echo "$as_me: failed program was:" >&5 | |
26048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26049 | ||
26050 | ||
26051 | cat >>confdefs.h <<\_ACEOF | |
26052 | #define __WXMOTIF20__ 0 | |
26053 | _ACEOF | |
26054 | ||
26055 | echo "$as_me:$LINENO: result: not found" >&5 | |
26056 | echo "${ECHO_T}not found" >&6 | |
26057 | ||
26058 | fi | |
ac1cb8d3 | 26059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26060 | CFLAGS=$save_CFLAGS |
26061 | ||
26062 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
26063 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" | |
26064 | TOOLKIT=MOTIF | |
26065 | GUIDIST=MOTIF_DIST | |
26066 | fi | |
26067 | ||
74b84332 | 26068 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26069 | if test "$wxUSE_LIBXPM" = "sys"; then |
26070 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26071 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26072 | ||
26073 | ac_find_libraries= | |
26074 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26075 | do | |
26076 | for ac_extension in a so sl dylib; do | |
26077 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26078 | ac_find_libraries=$ac_dir | |
26079 | break 2 | |
26080 | fi | |
26081 | done | |
26082 | done | |
26083 | ||
26084 | if test "$ac_find_libraries" != "" ; then | |
26085 | ||
26086 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26087 | result=$? | |
26088 | if test $result = 0; then | |
26089 | ac_path_to_link="" | |
26090 | else | |
26091 | ac_path_to_link=" -L$ac_find_libraries" | |
26092 | fi | |
26093 | ||
26094 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26095 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26096 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26097 | ||
26098 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26099 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26100 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26102 | else | |
26103 | ||
26104 | save_CFLAGS=$CFLAGS | |
26105 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26106 | ||
26107 | cat >conftest.$ac_ext <<_ACEOF | |
26108 | /* confdefs.h. */ | |
26109 | _ACEOF | |
26110 | cat confdefs.h >>conftest.$ac_ext | |
26111 | cat >>conftest.$ac_ext <<_ACEOF | |
26112 | /* end confdefs.h. */ | |
26113 | ||
26114 | #include <X11/xpm.h> | |
26115 | ||
26116 | int | |
26117 | main () | |
26118 | { | |
26119 | ||
26120 | int version; | |
26121 | version = XpmLibraryVersion(); | |
26122 | ||
26123 | ; | |
26124 | return 0; | |
26125 | } | |
26126 | _ACEOF | |
26127 | rm -f conftest.$ac_objext | |
26128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26129 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26130 | ac_status=$? |
ac1cb8d3 VS |
26131 | grep -v '^ *+' conftest.er1 >conftest.err |
26132 | rm -f conftest.er1 | |
26133 | cat conftest.err >&5 | |
a848cd7e SC |
26134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26135 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26136 | { ac_try='test -z "$ac_c_werror_flag" |
26137 | || test ! -s conftest.err' | |
26138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26139 | (eval $ac_try) 2>&5 | |
26140 | ac_status=$? | |
26141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26142 | (exit $ac_status); }; } && | |
26143 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26145 | (eval $ac_try) 2>&5 | |
26146 | ac_status=$? | |
26147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26148 | (exit $ac_status); }; }; then | |
26149 | wx_cv_x11_xpm_h=yes | |
26150 | else | |
26151 | echo "$as_me: failed program was:" >&5 | |
26152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26153 | ||
26154 | wx_cv_x11_xpm_h=no | |
26155 | ||
26156 | fi | |
ac1cb8d3 | 26157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26158 | |
26159 | CFLAGS=$save_CFLAGS | |
26160 | ||
26161 | ||
26162 | fi | |
26163 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26164 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26165 | ||
26166 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26167 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26168 | cat >>confdefs.h <<\_ACEOF | |
26169 | #define wxHAVE_LIB_XPM 1 | |
26170 | _ACEOF | |
26171 | ||
26172 | else | |
26173 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26174 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26175 | fi | |
26176 | fi | |
26177 | ||
26178 | fi | |
26179 | ||
26180 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26181 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26182 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26184 | else | |
26185 | ac_check_lib_save_LIBS=$LIBS | |
26186 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26187 | cat >conftest.$ac_ext <<_ACEOF | |
26188 | /* confdefs.h. */ | |
26189 | _ACEOF | |
26190 | cat confdefs.h >>conftest.$ac_ext | |
26191 | cat >>conftest.$ac_ext <<_ACEOF | |
26192 | /* end confdefs.h. */ | |
26193 | ||
26194 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26195 | #ifdef __cplusplus | |
26196 | extern "C" | |
26197 | #endif | |
26198 | /* We use char because int might match the return type of a gcc2 | |
26199 | builtin and then its argument prototype would still apply. */ | |
26200 | char XShapeQueryExtension (); | |
26201 | int | |
26202 | main () | |
26203 | { | |
26204 | XShapeQueryExtension (); | |
26205 | ; | |
26206 | return 0; | |
26207 | } | |
26208 | _ACEOF | |
26209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26211 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26212 | ac_status=$? |
ac1cb8d3 VS |
26213 | grep -v '^ *+' conftest.er1 >conftest.err |
26214 | rm -f conftest.er1 | |
26215 | cat conftest.err >&5 | |
a848cd7e SC |
26216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26217 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26218 | { ac_try='test -z "$ac_c_werror_flag" |
26219 | || test ! -s conftest.err' | |
26220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26221 | (eval $ac_try) 2>&5 | |
26222 | ac_status=$? | |
26223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26224 | (exit $ac_status); }; } && | |
26225 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26227 | (eval $ac_try) 2>&5 | |
26228 | ac_status=$? | |
26229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26230 | (exit $ac_status); }; }; then | |
26231 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26232 | else | |
26233 | echo "$as_me: failed program was:" >&5 | |
26234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26235 | ||
26236 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26237 | fi | |
ac1cb8d3 VS |
26238 | rm -f conftest.err conftest.$ac_objext \ |
26239 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26240 | LIBS=$ac_check_lib_save_LIBS |
26241 | fi | |
26242 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26243 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26244 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26245 | ||
26246 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26247 | wxHAVE_XEXT_LIB=1 | |
26248 | ||
26249 | fi | |
26250 | ||
26251 | ||
26252 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26253 | save_CFLAGS="$CFLAGS" | |
26254 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26255 | ||
26256 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26257 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26258 | cat >conftest.$ac_ext <<_ACEOF | |
26259 | /* confdefs.h. */ | |
26260 | _ACEOF | |
26261 | cat confdefs.h >>conftest.$ac_ext | |
26262 | cat >>conftest.$ac_ext <<_ACEOF | |
26263 | /* end confdefs.h. */ | |
26264 | ||
26265 | #include <X11/Xlib.h> | |
26266 | #include <X11/extensions/shape.h> | |
26267 | ||
26268 | int | |
26269 | main () | |
26270 | { | |
26271 | ||
26272 | int dummy1, dummy2; | |
26273 | XShapeQueryExtension((Display*)NULL, | |
26274 | (int*)NULL, (int*)NULL); | |
26275 | ||
26276 | ; | |
26277 | return 0; | |
26278 | } | |
26279 | _ACEOF | |
26280 | rm -f conftest.$ac_objext | |
26281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26282 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26283 | ac_status=$? |
ac1cb8d3 VS |
26284 | grep -v '^ *+' conftest.er1 >conftest.err |
26285 | rm -f conftest.er1 | |
26286 | cat conftest.err >&5 | |
a848cd7e SC |
26287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26288 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26289 | { ac_try='test -z "$ac_c_werror_flag" |
26290 | || test ! -s conftest.err' | |
26291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26292 | (eval $ac_try) 2>&5 | |
26293 | ac_status=$? | |
26294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26295 | (exit $ac_status); }; } && | |
26296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26298 | (eval $ac_try) 2>&5 | |
26299 | ac_status=$? | |
26300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26301 | (exit $ac_status); }; }; then | |
26302 | ||
26303 | cat >>confdefs.h <<\_ACEOF | |
26304 | #define HAVE_XSHAPE 1 | |
26305 | _ACEOF | |
26306 | ||
26307 | echo "$as_me:$LINENO: result: found" >&5 | |
26308 | echo "${ECHO_T}found" >&6 | |
26309 | ||
26310 | else | |
26311 | echo "$as_me: failed program was:" >&5 | |
26312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26313 | ||
26314 | ||
26315 | echo "$as_me:$LINENO: result: not found" >&5 | |
26316 | echo "${ECHO_T}not found" >&6 | |
26317 | ||
26318 | fi | |
ac1cb8d3 | 26319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26320 | CFLAGS="$save_CFLAGS" |
26321 | ||
26322 | fi | |
26323 | fi | |
26324 | ||
26325 | if test "$wxUSE_MAC" = 1; then | |
26326 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26327 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26328 | if test "$GCC" = yes; then | |
26329 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26330 | echo "${ECHO_T}gcc" >&6 | |
26331 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26332 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26333 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26334 | echo "${ECHO_T}xlc" >&6 | |
26335 | CPPFLAGS_PASCAL="-qmacpstr" | |
26336 | else | |
26337 | echo "$as_me:$LINENO: result: none" >&5 | |
26338 | echo "${ECHO_T}none" >&6 | |
26339 | fi | |
26340 | ||
26341 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26342 | ||
26343 | TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex" | |
26344 | TOOLKIT=MAC | |
26345 | GUIDIST=MACX_DIST | |
26346 | WXBASEPORT="_carbon" | |
26347 | fi | |
26348 | ||
26349 | if test "$wxUSE_COCOA" = 1; then | |
26350 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
26351 | TOOLKIT=COCOA | |
26352 | GUIDIST=COCOA_DIST | |
26353 | fi | |
26354 | ||
26355 | if test "$wxUSE_PM" = 1; then | |
26356 | TOOLKIT=PM | |
de59c161 RD |
26357 | GUIDIST=PM_DIST |
26358 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26359 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26360 | if test "${wx_cv_spbcdata+set}" = set; then | |
26361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26362 | else | |
26363 | ||
26364 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26365 | /* confdefs.h. */ |
26366 | _ACEOF | |
26367 | cat confdefs.h >>conftest.$ac_ext | |
26368 | cat >>conftest.$ac_ext <<_ACEOF | |
26369 | /* end confdefs.h. */ | |
26370 | ||
26371 | #define INCL_PM | |
26372 | #include <os2.h> | |
26373 | ||
26374 | int | |
26375 | main () | |
26376 | { | |
26377 | ||
26378 | SPBCDATA test; | |
26379 | ||
26380 | ; | |
26381 | return 0; | |
26382 | } | |
26383 | _ACEOF | |
26384 | rm -f conftest.$ac_objext | |
26385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26386 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26387 | ac_status=$? |
ac1cb8d3 VS |
26388 | grep -v '^ *+' conftest.er1 >conftest.err |
26389 | rm -f conftest.er1 | |
26390 | cat conftest.err >&5 | |
de59c161 RD |
26391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26392 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26393 | { ac_try='test -z "$ac_c_werror_flag" |
26394 | || test ! -s conftest.err' | |
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); }; } && | |
26400 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26402 | (eval $ac_try) 2>&5 | |
26403 | ac_status=$? | |
26404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26405 | (exit $ac_status); }; }; then | |
26406 | wx_cv_spbcdata=yes | |
26407 | else | |
26408 | echo "$as_me: failed program was:" >&5 | |
26409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26410 | ||
26411 | wx_cv_spbcdata=no | |
26412 | ||
26413 | fi | |
ac1cb8d3 | 26414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26415 | |
26416 | ||
26417 | fi | |
26418 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26419 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26420 | ||
26421 | if test $wx_cv_spbcdata = "yes"; then | |
26422 | cat >>confdefs.h <<\_ACEOF | |
26423 | #define HAVE_SPBCDATA 1 | |
26424 | _ACEOF | |
26425 | ||
26426 | fi | |
a848cd7e SC |
26427 | fi |
26428 | ||
26429 | if test "$TOOLKIT" = "PM" ; then | |
26430 | TOOLKIT_DIR="os2" | |
26431 | else | |
26432 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26433 | fi | |
26434 | ||
26435 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
26436 | ||
26437 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
26438 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
26439 | ||
26440 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
26441 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
26442 | ||
26443 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
26444 | if test "$wxUSE_X11" = 1; then | |
26445 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
26446 | else | |
26447 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26448 | fi | |
26449 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
26450 | WIDGET_SET=univ | |
26451 | else | |
26452 | ALL_OBJECTS="\$(GUIOBJS)" | |
26453 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26454 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26455 | fi | |
26456 | ||
26457 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
26458 | ||
26459 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
26460 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
26461 | fi | |
26462 | ||
26463 | if test "$wxUSE_HTML" = "yes"; then | |
26464 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
26465 | fi | |
26466 | ||
26467 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
26468 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
26469 | fi | |
26470 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
26471 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
26472 | fi | |
26473 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
26474 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
26475 | fi | |
26476 | ||
26477 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26478 | DISTDIR="wx\$(TOOLKIT)" | |
26479 | else | |
26480 | USE_GUI=0 | |
26481 | ||
26482 | TOOLKIT_DIR="base" | |
26483 | ||
26484 | if test "$USE_WIN32" = 1 ; then | |
26485 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
26486 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
26487 | ||
26488 | TOOLKIT="MSW" | |
26489 | else | |
26490 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
26491 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
26492 | fi | |
26493 | ||
26494 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26495 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26496 | ||
26497 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
26498 | ||
26499 | GUIDIST="BASE_DIST" | |
26500 | DISTDIR="wxBase" | |
26501 | fi | |
26502 | ||
26503 | ||
26504 | ||
26505 | ||
26506 | IODBC_C_SRC="" | |
26507 | ||
26508 | ||
26509 | if test "$TOOLKIT" != "MSW" ; then | |
26510 | ||
26511 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26512 | ||
26513 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26514 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26515 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26516 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26518 | fi | |
26519 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26520 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26521 | else | |
26522 | # Is the header compilable? | |
26523 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26524 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26525 | cat >conftest.$ac_ext <<_ACEOF | |
26526 | /* confdefs.h. */ | |
26527 | _ACEOF | |
26528 | cat confdefs.h >>conftest.$ac_ext | |
26529 | cat >>conftest.$ac_ext <<_ACEOF | |
26530 | /* end confdefs.h. */ | |
26531 | $ac_includes_default | |
26532 | #include <sql.h> | |
26533 | _ACEOF | |
26534 | rm -f conftest.$ac_objext | |
26535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26536 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26537 | ac_status=$? |
ac1cb8d3 VS |
26538 | grep -v '^ *+' conftest.er1 >conftest.err |
26539 | rm -f conftest.er1 | |
26540 | cat conftest.err >&5 | |
a848cd7e SC |
26541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26542 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26543 | { ac_try='test -z "$ac_c_werror_flag" |
26544 | || test ! -s conftest.err' | |
26545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26546 | (eval $ac_try) 2>&5 | |
26547 | ac_status=$? | |
26548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26549 | (exit $ac_status); }; } && | |
26550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26552 | (eval $ac_try) 2>&5 | |
26553 | ac_status=$? | |
26554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26555 | (exit $ac_status); }; }; then | |
26556 | ac_header_compiler=yes | |
26557 | else | |
26558 | echo "$as_me: failed program was:" >&5 | |
26559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26560 | ||
26561 | ac_header_compiler=no | |
26562 | fi | |
ac1cb8d3 | 26563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26564 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26565 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26566 | ||
26567 | # Is the header present? | |
26568 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26569 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26570 | cat >conftest.$ac_ext <<_ACEOF | |
26571 | /* confdefs.h. */ | |
26572 | _ACEOF | |
26573 | cat confdefs.h >>conftest.$ac_ext | |
26574 | cat >>conftest.$ac_ext <<_ACEOF | |
26575 | /* end confdefs.h. */ | |
26576 | #include <sql.h> | |
26577 | _ACEOF | |
26578 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26579 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26580 | ac_status=$? | |
26581 | grep -v '^ *+' conftest.er1 >conftest.err | |
26582 | rm -f conftest.er1 | |
26583 | cat conftest.err >&5 | |
26584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26585 | (exit $ac_status); } >/dev/null; then | |
26586 | if test -s conftest.err; then | |
26587 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26588 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26589 | else |
26590 | ac_cpp_err= | |
26591 | fi | |
26592 | else | |
26593 | ac_cpp_err=yes | |
26594 | fi | |
26595 | if test -z "$ac_cpp_err"; then | |
26596 | ac_header_preproc=yes | |
26597 | else | |
26598 | echo "$as_me: failed program was:" >&5 | |
26599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26600 | ||
26601 | ac_header_preproc=no | |
26602 | fi | |
26603 | rm -f conftest.err conftest.$ac_ext | |
26604 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26605 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26606 | ||
26607 | # So? What about this header? | |
ac1cb8d3 VS |
26608 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26609 | yes:no: ) | |
a848cd7e SC |
26610 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26611 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26612 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26613 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26614 | ac_header_preproc=yes | |
a848cd7e | 26615 | ;; |
ac1cb8d3 | 26616 | no:yes:* ) |
a848cd7e SC |
26617 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26618 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26619 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26620 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26621 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26622 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26623 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26624 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26625 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26626 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26627 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26628 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26629 | ( |
26630 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26631 | ## ----------------------------------------- ## |
26632 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26633 | ## ----------------------------------------- ## | |
a848cd7e SC |
26634 | _ASBOX |
26635 | ) | | |
26636 | sed "s/^/$as_me: WARNING: /" >&2 | |
26637 | ;; | |
26638 | esac | |
26639 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26640 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26641 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26643 | else | |
26644 | ac_cv_header_sql_h=$ac_header_preproc | |
26645 | fi | |
26646 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26647 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26648 | ||
26649 | fi | |
26650 | if test $ac_cv_header_sql_h = yes; then | |
26651 | found_sql_h=1 | |
26652 | fi | |
26653 | ||
26654 | ||
26655 | if test "x$found_sql_h" = "x1" ; then | |
26656 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26657 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26658 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26660 | else | |
26661 | ac_check_lib_save_LIBS=$LIBS | |
26662 | LIBS="-liodbc $LIBS" | |
26663 | cat >conftest.$ac_ext <<_ACEOF | |
26664 | /* confdefs.h. */ | |
26665 | _ACEOF | |
26666 | cat confdefs.h >>conftest.$ac_ext | |
26667 | cat >>conftest.$ac_ext <<_ACEOF | |
26668 | /* end confdefs.h. */ | |
26669 | ||
26670 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26671 | #ifdef __cplusplus | |
26672 | extern "C" | |
26673 | #endif | |
26674 | /* We use char because int might match the return type of a gcc2 | |
26675 | builtin and then its argument prototype would still apply. */ | |
26676 | char SQLAllocEnv (); | |
26677 | int | |
26678 | main () | |
26679 | { | |
26680 | SQLAllocEnv (); | |
26681 | ; | |
26682 | return 0; | |
26683 | } | |
26684 | _ACEOF | |
26685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26687 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26688 | ac_status=$? |
ac1cb8d3 VS |
26689 | grep -v '^ *+' conftest.er1 >conftest.err |
26690 | rm -f conftest.er1 | |
26691 | cat conftest.err >&5 | |
a848cd7e SC |
26692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26693 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26694 | { ac_try='test -z "$ac_c_werror_flag" |
26695 | || test ! -s conftest.err' | |
26696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26697 | (eval $ac_try) 2>&5 | |
26698 | ac_status=$? | |
26699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26700 | (exit $ac_status); }; } && | |
26701 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26703 | (eval $ac_try) 2>&5 | |
26704 | ac_status=$? | |
26705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26706 | (exit $ac_status); }; }; then | |
26707 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26708 | else | |
26709 | echo "$as_me: failed program was:" >&5 | |
26710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26711 | ||
26712 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26713 | fi | |
ac1cb8d3 VS |
26714 | rm -f conftest.err conftest.$ac_objext \ |
26715 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26716 | LIBS=$ac_check_lib_save_LIBS |
26717 | fi | |
26718 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26719 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26720 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26721 | ODBC_LINK=" -liodbc" | |
26722 | else | |
26723 | ||
26724 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26725 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26726 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26728 | else | |
26729 | ac_check_lib_save_LIBS=$LIBS | |
26730 | LIBS="-lunixodbc $LIBS" | |
26731 | cat >conftest.$ac_ext <<_ACEOF | |
26732 | /* confdefs.h. */ | |
26733 | _ACEOF | |
26734 | cat confdefs.h >>conftest.$ac_ext | |
26735 | cat >>conftest.$ac_ext <<_ACEOF | |
26736 | /* end confdefs.h. */ | |
26737 | ||
26738 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26739 | #ifdef __cplusplus | |
26740 | extern "C" | |
26741 | #endif | |
26742 | /* We use char because int might match the return type of a gcc2 | |
26743 | builtin and then its argument prototype would still apply. */ | |
26744 | char SQLAllocEnv (); | |
26745 | int | |
26746 | main () | |
26747 | { | |
26748 | SQLAllocEnv (); | |
26749 | ; | |
26750 | return 0; | |
26751 | } | |
26752 | _ACEOF | |
26753 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26755 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26756 | ac_status=$? |
ac1cb8d3 VS |
26757 | grep -v '^ *+' conftest.er1 >conftest.err |
26758 | rm -f conftest.er1 | |
26759 | cat conftest.err >&5 | |
a848cd7e SC |
26760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26761 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26762 | { ac_try='test -z "$ac_c_werror_flag" |
26763 | || test ! -s conftest.err' | |
26764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26765 | (eval $ac_try) 2>&5 | |
26766 | ac_status=$? | |
26767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26768 | (exit $ac_status); }; } && | |
26769 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26771 | (eval $ac_try) 2>&5 | |
26772 | ac_status=$? | |
26773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26774 | (exit $ac_status); }; }; then | |
26775 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
26776 | else | |
26777 | echo "$as_me: failed program was:" >&5 | |
26778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26779 | ||
26780 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
26781 | fi | |
ac1cb8d3 VS |
26782 | rm -f conftest.err conftest.$ac_objext \ |
26783 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26784 | LIBS=$ac_check_lib_save_LIBS |
26785 | fi | |
26786 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
26787 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26788 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
26789 | ODBC_LINK=" -lunixodbc" | |
26790 | else | |
26791 | ||
26792 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
26793 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26794 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
26795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26796 | else | |
26797 | ac_check_lib_save_LIBS=$LIBS | |
26798 | LIBS="-lodbc $LIBS" | |
26799 | cat >conftest.$ac_ext <<_ACEOF | |
26800 | /* confdefs.h. */ | |
26801 | _ACEOF | |
26802 | cat confdefs.h >>conftest.$ac_ext | |
26803 | cat >>conftest.$ac_ext <<_ACEOF | |
26804 | /* end confdefs.h. */ | |
26805 | ||
26806 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26807 | #ifdef __cplusplus | |
26808 | extern "C" | |
26809 | #endif | |
26810 | /* We use char because int might match the return type of a gcc2 | |
26811 | builtin and then its argument prototype would still apply. */ | |
26812 | char SQLAllocEnv (); | |
26813 | int | |
26814 | main () | |
26815 | { | |
26816 | SQLAllocEnv (); | |
26817 | ; | |
26818 | return 0; | |
26819 | } | |
26820 | _ACEOF | |
26821 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26823 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26824 | ac_status=$? |
ac1cb8d3 VS |
26825 | grep -v '^ *+' conftest.er1 >conftest.err |
26826 | rm -f conftest.er1 | |
26827 | cat conftest.err >&5 | |
a848cd7e SC |
26828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26829 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26830 | { ac_try='test -z "$ac_c_werror_flag" |
26831 | || test ! -s conftest.err' | |
26832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26833 | (eval $ac_try) 2>&5 | |
26834 | ac_status=$? | |
26835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26836 | (exit $ac_status); }; } && | |
26837 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26839 | (eval $ac_try) 2>&5 | |
26840 | ac_status=$? | |
26841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26842 | (exit $ac_status); }; }; then | |
26843 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
26844 | else | |
26845 | echo "$as_me: failed program was:" >&5 | |
26846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26847 | ||
26848 | ac_cv_lib_odbc_SQLAllocEnv=no | |
26849 | fi | |
ac1cb8d3 VS |
26850 | rm -f conftest.err conftest.$ac_objext \ |
26851 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26852 | LIBS=$ac_check_lib_save_LIBS |
26853 | fi | |
26854 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
26855 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26856 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
26857 | ODBC_LINK=" -lodbc" | |
26858 | fi | |
26859 | ||
26860 | ||
26861 | fi | |
26862 | ||
26863 | ||
26864 | fi | |
26865 | ||
26866 | fi | |
26867 | if test "x$ODBC_LINK" = "x" ; then | |
26868 | if test "$wxUSE_ODBC" = "sys" ; then | |
26869 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26870 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26871 | { (exit 1); exit 1; }; } | |
26872 | else | |
26873 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26874 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26875 | wxUSE_ODBC=builtin | |
26876 | fi | |
26877 | else | |
26878 | wxUSE_ODBC=sys | |
26879 | fi | |
26880 | fi | |
26881 | if test "$wxUSE_ODBC" != "no" ; then | |
26882 | cat >>confdefs.h <<\_ACEOF | |
26883 | #define wxUSE_ODBC 1 | |
26884 | _ACEOF | |
26885 | ||
26886 | if test "$wxUSE_ODBC" = "builtin" ; then | |
26887 | cat >>confdefs.h <<\_ACEOF | |
26888 | #define wxUSE_BUILTIN_IODBC 1 | |
26889 | _ACEOF | |
26890 | ||
26891 | fi | |
26892 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
26893 | ||
26894 | WXODBCFLAG="-D_IODBC_" | |
26895 | fi | |
26896 | fi | |
26897 | ||
26898 | if test "$wxUSE_REGEX" = "builtin" ; then | |
26899 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
26900 | fi | |
26901 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
26902 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
26903 | fi | |
26904 | ||
01cb68df | 26905 | |
a848cd7e | 26906 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 26907 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
26908 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
26909 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
26910 | ||
26911 | ac_find_libraries= | |
26912 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26913 | do | |
26914 | for ac_extension in a so sl dylib; do | |
26915 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26916 | ac_find_libraries=$ac_dir | |
26917 | break 2 | |
26918 | fi | |
26919 | done | |
26920 | done | |
26921 | ||
26922 | if test "$ac_find_libraries" != "" ; then | |
26923 | ||
26924 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26925 | result=$? | |
26926 | if test $result = 0; then | |
26927 | ac_path_to_link="" | |
26928 | else | |
26929 | ac_path_to_link=" -L$ac_find_libraries" | |
26930 | fi | |
26931 | ||
26932 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26933 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
26934 | fi | |
26935 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
26936 | echo "$as_me:$LINENO: result: yes" >&5 | |
26937 | echo "${ECHO_T}yes" >&6 | |
26938 | ||
26939 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
26940 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
26941 | ||
26942 | ac_find_libraries= | |
26943 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26944 | do | |
26945 | for ac_extension in a so sl dylib; do | |
26946 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
26947 | ac_find_libraries=$ac_dir | |
26948 | break 2 | |
26949 | fi | |
26950 | done | |
26951 | done | |
26952 | ||
26953 | if test "$ac_find_libraries" != "" ; then | |
26954 | echo "$as_me:$LINENO: result: yes" >&5 | |
26955 | echo "${ECHO_T}yes" >&6 | |
26956 | ||
26957 | for ac_header in X11/extensions/xf86vmode.h | |
26958 | do | |
26959 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26960 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26961 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26962 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26964 | else | |
26965 | cat >conftest.$ac_ext <<_ACEOF | |
26966 | /* confdefs.h. */ | |
26967 | _ACEOF | |
26968 | cat confdefs.h >>conftest.$ac_ext | |
26969 | cat >>conftest.$ac_ext <<_ACEOF | |
26970 | /* end confdefs.h. */ | |
26971 | ||
26972 | #if HAVE_X11_XLIB_H | |
26973 | #include <X11/Xlib.h> | |
26974 | #endif | |
26975 | ||
26976 | ||
26977 | #include <$ac_header> | |
26978 | _ACEOF | |
26979 | rm -f conftest.$ac_objext | |
26980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26982 | ac_status=$? |
ac1cb8d3 VS |
26983 | grep -v '^ *+' conftest.er1 >conftest.err |
26984 | rm -f conftest.er1 | |
26985 | cat conftest.err >&5 | |
a848cd7e SC |
26986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26987 | (exit $ac_status); } && | |
ac1cb8d3 VS |
26988 | { ac_try='test -z "$ac_c_werror_flag" |
26989 | || test ! -s conftest.err' | |
26990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26991 | (eval $ac_try) 2>&5 | |
26992 | ac_status=$? | |
26993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26994 | (exit $ac_status); }; } && | |
26995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26997 | (eval $ac_try) 2>&5 | |
26998 | ac_status=$? | |
26999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27000 | (exit $ac_status); }; }; then | |
27001 | eval "$as_ac_Header=yes" | |
27002 | else | |
27003 | echo "$as_me: failed program was:" >&5 | |
27004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27005 | ||
27006 | eval "$as_ac_Header=no" | |
27007 | fi | |
ac1cb8d3 | 27008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27009 | fi |
27010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27012 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27013 | cat >>confdefs.h <<_ACEOF | |
27014 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27015 | _ACEOF | |
27016 | ||
27017 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27018 | ||
27019 | fi | |
27020 | ||
27021 | done | |
27022 | ||
27023 | else | |
27024 | echo "$as_me:$LINENO: result: no" >&5 | |
27025 | echo "${ECHO_T}no" >&6 | |
27026 | fi | |
27027 | ||
27028 | else | |
27029 | echo "$as_me:$LINENO: result: no" >&5 | |
27030 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27031 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27032 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27033 | wxUSE_DISPLAY="no" |
27034 | fi | |
01cb68df RG |
27035 | elif test "$wxUSE_MSW" = 1; then |
27036 | ||
27037 | ||
27038 | for ac_header in multimon.h ddraw.h | |
27039 | do | |
27040 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27042 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27043 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27046 | fi | |
27047 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27048 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27049 | else | |
27050 | # Is the header compilable? | |
27051 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27052 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27053 | cat >conftest.$ac_ext <<_ACEOF | |
27054 | /* confdefs.h. */ | |
27055 | _ACEOF | |
27056 | cat confdefs.h >>conftest.$ac_ext | |
27057 | cat >>conftest.$ac_ext <<_ACEOF | |
27058 | /* end confdefs.h. */ | |
27059 | $ac_includes_default | |
27060 | #include <$ac_header> | |
27061 | _ACEOF | |
27062 | rm -f conftest.$ac_objext | |
27063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27064 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27065 | ac_status=$? |
ac1cb8d3 VS |
27066 | grep -v '^ *+' conftest.er1 >conftest.err |
27067 | rm -f conftest.er1 | |
27068 | cat conftest.err >&5 | |
01cb68df RG |
27069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27070 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27071 | { ac_try='test -z "$ac_c_werror_flag" |
27072 | || test ! -s conftest.err' | |
27073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27074 | (eval $ac_try) 2>&5 | |
27075 | ac_status=$? | |
27076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27077 | (exit $ac_status); }; } && | |
27078 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27080 | (eval $ac_try) 2>&5 | |
27081 | ac_status=$? | |
27082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27083 | (exit $ac_status); }; }; then | |
27084 | ac_header_compiler=yes | |
27085 | else | |
27086 | echo "$as_me: failed program was:" >&5 | |
27087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27088 | ||
27089 | ac_header_compiler=no | |
27090 | fi | |
ac1cb8d3 | 27091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27092 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27093 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27094 | ||
27095 | # Is the header present? | |
27096 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27097 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27098 | cat >conftest.$ac_ext <<_ACEOF | |
27099 | /* confdefs.h. */ | |
27100 | _ACEOF | |
27101 | cat confdefs.h >>conftest.$ac_ext | |
27102 | cat >>conftest.$ac_ext <<_ACEOF | |
27103 | /* end confdefs.h. */ | |
27104 | #include <$ac_header> | |
27105 | _ACEOF | |
27106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27108 | ac_status=$? | |
27109 | grep -v '^ *+' conftest.er1 >conftest.err | |
27110 | rm -f conftest.er1 | |
27111 | cat conftest.err >&5 | |
27112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27113 | (exit $ac_status); } >/dev/null; then | |
27114 | if test -s conftest.err; then | |
27115 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27116 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
27117 | else |
27118 | ac_cpp_err= | |
27119 | fi | |
27120 | else | |
27121 | ac_cpp_err=yes | |
27122 | fi | |
27123 | if test -z "$ac_cpp_err"; then | |
27124 | ac_header_preproc=yes | |
27125 | else | |
27126 | echo "$as_me: failed program was:" >&5 | |
27127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27128 | ||
27129 | ac_header_preproc=no | |
27130 | fi | |
27131 | rm -f conftest.err conftest.$ac_ext | |
27132 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27133 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27134 | ||
27135 | # So? What about this header? | |
ac1cb8d3 VS |
27136 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27137 | yes:no: ) | |
01cb68df RG |
27138 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
27139 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27141 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27142 | ac_header_preproc=yes | |
01cb68df | 27143 | ;; |
ac1cb8d3 | 27144 | no:yes:* ) |
01cb68df RG |
27145 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27146 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27147 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27148 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27149 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27150 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27151 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27152 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
27153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27154 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27155 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27156 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
27157 | ( |
27158 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27159 | ## ----------------------------------------- ## |
27160 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27161 | ## ----------------------------------------- ## | |
01cb68df RG |
27162 | _ASBOX |
27163 | ) | | |
27164 | sed "s/^/$as_me: WARNING: /" >&2 | |
27165 | ;; | |
27166 | esac | |
27167 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27171 | else | |
ac1cb8d3 | 27172 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
27173 | fi |
27174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27176 | ||
27177 | fi | |
27178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27179 | cat >>confdefs.h <<_ACEOF | |
27180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27181 | _ACEOF | |
27182 | ||
27183 | else | |
27184 | ||
27185 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
27186 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
27187 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
27188 | |
27189 | fi | |
27190 | ||
27191 | done | |
27192 | ||
a848cd7e SC |
27193 | fi |
27194 | fi | |
27195 | ||
27196 | ||
27197 | USE_OPENGL=0 | |
27198 | if test "$wxUSE_OPENGL" = "yes"; then | |
27199 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27200 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27201 | elif test "$wxUSE_MSW" = 1; then | |
27202 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27203 | else | |
27204 | ||
27205 | ||
27206 | ac_find_includes= | |
27207 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27208 | do | |
27209 | if test -f "$ac_dir/GL/gl.h"; then | |
27210 | ac_find_includes=$ac_dir | |
27211 | break | |
27212 | fi | |
27213 | done | |
27214 | ||
27215 | if test "$ac_find_includes" != "" ; then | |
27216 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27217 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27218 | ||
27219 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27220 | ac_path_to_include="" | |
27221 | else | |
27222 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27223 | result=$? | |
27224 | if test $result = 0; then | |
27225 | ac_path_to_include="" | |
27226 | else | |
27227 | ac_path_to_include=" -I$ac_find_includes" | |
27228 | fi | |
27229 | fi | |
27230 | ||
27231 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27232 | fi | |
27233 | ||
27234 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27235 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27236 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27237 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27239 | fi | |
27240 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27241 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27242 | else | |
27243 | # Is the header compilable? | |
27244 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27245 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27246 | cat >conftest.$ac_ext <<_ACEOF | |
27247 | /* confdefs.h. */ | |
27248 | _ACEOF | |
27249 | cat confdefs.h >>conftest.$ac_ext | |
27250 | cat >>conftest.$ac_ext <<_ACEOF | |
27251 | /* end confdefs.h. */ | |
27252 | $ac_includes_default | |
27253 | #include <GL/gl.h> | |
27254 | _ACEOF | |
27255 | rm -f conftest.$ac_objext | |
27256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27257 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27258 | ac_status=$? |
ac1cb8d3 VS |
27259 | grep -v '^ *+' conftest.er1 >conftest.err |
27260 | rm -f conftest.er1 | |
27261 | cat conftest.err >&5 | |
a848cd7e SC |
27262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27263 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27264 | { ac_try='test -z "$ac_c_werror_flag" |
27265 | || test ! -s conftest.err' | |
27266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27267 | (eval $ac_try) 2>&5 | |
27268 | ac_status=$? | |
27269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27270 | (exit $ac_status); }; } && | |
27271 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27273 | (eval $ac_try) 2>&5 | |
27274 | ac_status=$? | |
27275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27276 | (exit $ac_status); }; }; then | |
27277 | ac_header_compiler=yes | |
27278 | else | |
27279 | echo "$as_me: failed program was:" >&5 | |
27280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27281 | ||
27282 | ac_header_compiler=no | |
27283 | fi | |
ac1cb8d3 | 27284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27285 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27286 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27287 | ||
27288 | # Is the header present? | |
27289 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27290 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27291 | cat >conftest.$ac_ext <<_ACEOF | |
27292 | /* confdefs.h. */ | |
27293 | _ACEOF | |
27294 | cat confdefs.h >>conftest.$ac_ext | |
27295 | cat >>conftest.$ac_ext <<_ACEOF | |
27296 | /* end confdefs.h. */ | |
27297 | #include <GL/gl.h> | |
27298 | _ACEOF | |
27299 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27300 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27301 | ac_status=$? | |
27302 | grep -v '^ *+' conftest.er1 >conftest.err | |
27303 | rm -f conftest.er1 | |
27304 | cat conftest.err >&5 | |
27305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27306 | (exit $ac_status); } >/dev/null; then | |
27307 | if test -s conftest.err; then | |
27308 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27309 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27310 | else |
27311 | ac_cpp_err= | |
27312 | fi | |
27313 | else | |
27314 | ac_cpp_err=yes | |
27315 | fi | |
27316 | if test -z "$ac_cpp_err"; then | |
27317 | ac_header_preproc=yes | |
27318 | else | |
27319 | echo "$as_me: failed program was:" >&5 | |
27320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27321 | ||
27322 | ac_header_preproc=no | |
27323 | fi | |
27324 | rm -f conftest.err conftest.$ac_ext | |
27325 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27326 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27327 | ||
27328 | # So? What about this header? | |
ac1cb8d3 VS |
27329 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27330 | yes:no: ) | |
a848cd7e SC |
27331 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27332 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27333 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27334 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27335 | ac_header_preproc=yes | |
a848cd7e | 27336 | ;; |
ac1cb8d3 | 27337 | no:yes:* ) |
a848cd7e SC |
27338 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27339 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27340 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27341 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27342 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27343 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27344 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27345 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27346 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27347 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27348 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27349 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27350 | ( |
27351 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27352 | ## ----------------------------------------- ## |
27353 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27354 | ## ----------------------------------------- ## | |
a848cd7e SC |
27355 | _ASBOX |
27356 | ) | | |
27357 | sed "s/^/$as_me: WARNING: /" >&2 | |
27358 | ;; | |
27359 | esac | |
27360 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27361 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27362 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27364 | else | |
27365 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27366 | fi | |
27367 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27368 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27369 | ||
27370 | fi | |
27371 | if test $ac_cv_header_GL_gl_h = yes; then | |
27372 | ||
27373 | found_gl=0 | |
27374 | ||
27375 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27376 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27377 | ||
27378 | ac_find_libraries= | |
27379 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27380 | do | |
27381 | for ac_extension in a so sl dylib; do | |
27382 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27383 | ac_find_libraries=$ac_dir | |
27384 | break 2 | |
27385 | fi | |
27386 | done | |
27387 | done | |
27388 | ||
27389 | if test "$ac_find_libraries" != "" ; then | |
27390 | ||
27391 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27392 | result=$? | |
27393 | if test $result = 0; then | |
27394 | ac_path_to_link="" | |
27395 | else | |
27396 | ac_path_to_link=" -L$ac_find_libraries" | |
27397 | fi | |
27398 | ||
27399 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27400 | LDFLAGS_GL="$ac_path_to_link" | |
27401 | fi | |
27402 | ||
27403 | ||
27404 | ac_find_libraries= | |
27405 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27406 | do | |
27407 | for ac_extension in a so sl dylib; do | |
27408 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27409 | ac_find_libraries=$ac_dir | |
27410 | break 2 | |
27411 | fi | |
27412 | done | |
27413 | done | |
27414 | ||
27415 | if test "$ac_find_libraries" != "" ; then | |
27416 | ||
27417 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27418 | result=$? | |
27419 | if test $result = 0; then | |
27420 | ac_path_to_link="" | |
27421 | else | |
27422 | ac_path_to_link=" -L$ac_find_libraries" | |
27423 | fi | |
27424 | ||
27425 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27426 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27427 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27428 | fi | |
27429 | ||
27430 | found_gl=1 | |
27431 | OPENGL_LIBS="-lGL -lGLU" | |
27432 | echo "$as_me:$LINENO: result: yes" >&5 | |
27433 | echo "${ECHO_T}yes" >&6 | |
27434 | fi | |
27435 | fi | |
27436 | ||
27437 | if test "$found_gl" != 1; then | |
27438 | echo "$as_me:$LINENO: result: no" >&5 | |
27439 | echo "${ECHO_T}no" >&6 | |
27440 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27441 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27442 | ||
27443 | ac_find_libraries= | |
27444 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27445 | do | |
27446 | for ac_extension in a so sl dylib; do | |
27447 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27448 | ac_find_libraries=$ac_dir | |
27449 | break 2 | |
27450 | fi | |
27451 | done | |
27452 | done | |
27453 | ||
27454 | if test "$ac_find_libraries" != "" ; then | |
27455 | ||
27456 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27457 | result=$? | |
27458 | if test $result = 0; then | |
27459 | ac_path_to_link="" | |
27460 | else | |
27461 | ac_path_to_link=" -L$ac_find_libraries" | |
27462 | fi | |
27463 | ||
27464 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27465 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27466 | echo "$as_me:$LINENO: result: yes" >&5 | |
27467 | echo "${ECHO_T}yes" >&6 | |
27468 | else | |
27469 | echo "$as_me:$LINENO: result: no" >&5 | |
27470 | echo "${ECHO_T}no" >&6 | |
27471 | fi | |
27472 | fi | |
27473 | ||
27474 | fi | |
27475 | ||
27476 | ||
27477 | ||
27478 | if test "x$OPENGL_LIBS" = "x"; then | |
27479 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27480 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27481 | { (exit 1); exit 1; }; } | |
27482 | fi | |
27483 | fi | |
27484 | ||
27485 | if test "$wxUSE_OPENGL" = "yes"; then | |
27486 | USE_OPENGL=1 | |
27487 | cat >>confdefs.h <<\_ACEOF | |
27488 | #define wxUSE_OPENGL 1 | |
27489 | _ACEOF | |
27490 | ||
27491 | cat >>confdefs.h <<\_ACEOF | |
27492 | #define wxUSE_GLCANVAS 1 | |
27493 | _ACEOF | |
27494 | ||
27495 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27496 | fi | |
27497 | fi | |
27498 | ||
27499 | if test -z "$TOOLKIT_VPATH" ; then | |
27500 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
27501 | fi | |
27502 | ||
27503 | if test -n "$TOOLKIT" ; then | |
27504 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27505 | fi | |
27506 | ||
27507 | UNICODE=0 | |
27508 | lib_unicode_suffix= | |
27509 | if test "$wxUSE_UNICODE" = "yes"; then | |
27510 | lib_unicode_suffix=u | |
27511 | UNICODE=1 | |
27512 | fi | |
27513 | ||
27514 | lib_debug_suffix= | |
27515 | DEBUG_FLAG=0 | |
27516 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27517 | lib_debug_suffix=d | |
27518 | DEBUG_FLAG=1 | |
27519 | fi | |
27520 | ||
27521 | DEBUG_INFO=0 | |
27522 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27523 | DEBUG_INFO=1 | |
27524 | fi | |
27525 | ||
27526 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` | |
27527 | ||
27528 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
27529 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
27530 | ||
27531 | if test "$cross_compiling" = "yes"; then | |
27532 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
27533 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
27534 | HOST_SUFFIX="-${host_alias}" | |
27535 | fi | |
27536 | ||
27537 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
27538 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
27539 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" | |
27540 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
27541 | ||
27542 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27543 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27544 | ||
27545 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
27546 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27547 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
27548 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27549 | ||
27550 | case "${host}" in | |
27551 | *-*-cygwin* | *-*-mingw32* ) | |
27552 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27553 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27554 | ;; | |
27555 | ||
27556 | *-*-darwin* ) | |
27557 | ||
27558 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27559 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27560 | ||
27561 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
27562 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27563 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
27564 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27565 | ||
27566 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27567 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
27568 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
27569 | fi | |
27570 | ;; | |
27571 | esac | |
27572 | ||
27573 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
27574 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
27575 | ||
27576 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
27577 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
27578 | ||
27579 | if test "$wxUSE_OPENGL" = "yes"; then | |
27580 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
27581 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
27582 | fi | |
27583 | ||
27584 | ||
27585 | ||
27586 | if test "$wxUSE_SHARED" = "yes"; then | |
27587 | case "${host}" in | |
27588 | *-pc-msdosdjgpp ) | |
27589 | wxUSE_SHARED=no | |
27590 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27591 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27592 | ;; | |
27593 | esac | |
27594 | fi | |
27595 | ||
27596 | SHARED=0 | |
27597 | if test "$wxUSE_SHARED" = "yes"; then | |
27598 | SHARED=1 | |
27599 | ||
27600 | ||
27601 | found_versioning=no | |
27602 | ||
27603 | ||
27604 | if test $found_versioning = no ; then | |
27605 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27606 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27607 | if test "${wx_cv_version_script+set}" = set; then | |
27608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27609 | else | |
27610 | ||
27611 | echo "VER_1 { *; };" >conftest.sym | |
27612 | echo "int main() { return 0; }" >conftest.cpp | |
27613 | ||
27614 | if { ac_try=' | |
27615 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27616 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27618 | (eval $ac_try) 2>&5 | |
27619 | ac_status=$? | |
27620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27621 | (exit $ac_status); }; } ; then | |
27622 | if test -s conftest.stderr ; then | |
27623 | wx_cv_version_script=no | |
27624 | else | |
27625 | wx_cv_version_script=yes | |
27626 | fi | |
27627 | else | |
27628 | wx_cv_version_script=no | |
27629 | fi | |
27630 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27631 | ||
27632 | fi | |
27633 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27634 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27635 | if test $wx_cv_version_script = yes ; then | |
27636 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27637 | fi | |
27638 | fi | |
27639 | ||
27640 | ||
27641 | case "${host}" in | |
27642 | *-*-linux* | *-*-gnu* ) | |
27643 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27644 | ;; | |
27645 | ||
27646 | *-*-solaris2* ) | |
27647 | if test "$GCC" = yes ; then | |
27648 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27649 | ||
27650 | saveLdflags="$LDFLAGS" | |
27651 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27652 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27653 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27654 | cat >conftest.$ac_ext <<_ACEOF | |
27655 | /* confdefs.h. */ | |
27656 | _ACEOF | |
27657 | cat confdefs.h >>conftest.$ac_ext | |
27658 | cat >>conftest.$ac_ext <<_ACEOF | |
27659 | /* end confdefs.h. */ | |
27660 | ||
27661 | int | |
27662 | main () | |
27663 | { | |
27664 | ||
27665 | ; | |
27666 | return 0; | |
27667 | } | |
27668 | _ACEOF | |
27669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27671 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27672 | ac_status=$? |
ac1cb8d3 VS |
27673 | grep -v '^ *+' conftest.er1 >conftest.err |
27674 | rm -f conftest.er1 | |
27675 | cat conftest.err >&5 | |
a848cd7e SC |
27676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27677 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27678 | { ac_try='test -z "$ac_c_werror_flag" |
27679 | || test ! -s conftest.err' | |
27680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27681 | (eval $ac_try) 2>&5 | |
27682 | ac_status=$? | |
27683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27684 | (exit $ac_status); }; } && | |
27685 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27687 | (eval $ac_try) 2>&5 | |
27688 | ac_status=$? | |
27689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27690 | (exit $ac_status); }; }; then | |
27691 | ||
27692 | echo "$as_me:$LINENO: result: yes" >&5 | |
27693 | echo "${ECHO_T}yes" >&6 | |
27694 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27695 | ||
27696 | else | |
27697 | echo "$as_me: failed program was:" >&5 | |
27698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27699 | ||
27700 | ||
27701 | echo "$as_me:$LINENO: result: no" >&5 | |
27702 | echo "${ECHO_T}no" >&6 | |
27703 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27704 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27705 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27706 | cat >conftest.$ac_ext <<_ACEOF | |
27707 | /* confdefs.h. */ | |
27708 | _ACEOF | |
27709 | cat confdefs.h >>conftest.$ac_ext | |
27710 | cat >>conftest.$ac_ext <<_ACEOF | |
27711 | /* end confdefs.h. */ | |
27712 | ||
27713 | int | |
27714 | main () | |
27715 | { | |
27716 | ||
27717 | ; | |
27718 | return 0; | |
27719 | } | |
27720 | _ACEOF | |
27721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27723 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27724 | ac_status=$? |
ac1cb8d3 VS |
27725 | grep -v '^ *+' conftest.er1 >conftest.err |
27726 | rm -f conftest.er1 | |
27727 | cat conftest.err >&5 | |
a848cd7e SC |
27728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27729 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27730 | { ac_try='test -z "$ac_c_werror_flag" |
27731 | || test ! -s conftest.err' | |
27732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27733 | (eval $ac_try) 2>&5 | |
27734 | ac_status=$? | |
27735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27736 | (exit $ac_status); }; } && | |
27737 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27739 | (eval $ac_try) 2>&5 | |
27740 | ac_status=$? | |
27741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27742 | (exit $ac_status); }; }; then | |
27743 | ||
27744 | echo "$as_me:$LINENO: result: yes" >&5 | |
27745 | echo "${ECHO_T}yes" >&6 | |
27746 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27747 | else | |
27748 | echo "$as_me: failed program was:" >&5 | |
27749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27750 | ||
27751 | ||
27752 | echo "$as_me:$LINENO: result: no" >&5 | |
27753 | echo "${ECHO_T}no" >&6 | |
27754 | ||
27755 | fi | |
ac1cb8d3 VS |
27756 | rm -f conftest.err conftest.$ac_objext \ |
27757 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27758 | |
27759 | fi | |
ac1cb8d3 VS |
27760 | rm -f conftest.err conftest.$ac_objext \ |
27761 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27762 | LDFLAGS="$saveLdflags" |
27763 | else | |
27764 | SHARED_LD="${CXX} -G -o" | |
27765 | PIC_FLAG="-KPIC" | |
27766 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" | |
27767 | fi | |
27768 | ;; | |
27769 | ||
27770 | powerpc-*-darwin* ) | |
27771 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27772 | cat <<EOF >change-install-names | |
27773 | #!/bin/sh | |
27774 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27775 | inst_cmd="install_name_tool " | |
27776 | for i in \${libnames} ; do | |
27777 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27778 | done | |
27779 | \${inst_cmd} \${3} | |
27780 | EOF | |
27781 | chmod +x change-install-names | |
27782 | ;; | |
27783 | ||
27784 | *-*-cygwin* | *-*-mingw32* ) | |
27785 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27786 | ;; | |
27787 | ||
27788 | esac | |
27789 | ||
27790 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
27791 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
27792 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
27793 | fi | |
27794 | ||
27795 | WX_TARGET_LIBRARY_TYPE="so" | |
27796 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
27797 | fi | |
27798 | ||
27799 | if test "$wxUSE_SHARED" = "no"; then | |
27800 | ||
27801 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
27802 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27803 | fi | |
27804 | ||
27805 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
27806 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27807 | fi | |
27808 | ||
27809 | if test "$wxUSE_OPENGL" = "yes"; then | |
27810 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
27811 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
27812 | else | |
27813 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
27814 | fi | |
27815 | ||
27816 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
27817 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
27818 | ||
27819 | WX_TARGET_LIBRARY_TYPE="a" | |
27820 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
27821 | ||
27822 | STATIC_FLAG="yes" | |
27823 | else | |
27824 | STATIC_FLAG="no" | |
27825 | fi | |
27826 | ||
27827 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then | |
27828 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" | |
27829 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
27830 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
27831 | ||
27832 | # Extract the first word of "Rez", so it can be a program name with args. | |
27833 | set dummy Rez; ac_word=$2 | |
27834 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27836 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27838 | else | |
27839 | if test -n "$RESCOMP"; then | |
27840 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
27841 | else | |
27842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27843 | for as_dir in $PATH | |
27844 | do | |
27845 | IFS=$as_save_IFS | |
27846 | test -z "$as_dir" && as_dir=. | |
27847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27849 | ac_cv_prog_RESCOMP="Rez" | |
27850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27851 | break 2 | |
27852 | fi | |
27853 | done | |
27854 | done | |
27855 | ||
27856 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
27857 | fi | |
27858 | fi | |
27859 | RESCOMP=$ac_cv_prog_RESCOMP | |
27860 | if test -n "$RESCOMP"; then | |
27861 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
27862 | echo "${ECHO_T}$RESCOMP" >&6 | |
27863 | else | |
27864 | echo "$as_me:$LINENO: result: no" >&5 | |
27865 | echo "${ECHO_T}no" >&6 | |
27866 | fi | |
27867 | ||
27868 | # Extract the first word of "DeRez", so it can be a program name with args. | |
27869 | set dummy DeRez; ac_word=$2 | |
27870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27872 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27874 | else | |
27875 | if test -n "$DEREZ"; then | |
27876 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
27877 | else | |
27878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27879 | for as_dir in $PATH | |
27880 | do | |
27881 | IFS=$as_save_IFS | |
27882 | test -z "$as_dir" && as_dir=. | |
27883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27884 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27885 | ac_cv_prog_DEREZ="DeRez" | |
27886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27887 | break 2 | |
27888 | fi | |
27889 | done | |
27890 | done | |
27891 | ||
27892 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
27893 | fi | |
27894 | fi | |
27895 | DEREZ=$ac_cv_prog_DEREZ | |
27896 | if test -n "$DEREZ"; then | |
27897 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
27898 | echo "${ECHO_T}$DEREZ" >&6 | |
27899 | else | |
27900 | echo "$as_me:$LINENO: result: no" >&5 | |
27901 | echo "${ECHO_T}no" >&6 | |
27902 | fi | |
27903 | ||
27904 | # Extract the first word of "SetFile", so it can be a program name with args. | |
27905 | set dummy SetFile; ac_word=$2 | |
27906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27908 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27910 | else | |
27911 | if test -n "$SETFILE"; then | |
27912 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27913 | else | |
27914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27915 | for as_dir in $PATH | |
27916 | do | |
27917 | IFS=$as_save_IFS | |
27918 | test -z "$as_dir" && as_dir=. | |
27919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27921 | ac_cv_prog_SETFILE="SetFile" | |
27922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27923 | break 2 | |
27924 | fi | |
27925 | done | |
27926 | done | |
27927 | ||
27928 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
27929 | fi | |
27930 | fi | |
27931 | SETFILE=$ac_cv_prog_SETFILE | |
27932 | if test -n "$SETFILE"; then | |
27933 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
27934 | echo "${ECHO_T}$SETFILE" >&6 | |
27935 | else | |
27936 | echo "$as_me:$LINENO: result: no" >&5 | |
27937 | echo "${ECHO_T}no" >&6 | |
27938 | fi | |
27939 | ||
27940 | ||
27941 | MACSETFILE="\$(SETFILE)" | |
27942 | ||
27943 | if test "$wxUSE_MAC" = 1; then | |
27944 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
27945 | ||
27946 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27947 | else | |
27948 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27949 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27950 | fi | |
27951 | else | |
27952 | MACSETFILE="@#" | |
27953 | MACRESWXCONFIG="#" | |
27954 | ||
27955 | if test "$wxUSE_PM" = 1; then | |
27956 | MACRESCOMP="emxbind -ep" | |
27957 | else | |
27958 | MACRESCOMP="@#" | |
27959 | fi | |
27960 | fi | |
27961 | ||
27962 | ||
27963 | ||
27964 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
27965 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
27966 | if test "${ac_cv_type_mode_t+set}" = set; then | |
27967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27968 | else | |
27969 | cat >conftest.$ac_ext <<_ACEOF | |
27970 | /* confdefs.h. */ | |
27971 | _ACEOF | |
27972 | cat confdefs.h >>conftest.$ac_ext | |
27973 | cat >>conftest.$ac_ext <<_ACEOF | |
27974 | /* end confdefs.h. */ | |
27975 | $ac_includes_default | |
27976 | int | |
27977 | main () | |
27978 | { | |
27979 | if ((mode_t *) 0) | |
27980 | return 0; | |
27981 | if (sizeof (mode_t)) | |
27982 | return 0; | |
27983 | ; | |
27984 | return 0; | |
27985 | } | |
27986 | _ACEOF | |
27987 | rm -f conftest.$ac_objext | |
27988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27989 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27990 | ac_status=$? |
ac1cb8d3 VS |
27991 | grep -v '^ *+' conftest.er1 >conftest.err |
27992 | rm -f conftest.er1 | |
27993 | cat conftest.err >&5 | |
a848cd7e SC |
27994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27995 | (exit $ac_status); } && | |
ac1cb8d3 VS |
27996 | { ac_try='test -z "$ac_c_werror_flag" |
27997 | || test ! -s conftest.err' | |
27998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27999 | (eval $ac_try) 2>&5 | |
28000 | ac_status=$? | |
28001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28002 | (exit $ac_status); }; } && | |
28003 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28005 | (eval $ac_try) 2>&5 | |
28006 | ac_status=$? | |
28007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28008 | (exit $ac_status); }; }; then | |
28009 | ac_cv_type_mode_t=yes | |
28010 | else | |
28011 | echo "$as_me: failed program was:" >&5 | |
28012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28013 | ||
28014 | ac_cv_type_mode_t=no | |
28015 | fi | |
ac1cb8d3 | 28016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28017 | fi |
28018 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
28019 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28020 | if test $ac_cv_type_mode_t = yes; then | |
28021 | : | |
28022 | else | |
28023 | ||
28024 | cat >>confdefs.h <<_ACEOF | |
28025 | #define mode_t int | |
28026 | _ACEOF | |
28027 | ||
28028 | fi | |
28029 | ||
28030 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28031 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28032 | if test "${ac_cv_type_off_t+set}" = set; then | |
28033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28034 | else | |
28035 | cat >conftest.$ac_ext <<_ACEOF | |
28036 | /* confdefs.h. */ | |
28037 | _ACEOF | |
28038 | cat confdefs.h >>conftest.$ac_ext | |
28039 | cat >>conftest.$ac_ext <<_ACEOF | |
28040 | /* end confdefs.h. */ | |
28041 | $ac_includes_default | |
28042 | int | |
28043 | main () | |
28044 | { | |
28045 | if ((off_t *) 0) | |
28046 | return 0; | |
28047 | if (sizeof (off_t)) | |
28048 | return 0; | |
28049 | ; | |
28050 | return 0; | |
28051 | } | |
28052 | _ACEOF | |
28053 | rm -f conftest.$ac_objext | |
28054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28055 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28056 | ac_status=$? |
ac1cb8d3 VS |
28057 | grep -v '^ *+' conftest.er1 >conftest.err |
28058 | rm -f conftest.er1 | |
28059 | cat conftest.err >&5 | |
a848cd7e SC |
28060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28061 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28062 | { ac_try='test -z "$ac_c_werror_flag" |
28063 | || test ! -s conftest.err' | |
28064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28065 | (eval $ac_try) 2>&5 | |
28066 | ac_status=$? | |
28067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28068 | (exit $ac_status); }; } && | |
28069 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28071 | (eval $ac_try) 2>&5 | |
28072 | ac_status=$? | |
28073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28074 | (exit $ac_status); }; }; then | |
28075 | ac_cv_type_off_t=yes | |
28076 | else | |
28077 | echo "$as_me: failed program was:" >&5 | |
28078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28079 | ||
28080 | ac_cv_type_off_t=no | |
28081 | fi | |
ac1cb8d3 | 28082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28083 | fi |
28084 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28085 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28086 | if test $ac_cv_type_off_t = yes; then | |
28087 | : | |
28088 | else | |
28089 | ||
28090 | cat >>confdefs.h <<_ACEOF | |
28091 | #define off_t long | |
28092 | _ACEOF | |
28093 | ||
28094 | fi | |
28095 | ||
28096 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28097 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28098 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28100 | else | |
28101 | cat >conftest.$ac_ext <<_ACEOF | |
28102 | /* confdefs.h. */ | |
28103 | _ACEOF | |
28104 | cat confdefs.h >>conftest.$ac_ext | |
28105 | cat >>conftest.$ac_ext <<_ACEOF | |
28106 | /* end confdefs.h. */ | |
28107 | $ac_includes_default | |
28108 | int | |
28109 | main () | |
28110 | { | |
28111 | if ((pid_t *) 0) | |
28112 | return 0; | |
28113 | if (sizeof (pid_t)) | |
28114 | return 0; | |
28115 | ; | |
28116 | return 0; | |
28117 | } | |
28118 | _ACEOF | |
28119 | rm -f conftest.$ac_objext | |
28120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28122 | ac_status=$? |
ac1cb8d3 VS |
28123 | grep -v '^ *+' conftest.er1 >conftest.err |
28124 | rm -f conftest.er1 | |
28125 | cat conftest.err >&5 | |
a848cd7e SC |
28126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28127 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28128 | { ac_try='test -z "$ac_c_werror_flag" |
28129 | || test ! -s conftest.err' | |
28130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28131 | (eval $ac_try) 2>&5 | |
28132 | ac_status=$? | |
28133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28134 | (exit $ac_status); }; } && | |
28135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28137 | (eval $ac_try) 2>&5 | |
28138 | ac_status=$? | |
28139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28140 | (exit $ac_status); }; }; then | |
28141 | ac_cv_type_pid_t=yes | |
28142 | else | |
28143 | echo "$as_me: failed program was:" >&5 | |
28144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28145 | ||
28146 | ac_cv_type_pid_t=no | |
28147 | fi | |
ac1cb8d3 | 28148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28149 | fi |
28150 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28151 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28152 | if test $ac_cv_type_pid_t = yes; then | |
28153 | : | |
28154 | else | |
28155 | ||
28156 | cat >>confdefs.h <<_ACEOF | |
28157 | #define pid_t int | |
28158 | _ACEOF | |
28159 | ||
28160 | fi | |
28161 | ||
28162 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28163 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28164 | if test "${ac_cv_type_size_t+set}" = set; then | |
28165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28166 | else | |
28167 | cat >conftest.$ac_ext <<_ACEOF | |
28168 | /* confdefs.h. */ | |
28169 | _ACEOF | |
28170 | cat confdefs.h >>conftest.$ac_ext | |
28171 | cat >>conftest.$ac_ext <<_ACEOF | |
28172 | /* end confdefs.h. */ | |
28173 | $ac_includes_default | |
28174 | int | |
28175 | main () | |
28176 | { | |
28177 | if ((size_t *) 0) | |
28178 | return 0; | |
28179 | if (sizeof (size_t)) | |
28180 | return 0; | |
28181 | ; | |
28182 | return 0; | |
28183 | } | |
28184 | _ACEOF | |
28185 | rm -f conftest.$ac_objext | |
28186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28187 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28188 | ac_status=$? |
ac1cb8d3 VS |
28189 | grep -v '^ *+' conftest.er1 >conftest.err |
28190 | rm -f conftest.er1 | |
28191 | cat conftest.err >&5 | |
a848cd7e SC |
28192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28193 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28194 | { ac_try='test -z "$ac_c_werror_flag" |
28195 | || test ! -s conftest.err' | |
28196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28197 | (eval $ac_try) 2>&5 | |
28198 | ac_status=$? | |
28199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28200 | (exit $ac_status); }; } && | |
28201 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28203 | (eval $ac_try) 2>&5 | |
28204 | ac_status=$? | |
28205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28206 | (exit $ac_status); }; }; then | |
28207 | ac_cv_type_size_t=yes | |
28208 | else | |
28209 | echo "$as_me: failed program was:" >&5 | |
28210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28211 | ||
28212 | ac_cv_type_size_t=no | |
28213 | fi | |
ac1cb8d3 | 28214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28215 | fi |
28216 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28217 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28218 | if test $ac_cv_type_size_t = yes; then | |
28219 | : | |
28220 | else | |
28221 | ||
28222 | cat >>confdefs.h <<_ACEOF | |
28223 | #define size_t unsigned | |
28224 | _ACEOF | |
28225 | ||
28226 | fi | |
28227 | ||
28228 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28229 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28230 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28232 | else | |
28233 | cat >conftest.$ac_ext <<_ACEOF | |
28234 | /* confdefs.h. */ | |
28235 | _ACEOF | |
28236 | cat confdefs.h >>conftest.$ac_ext | |
28237 | cat >>conftest.$ac_ext <<_ACEOF | |
28238 | /* end confdefs.h. */ | |
28239 | #include <sys/types.h> | |
28240 | ||
28241 | _ACEOF | |
28242 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28243 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28244 | ac_cv_type_uid_t=yes | |
28245 | else | |
28246 | ac_cv_type_uid_t=no | |
28247 | fi | |
28248 | rm -f conftest* | |
28249 | ||
28250 | fi | |
28251 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28252 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28253 | if test $ac_cv_type_uid_t = no; then | |
28254 | ||
28255 | cat >>confdefs.h <<\_ACEOF | |
28256 | #define uid_t int | |
28257 | _ACEOF | |
28258 | ||
28259 | ||
28260 | cat >>confdefs.h <<\_ACEOF | |
28261 | #define gid_t int | |
28262 | _ACEOF | |
28263 | ||
28264 | fi | |
28265 | ||
28266 | ||
28267 | ||
28268 | ||
28269 | ac_ext=cc | |
28270 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28271 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28272 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28273 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28274 | ||
28275 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28276 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28277 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28279 | else | |
28280 | ||
28281 | cat >conftest.$ac_ext <<_ACEOF | |
28282 | /* confdefs.h. */ | |
28283 | _ACEOF | |
28284 | cat confdefs.h >>conftest.$ac_ext | |
28285 | cat >>conftest.$ac_ext <<_ACEOF | |
28286 | /* end confdefs.h. */ | |
28287 | #include <stddef.h> | |
28288 | int | |
28289 | main () | |
28290 | { | |
28291 | ||
28292 | return 0; } | |
28293 | ||
28294 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28295 | ||
28296 | int bar() { | |
28297 | ||
28298 | ; | |
28299 | return 0; | |
28300 | } | |
28301 | _ACEOF | |
28302 | rm -f conftest.$ac_objext | |
28303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28304 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28305 | ac_status=$? |
ac1cb8d3 VS |
28306 | grep -v '^ *+' conftest.er1 >conftest.err |
28307 | rm -f conftest.er1 | |
28308 | cat conftest.err >&5 | |
a848cd7e SC |
28309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28310 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28311 | { ac_try='test -z "$ac_cxx_werror_flag" |
28312 | || test ! -s conftest.err' | |
28313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28314 | (eval $ac_try) 2>&5 | |
28315 | ac_status=$? | |
28316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28317 | (exit $ac_status); }; } && | |
28318 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28320 | (eval $ac_try) 2>&5 | |
28321 | ac_status=$? | |
28322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28323 | (exit $ac_status); }; }; then | |
28324 | wx_cv_size_t_is_uint=no | |
28325 | else | |
28326 | echo "$as_me: failed program was:" >&5 | |
28327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28328 | ||
28329 | wx_cv_size_t_is_uint=yes | |
28330 | ||
28331 | fi | |
ac1cb8d3 | 28332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28333 | |
28334 | ||
28335 | fi | |
28336 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28337 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28338 | ||
28339 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28340 | cat >>confdefs.h <<\_ACEOF | |
28341 | #define wxSIZE_T_IS_UINT 1 | |
28342 | _ACEOF | |
28343 | ||
28344 | else | |
28345 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28346 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28347 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28349 | else | |
28350 | cat >conftest.$ac_ext <<_ACEOF | |
28351 | /* confdefs.h. */ | |
28352 | _ACEOF | |
28353 | cat confdefs.h >>conftest.$ac_ext | |
28354 | cat >>conftest.$ac_ext <<_ACEOF | |
28355 | /* end confdefs.h. */ | |
28356 | #include <stddef.h> | |
28357 | int | |
28358 | main () | |
28359 | { | |
28360 | ||
28361 | return 0; } | |
28362 | ||
28363 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28364 | ||
28365 | int bar() { | |
28366 | ||
28367 | ; | |
28368 | return 0; | |
28369 | } | |
28370 | _ACEOF | |
28371 | rm -f conftest.$ac_objext | |
28372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28373 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28374 | ac_status=$? |
ac1cb8d3 VS |
28375 | grep -v '^ *+' conftest.er1 >conftest.err |
28376 | rm -f conftest.er1 | |
28377 | cat conftest.err >&5 | |
a848cd7e SC |
28378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28379 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28380 | { ac_try='test -z "$ac_cxx_werror_flag" |
28381 | || test ! -s conftest.err' | |
28382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28383 | (eval $ac_try) 2>&5 | |
28384 | ac_status=$? | |
28385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28386 | (exit $ac_status); }; } && | |
28387 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28389 | (eval $ac_try) 2>&5 | |
28390 | ac_status=$? | |
28391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28392 | (exit $ac_status); }; }; then | |
28393 | wx_cv_size_t_is_ulong=no | |
28394 | else | |
28395 | echo "$as_me: failed program was:" >&5 | |
28396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28397 | ||
28398 | wx_cv_size_t_is_ulong=yes | |
28399 | ||
28400 | fi | |
ac1cb8d3 | 28401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28402 | |
28403 | fi | |
28404 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28405 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28406 | ||
28407 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28408 | cat >>confdefs.h <<\_ACEOF | |
28409 | #define wxSIZE_T_IS_ULONG 1 | |
28410 | _ACEOF | |
28411 | ||
28412 | fi | |
28413 | fi | |
28414 | ||
28415 | ac_ext=c | |
28416 | ac_cpp='$CPP $CPPFLAGS' | |
28417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28420 | ||
28421 | ||
28422 | ||
28423 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28424 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28425 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28427 | else | |
28428 | ||
28429 | cat >conftest.$ac_ext <<_ACEOF | |
28430 | /* confdefs.h. */ | |
28431 | _ACEOF | |
28432 | cat confdefs.h >>conftest.$ac_ext | |
28433 | cat >>conftest.$ac_ext <<_ACEOF | |
28434 | /* end confdefs.h. */ | |
28435 | #include <pwd.h> | |
28436 | int | |
28437 | main () | |
28438 | { | |
28439 | ||
28440 | char *p; | |
28441 | struct passwd *pw; | |
28442 | p = pw->pw_gecos; | |
28443 | ||
28444 | ; | |
28445 | return 0; | |
28446 | } | |
28447 | _ACEOF | |
28448 | rm -f conftest.$ac_objext | |
28449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28450 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28451 | ac_status=$? |
ac1cb8d3 VS |
28452 | grep -v '^ *+' conftest.er1 >conftest.err |
28453 | rm -f conftest.er1 | |
28454 | cat conftest.err >&5 | |
a848cd7e SC |
28455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28456 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28457 | { ac_try='test -z "$ac_c_werror_flag" |
28458 | || test ! -s conftest.err' | |
28459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28460 | (eval $ac_try) 2>&5 | |
28461 | ac_status=$? | |
28462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28463 | (exit $ac_status); }; } && | |
28464 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28466 | (eval $ac_try) 2>&5 | |
28467 | ac_status=$? | |
28468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28469 | (exit $ac_status); }; }; then | |
28470 | ||
28471 | wx_cv_struct_pw_gecos=yes | |
28472 | ||
28473 | else | |
28474 | echo "$as_me: failed program was:" >&5 | |
28475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28476 | ||
28477 | ||
28478 | wx_cv_struct_pw_gecos=no | |
28479 | ||
28480 | ||
28481 | fi | |
ac1cb8d3 | 28482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28483 | |
28484 | ||
28485 | fi | |
28486 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28487 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28488 | ||
28489 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28490 | cat >>confdefs.h <<\_ACEOF | |
28491 | #define HAVE_PW_GECOS 1 | |
28492 | _ACEOF | |
28493 | ||
28494 | fi | |
28495 | ||
28496 | ||
28497 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28498 | cat >>confdefs.h <<\_ACEOF | |
28499 | #define wxUSE_WCHAR_T 1 | |
28500 | _ACEOF | |
28501 | ||
28502 | ||
28503 | WCSLEN_FOUND=0 | |
28504 | WCHAR_LINK= | |
28505 | ||
28506 | for ac_func in wcslen | |
28507 | do | |
28508 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28509 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28510 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28511 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28513 | else | |
28514 | cat >conftest.$ac_ext <<_ACEOF | |
28515 | /* confdefs.h. */ | |
28516 | _ACEOF | |
28517 | cat confdefs.h >>conftest.$ac_ext | |
28518 | cat >>conftest.$ac_ext <<_ACEOF | |
28519 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28520 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28521 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28522 | #define $ac_func innocuous_$ac_func | |
28523 | ||
a848cd7e SC |
28524 | /* System header to define __stub macros and hopefully few prototypes, |
28525 | which can conflict with char $ac_func (); below. | |
28526 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28527 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28528 | |
a848cd7e SC |
28529 | #ifdef __STDC__ |
28530 | # include <limits.h> | |
28531 | #else | |
28532 | # include <assert.h> | |
28533 | #endif | |
ac1cb8d3 VS |
28534 | |
28535 | #undef $ac_func | |
28536 | ||
a848cd7e SC |
28537 | /* Override any gcc2 internal prototype to avoid an error. */ |
28538 | #ifdef __cplusplus | |
28539 | extern "C" | |
28540 | { | |
28541 | #endif | |
28542 | /* We use char because int might match the return type of a gcc2 | |
28543 | builtin and then its argument prototype would still apply. */ | |
28544 | char $ac_func (); | |
28545 | /* The GNU C library defines this for functions which it implements | |
28546 | to always fail with ENOSYS. Some functions are actually named | |
28547 | something starting with __ and the normal name is an alias. */ | |
28548 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28549 | choke me | |
28550 | #else | |
28551 | char (*f) () = $ac_func; | |
28552 | #endif | |
28553 | #ifdef __cplusplus | |
28554 | } | |
28555 | #endif | |
28556 | ||
28557 | int | |
28558 | main () | |
28559 | { | |
28560 | return f != $ac_func; | |
28561 | ; | |
28562 | return 0; | |
28563 | } | |
28564 | _ACEOF | |
28565 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28567 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28568 | ac_status=$? |
ac1cb8d3 VS |
28569 | grep -v '^ *+' conftest.er1 >conftest.err |
28570 | rm -f conftest.er1 | |
28571 | cat conftest.err >&5 | |
a848cd7e SC |
28572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28573 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28574 | { ac_try='test -z "$ac_c_werror_flag" |
28575 | || test ! -s conftest.err' | |
28576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28577 | (eval $ac_try) 2>&5 | |
28578 | ac_status=$? | |
28579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28580 | (exit $ac_status); }; } && | |
28581 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28583 | (eval $ac_try) 2>&5 | |
28584 | ac_status=$? | |
28585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28586 | (exit $ac_status); }; }; then | |
28587 | eval "$as_ac_var=yes" | |
28588 | else | |
28589 | echo "$as_me: failed program was:" >&5 | |
28590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28591 | ||
28592 | eval "$as_ac_var=no" | |
28593 | fi | |
ac1cb8d3 VS |
28594 | rm -f conftest.err conftest.$ac_objext \ |
28595 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28596 | fi |
28597 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28598 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28599 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28600 | cat >>confdefs.h <<_ACEOF | |
28601 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28602 | _ACEOF | |
28603 | WCSLEN_FOUND=1 | |
28604 | fi | |
28605 | done | |
28606 | ||
28607 | ||
28608 | if test "$WCSLEN_FOUND" = 0; then | |
28609 | if test "$TOOLKIT" = "MSW"; then | |
28610 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28611 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28612 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28614 | else | |
28615 | ac_check_lib_save_LIBS=$LIBS | |
28616 | LIBS="-lmsvcrt $LIBS" | |
28617 | cat >conftest.$ac_ext <<_ACEOF | |
28618 | /* confdefs.h. */ | |
28619 | _ACEOF | |
28620 | cat confdefs.h >>conftest.$ac_ext | |
28621 | cat >>conftest.$ac_ext <<_ACEOF | |
28622 | /* end confdefs.h. */ | |
28623 | ||
28624 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28625 | #ifdef __cplusplus | |
28626 | extern "C" | |
28627 | #endif | |
28628 | /* We use char because int might match the return type of a gcc2 | |
28629 | builtin and then its argument prototype would still apply. */ | |
28630 | char wcslen (); | |
28631 | int | |
28632 | main () | |
28633 | { | |
28634 | wcslen (); | |
28635 | ; | |
28636 | return 0; | |
28637 | } | |
28638 | _ACEOF | |
28639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28641 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28642 | ac_status=$? |
ac1cb8d3 VS |
28643 | grep -v '^ *+' conftest.er1 >conftest.err |
28644 | rm -f conftest.er1 | |
28645 | cat conftest.err >&5 | |
a848cd7e SC |
28646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28647 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28648 | { ac_try='test -z "$ac_c_werror_flag" |
28649 | || test ! -s conftest.err' | |
28650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28651 | (eval $ac_try) 2>&5 | |
28652 | ac_status=$? | |
28653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28654 | (exit $ac_status); }; } && | |
28655 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28657 | (eval $ac_try) 2>&5 | |
28658 | ac_status=$? | |
28659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28660 | (exit $ac_status); }; }; then | |
28661 | ac_cv_lib_msvcrt_wcslen=yes | |
28662 | else | |
28663 | echo "$as_me: failed program was:" >&5 | |
28664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28665 | ||
28666 | ac_cv_lib_msvcrt_wcslen=no | |
28667 | fi | |
ac1cb8d3 VS |
28668 | rm -f conftest.err conftest.$ac_objext \ |
28669 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28670 | LIBS=$ac_check_lib_save_LIBS |
28671 | fi | |
28672 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28673 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28674 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28675 | WCHAR_OK=1 | |
28676 | fi | |
28677 | ||
28678 | else | |
28679 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28680 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28681 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28683 | else | |
28684 | ac_check_lib_save_LIBS=$LIBS | |
28685 | LIBS="-lw $LIBS" | |
28686 | cat >conftest.$ac_ext <<_ACEOF | |
28687 | /* confdefs.h. */ | |
28688 | _ACEOF | |
28689 | cat confdefs.h >>conftest.$ac_ext | |
28690 | cat >>conftest.$ac_ext <<_ACEOF | |
28691 | /* end confdefs.h. */ | |
28692 | ||
28693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28694 | #ifdef __cplusplus | |
28695 | extern "C" | |
28696 | #endif | |
28697 | /* We use char because int might match the return type of a gcc2 | |
28698 | builtin and then its argument prototype would still apply. */ | |
28699 | char wcslen (); | |
28700 | int | |
28701 | main () | |
28702 | { | |
28703 | wcslen (); | |
28704 | ; | |
28705 | return 0; | |
28706 | } | |
28707 | _ACEOF | |
28708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28710 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28711 | ac_status=$? |
ac1cb8d3 VS |
28712 | grep -v '^ *+' conftest.er1 >conftest.err |
28713 | rm -f conftest.er1 | |
28714 | cat conftest.err >&5 | |
a848cd7e SC |
28715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28716 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28717 | { ac_try='test -z "$ac_c_werror_flag" |
28718 | || test ! -s conftest.err' | |
28719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28720 | (eval $ac_try) 2>&5 | |
28721 | ac_status=$? | |
28722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28723 | (exit $ac_status); }; } && | |
28724 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28726 | (eval $ac_try) 2>&5 | |
28727 | ac_status=$? | |
28728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28729 | (exit $ac_status); }; }; then | |
28730 | ac_cv_lib_w_wcslen=yes | |
28731 | else | |
28732 | echo "$as_me: failed program was:" >&5 | |
28733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28734 | ||
28735 | ac_cv_lib_w_wcslen=no | |
28736 | fi | |
ac1cb8d3 VS |
28737 | rm -f conftest.err conftest.$ac_objext \ |
28738 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28739 | LIBS=$ac_check_lib_save_LIBS |
28740 | fi | |
28741 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28742 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28743 | if test $ac_cv_lib_w_wcslen = yes; then | |
28744 | ||
28745 | WCHAR_LINK=" -lw" | |
28746 | WCSLEN_FOUND=1 | |
28747 | ||
28748 | fi | |
28749 | ||
28750 | fi | |
28751 | fi | |
28752 | ||
28753 | if test "$WCSLEN_FOUND" = 1; then | |
28754 | cat >>confdefs.h <<\_ACEOF | |
28755 | #define HAVE_WCSLEN 1 | |
28756 | _ACEOF | |
28757 | ||
28758 | fi | |
28759 | ||
473276a9 VS |
28760 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
28761 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
28762 | fi | |
28763 | ||
a848cd7e SC |
28764 | |
28765 | for ac_func in wcsrtombs | |
28766 | do | |
28767 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28768 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28769 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28770 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28772 | else | |
28773 | cat >conftest.$ac_ext <<_ACEOF | |
28774 | /* confdefs.h. */ | |
28775 | _ACEOF | |
28776 | cat confdefs.h >>conftest.$ac_ext | |
28777 | cat >>conftest.$ac_ext <<_ACEOF | |
28778 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28779 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28780 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28781 | #define $ac_func innocuous_$ac_func | |
28782 | ||
a848cd7e SC |
28783 | /* System header to define __stub macros and hopefully few prototypes, |
28784 | which can conflict with char $ac_func (); below. | |
28785 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28786 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28787 | |
a848cd7e SC |
28788 | #ifdef __STDC__ |
28789 | # include <limits.h> | |
28790 | #else | |
28791 | # include <assert.h> | |
28792 | #endif | |
ac1cb8d3 VS |
28793 | |
28794 | #undef $ac_func | |
28795 | ||
a848cd7e SC |
28796 | /* Override any gcc2 internal prototype to avoid an error. */ |
28797 | #ifdef __cplusplus | |
28798 | extern "C" | |
28799 | { | |
28800 | #endif | |
28801 | /* We use char because int might match the return type of a gcc2 | |
28802 | builtin and then its argument prototype would still apply. */ | |
28803 | char $ac_func (); | |
28804 | /* The GNU C library defines this for functions which it implements | |
28805 | to always fail with ENOSYS. Some functions are actually named | |
28806 | something starting with __ and the normal name is an alias. */ | |
28807 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28808 | choke me | |
28809 | #else | |
28810 | char (*f) () = $ac_func; | |
28811 | #endif | |
28812 | #ifdef __cplusplus | |
28813 | } | |
28814 | #endif | |
28815 | ||
28816 | int | |
28817 | main () | |
28818 | { | |
28819 | return f != $ac_func; | |
28820 | ; | |
28821 | return 0; | |
28822 | } | |
28823 | _ACEOF | |
28824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28826 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28827 | ac_status=$? |
ac1cb8d3 VS |
28828 | grep -v '^ *+' conftest.er1 >conftest.err |
28829 | rm -f conftest.er1 | |
28830 | cat conftest.err >&5 | |
a848cd7e SC |
28831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28832 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28833 | { ac_try='test -z "$ac_c_werror_flag" |
28834 | || test ! -s conftest.err' | |
28835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28836 | (eval $ac_try) 2>&5 | |
28837 | ac_status=$? | |
28838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28839 | (exit $ac_status); }; } && | |
28840 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28842 | (eval $ac_try) 2>&5 | |
28843 | ac_status=$? | |
28844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28845 | (exit $ac_status); }; }; then | |
28846 | eval "$as_ac_var=yes" | |
28847 | else | |
28848 | echo "$as_me: failed program was:" >&5 | |
28849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28850 | ||
28851 | eval "$as_ac_var=no" | |
28852 | fi | |
ac1cb8d3 VS |
28853 | rm -f conftest.err conftest.$ac_objext \ |
28854 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28855 | fi |
28856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28857 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28858 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28859 | cat >>confdefs.h <<_ACEOF | |
28860 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28861 | _ACEOF | |
28862 | ||
28863 | fi | |
28864 | done | |
28865 | ||
28866 | else | |
28867 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
28868 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
28869 | fi | |
28870 | ||
28871 | ||
28872 | ||
28873 | ac_ext=cc | |
28874 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28875 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28876 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28877 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28878 | ||
28879 | ||
28880 | ||
28881 | for ac_func in vsnprintf | |
28882 | do | |
28883 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28884 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28885 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28886 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28888 | else | |
28889 | cat >conftest.$ac_ext <<_ACEOF | |
28890 | /* confdefs.h. */ | |
28891 | _ACEOF | |
28892 | cat confdefs.h >>conftest.$ac_ext | |
28893 | cat >>conftest.$ac_ext <<_ACEOF | |
28894 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28895 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28896 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28897 | #define $ac_func innocuous_$ac_func | |
28898 | ||
a848cd7e SC |
28899 | /* System header to define __stub macros and hopefully few prototypes, |
28900 | which can conflict with char $ac_func (); below. | |
28901 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28902 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28903 | |
a848cd7e SC |
28904 | #ifdef __STDC__ |
28905 | # include <limits.h> | |
28906 | #else | |
28907 | # include <assert.h> | |
28908 | #endif | |
ac1cb8d3 VS |
28909 | |
28910 | #undef $ac_func | |
28911 | ||
a848cd7e SC |
28912 | /* Override any gcc2 internal prototype to avoid an error. */ |
28913 | #ifdef __cplusplus | |
28914 | extern "C" | |
28915 | { | |
28916 | #endif | |
28917 | /* We use char because int might match the return type of a gcc2 | |
28918 | builtin and then its argument prototype would still apply. */ | |
28919 | char $ac_func (); | |
28920 | /* The GNU C library defines this for functions which it implements | |
28921 | to always fail with ENOSYS. Some functions are actually named | |
28922 | something starting with __ and the normal name is an alias. */ | |
28923 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28924 | choke me | |
28925 | #else | |
28926 | char (*f) () = $ac_func; | |
28927 | #endif | |
28928 | #ifdef __cplusplus | |
28929 | } | |
28930 | #endif | |
28931 | ||
28932 | int | |
28933 | main () | |
28934 | { | |
28935 | return f != $ac_func; | |
28936 | ; | |
28937 | return 0; | |
28938 | } | |
28939 | _ACEOF | |
28940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28942 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28943 | ac_status=$? |
ac1cb8d3 VS |
28944 | grep -v '^ *+' conftest.er1 >conftest.err |
28945 | rm -f conftest.er1 | |
28946 | cat conftest.err >&5 | |
a848cd7e SC |
28947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28948 | (exit $ac_status); } && | |
ac1cb8d3 VS |
28949 | { ac_try='test -z "$ac_cxx_werror_flag" |
28950 | || test ! -s conftest.err' | |
28951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28952 | (eval $ac_try) 2>&5 | |
28953 | ac_status=$? | |
28954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28955 | (exit $ac_status); }; } && | |
28956 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28958 | (eval $ac_try) 2>&5 | |
28959 | ac_status=$? | |
28960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28961 | (exit $ac_status); }; }; then | |
28962 | eval "$as_ac_var=yes" | |
28963 | else | |
28964 | echo "$as_me: failed program was:" >&5 | |
28965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28966 | ||
28967 | eval "$as_ac_var=no" | |
28968 | fi | |
ac1cb8d3 VS |
28969 | rm -f conftest.err conftest.$ac_objext \ |
28970 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28971 | fi |
28972 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28973 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28974 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28975 | cat >>confdefs.h <<_ACEOF | |
28976 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28977 | _ACEOF | |
28978 | ||
28979 | fi | |
28980 | done | |
28981 | ||
28982 | ||
28983 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
28984 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
28985 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
28986 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
28987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28988 | else | |
28989 | ||
28990 | cat >conftest.$ac_ext <<_ACEOF | |
28991 | /* confdefs.h. */ | |
28992 | _ACEOF | |
28993 | cat confdefs.h >>conftest.$ac_ext | |
28994 | cat >>conftest.$ac_ext <<_ACEOF | |
28995 | /* end confdefs.h. */ | |
28996 | ||
28997 | #include <stdio.h> | |
28998 | #include <stdarg.h> | |
28999 | ||
29000 | int | |
29001 | main () | |
29002 | { | |
29003 | ||
29004 | char *buf; | |
29005 | va_list ap; | |
29006 | vsnprintf(buf, 10u, "%s", ap); | |
29007 | ||
29008 | ; | |
29009 | return 0; | |
29010 | } | |
29011 | _ACEOF | |
29012 | rm -f conftest.$ac_objext | |
29013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29014 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29015 | ac_status=$? |
ac1cb8d3 VS |
29016 | grep -v '^ *+' conftest.er1 >conftest.err |
29017 | rm -f conftest.er1 | |
29018 | cat conftest.err >&5 | |
a848cd7e SC |
29019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29020 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29021 | { ac_try='test -z "$ac_cxx_werror_flag" |
29022 | || test ! -s conftest.err' | |
29023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29024 | (eval $ac_try) 2>&5 | |
29025 | ac_status=$? | |
29026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29027 | (exit $ac_status); }; } && | |
29028 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29030 | (eval $ac_try) 2>&5 | |
29031 | ac_status=$? | |
29032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29033 | (exit $ac_status); }; }; then | |
29034 | wx_cv_func_vsnprintf_decl=yes | |
29035 | else | |
29036 | echo "$as_me: failed program was:" >&5 | |
29037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29038 | ||
29039 | wx_cv_func_vsnprintf_decl=no | |
29040 | ||
29041 | fi | |
ac1cb8d3 | 29042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29043 | |
29044 | ||
29045 | fi | |
29046 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29047 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29048 | ||
29049 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29050 | cat >>confdefs.h <<\_ACEOF | |
29051 | #define HAVE_VSNPRINTF_DECL 1 | |
29052 | _ACEOF | |
29053 | ||
29054 | fi | |
29055 | fi | |
29056 | ||
29057 | if test "$wxUSE_UNICODE" = yes; then | |
29058 | ||
29059 | ||
29060 | ||
fbe47c7b VS |
29061 | |
29062 | ||
29063 | ||
29064 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29065 | do |
29066 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29067 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29068 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29069 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29071 | else | |
29072 | cat >conftest.$ac_ext <<_ACEOF | |
29073 | /* confdefs.h. */ | |
29074 | _ACEOF | |
29075 | cat confdefs.h >>conftest.$ac_ext | |
29076 | cat >>conftest.$ac_ext <<_ACEOF | |
29077 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29078 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29079 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29080 | #define $ac_func innocuous_$ac_func | |
29081 | ||
a848cd7e SC |
29082 | /* System header to define __stub macros and hopefully few prototypes, |
29083 | which can conflict with char $ac_func (); below. | |
29084 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29085 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29086 | |
a848cd7e SC |
29087 | #ifdef __STDC__ |
29088 | # include <limits.h> | |
29089 | #else | |
29090 | # include <assert.h> | |
29091 | #endif | |
ac1cb8d3 VS |
29092 | |
29093 | #undef $ac_func | |
29094 | ||
a848cd7e SC |
29095 | /* Override any gcc2 internal prototype to avoid an error. */ |
29096 | #ifdef __cplusplus | |
29097 | extern "C" | |
29098 | { | |
29099 | #endif | |
29100 | /* We use char because int might match the return type of a gcc2 | |
29101 | builtin and then its argument prototype would still apply. */ | |
29102 | char $ac_func (); | |
29103 | /* The GNU C library defines this for functions which it implements | |
29104 | to always fail with ENOSYS. Some functions are actually named | |
29105 | something starting with __ and the normal name is an alias. */ | |
29106 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29107 | choke me | |
29108 | #else | |
29109 | char (*f) () = $ac_func; | |
29110 | #endif | |
29111 | #ifdef __cplusplus | |
29112 | } | |
29113 | #endif | |
29114 | ||
29115 | int | |
29116 | main () | |
29117 | { | |
29118 | return f != $ac_func; | |
29119 | ; | |
29120 | return 0; | |
29121 | } | |
29122 | _ACEOF | |
29123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29125 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29126 | ac_status=$? |
ac1cb8d3 VS |
29127 | grep -v '^ *+' conftest.er1 >conftest.err |
29128 | rm -f conftest.er1 | |
29129 | cat conftest.err >&5 | |
a848cd7e SC |
29130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29131 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29132 | { ac_try='test -z "$ac_cxx_werror_flag" |
29133 | || test ! -s conftest.err' | |
29134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29135 | (eval $ac_try) 2>&5 | |
29136 | ac_status=$? | |
29137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29138 | (exit $ac_status); }; } && | |
29139 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29141 | (eval $ac_try) 2>&5 | |
29142 | ac_status=$? | |
29143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29144 | (exit $ac_status); }; }; then | |
29145 | eval "$as_ac_var=yes" | |
29146 | else | |
29147 | echo "$as_me: failed program was:" >&5 | |
29148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29149 | ||
29150 | eval "$as_ac_var=no" | |
29151 | fi | |
ac1cb8d3 VS |
29152 | rm -f conftest.err conftest.$ac_objext \ |
29153 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29154 | fi |
29155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29156 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29157 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29158 | cat >>confdefs.h <<_ACEOF | |
29159 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29160 | _ACEOF | |
29161 | ||
29162 | fi | |
29163 | done | |
29164 | ||
29165 | ||
29166 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29167 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29168 | cat >conftest.$ac_ext <<_ACEOF | |
29169 | /* confdefs.h. */ | |
29170 | _ACEOF | |
29171 | cat confdefs.h >>conftest.$ac_ext | |
29172 | cat >>conftest.$ac_ext <<_ACEOF | |
29173 | /* end confdefs.h. */ | |
29174 | #include <wchar.h> | |
29175 | int | |
29176 | main () | |
29177 | { | |
29178 | &_vsnwprintf; | |
29179 | ; | |
29180 | return 0; | |
29181 | } | |
29182 | _ACEOF | |
29183 | rm -f conftest.$ac_objext | |
29184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29186 | ac_status=$? |
ac1cb8d3 VS |
29187 | grep -v '^ *+' conftest.er1 >conftest.err |
29188 | rm -f conftest.er1 | |
29189 | cat conftest.err >&5 | |
a848cd7e SC |
29190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29191 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29192 | { ac_try='test -z "$ac_cxx_werror_flag" |
29193 | || test ! -s conftest.err' | |
29194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29195 | (eval $ac_try) 2>&5 | |
29196 | ac_status=$? | |
29197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29198 | (exit $ac_status); }; } && | |
29199 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29201 | (eval $ac_try) 2>&5 | |
29202 | ac_status=$? | |
29203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29204 | (exit $ac_status); }; }; then | |
29205 | echo "$as_me:$LINENO: result: yes" >&5 | |
29206 | echo "${ECHO_T}yes" >&6 | |
29207 | cat >>confdefs.h <<\_ACEOF | |
29208 | #define HAVE__VSNWPRINTF 1 | |
29209 | _ACEOF | |
29210 | ||
29211 | else | |
29212 | echo "$as_me: failed program was:" >&5 | |
29213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29214 | ||
29215 | echo "$as_me:$LINENO: result: no" >&5 | |
29216 | echo "${ECHO_T}no" >&6 | |
29217 | fi | |
ac1cb8d3 | 29218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29219 | fi |
29220 | ||
29221 | ac_ext=c | |
29222 | ac_cpp='$CPP $CPPFLAGS' | |
29223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29226 | ||
29227 | ||
29228 | ||
29229 | ||
29230 | if test "$TOOLKIT" != "MSW"; then | |
29231 | ||
29232 | ||
29233 | ||
29234 | ||
29235 | ac_ext=cc | |
29236 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29237 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29238 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29239 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29240 | ||
29241 | ||
29242 | ||
29243 | ||
29244 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29245 | if test "${with_libiconv_prefix+set}" = set; then | |
29246 | withval="$with_libiconv_prefix" | |
29247 | ||
29248 | for dir in `echo "$withval" | tr : ' '`; do | |
29249 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29250 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29251 | done | |
29252 | ||
29253 | fi; | |
29254 | ||
29255 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29256 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29257 | if test "${am_cv_func_iconv+set}" = set; then | |
29258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29259 | else | |
29260 | ||
29261 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29262 | am_cv_lib_iconv=no | |
29263 | cat >conftest.$ac_ext <<_ACEOF | |
29264 | /* confdefs.h. */ | |
29265 | _ACEOF | |
29266 | cat confdefs.h >>conftest.$ac_ext | |
29267 | cat >>conftest.$ac_ext <<_ACEOF | |
29268 | /* end confdefs.h. */ | |
29269 | #include <stdlib.h> | |
29270 | #include <iconv.h> | |
29271 | int | |
29272 | main () | |
29273 | { | |
29274 | iconv_t cd = iconv_open("",""); | |
29275 | iconv(cd,NULL,NULL,NULL,NULL); | |
29276 | iconv_close(cd); | |
29277 | ; | |
29278 | return 0; | |
29279 | } | |
29280 | _ACEOF | |
29281 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29283 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29284 | ac_status=$? |
ac1cb8d3 VS |
29285 | grep -v '^ *+' conftest.er1 >conftest.err |
29286 | rm -f conftest.er1 | |
29287 | cat conftest.err >&5 | |
a848cd7e SC |
29288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29289 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29290 | { ac_try='test -z "$ac_cxx_werror_flag" |
29291 | || test ! -s conftest.err' | |
29292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29293 | (eval $ac_try) 2>&5 | |
29294 | ac_status=$? | |
29295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29296 | (exit $ac_status); }; } && | |
29297 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29299 | (eval $ac_try) 2>&5 | |
29300 | ac_status=$? | |
29301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29302 | (exit $ac_status); }; }; then | |
29303 | am_cv_func_iconv=yes | |
29304 | else | |
29305 | echo "$as_me: failed program was:" >&5 | |
29306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29307 | ||
29308 | fi | |
ac1cb8d3 VS |
29309 | rm -f conftest.err conftest.$ac_objext \ |
29310 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29311 | if test "$am_cv_func_iconv" != yes; then |
29312 | am_save_LIBS="$LIBS" | |
29313 | LIBS="$LIBS -liconv" | |
29314 | cat >conftest.$ac_ext <<_ACEOF | |
29315 | /* confdefs.h. */ | |
29316 | _ACEOF | |
29317 | cat confdefs.h >>conftest.$ac_ext | |
29318 | cat >>conftest.$ac_ext <<_ACEOF | |
29319 | /* end confdefs.h. */ | |
29320 | #include <stdlib.h> | |
29321 | #include <iconv.h> | |
29322 | int | |
29323 | main () | |
29324 | { | |
29325 | iconv_t cd = iconv_open("",""); | |
29326 | iconv(cd,NULL,NULL,NULL,NULL); | |
29327 | iconv_close(cd); | |
29328 | ; | |
29329 | return 0; | |
29330 | } | |
29331 | _ACEOF | |
29332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29334 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29335 | ac_status=$? |
ac1cb8d3 VS |
29336 | grep -v '^ *+' conftest.er1 >conftest.err |
29337 | rm -f conftest.er1 | |
29338 | cat conftest.err >&5 | |
a848cd7e SC |
29339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29340 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29341 | { ac_try='test -z "$ac_cxx_werror_flag" |
29342 | || test ! -s conftest.err' | |
29343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29344 | (eval $ac_try) 2>&5 | |
29345 | ac_status=$? | |
29346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29347 | (exit $ac_status); }; } && | |
29348 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29350 | (eval $ac_try) 2>&5 | |
29351 | ac_status=$? | |
29352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29353 | (exit $ac_status); }; }; then | |
29354 | am_cv_lib_iconv=yes | |
29355 | am_cv_func_iconv=yes | |
29356 | else | |
29357 | echo "$as_me: failed program was:" >&5 | |
29358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29359 | ||
29360 | fi | |
ac1cb8d3 VS |
29361 | rm -f conftest.err conftest.$ac_objext \ |
29362 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29363 | LIBS="$am_save_LIBS" |
29364 | fi | |
29365 | ||
29366 | fi | |
29367 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29368 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29369 | if test "$am_cv_func_iconv" = yes; then | |
29370 | ||
29371 | cat >>confdefs.h <<\_ACEOF | |
29372 | #define HAVE_ICONV 1 | |
29373 | _ACEOF | |
29374 | ||
29375 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29376 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29377 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29379 | else | |
29380 | cat >conftest.$ac_ext <<_ACEOF | |
29381 | /* confdefs.h. */ | |
29382 | _ACEOF | |
29383 | cat confdefs.h >>conftest.$ac_ext | |
29384 | cat >>conftest.$ac_ext <<_ACEOF | |
29385 | /* end confdefs.h. */ | |
29386 | ||
29387 | #include <stdlib.h> | |
29388 | #include <iconv.h> | |
29389 | extern | |
29390 | #ifdef __cplusplus | |
29391 | "C" | |
29392 | #endif | |
29393 | #if defined(__STDC__) || defined(__cplusplus) | |
29394 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29395 | #else | |
29396 | size_t iconv(); | |
29397 | #endif | |
29398 | ||
29399 | int | |
29400 | main () | |
29401 | { | |
29402 | ||
29403 | ; | |
29404 | return 0; | |
29405 | } | |
29406 | _ACEOF | |
29407 | rm -f conftest.$ac_objext | |
29408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29409 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29410 | ac_status=$? |
ac1cb8d3 VS |
29411 | grep -v '^ *+' conftest.er1 >conftest.err |
29412 | rm -f conftest.er1 | |
29413 | cat conftest.err >&5 | |
a848cd7e SC |
29414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29415 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29416 | { ac_try='test -z "$ac_cxx_werror_flag" |
29417 | || test ! -s conftest.err' | |
29418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29419 | (eval $ac_try) 2>&5 | |
29420 | ac_status=$? | |
29421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29422 | (exit $ac_status); }; } && | |
29423 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29425 | (eval $ac_try) 2>&5 | |
29426 | ac_status=$? | |
29427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29428 | (exit $ac_status); }; }; then | |
29429 | wx_cv_func_iconv_const="no" | |
29430 | else | |
29431 | echo "$as_me: failed program was:" >&5 | |
29432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29433 | ||
29434 | wx_cv_func_iconv_const="yes" | |
29435 | ||
29436 | fi | |
ac1cb8d3 | 29437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29438 | |
29439 | fi | |
29440 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29441 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29442 | ||
29443 | iconv_const= | |
29444 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29445 | iconv_const="const" | |
29446 | fi | |
29447 | ||
29448 | ||
29449 | cat >>confdefs.h <<_ACEOF | |
29450 | #define ICONV_CONST $iconv_const | |
29451 | _ACEOF | |
29452 | ||
29453 | fi | |
29454 | LIBICONV= | |
29455 | if test "$am_cv_lib_iconv" = yes; then | |
29456 | LIBICONV="-liconv" | |
29457 | fi | |
29458 | ||
29459 | ||
29460 | LIBS="$LIBICONV $LIBS" | |
29461 | ac_ext=c | |
29462 | ac_cpp='$CPP $CPPFLAGS' | |
29463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29466 | ||
29467 | ||
29468 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29469 | ||
29470 | for ac_func in sigaction | |
29471 | do | |
29472 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29473 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29474 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29475 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29477 | else | |
29478 | cat >conftest.$ac_ext <<_ACEOF | |
29479 | /* confdefs.h. */ | |
29480 | _ACEOF | |
29481 | cat confdefs.h >>conftest.$ac_ext | |
29482 | cat >>conftest.$ac_ext <<_ACEOF | |
29483 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29484 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29485 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29486 | #define $ac_func innocuous_$ac_func | |
29487 | ||
a848cd7e SC |
29488 | /* System header to define __stub macros and hopefully few prototypes, |
29489 | which can conflict with char $ac_func (); below. | |
29490 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29491 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29492 | |
a848cd7e SC |
29493 | #ifdef __STDC__ |
29494 | # include <limits.h> | |
29495 | #else | |
29496 | # include <assert.h> | |
29497 | #endif | |
ac1cb8d3 VS |
29498 | |
29499 | #undef $ac_func | |
29500 | ||
a848cd7e SC |
29501 | /* Override any gcc2 internal prototype to avoid an error. */ |
29502 | #ifdef __cplusplus | |
29503 | extern "C" | |
29504 | { | |
29505 | #endif | |
29506 | /* We use char because int might match the return type of a gcc2 | |
29507 | builtin and then its argument prototype would still apply. */ | |
29508 | char $ac_func (); | |
29509 | /* The GNU C library defines this for functions which it implements | |
29510 | to always fail with ENOSYS. Some functions are actually named | |
29511 | something starting with __ and the normal name is an alias. */ | |
29512 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29513 | choke me | |
29514 | #else | |
29515 | char (*f) () = $ac_func; | |
29516 | #endif | |
29517 | #ifdef __cplusplus | |
29518 | } | |
29519 | #endif | |
29520 | ||
29521 | int | |
29522 | main () | |
29523 | { | |
29524 | return f != $ac_func; | |
29525 | ; | |
29526 | return 0; | |
29527 | } | |
29528 | _ACEOF | |
29529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29531 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29532 | ac_status=$? |
ac1cb8d3 VS |
29533 | grep -v '^ *+' conftest.er1 >conftest.err |
29534 | rm -f conftest.er1 | |
29535 | cat conftest.err >&5 | |
a848cd7e SC |
29536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29537 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29538 | { ac_try='test -z "$ac_c_werror_flag" |
29539 | || test ! -s conftest.err' | |
29540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29541 | (eval $ac_try) 2>&5 | |
29542 | ac_status=$? | |
29543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29544 | (exit $ac_status); }; } && | |
29545 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29547 | (eval $ac_try) 2>&5 | |
29548 | ac_status=$? | |
29549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29550 | (exit $ac_status); }; }; then | |
29551 | eval "$as_ac_var=yes" | |
29552 | else | |
29553 | echo "$as_me: failed program was:" >&5 | |
29554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29555 | ||
29556 | eval "$as_ac_var=no" | |
29557 | fi | |
ac1cb8d3 VS |
29558 | rm -f conftest.err conftest.$ac_objext \ |
29559 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29560 | fi |
29561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29562 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29563 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29564 | cat >>confdefs.h <<_ACEOF | |
29565 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29566 | _ACEOF | |
29567 | ||
29568 | fi | |
29569 | done | |
29570 | ||
29571 | ||
29572 | if test "$ac_cv_func_sigaction" = "no"; then | |
29573 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29574 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29575 | wxUSE_ON_FATAL_EXCEPTION=no | |
29576 | fi | |
29577 | ||
29578 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29579 | ||
29580 | ||
29581 | ac_ext=cc | |
29582 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29583 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29584 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29585 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29586 | ||
29587 | ||
29588 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29589 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29590 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29592 | else | |
29593 | ||
29594 | cat >conftest.$ac_ext <<_ACEOF | |
29595 | /* confdefs.h. */ | |
29596 | _ACEOF | |
29597 | cat confdefs.h >>conftest.$ac_ext | |
29598 | cat >>conftest.$ac_ext <<_ACEOF | |
29599 | /* end confdefs.h. */ | |
29600 | #include <signal.h> | |
29601 | int | |
29602 | main () | |
29603 | { | |
29604 | ||
29605 | extern void testSigHandler(int); | |
29606 | ||
29607 | struct sigaction sa; | |
29608 | sa.sa_handler = testSigHandler; | |
29609 | ||
29610 | ; | |
29611 | return 0; | |
29612 | } | |
29613 | _ACEOF | |
29614 | rm -f conftest.$ac_objext | |
29615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29616 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29617 | ac_status=$? |
ac1cb8d3 VS |
29618 | grep -v '^ *+' conftest.er1 >conftest.err |
29619 | rm -f conftest.er1 | |
29620 | cat conftest.err >&5 | |
a848cd7e SC |
29621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29622 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29623 | { ac_try='test -z "$ac_cxx_werror_flag" |
29624 | || test ! -s conftest.err' | |
29625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29626 | (eval $ac_try) 2>&5 | |
29627 | ac_status=$? | |
29628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29629 | (exit $ac_status); }; } && | |
29630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29632 | (eval $ac_try) 2>&5 | |
29633 | ac_status=$? | |
29634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29635 | (exit $ac_status); }; }; then | |
29636 | ||
29637 | wx_cv_type_sa_handler=int | |
29638 | ||
29639 | else | |
29640 | echo "$as_me: failed program was:" >&5 | |
29641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29642 | ||
29643 | ||
29644 | wx_cv_type_sa_handler=void | |
29645 | ||
29646 | fi | |
ac1cb8d3 | 29647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29648 | |
29649 | fi | |
29650 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29651 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29652 | ||
29653 | ac_ext=c | |
29654 | ac_cpp='$CPP $CPPFLAGS' | |
29655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29658 | ||
29659 | ||
29660 | cat >>confdefs.h <<_ACEOF | |
29661 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29662 | _ACEOF | |
29663 | ||
29664 | fi | |
29665 | fi | |
29666 | ||
29667 | ||
29668 | ||
29669 | for ac_func in mkstemp mktemp | |
29670 | do | |
29671 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29672 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29673 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29674 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29676 | else | |
29677 | cat >conftest.$ac_ext <<_ACEOF | |
29678 | /* confdefs.h. */ | |
29679 | _ACEOF | |
29680 | cat confdefs.h >>conftest.$ac_ext | |
29681 | cat >>conftest.$ac_ext <<_ACEOF | |
29682 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29683 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29684 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29685 | #define $ac_func innocuous_$ac_func | |
29686 | ||
a848cd7e SC |
29687 | /* System header to define __stub macros and hopefully few prototypes, |
29688 | which can conflict with char $ac_func (); below. | |
29689 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29690 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29691 | |
a848cd7e SC |
29692 | #ifdef __STDC__ |
29693 | # include <limits.h> | |
29694 | #else | |
29695 | # include <assert.h> | |
29696 | #endif | |
ac1cb8d3 VS |
29697 | |
29698 | #undef $ac_func | |
29699 | ||
a848cd7e SC |
29700 | /* Override any gcc2 internal prototype to avoid an error. */ |
29701 | #ifdef __cplusplus | |
29702 | extern "C" | |
29703 | { | |
29704 | #endif | |
29705 | /* We use char because int might match the return type of a gcc2 | |
29706 | builtin and then its argument prototype would still apply. */ | |
29707 | char $ac_func (); | |
29708 | /* The GNU C library defines this for functions which it implements | |
29709 | to always fail with ENOSYS. Some functions are actually named | |
29710 | something starting with __ and the normal name is an alias. */ | |
29711 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29712 | choke me | |
29713 | #else | |
29714 | char (*f) () = $ac_func; | |
29715 | #endif | |
29716 | #ifdef __cplusplus | |
29717 | } | |
29718 | #endif | |
29719 | ||
29720 | int | |
29721 | main () | |
29722 | { | |
29723 | return f != $ac_func; | |
29724 | ; | |
29725 | return 0; | |
29726 | } | |
29727 | _ACEOF | |
29728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29730 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29731 | ac_status=$? |
ac1cb8d3 VS |
29732 | grep -v '^ *+' conftest.er1 >conftest.err |
29733 | rm -f conftest.er1 | |
29734 | cat conftest.err >&5 | |
a848cd7e SC |
29735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29736 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29737 | { ac_try='test -z "$ac_c_werror_flag" |
29738 | || test ! -s conftest.err' | |
29739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29740 | (eval $ac_try) 2>&5 | |
29741 | ac_status=$? | |
29742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29743 | (exit $ac_status); }; } && | |
29744 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29746 | (eval $ac_try) 2>&5 | |
29747 | ac_status=$? | |
29748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29749 | (exit $ac_status); }; }; then | |
29750 | eval "$as_ac_var=yes" | |
29751 | else | |
29752 | echo "$as_me: failed program was:" >&5 | |
29753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29754 | ||
29755 | eval "$as_ac_var=no" | |
29756 | fi | |
ac1cb8d3 VS |
29757 | rm -f conftest.err conftest.$ac_objext \ |
29758 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29759 | fi |
29760 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29761 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29762 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29763 | cat >>confdefs.h <<_ACEOF | |
29764 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29765 | _ACEOF | |
29766 | break | |
29767 | fi | |
29768 | done | |
29769 | ||
29770 | ||
29771 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
29772 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29773 | if test "${wx_cv_func_statfs+set}" = set; then | |
29774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29775 | else | |
29776 | cat >conftest.$ac_ext <<_ACEOF | |
29777 | /* confdefs.h. */ | |
29778 | _ACEOF | |
29779 | cat confdefs.h >>conftest.$ac_ext | |
29780 | cat >>conftest.$ac_ext <<_ACEOF | |
29781 | /* end confdefs.h. */ | |
29782 | ||
29783 | #if defined(__BSD__) | |
29784 | #include <sys/param.h> | |
29785 | #include <sys/mount.h> | |
29786 | #else | |
29787 | #include <sys/vfs.h> | |
29788 | #endif | |
29789 | ||
29790 | int | |
29791 | main () | |
29792 | { | |
29793 | ||
29794 | long l; | |
29795 | struct statfs fs; | |
29796 | statfs("/", &fs); | |
29797 | l = fs.f_bsize; | |
29798 | l += fs.f_blocks; | |
29799 | l += fs.f_bavail; | |
29800 | ||
29801 | ; | |
29802 | return 0; | |
29803 | } | |
29804 | _ACEOF | |
29805 | rm -f conftest.$ac_objext | |
29806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29807 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29808 | ac_status=$? |
ac1cb8d3 VS |
29809 | grep -v '^ *+' conftest.er1 >conftest.err |
29810 | rm -f conftest.er1 | |
29811 | cat conftest.err >&5 | |
a848cd7e SC |
29812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29813 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29814 | { ac_try='test -z "$ac_c_werror_flag" |
29815 | || test ! -s conftest.err' | |
29816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29817 | (eval $ac_try) 2>&5 | |
29818 | ac_status=$? | |
29819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29820 | (exit $ac_status); }; } && | |
29821 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29823 | (eval $ac_try) 2>&5 | |
29824 | ac_status=$? | |
29825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29826 | (exit $ac_status); }; }; then | |
29827 | ||
29828 | wx_cv_func_statfs=yes | |
29829 | ||
29830 | else | |
29831 | echo "$as_me: failed program was:" >&5 | |
29832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29833 | ||
29834 | ||
29835 | wx_cv_func_statfs=no | |
29836 | ||
29837 | ||
29838 | fi | |
ac1cb8d3 | 29839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29840 | |
29841 | fi | |
29842 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29843 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
29844 | ||
29845 | if test "$wx_cv_func_statfs" = "yes"; then | |
29846 | wx_cv_type_statvfs_t="struct statfs" | |
29847 | cat >>confdefs.h <<\_ACEOF | |
29848 | #define HAVE_STATFS 1 | |
29849 | _ACEOF | |
29850 | ||
29851 | else | |
29852 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
29853 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29854 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29856 | else | |
29857 | cat >conftest.$ac_ext <<_ACEOF | |
29858 | /* confdefs.h. */ | |
29859 | _ACEOF | |
29860 | cat confdefs.h >>conftest.$ac_ext | |
29861 | cat >>conftest.$ac_ext <<_ACEOF | |
29862 | /* end confdefs.h. */ | |
29863 | ||
29864 | #include <stddef.h> | |
29865 | #include <sys/statvfs.h> | |
29866 | ||
29867 | int | |
29868 | main () | |
29869 | { | |
29870 | ||
29871 | statvfs("/", NULL); | |
29872 | ||
29873 | ; | |
29874 | return 0; | |
29875 | } | |
29876 | _ACEOF | |
29877 | rm -f conftest.$ac_objext | |
29878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29879 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29880 | ac_status=$? |
ac1cb8d3 VS |
29881 | grep -v '^ *+' conftest.er1 >conftest.err |
29882 | rm -f conftest.er1 | |
29883 | cat conftest.err >&5 | |
a848cd7e SC |
29884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29885 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29886 | { ac_try='test -z "$ac_c_werror_flag" |
29887 | || test ! -s conftest.err' | |
29888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29889 | (eval $ac_try) 2>&5 | |
29890 | ac_status=$? | |
29891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29892 | (exit $ac_status); }; } && | |
29893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29895 | (eval $ac_try) 2>&5 | |
29896 | ac_status=$? | |
29897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29898 | (exit $ac_status); }; }; then | |
29899 | wx_cv_func_statvfs=yes | |
29900 | else | |
29901 | echo "$as_me: failed program was:" >&5 | |
29902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29903 | ||
29904 | wx_cv_func_statvfs=no | |
29905 | ||
29906 | fi | |
ac1cb8d3 | 29907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29908 | |
29909 | fi | |
29910 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29911 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
29912 | ||
29913 | if test "$wx_cv_func_statvfs" = "yes"; then | |
29914 | ||
29915 | ||
29916 | ac_ext=cc | |
29917 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29918 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29919 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29920 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29921 | ||
29922 | ||
29923 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
29924 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29925 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29927 | else | |
29928 | cat >conftest.$ac_ext <<_ACEOF | |
29929 | /* confdefs.h. */ | |
29930 | _ACEOF | |
29931 | cat confdefs.h >>conftest.$ac_ext | |
29932 | cat >>conftest.$ac_ext <<_ACEOF | |
29933 | /* end confdefs.h. */ | |
29934 | ||
29935 | #include <sys/statvfs.h> | |
29936 | ||
29937 | int | |
29938 | main () | |
29939 | { | |
29940 | ||
29941 | long l; | |
29942 | statvfs_t fs; | |
29943 | statvfs("/", &fs); | |
29944 | l = fs.f_bsize; | |
29945 | l += fs.f_blocks; | |
29946 | l += fs.f_bavail; | |
29947 | ||
29948 | ; | |
29949 | return 0; | |
29950 | } | |
29951 | _ACEOF | |
29952 | rm -f conftest.$ac_objext | |
29953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29954 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29955 | ac_status=$? |
ac1cb8d3 VS |
29956 | grep -v '^ *+' conftest.er1 >conftest.err |
29957 | rm -f conftest.er1 | |
29958 | cat conftest.err >&5 | |
a848cd7e SC |
29959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29960 | (exit $ac_status); } && | |
ac1cb8d3 VS |
29961 | { ac_try='test -z "$ac_cxx_werror_flag" |
29962 | || test ! -s conftest.err' | |
29963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29964 | (eval $ac_try) 2>&5 | |
29965 | ac_status=$? | |
29966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29967 | (exit $ac_status); }; } && | |
29968 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29970 | (eval $ac_try) 2>&5 | |
29971 | ac_status=$? | |
29972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29973 | (exit $ac_status); }; }; then | |
29974 | wx_cv_type_statvfs_t=statvfs_t | |
29975 | else | |
29976 | echo "$as_me: failed program was:" >&5 | |
29977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29978 | ||
29979 | ||
29980 | cat >conftest.$ac_ext <<_ACEOF | |
29981 | /* confdefs.h. */ | |
29982 | _ACEOF | |
29983 | cat confdefs.h >>conftest.$ac_ext | |
29984 | cat >>conftest.$ac_ext <<_ACEOF | |
29985 | /* end confdefs.h. */ | |
29986 | ||
29987 | #include <sys/statvfs.h> | |
29988 | ||
29989 | int | |
29990 | main () | |
29991 | { | |
29992 | ||
29993 | long l; | |
29994 | struct statvfs fs; | |
29995 | statvfs("/", &fs); | |
29996 | l = fs.f_bsize; | |
29997 | l += fs.f_blocks; | |
29998 | l += fs.f_bavail; | |
29999 | ||
30000 | ; | |
30001 | return 0; | |
30002 | } | |
30003 | _ACEOF | |
30004 | rm -f conftest.$ac_objext | |
30005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30007 | ac_status=$? |
ac1cb8d3 VS |
30008 | grep -v '^ *+' conftest.er1 >conftest.err |
30009 | rm -f conftest.er1 | |
30010 | cat conftest.err >&5 | |
a848cd7e SC |
30011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30012 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30013 | { ac_try='test -z "$ac_cxx_werror_flag" |
30014 | || test ! -s conftest.err' | |
30015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30016 | (eval $ac_try) 2>&5 | |
30017 | ac_status=$? | |
30018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30019 | (exit $ac_status); }; } && | |
30020 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30022 | (eval $ac_try) 2>&5 | |
30023 | ac_status=$? | |
30024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30025 | (exit $ac_status); }; }; then | |
30026 | wx_cv_type_statvfs_t="struct statvfs" | |
30027 | else | |
30028 | echo "$as_me: failed program was:" >&5 | |
30029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30030 | ||
30031 | wx_cv_type_statvfs_t="unknown" | |
30032 | ||
30033 | fi | |
ac1cb8d3 | 30034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30035 | |
30036 | ||
30037 | fi | |
ac1cb8d3 | 30038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30039 | |
30040 | fi | |
30041 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30042 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
30043 | ||
30044 | ac_ext=c | |
30045 | ac_cpp='$CPP $CPPFLAGS' | |
30046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30049 | ||
30050 | ||
30051 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30052 | cat >>confdefs.h <<\_ACEOF | |
30053 | #define HAVE_STATVFS 1 | |
30054 | _ACEOF | |
30055 | ||
30056 | fi | |
30057 | else | |
30058 | wx_cv_type_statvfs_t="unknown" | |
30059 | fi | |
30060 | fi | |
30061 | ||
30062 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30063 | cat >>confdefs.h <<_ACEOF | |
30064 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30065 | _ACEOF | |
30066 | ||
30067 | else | |
30068 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30069 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30070 | fi | |
30071 | ||
30072 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30073 | ||
30074 | ||
30075 | for ac_func in fcntl flock | |
30076 | do | |
30077 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30078 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30079 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30080 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30082 | else | |
30083 | cat >conftest.$ac_ext <<_ACEOF | |
30084 | /* confdefs.h. */ | |
30085 | _ACEOF | |
30086 | cat confdefs.h >>conftest.$ac_ext | |
30087 | cat >>conftest.$ac_ext <<_ACEOF | |
30088 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30089 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30091 | #define $ac_func innocuous_$ac_func | |
30092 | ||
a848cd7e SC |
30093 | /* System header to define __stub macros and hopefully few prototypes, |
30094 | which can conflict with char $ac_func (); below. | |
30095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30096 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30097 | |
a848cd7e SC |
30098 | #ifdef __STDC__ |
30099 | # include <limits.h> | |
30100 | #else | |
30101 | # include <assert.h> | |
30102 | #endif | |
ac1cb8d3 VS |
30103 | |
30104 | #undef $ac_func | |
30105 | ||
a848cd7e SC |
30106 | /* Override any gcc2 internal prototype to avoid an error. */ |
30107 | #ifdef __cplusplus | |
30108 | extern "C" | |
30109 | { | |
30110 | #endif | |
30111 | /* We use char because int might match the return type of a gcc2 | |
30112 | builtin and then its argument prototype would still apply. */ | |
30113 | char $ac_func (); | |
30114 | /* The GNU C library defines this for functions which it implements | |
30115 | to always fail with ENOSYS. Some functions are actually named | |
30116 | something starting with __ and the normal name is an alias. */ | |
30117 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30118 | choke me | |
30119 | #else | |
30120 | char (*f) () = $ac_func; | |
30121 | #endif | |
30122 | #ifdef __cplusplus | |
30123 | } | |
30124 | #endif | |
30125 | ||
30126 | int | |
30127 | main () | |
30128 | { | |
30129 | return f != $ac_func; | |
30130 | ; | |
30131 | return 0; | |
30132 | } | |
30133 | _ACEOF | |
30134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30137 | ac_status=$? |
ac1cb8d3 VS |
30138 | grep -v '^ *+' conftest.er1 >conftest.err |
30139 | rm -f conftest.er1 | |
30140 | cat conftest.err >&5 | |
a848cd7e SC |
30141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30142 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30143 | { ac_try='test -z "$ac_c_werror_flag" |
30144 | || test ! -s conftest.err' | |
30145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30146 | (eval $ac_try) 2>&5 | |
30147 | ac_status=$? | |
30148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30149 | (exit $ac_status); }; } && | |
30150 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30152 | (eval $ac_try) 2>&5 | |
30153 | ac_status=$? | |
30154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30155 | (exit $ac_status); }; }; then | |
30156 | eval "$as_ac_var=yes" | |
30157 | else | |
30158 | echo "$as_me: failed program was:" >&5 | |
30159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30160 | ||
30161 | eval "$as_ac_var=no" | |
30162 | fi | |
ac1cb8d3 VS |
30163 | rm -f conftest.err conftest.$ac_objext \ |
30164 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30165 | fi |
30166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30167 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30168 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30169 | cat >>confdefs.h <<_ACEOF | |
30170 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30171 | _ACEOF | |
30172 | break | |
30173 | fi | |
30174 | done | |
30175 | ||
30176 | ||
30177 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30178 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30179 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30180 | wxUSE_SNGLINST_CHECKER=no | |
30181 | fi | |
30182 | fi | |
30183 | ||
30184 | ||
30185 | for ac_func in timegm | |
30186 | do | |
30187 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30188 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30189 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30190 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30192 | else | |
30193 | cat >conftest.$ac_ext <<_ACEOF | |
30194 | /* confdefs.h. */ | |
30195 | _ACEOF | |
30196 | cat confdefs.h >>conftest.$ac_ext | |
30197 | cat >>conftest.$ac_ext <<_ACEOF | |
30198 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30199 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30200 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30201 | #define $ac_func innocuous_$ac_func | |
30202 | ||
a848cd7e SC |
30203 | /* System header to define __stub macros and hopefully few prototypes, |
30204 | which can conflict with char $ac_func (); below. | |
30205 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30206 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30207 | |
a848cd7e SC |
30208 | #ifdef __STDC__ |
30209 | # include <limits.h> | |
30210 | #else | |
30211 | # include <assert.h> | |
30212 | #endif | |
ac1cb8d3 VS |
30213 | |
30214 | #undef $ac_func | |
30215 | ||
a848cd7e SC |
30216 | /* Override any gcc2 internal prototype to avoid an error. */ |
30217 | #ifdef __cplusplus | |
30218 | extern "C" | |
30219 | { | |
30220 | #endif | |
30221 | /* We use char because int might match the return type of a gcc2 | |
30222 | builtin and then its argument prototype would still apply. */ | |
30223 | char $ac_func (); | |
30224 | /* The GNU C library defines this for functions which it implements | |
30225 | to always fail with ENOSYS. Some functions are actually named | |
30226 | something starting with __ and the normal name is an alias. */ | |
30227 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30228 | choke me | |
30229 | #else | |
30230 | char (*f) () = $ac_func; | |
30231 | #endif | |
30232 | #ifdef __cplusplus | |
30233 | } | |
30234 | #endif | |
30235 | ||
30236 | int | |
30237 | main () | |
30238 | { | |
30239 | return f != $ac_func; | |
30240 | ; | |
30241 | return 0; | |
30242 | } | |
30243 | _ACEOF | |
30244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30246 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30247 | ac_status=$? |
ac1cb8d3 VS |
30248 | grep -v '^ *+' conftest.er1 >conftest.err |
30249 | rm -f conftest.er1 | |
30250 | cat conftest.err >&5 | |
a848cd7e SC |
30251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30252 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30253 | { ac_try='test -z "$ac_c_werror_flag" |
30254 | || test ! -s conftest.err' | |
30255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30256 | (eval $ac_try) 2>&5 | |
30257 | ac_status=$? | |
30258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30259 | (exit $ac_status); }; } && | |
30260 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30262 | (eval $ac_try) 2>&5 | |
30263 | ac_status=$? | |
30264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30265 | (exit $ac_status); }; }; then | |
30266 | eval "$as_ac_var=yes" | |
30267 | else | |
30268 | echo "$as_me: failed program was:" >&5 | |
30269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30270 | ||
30271 | eval "$as_ac_var=no" | |
30272 | fi | |
ac1cb8d3 VS |
30273 | rm -f conftest.err conftest.$ac_objext \ |
30274 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30275 | fi |
30276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30277 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30278 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30279 | cat >>confdefs.h <<_ACEOF | |
30280 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30281 | _ACEOF | |
30282 | ||
30283 | fi | |
30284 | done | |
30285 | ||
30286 | ||
30287 | ||
30288 | ||
30289 | for ac_func in putenv setenv | |
30290 | do | |
30291 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30292 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30293 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30294 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30296 | else | |
30297 | cat >conftest.$ac_ext <<_ACEOF | |
30298 | /* confdefs.h. */ | |
30299 | _ACEOF | |
30300 | cat confdefs.h >>conftest.$ac_ext | |
30301 | cat >>conftest.$ac_ext <<_ACEOF | |
30302 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30303 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30304 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30305 | #define $ac_func innocuous_$ac_func | |
30306 | ||
a848cd7e SC |
30307 | /* System header to define __stub macros and hopefully few prototypes, |
30308 | which can conflict with char $ac_func (); below. | |
30309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30310 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30311 | |
a848cd7e SC |
30312 | #ifdef __STDC__ |
30313 | # include <limits.h> | |
30314 | #else | |
30315 | # include <assert.h> | |
30316 | #endif | |
ac1cb8d3 VS |
30317 | |
30318 | #undef $ac_func | |
30319 | ||
a848cd7e SC |
30320 | /* Override any gcc2 internal prototype to avoid an error. */ |
30321 | #ifdef __cplusplus | |
30322 | extern "C" | |
30323 | { | |
30324 | #endif | |
30325 | /* We use char because int might match the return type of a gcc2 | |
30326 | builtin and then its argument prototype would still apply. */ | |
30327 | char $ac_func (); | |
30328 | /* The GNU C library defines this for functions which it implements | |
30329 | to always fail with ENOSYS. Some functions are actually named | |
30330 | something starting with __ and the normal name is an alias. */ | |
30331 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30332 | choke me | |
30333 | #else | |
30334 | char (*f) () = $ac_func; | |
30335 | #endif | |
30336 | #ifdef __cplusplus | |
30337 | } | |
30338 | #endif | |
30339 | ||
30340 | int | |
30341 | main () | |
30342 | { | |
30343 | return f != $ac_func; | |
30344 | ; | |
30345 | return 0; | |
30346 | } | |
30347 | _ACEOF | |
30348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30350 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30351 | ac_status=$? |
ac1cb8d3 VS |
30352 | grep -v '^ *+' conftest.er1 >conftest.err |
30353 | rm -f conftest.er1 | |
30354 | cat conftest.err >&5 | |
a848cd7e SC |
30355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30356 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30357 | { ac_try='test -z "$ac_c_werror_flag" |
30358 | || test ! -s conftest.err' | |
30359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30360 | (eval $ac_try) 2>&5 | |
30361 | ac_status=$? | |
30362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30363 | (exit $ac_status); }; } && | |
30364 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30366 | (eval $ac_try) 2>&5 | |
30367 | ac_status=$? | |
30368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30369 | (exit $ac_status); }; }; then | |
30370 | eval "$as_ac_var=yes" | |
30371 | else | |
30372 | echo "$as_me: failed program was:" >&5 | |
30373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30374 | ||
30375 | eval "$as_ac_var=no" | |
30376 | fi | |
ac1cb8d3 VS |
30377 | rm -f conftest.err conftest.$ac_objext \ |
30378 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30379 | fi |
30380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30381 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30382 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30383 | cat >>confdefs.h <<_ACEOF | |
30384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30385 | _ACEOF | |
30386 | break | |
30387 | fi | |
30388 | done | |
30389 | ||
30390 | ||
30391 | HAVE_SOME_SLEEP_FUNC=0 | |
30392 | if test "$USE_BEOS" = 1; then | |
30393 | cat >>confdefs.h <<\_ACEOF | |
30394 | #define HAVE_SLEEP 1 | |
30395 | _ACEOF | |
30396 | ||
30397 | HAVE_SOME_SLEEP_FUNC=1 | |
30398 | fi | |
30399 | ||
30400 | if test "$USE_DARWIN" = 1; then | |
30401 | cat >>confdefs.h <<\_ACEOF | |
30402 | #define HAVE_USLEEP 1 | |
30403 | _ACEOF | |
30404 | ||
30405 | HAVE_SOME_SLEEP_FUNC=1 | |
30406 | fi | |
30407 | ||
30408 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30409 | POSIX4_LINK= | |
30410 | ||
30411 | for ac_func in nanosleep | |
30412 | do | |
30413 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30414 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30415 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30416 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30418 | else | |
30419 | cat >conftest.$ac_ext <<_ACEOF | |
30420 | /* confdefs.h. */ | |
30421 | _ACEOF | |
30422 | cat confdefs.h >>conftest.$ac_ext | |
30423 | cat >>conftest.$ac_ext <<_ACEOF | |
30424 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30425 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30426 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30427 | #define $ac_func innocuous_$ac_func | |
30428 | ||
a848cd7e SC |
30429 | /* System header to define __stub macros and hopefully few prototypes, |
30430 | which can conflict with char $ac_func (); below. | |
30431 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30432 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30433 | |
a848cd7e SC |
30434 | #ifdef __STDC__ |
30435 | # include <limits.h> | |
30436 | #else | |
30437 | # include <assert.h> | |
30438 | #endif | |
ac1cb8d3 VS |
30439 | |
30440 | #undef $ac_func | |
30441 | ||
a848cd7e SC |
30442 | /* Override any gcc2 internal prototype to avoid an error. */ |
30443 | #ifdef __cplusplus | |
30444 | extern "C" | |
30445 | { | |
30446 | #endif | |
30447 | /* We use char because int might match the return type of a gcc2 | |
30448 | builtin and then its argument prototype would still apply. */ | |
30449 | char $ac_func (); | |
30450 | /* The GNU C library defines this for functions which it implements | |
30451 | to always fail with ENOSYS. Some functions are actually named | |
30452 | something starting with __ and the normal name is an alias. */ | |
30453 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30454 | choke me | |
30455 | #else | |
30456 | char (*f) () = $ac_func; | |
30457 | #endif | |
30458 | #ifdef __cplusplus | |
30459 | } | |
30460 | #endif | |
30461 | ||
30462 | int | |
30463 | main () | |
30464 | { | |
30465 | return f != $ac_func; | |
30466 | ; | |
30467 | return 0; | |
30468 | } | |
30469 | _ACEOF | |
30470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30472 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30473 | ac_status=$? |
ac1cb8d3 VS |
30474 | grep -v '^ *+' conftest.er1 >conftest.err |
30475 | rm -f conftest.er1 | |
30476 | cat conftest.err >&5 | |
a848cd7e SC |
30477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30478 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30479 | { ac_try='test -z "$ac_c_werror_flag" |
30480 | || test ! -s conftest.err' | |
30481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30482 | (eval $ac_try) 2>&5 | |
30483 | ac_status=$? | |
30484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30485 | (exit $ac_status); }; } && | |
30486 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30488 | (eval $ac_try) 2>&5 | |
30489 | ac_status=$? | |
30490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30491 | (exit $ac_status); }; }; then | |
30492 | eval "$as_ac_var=yes" | |
30493 | else | |
30494 | echo "$as_me: failed program was:" >&5 | |
30495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30496 | ||
30497 | eval "$as_ac_var=no" | |
30498 | fi | |
ac1cb8d3 VS |
30499 | rm -f conftest.err conftest.$ac_objext \ |
30500 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30501 | fi |
30502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30503 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30504 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30505 | cat >>confdefs.h <<_ACEOF | |
30506 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30507 | _ACEOF | |
30508 | cat >>confdefs.h <<\_ACEOF | |
30509 | #define HAVE_NANOSLEEP 1 | |
30510 | _ACEOF | |
30511 | ||
30512 | else | |
30513 | ||
30514 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30515 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30516 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30518 | else | |
30519 | ac_check_lib_save_LIBS=$LIBS | |
30520 | LIBS="-lposix4 $LIBS" | |
30521 | cat >conftest.$ac_ext <<_ACEOF | |
30522 | /* confdefs.h. */ | |
30523 | _ACEOF | |
30524 | cat confdefs.h >>conftest.$ac_ext | |
30525 | cat >>conftest.$ac_ext <<_ACEOF | |
30526 | /* end confdefs.h. */ | |
30527 | ||
30528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30529 | #ifdef __cplusplus | |
30530 | extern "C" | |
30531 | #endif | |
30532 | /* We use char because int might match the return type of a gcc2 | |
30533 | builtin and then its argument prototype would still apply. */ | |
30534 | char nanosleep (); | |
30535 | int | |
30536 | main () | |
30537 | { | |
30538 | nanosleep (); | |
30539 | ; | |
30540 | return 0; | |
30541 | } | |
30542 | _ACEOF | |
30543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30545 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30546 | ac_status=$? |
ac1cb8d3 VS |
30547 | grep -v '^ *+' conftest.er1 >conftest.err |
30548 | rm -f conftest.er1 | |
30549 | cat conftest.err >&5 | |
a848cd7e SC |
30550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30551 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30552 | { ac_try='test -z "$ac_c_werror_flag" |
30553 | || test ! -s conftest.err' | |
30554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30555 | (eval $ac_try) 2>&5 | |
30556 | ac_status=$? | |
30557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30558 | (exit $ac_status); }; } && | |
30559 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30561 | (eval $ac_try) 2>&5 | |
30562 | ac_status=$? | |
30563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30564 | (exit $ac_status); }; }; then | |
30565 | ac_cv_lib_posix4_nanosleep=yes | |
30566 | else | |
30567 | echo "$as_me: failed program was:" >&5 | |
30568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30569 | ||
30570 | ac_cv_lib_posix4_nanosleep=no | |
30571 | fi | |
ac1cb8d3 VS |
30572 | rm -f conftest.err conftest.$ac_objext \ |
30573 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30574 | LIBS=$ac_check_lib_save_LIBS |
30575 | fi | |
30576 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30577 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30578 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30579 | ||
30580 | cat >>confdefs.h <<\_ACEOF | |
30581 | #define HAVE_NANOSLEEP 1 | |
30582 | _ACEOF | |
30583 | ||
30584 | POSIX4_LINK=" -lposix4" | |
30585 | ||
30586 | else | |
30587 | ||
30588 | ||
30589 | for ac_func in usleep | |
30590 | do | |
30591 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30592 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30593 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30594 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30596 | else | |
30597 | cat >conftest.$ac_ext <<_ACEOF | |
30598 | /* confdefs.h. */ | |
30599 | _ACEOF | |
30600 | cat confdefs.h >>conftest.$ac_ext | |
30601 | cat >>conftest.$ac_ext <<_ACEOF | |
30602 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30603 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30604 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30605 | #define $ac_func innocuous_$ac_func | |
30606 | ||
a848cd7e SC |
30607 | /* System header to define __stub macros and hopefully few prototypes, |
30608 | which can conflict with char $ac_func (); below. | |
30609 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30610 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30611 | |
a848cd7e SC |
30612 | #ifdef __STDC__ |
30613 | # include <limits.h> | |
30614 | #else | |
30615 | # include <assert.h> | |
30616 | #endif | |
ac1cb8d3 VS |
30617 | |
30618 | #undef $ac_func | |
30619 | ||
a848cd7e SC |
30620 | /* Override any gcc2 internal prototype to avoid an error. */ |
30621 | #ifdef __cplusplus | |
30622 | extern "C" | |
30623 | { | |
30624 | #endif | |
30625 | /* We use char because int might match the return type of a gcc2 | |
30626 | builtin and then its argument prototype would still apply. */ | |
30627 | char $ac_func (); | |
30628 | /* The GNU C library defines this for functions which it implements | |
30629 | to always fail with ENOSYS. Some functions are actually named | |
30630 | something starting with __ and the normal name is an alias. */ | |
30631 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30632 | choke me | |
30633 | #else | |
30634 | char (*f) () = $ac_func; | |
30635 | #endif | |
30636 | #ifdef __cplusplus | |
30637 | } | |
30638 | #endif | |
30639 | ||
30640 | int | |
30641 | main () | |
30642 | { | |
30643 | return f != $ac_func; | |
30644 | ; | |
30645 | return 0; | |
30646 | } | |
30647 | _ACEOF | |
30648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30650 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30651 | ac_status=$? |
ac1cb8d3 VS |
30652 | grep -v '^ *+' conftest.er1 >conftest.err |
30653 | rm -f conftest.er1 | |
30654 | cat conftest.err >&5 | |
a848cd7e SC |
30655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30656 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30657 | { ac_try='test -z "$ac_c_werror_flag" |
30658 | || test ! -s conftest.err' | |
30659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30660 | (eval $ac_try) 2>&5 | |
30661 | ac_status=$? | |
30662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30663 | (exit $ac_status); }; } && | |
30664 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30666 | (eval $ac_try) 2>&5 | |
30667 | ac_status=$? | |
30668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30669 | (exit $ac_status); }; }; then | |
30670 | eval "$as_ac_var=yes" | |
30671 | else | |
30672 | echo "$as_me: failed program was:" >&5 | |
30673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30674 | ||
30675 | eval "$as_ac_var=no" | |
30676 | fi | |
ac1cb8d3 VS |
30677 | rm -f conftest.err conftest.$ac_objext \ |
30678 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30679 | fi |
30680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30681 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30682 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30683 | cat >>confdefs.h <<_ACEOF | |
30684 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30685 | _ACEOF | |
30686 | cat >>confdefs.h <<\_ACEOF | |
30687 | #define HAVE_USLEEP 1 | |
30688 | _ACEOF | |
30689 | ||
30690 | else | |
30691 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30692 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30693 | ||
30694 | fi | |
30695 | done | |
30696 | ||
30697 | ||
30698 | ||
30699 | fi | |
30700 | ||
30701 | ||
30702 | ||
30703 | fi | |
30704 | done | |
30705 | ||
30706 | fi | |
30707 | ||
30708 | ||
30709 | ||
30710 | for ac_func in uname gethostname | |
30711 | do | |
30712 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30713 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30714 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30715 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30717 | else | |
30718 | cat >conftest.$ac_ext <<_ACEOF | |
30719 | /* confdefs.h. */ | |
30720 | _ACEOF | |
30721 | cat confdefs.h >>conftest.$ac_ext | |
30722 | cat >>conftest.$ac_ext <<_ACEOF | |
30723 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30724 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30725 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30726 | #define $ac_func innocuous_$ac_func | |
30727 | ||
a848cd7e SC |
30728 | /* System header to define __stub macros and hopefully few prototypes, |
30729 | which can conflict with char $ac_func (); below. | |
30730 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30731 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30732 | |
a848cd7e SC |
30733 | #ifdef __STDC__ |
30734 | # include <limits.h> | |
30735 | #else | |
30736 | # include <assert.h> | |
30737 | #endif | |
ac1cb8d3 VS |
30738 | |
30739 | #undef $ac_func | |
30740 | ||
a848cd7e SC |
30741 | /* Override any gcc2 internal prototype to avoid an error. */ |
30742 | #ifdef __cplusplus | |
30743 | extern "C" | |
30744 | { | |
30745 | #endif | |
30746 | /* We use char because int might match the return type of a gcc2 | |
30747 | builtin and then its argument prototype would still apply. */ | |
30748 | char $ac_func (); | |
30749 | /* The GNU C library defines this for functions which it implements | |
30750 | to always fail with ENOSYS. Some functions are actually named | |
30751 | something starting with __ and the normal name is an alias. */ | |
30752 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30753 | choke me | |
30754 | #else | |
30755 | char (*f) () = $ac_func; | |
30756 | #endif | |
30757 | #ifdef __cplusplus | |
30758 | } | |
30759 | #endif | |
30760 | ||
30761 | int | |
30762 | main () | |
30763 | { | |
30764 | return f != $ac_func; | |
30765 | ; | |
30766 | return 0; | |
30767 | } | |
30768 | _ACEOF | |
30769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30771 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30772 | ac_status=$? |
ac1cb8d3 VS |
30773 | grep -v '^ *+' conftest.er1 >conftest.err |
30774 | rm -f conftest.er1 | |
30775 | cat conftest.err >&5 | |
a848cd7e SC |
30776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30777 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30778 | { ac_try='test -z "$ac_c_werror_flag" |
30779 | || test ! -s conftest.err' | |
30780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30781 | (eval $ac_try) 2>&5 | |
30782 | ac_status=$? | |
30783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30784 | (exit $ac_status); }; } && | |
30785 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30787 | (eval $ac_try) 2>&5 | |
30788 | ac_status=$? | |
30789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30790 | (exit $ac_status); }; }; then | |
30791 | eval "$as_ac_var=yes" | |
30792 | else | |
30793 | echo "$as_me: failed program was:" >&5 | |
30794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30795 | ||
30796 | eval "$as_ac_var=no" | |
30797 | fi | |
ac1cb8d3 VS |
30798 | rm -f conftest.err conftest.$ac_objext \ |
30799 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30800 | fi |
30801 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30802 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30803 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30804 | cat >>confdefs.h <<_ACEOF | |
30805 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30806 | _ACEOF | |
30807 | break | |
30808 | fi | |
30809 | done | |
30810 | ||
30811 | ||
30812 | ||
30813 | ||
30814 | ac_ext=cc | |
30815 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30816 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30817 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30818 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30819 | ||
30820 | ||
30821 | ||
30822 | for ac_func in strtok_r | |
30823 | do | |
30824 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30825 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30826 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30827 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30829 | else | |
30830 | cat >conftest.$ac_ext <<_ACEOF | |
30831 | /* confdefs.h. */ | |
30832 | _ACEOF | |
30833 | cat confdefs.h >>conftest.$ac_ext | |
30834 | cat >>conftest.$ac_ext <<_ACEOF | |
30835 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30836 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30838 | #define $ac_func innocuous_$ac_func | |
30839 | ||
a848cd7e SC |
30840 | /* System header to define __stub macros and hopefully few prototypes, |
30841 | which can conflict with char $ac_func (); below. | |
30842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30843 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30844 | |
a848cd7e SC |
30845 | #ifdef __STDC__ |
30846 | # include <limits.h> | |
30847 | #else | |
30848 | # include <assert.h> | |
30849 | #endif | |
ac1cb8d3 VS |
30850 | |
30851 | #undef $ac_func | |
30852 | ||
a848cd7e SC |
30853 | /* Override any gcc2 internal prototype to avoid an error. */ |
30854 | #ifdef __cplusplus | |
30855 | extern "C" | |
30856 | { | |
30857 | #endif | |
30858 | /* We use char because int might match the return type of a gcc2 | |
30859 | builtin and then its argument prototype would still apply. */ | |
30860 | char $ac_func (); | |
30861 | /* The GNU C library defines this for functions which it implements | |
30862 | to always fail with ENOSYS. Some functions are actually named | |
30863 | something starting with __ and the normal name is an alias. */ | |
30864 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30865 | choke me | |
30866 | #else | |
30867 | char (*f) () = $ac_func; | |
30868 | #endif | |
30869 | #ifdef __cplusplus | |
30870 | } | |
30871 | #endif | |
30872 | ||
30873 | int | |
30874 | main () | |
30875 | { | |
30876 | return f != $ac_func; | |
30877 | ; | |
30878 | return 0; | |
30879 | } | |
30880 | _ACEOF | |
30881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30883 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30884 | ac_status=$? |
ac1cb8d3 VS |
30885 | grep -v '^ *+' conftest.er1 >conftest.err |
30886 | rm -f conftest.er1 | |
30887 | cat conftest.err >&5 | |
a848cd7e SC |
30888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30889 | (exit $ac_status); } && | |
ac1cb8d3 VS |
30890 | { ac_try='test -z "$ac_cxx_werror_flag" |
30891 | || test ! -s conftest.err' | |
30892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30893 | (eval $ac_try) 2>&5 | |
30894 | ac_status=$? | |
30895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30896 | (exit $ac_status); }; } && | |
30897 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30899 | (eval $ac_try) 2>&5 | |
30900 | ac_status=$? | |
30901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30902 | (exit $ac_status); }; }; then | |
30903 | eval "$as_ac_var=yes" | |
30904 | else | |
30905 | echo "$as_me: failed program was:" >&5 | |
30906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30907 | ||
30908 | eval "$as_ac_var=no" | |
30909 | fi | |
ac1cb8d3 VS |
30910 | rm -f conftest.err conftest.$ac_objext \ |
30911 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30912 | fi |
30913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30914 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30915 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30916 | cat >>confdefs.h <<_ACEOF | |
30917 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30918 | _ACEOF | |
30919 | ||
30920 | fi | |
30921 | done | |
30922 | ||
30923 | ||
30924 | ac_ext=c | |
30925 | ac_cpp='$CPP $CPPFLAGS' | |
30926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30929 | ||
30930 | ||
30931 | INET_LINK= | |
30932 | ||
30933 | for ac_func in inet_addr | |
30934 | do | |
30935 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30936 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30937 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30938 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30940 | else | |
30941 | cat >conftest.$ac_ext <<_ACEOF | |
30942 | /* confdefs.h. */ | |
30943 | _ACEOF | |
30944 | cat confdefs.h >>conftest.$ac_ext | |
30945 | cat >>conftest.$ac_ext <<_ACEOF | |
30946 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30947 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30948 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30949 | #define $ac_func innocuous_$ac_func | |
30950 | ||
a848cd7e SC |
30951 | /* System header to define __stub macros and hopefully few prototypes, |
30952 | which can conflict with char $ac_func (); below. | |
30953 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30954 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30955 | |
a848cd7e SC |
30956 | #ifdef __STDC__ |
30957 | # include <limits.h> | |
30958 | #else | |
30959 | # include <assert.h> | |
30960 | #endif | |
ac1cb8d3 VS |
30961 | |
30962 | #undef $ac_func | |
30963 | ||
a848cd7e SC |
30964 | /* Override any gcc2 internal prototype to avoid an error. */ |
30965 | #ifdef __cplusplus | |
30966 | extern "C" | |
30967 | { | |
30968 | #endif | |
30969 | /* We use char because int might match the return type of a gcc2 | |
30970 | builtin and then its argument prototype would still apply. */ | |
30971 | char $ac_func (); | |
30972 | /* The GNU C library defines this for functions which it implements | |
30973 | to always fail with ENOSYS. Some functions are actually named | |
30974 | something starting with __ and the normal name is an alias. */ | |
30975 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30976 | choke me | |
30977 | #else | |
30978 | char (*f) () = $ac_func; | |
30979 | #endif | |
30980 | #ifdef __cplusplus | |
30981 | } | |
30982 | #endif | |
30983 | ||
30984 | int | |
30985 | main () | |
30986 | { | |
30987 | return f != $ac_func; | |
30988 | ; | |
30989 | return 0; | |
30990 | } | |
30991 | _ACEOF | |
30992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30994 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30995 | ac_status=$? |
ac1cb8d3 VS |
30996 | grep -v '^ *+' conftest.er1 >conftest.err |
30997 | rm -f conftest.er1 | |
30998 | cat conftest.err >&5 | |
a848cd7e SC |
30999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31000 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31001 | { ac_try='test -z "$ac_c_werror_flag" |
31002 | || test ! -s conftest.err' | |
31003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31004 | (eval $ac_try) 2>&5 | |
31005 | ac_status=$? | |
31006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31007 | (exit $ac_status); }; } && | |
31008 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31010 | (eval $ac_try) 2>&5 | |
31011 | ac_status=$? | |
31012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31013 | (exit $ac_status); }; }; then | |
31014 | eval "$as_ac_var=yes" | |
31015 | else | |
31016 | echo "$as_me: failed program was:" >&5 | |
31017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31018 | ||
31019 | eval "$as_ac_var=no" | |
31020 | fi | |
ac1cb8d3 VS |
31021 | rm -f conftest.err conftest.$ac_objext \ |
31022 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31023 | fi |
31024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31025 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31026 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31027 | cat >>confdefs.h <<_ACEOF | |
31028 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31029 | _ACEOF | |
31030 | cat >>confdefs.h <<\_ACEOF | |
31031 | #define HAVE_INET_ADDR 1 | |
31032 | _ACEOF | |
31033 | ||
31034 | else | |
31035 | ||
31036 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31037 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31038 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31040 | else | |
31041 | ac_check_lib_save_LIBS=$LIBS | |
31042 | LIBS="-lnsl $LIBS" | |
31043 | cat >conftest.$ac_ext <<_ACEOF | |
31044 | /* confdefs.h. */ | |
31045 | _ACEOF | |
31046 | cat confdefs.h >>conftest.$ac_ext | |
31047 | cat >>conftest.$ac_ext <<_ACEOF | |
31048 | /* end confdefs.h. */ | |
31049 | ||
31050 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31051 | #ifdef __cplusplus | |
31052 | extern "C" | |
31053 | #endif | |
31054 | /* We use char because int might match the return type of a gcc2 | |
31055 | builtin and then its argument prototype would still apply. */ | |
31056 | char inet_addr (); | |
31057 | int | |
31058 | main () | |
31059 | { | |
31060 | inet_addr (); | |
31061 | ; | |
31062 | return 0; | |
31063 | } | |
31064 | _ACEOF | |
31065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31067 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31068 | ac_status=$? |
ac1cb8d3 VS |
31069 | grep -v '^ *+' conftest.er1 >conftest.err |
31070 | rm -f conftest.er1 | |
31071 | cat conftest.err >&5 | |
a848cd7e SC |
31072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31073 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31074 | { ac_try='test -z "$ac_c_werror_flag" |
31075 | || test ! -s conftest.err' | |
31076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31077 | (eval $ac_try) 2>&5 | |
31078 | ac_status=$? | |
31079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31080 | (exit $ac_status); }; } && | |
31081 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31083 | (eval $ac_try) 2>&5 | |
31084 | ac_status=$? | |
31085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31086 | (exit $ac_status); }; }; then | |
31087 | ac_cv_lib_nsl_inet_addr=yes | |
31088 | else | |
31089 | echo "$as_me: failed program was:" >&5 | |
31090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31091 | ||
31092 | ac_cv_lib_nsl_inet_addr=no | |
31093 | fi | |
ac1cb8d3 VS |
31094 | rm -f conftest.err conftest.$ac_objext \ |
31095 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31096 | LIBS=$ac_check_lib_save_LIBS |
31097 | fi | |
31098 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31099 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31100 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31101 | INET_LINK="nsl" | |
31102 | else | |
31103 | ||
31104 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31105 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31106 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31108 | else | |
31109 | ac_check_lib_save_LIBS=$LIBS | |
31110 | LIBS="-lresolv $LIBS" | |
31111 | cat >conftest.$ac_ext <<_ACEOF | |
31112 | /* confdefs.h. */ | |
31113 | _ACEOF | |
31114 | cat confdefs.h >>conftest.$ac_ext | |
31115 | cat >>conftest.$ac_ext <<_ACEOF | |
31116 | /* end confdefs.h. */ | |
31117 | ||
31118 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31119 | #ifdef __cplusplus | |
31120 | extern "C" | |
31121 | #endif | |
31122 | /* We use char because int might match the return type of a gcc2 | |
31123 | builtin and then its argument prototype would still apply. */ | |
31124 | char inet_addr (); | |
31125 | int | |
31126 | main () | |
31127 | { | |
31128 | inet_addr (); | |
31129 | ; | |
31130 | return 0; | |
31131 | } | |
31132 | _ACEOF | |
31133 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31135 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31136 | ac_status=$? |
ac1cb8d3 VS |
31137 | grep -v '^ *+' conftest.er1 >conftest.err |
31138 | rm -f conftest.er1 | |
31139 | cat conftest.err >&5 | |
a848cd7e SC |
31140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31141 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31142 | { ac_try='test -z "$ac_c_werror_flag" |
31143 | || test ! -s conftest.err' | |
31144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31145 | (eval $ac_try) 2>&5 | |
31146 | ac_status=$? | |
31147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31148 | (exit $ac_status); }; } && | |
31149 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31151 | (eval $ac_try) 2>&5 | |
31152 | ac_status=$? | |
31153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31154 | (exit $ac_status); }; }; then | |
31155 | ac_cv_lib_resolv_inet_addr=yes | |
31156 | else | |
31157 | echo "$as_me: failed program was:" >&5 | |
31158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31159 | ||
31160 | ac_cv_lib_resolv_inet_addr=no | |
31161 | fi | |
ac1cb8d3 VS |
31162 | rm -f conftest.err conftest.$ac_objext \ |
31163 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31164 | LIBS=$ac_check_lib_save_LIBS |
31165 | fi | |
31166 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31167 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31168 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31169 | INET_LINK="resolv" | |
31170 | else | |
31171 | ||
31172 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31173 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31174 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31176 | else | |
31177 | ac_check_lib_save_LIBS=$LIBS | |
31178 | LIBS="-lsocket $LIBS" | |
31179 | cat >conftest.$ac_ext <<_ACEOF | |
31180 | /* confdefs.h. */ | |
31181 | _ACEOF | |
31182 | cat confdefs.h >>conftest.$ac_ext | |
31183 | cat >>conftest.$ac_ext <<_ACEOF | |
31184 | /* end confdefs.h. */ | |
31185 | ||
31186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31187 | #ifdef __cplusplus | |
31188 | extern "C" | |
31189 | #endif | |
31190 | /* We use char because int might match the return type of a gcc2 | |
31191 | builtin and then its argument prototype would still apply. */ | |
31192 | char inet_addr (); | |
31193 | int | |
31194 | main () | |
31195 | { | |
31196 | inet_addr (); | |
31197 | ; | |
31198 | return 0; | |
31199 | } | |
31200 | _ACEOF | |
31201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31203 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31204 | ac_status=$? |
ac1cb8d3 VS |
31205 | grep -v '^ *+' conftest.er1 >conftest.err |
31206 | rm -f conftest.er1 | |
31207 | cat conftest.err >&5 | |
a848cd7e SC |
31208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31209 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31210 | { ac_try='test -z "$ac_c_werror_flag" |
31211 | || test ! -s conftest.err' | |
31212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31213 | (eval $ac_try) 2>&5 | |
31214 | ac_status=$? | |
31215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31216 | (exit $ac_status); }; } && | |
31217 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31219 | (eval $ac_try) 2>&5 | |
31220 | ac_status=$? | |
31221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31222 | (exit $ac_status); }; }; then | |
31223 | ac_cv_lib_socket_inet_addr=yes | |
31224 | else | |
31225 | echo "$as_me: failed program was:" >&5 | |
31226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31227 | ||
31228 | ac_cv_lib_socket_inet_addr=no | |
31229 | fi | |
ac1cb8d3 VS |
31230 | rm -f conftest.err conftest.$ac_objext \ |
31231 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31232 | LIBS=$ac_check_lib_save_LIBS |
31233 | fi | |
31234 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31235 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31236 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31237 | INET_LINK="socket" | |
31238 | ||
31239 | fi | |
31240 | ||
31241 | ||
31242 | ||
31243 | fi | |
31244 | ||
31245 | ||
31246 | ||
31247 | fi | |
31248 | ||
31249 | ||
31250 | ||
31251 | fi | |
31252 | done | |
31253 | ||
31254 | ||
31255 | ||
31256 | for ac_func in inet_aton | |
31257 | do | |
31258 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31259 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31260 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31261 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31263 | else | |
31264 | cat >conftest.$ac_ext <<_ACEOF | |
31265 | /* confdefs.h. */ | |
31266 | _ACEOF | |
31267 | cat confdefs.h >>conftest.$ac_ext | |
31268 | cat >>conftest.$ac_ext <<_ACEOF | |
31269 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31270 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31272 | #define $ac_func innocuous_$ac_func | |
31273 | ||
a848cd7e SC |
31274 | /* System header to define __stub macros and hopefully few prototypes, |
31275 | which can conflict with char $ac_func (); below. | |
31276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31277 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31278 | |
a848cd7e SC |
31279 | #ifdef __STDC__ |
31280 | # include <limits.h> | |
31281 | #else | |
31282 | # include <assert.h> | |
31283 | #endif | |
ac1cb8d3 VS |
31284 | |
31285 | #undef $ac_func | |
31286 | ||
a848cd7e SC |
31287 | /* Override any gcc2 internal prototype to avoid an error. */ |
31288 | #ifdef __cplusplus | |
31289 | extern "C" | |
31290 | { | |
31291 | #endif | |
31292 | /* We use char because int might match the return type of a gcc2 | |
31293 | builtin and then its argument prototype would still apply. */ | |
31294 | char $ac_func (); | |
31295 | /* The GNU C library defines this for functions which it implements | |
31296 | to always fail with ENOSYS. Some functions are actually named | |
31297 | something starting with __ and the normal name is an alias. */ | |
31298 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31299 | choke me | |
31300 | #else | |
31301 | char (*f) () = $ac_func; | |
31302 | #endif | |
31303 | #ifdef __cplusplus | |
31304 | } | |
31305 | #endif | |
31306 | ||
31307 | int | |
31308 | main () | |
31309 | { | |
31310 | return f != $ac_func; | |
31311 | ; | |
31312 | return 0; | |
31313 | } | |
31314 | _ACEOF | |
31315 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31317 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31318 | ac_status=$? |
ac1cb8d3 VS |
31319 | grep -v '^ *+' conftest.er1 >conftest.err |
31320 | rm -f conftest.er1 | |
31321 | cat conftest.err >&5 | |
a848cd7e SC |
31322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31323 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31324 | { ac_try='test -z "$ac_c_werror_flag" |
31325 | || test ! -s conftest.err' | |
31326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31327 | (eval $ac_try) 2>&5 | |
31328 | ac_status=$? | |
31329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31330 | (exit $ac_status); }; } && | |
31331 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31333 | (eval $ac_try) 2>&5 | |
31334 | ac_status=$? | |
31335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31336 | (exit $ac_status); }; }; then | |
31337 | eval "$as_ac_var=yes" | |
31338 | else | |
31339 | echo "$as_me: failed program was:" >&5 | |
31340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31341 | ||
31342 | eval "$as_ac_var=no" | |
31343 | fi | |
ac1cb8d3 VS |
31344 | rm -f conftest.err conftest.$ac_objext \ |
31345 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31346 | fi |
31347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31348 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31349 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31350 | cat >>confdefs.h <<_ACEOF | |
31351 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31352 | _ACEOF | |
31353 | cat >>confdefs.h <<\_ACEOF | |
31354 | #define HAVE_INET_ATON 1 | |
31355 | _ACEOF | |
31356 | ||
31357 | else | |
31358 | ||
31359 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31360 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31361 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31362 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31364 | else | |
31365 | ac_check_lib_save_LIBS=$LIBS | |
31366 | LIBS="-l$INET_LINK $LIBS" | |
31367 | cat >conftest.$ac_ext <<_ACEOF | |
31368 | /* confdefs.h. */ | |
31369 | _ACEOF | |
31370 | cat confdefs.h >>conftest.$ac_ext | |
31371 | cat >>conftest.$ac_ext <<_ACEOF | |
31372 | /* end confdefs.h. */ | |
31373 | ||
31374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31375 | #ifdef __cplusplus | |
31376 | extern "C" | |
31377 | #endif | |
31378 | /* We use char because int might match the return type of a gcc2 | |
31379 | builtin and then its argument prototype would still apply. */ | |
31380 | char inet_aton (); | |
31381 | int | |
31382 | main () | |
31383 | { | |
31384 | inet_aton (); | |
31385 | ; | |
31386 | return 0; | |
31387 | } | |
31388 | _ACEOF | |
31389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31391 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31392 | ac_status=$? |
ac1cb8d3 VS |
31393 | grep -v '^ *+' conftest.er1 >conftest.err |
31394 | rm -f conftest.er1 | |
31395 | cat conftest.err >&5 | |
a848cd7e SC |
31396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31397 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31398 | { ac_try='test -z "$ac_c_werror_flag" |
31399 | || test ! -s conftest.err' | |
31400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31401 | (eval $ac_try) 2>&5 | |
31402 | ac_status=$? | |
31403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31404 | (exit $ac_status); }; } && | |
31405 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31407 | (eval $ac_try) 2>&5 | |
31408 | ac_status=$? | |
31409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31410 | (exit $ac_status); }; }; then | |
31411 | eval "$as_ac_Lib=yes" | |
31412 | else | |
31413 | echo "$as_me: failed program was:" >&5 | |
31414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31415 | ||
31416 | eval "$as_ac_Lib=no" | |
31417 | fi | |
ac1cb8d3 VS |
31418 | rm -f conftest.err conftest.$ac_objext \ |
31419 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31420 | LIBS=$ac_check_lib_save_LIBS |
31421 | fi | |
31422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31423 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31424 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31425 | cat >>confdefs.h <<\_ACEOF | |
31426 | #define HAVE_INET_ATON 1 | |
31427 | _ACEOF | |
31428 | ||
31429 | fi | |
31430 | ||
31431 | ||
31432 | fi | |
31433 | done | |
31434 | ||
31435 | ||
31436 | if test "x$INET_LINK" != "x"; then | |
31437 | cat >>confdefs.h <<\_ACEOF | |
31438 | #define HAVE_INET_ADDR 1 | |
31439 | _ACEOF | |
31440 | ||
31441 | INET_LINK=" -l$INET_LINK" | |
31442 | fi | |
31443 | ||
31444 | fi | |
31445 | ||
31446 | ||
31447 | ||
31448 | EXTRALIBS_ESD= | |
31449 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31450 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31451 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31453 | else | |
31454 | ac_check_lib_save_LIBS=$LIBS | |
31455 | LIBS="-lesd $LIBS" | |
31456 | cat >conftest.$ac_ext <<_ACEOF | |
31457 | /* confdefs.h. */ | |
31458 | _ACEOF | |
31459 | cat confdefs.h >>conftest.$ac_ext | |
31460 | cat >>conftest.$ac_ext <<_ACEOF | |
31461 | /* end confdefs.h. */ | |
31462 | ||
31463 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31464 | #ifdef __cplusplus | |
31465 | extern "C" | |
31466 | #endif | |
31467 | /* We use char because int might match the return type of a gcc2 | |
31468 | builtin and then its argument prototype would still apply. */ | |
31469 | char esd_close (); | |
31470 | int | |
31471 | main () | |
31472 | { | |
31473 | esd_close (); | |
31474 | ; | |
31475 | return 0; | |
31476 | } | |
31477 | _ACEOF | |
31478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31480 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31481 | ac_status=$? |
ac1cb8d3 VS |
31482 | grep -v '^ *+' conftest.er1 >conftest.err |
31483 | rm -f conftest.er1 | |
31484 | cat conftest.err >&5 | |
a848cd7e SC |
31485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31486 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31487 | { ac_try='test -z "$ac_c_werror_flag" |
31488 | || test ! -s conftest.err' | |
31489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31490 | (eval $ac_try) 2>&5 | |
31491 | ac_status=$? | |
31492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31493 | (exit $ac_status); }; } && | |
31494 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31496 | (eval $ac_try) 2>&5 | |
31497 | ac_status=$? | |
31498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31499 | (exit $ac_status); }; }; then | |
31500 | ac_cv_lib_esd_esd_close=yes | |
31501 | else | |
31502 | echo "$as_me: failed program was:" >&5 | |
31503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31504 | ||
31505 | ac_cv_lib_esd_esd_close=no | |
31506 | fi | |
ac1cb8d3 VS |
31507 | rm -f conftest.err conftest.$ac_objext \ |
31508 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31509 | LIBS=$ac_check_lib_save_LIBS |
31510 | fi | |
31511 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31512 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31513 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31514 | ||
31515 | ||
31516 | for ac_header in esd.h | |
31517 | do | |
31518 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31520 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31521 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31524 | fi | |
31525 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31526 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31527 | else | |
31528 | # Is the header compilable? | |
31529 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31530 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31531 | cat >conftest.$ac_ext <<_ACEOF | |
31532 | /* confdefs.h. */ | |
31533 | _ACEOF | |
31534 | cat confdefs.h >>conftest.$ac_ext | |
31535 | cat >>conftest.$ac_ext <<_ACEOF | |
31536 | /* end confdefs.h. */ | |
31537 | $ac_includes_default | |
31538 | #include <$ac_header> | |
31539 | _ACEOF | |
31540 | rm -f conftest.$ac_objext | |
31541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31542 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31543 | ac_status=$? |
ac1cb8d3 VS |
31544 | grep -v '^ *+' conftest.er1 >conftest.err |
31545 | rm -f conftest.er1 | |
31546 | cat conftest.err >&5 | |
a848cd7e SC |
31547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31548 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31549 | { ac_try='test -z "$ac_c_werror_flag" |
31550 | || test ! -s conftest.err' | |
31551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31552 | (eval $ac_try) 2>&5 | |
31553 | ac_status=$? | |
31554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31555 | (exit $ac_status); }; } && | |
31556 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31558 | (eval $ac_try) 2>&5 | |
31559 | ac_status=$? | |
31560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31561 | (exit $ac_status); }; }; then | |
31562 | ac_header_compiler=yes | |
31563 | else | |
31564 | echo "$as_me: failed program was:" >&5 | |
31565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31566 | ||
31567 | ac_header_compiler=no | |
31568 | fi | |
ac1cb8d3 | 31569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31570 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31571 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31572 | ||
31573 | # Is the header present? | |
31574 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31575 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31576 | cat >conftest.$ac_ext <<_ACEOF | |
31577 | /* confdefs.h. */ | |
31578 | _ACEOF | |
31579 | cat confdefs.h >>conftest.$ac_ext | |
31580 | cat >>conftest.$ac_ext <<_ACEOF | |
31581 | /* end confdefs.h. */ | |
31582 | #include <$ac_header> | |
31583 | _ACEOF | |
31584 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31585 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31586 | ac_status=$? | |
31587 | grep -v '^ *+' conftest.er1 >conftest.err | |
31588 | rm -f conftest.er1 | |
31589 | cat conftest.err >&5 | |
31590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31591 | (exit $ac_status); } >/dev/null; then | |
31592 | if test -s conftest.err; then | |
31593 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31594 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31595 | else |
31596 | ac_cpp_err= | |
31597 | fi | |
31598 | else | |
31599 | ac_cpp_err=yes | |
31600 | fi | |
31601 | if test -z "$ac_cpp_err"; then | |
31602 | ac_header_preproc=yes | |
31603 | else | |
31604 | echo "$as_me: failed program was:" >&5 | |
31605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31606 | ||
31607 | ac_header_preproc=no | |
31608 | fi | |
31609 | rm -f conftest.err conftest.$ac_ext | |
31610 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31611 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31612 | ||
31613 | # So? What about this header? | |
ac1cb8d3 VS |
31614 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31615 | yes:no: ) | |
a848cd7e SC |
31616 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31617 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31618 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31619 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31620 | ac_header_preproc=yes | |
a848cd7e | 31621 | ;; |
ac1cb8d3 | 31622 | no:yes:* ) |
a848cd7e SC |
31623 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31624 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31625 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31626 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31627 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31628 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31629 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31630 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31631 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31632 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31633 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31634 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31635 | ( |
31636 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31637 | ## ----------------------------------------- ## |
31638 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31639 | ## ----------------------------------------- ## | |
a848cd7e SC |
31640 | _ASBOX |
31641 | ) | | |
31642 | sed "s/^/$as_me: WARNING: /" >&2 | |
31643 | ;; | |
31644 | esac | |
31645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31649 | else | |
ac1cb8d3 | 31650 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31651 | fi |
31652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31653 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31654 | ||
31655 | fi | |
31656 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31657 | cat >>confdefs.h <<_ACEOF | |
31658 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31659 | _ACEOF | |
31660 | ||
31661 | EXTRALIBS_ESD="-lesd" | |
31662 | ||
31663 | fi | |
31664 | ||
31665 | done | |
31666 | ||
31667 | ||
31668 | fi | |
31669 | ||
31670 | ||
31671 | ||
31672 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31673 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31674 | cat >conftest.$ac_ext <<_ACEOF | |
31675 | /* confdefs.h. */ | |
31676 | _ACEOF | |
31677 | cat confdefs.h >>conftest.$ac_ext | |
31678 | cat >>conftest.$ac_ext <<_ACEOF | |
31679 | /* end confdefs.h. */ | |
31680 | #ifdef __linux__ | |
31681 | #include <linux/cdrom.h> | |
31682 | #else | |
31683 | /* For Solaris */ | |
31684 | #include <sys/cdio.h> | |
31685 | #endif | |
31686 | ||
31687 | int | |
31688 | main () | |
31689 | { | |
31690 | struct cdrom_tocentry entry, old_entry; | |
31691 | ; | |
31692 | return 0; | |
31693 | } | |
31694 | _ACEOF | |
31695 | rm -f conftest.$ac_objext | |
31696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31697 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31698 | ac_status=$? |
ac1cb8d3 VS |
31699 | grep -v '^ *+' conftest.er1 >conftest.err |
31700 | rm -f conftest.er1 | |
31701 | cat conftest.err >&5 | |
a848cd7e SC |
31702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31703 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31704 | { ac_try='test -z "$ac_c_werror_flag" |
31705 | || test ! -s conftest.err' | |
31706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31707 | (eval $ac_try) 2>&5 | |
31708 | ac_status=$? | |
31709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31710 | (exit $ac_status); }; } && | |
31711 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31713 | (eval $ac_try) 2>&5 | |
31714 | ac_status=$? | |
31715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31716 | (exit $ac_status); }; }; then | |
31717 | echo "$as_me:$LINENO: result: yes" >&5 | |
31718 | echo "${ECHO_T}yes" >&6 | |
31719 | cat >>confdefs.h <<\_ACEOF | |
31720 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31721 | _ACEOF | |
31722 | ||
31723 | else | |
31724 | echo "$as_me: failed program was:" >&5 | |
31725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31726 | ||
31727 | echo "$as_me:$LINENO: result: no" >&5 | |
31728 | echo "${ECHO_T}no" >&6 | |
31729 | fi | |
ac1cb8d3 | 31730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31731 | |
31732 | ||
31733 | cat >confcache <<\_ACEOF | |
31734 | # This file is a shell script that caches the results of configure | |
31735 | # tests run on this system so they can be shared between configure | |
31736 | # scripts and configure runs, see configure's option --config-cache. | |
31737 | # It is not useful on other systems. If it contains results you don't | |
31738 | # want to keep, you may remove or edit it. | |
31739 | # | |
31740 | # config.status only pays attention to the cache file if you give it | |
31741 | # the --recheck option to rerun configure. | |
31742 | # | |
31743 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31744 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31745 | # following values. | |
31746 | ||
31747 | _ACEOF | |
31748 | ||
31749 | # The following way of writing the cache mishandles newlines in values, | |
31750 | # but we know of no workaround that is simple, portable, and efficient. | |
31751 | # So, don't put newlines in cache variables' values. | |
31752 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31753 | # and sets the high bit in the cache file unless we assign to the vars. | |
31754 | { | |
31755 | (set) 2>&1 | | |
31756 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31757 | *ac_space=\ *) | |
31758 | # `set' does not quote correctly, so add quotes (double-quote | |
31759 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31760 | sed -n \ | |
ac1cb8d3 VS |
31761 | "s/'/'\\\\''/g; |
31762 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31763 | ;; |
31764 | *) | |
31765 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31766 | sed -n \ | |
ac1cb8d3 | 31767 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31768 | ;; |
31769 | esac; | |
31770 | } | | |
31771 | sed ' | |
31772 | t clear | |
31773 | : clear | |
31774 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31775 | t end | |
31776 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31777 | : end' >>confcache | |
31778 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31779 | if test -w $cache_file; then | |
31780 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31781 | cat confcache >$cache_file | |
31782 | else | |
31783 | echo "not updating unwritable cache $cache_file" | |
31784 | fi | |
31785 | fi | |
31786 | rm -f confcache | |
31787 | ||
31788 | ||
31789 | CPP_MT_FLAG= | |
31790 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31791 | ||
31792 | ||
31793 | THREADS_LINK= | |
31794 | THREADS_CFLAGS= | |
31795 | ||
31796 | if test "$wxUSE_THREADS" = "yes" ; then | |
31797 | if test "$USE_BEOS" = 1; then | |
31798 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
31799 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
31800 | wxUSE_THREADS="no" | |
31801 | fi | |
31802 | fi | |
31803 | ||
31804 | if test "$wxUSE_THREADS" = "yes" ; then | |
31805 | ||
31806 | ||
31807 | THREAD_OPTS="-pthread" | |
31808 | case "${host}" in | |
31809 | *-*-solaris2* | *-*-sunos4* ) | |
31810 | if test "x$GCC" = "xyes"; then | |
31811 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
31812 | else | |
31813 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31814 | fi | |
31815 | ;; | |
31816 | *-*-freebsd*) | |
31817 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31818 | ;; | |
31819 | *-*-darwin* | *-*-cygwin* ) | |
31820 | THREAD_OPTS="" | |
31821 | ;; | |
31822 | *-*-aix*) | |
31823 | THREAD_OPTS="pthreads" | |
31824 | ;; | |
31825 | *-hp-hpux* ) | |
31826 | if test "x$GCC" != "xyes"; then | |
31827 | THREAD_OPTS="" | |
31828 | fi | |
31829 | ;; | |
31830 | ||
31831 | *-*-irix* ) | |
31832 | if test "x$GCC" = "xyes"; then | |
31833 | THREAD_OPTS="" | |
31834 | fi | |
31835 | ;; | |
31836 | ||
31837 | *-*-*UnixWare*) | |
31838 | if test "x$GCC" != "xyes"; then | |
31839 | THREAD_OPTS="-Ethread" | |
31840 | fi | |
31841 | ;; | |
31842 | esac | |
31843 | ||
31844 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
31845 | ||
31846 | THREADS_OK=no | |
31847 | for flag in $THREAD_OPTS; do | |
31848 | case $flag in | |
31849 | none) | |
31850 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
31851 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
31852 | ;; | |
31853 | ||
31854 | -*) | |
31855 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
31856 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
31857 | THREADS_CFLAGS="$flag" | |
31858 | ;; | |
31859 | ||
31860 | *) | |
31861 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
31862 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
31863 | THREADS_LINK="-l$flag" | |
31864 | ;; | |
31865 | esac | |
31866 | ||
31867 | save_LIBS="$LIBS" | |
31868 | save_CFLAGS="$CFLAGS" | |
31869 | LIBS="$THREADS_LINK $LIBS" | |
31870 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
31871 | ||
31872 | cat >conftest.$ac_ext <<_ACEOF | |
31873 | /* confdefs.h. */ | |
31874 | _ACEOF | |
31875 | cat confdefs.h >>conftest.$ac_ext | |
31876 | cat >>conftest.$ac_ext <<_ACEOF | |
31877 | /* end confdefs.h. */ | |
31878 | #include <pthread.h> | |
31879 | int | |
31880 | main () | |
31881 | { | |
31882 | pthread_create(0,0,0,0); | |
31883 | ; | |
31884 | return 0; | |
31885 | } | |
31886 | _ACEOF | |
31887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31889 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31890 | ac_status=$? |
ac1cb8d3 VS |
31891 | grep -v '^ *+' conftest.er1 >conftest.err |
31892 | rm -f conftest.er1 | |
31893 | cat conftest.err >&5 | |
a848cd7e SC |
31894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31895 | (exit $ac_status); } && | |
ac1cb8d3 VS |
31896 | { ac_try='test -z "$ac_c_werror_flag" |
31897 | || test ! -s conftest.err' | |
31898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31899 | (eval $ac_try) 2>&5 | |
31900 | ac_status=$? | |
31901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31902 | (exit $ac_status); }; } && | |
31903 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31905 | (eval $ac_try) 2>&5 | |
31906 | ac_status=$? | |
31907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31908 | (exit $ac_status); }; }; then | |
31909 | THREADS_OK=yes | |
31910 | else | |
31911 | echo "$as_me: failed program was:" >&5 | |
31912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31913 | ||
31914 | fi | |
ac1cb8d3 VS |
31915 | rm -f conftest.err conftest.$ac_objext \ |
31916 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31917 | |
31918 | LIBS="$save_LIBS" | |
31919 | CFLAGS="$save_CFLAGS" | |
31920 | ||
31921 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
31922 | echo "${ECHO_T}$THREADS_OK" >&6 | |
31923 | if test "x$THREADS_OK" = "xyes"; then | |
31924 | break; | |
31925 | fi | |
31926 | ||
31927 | THREADS_LINK="" | |
31928 | THREADS_CFLAGS="" | |
31929 | done | |
31930 | ||
31931 | if test "x$THREADS_OK" != "xyes"; then | |
31932 | wxUSE_THREADS=no | |
31933 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
31934 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
31935 | else | |
31936 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
31937 | LIBS="$THREADS_LINK $LIBS" | |
31938 | ||
31939 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
31940 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
31941 | flag=no | |
31942 | case "${host}" in | |
31943 | *-aix*) | |
31944 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31945 | flag="-D_THREAD_SAFE" | |
31946 | ;; | |
31947 | *-freebsd*) | |
31948 | flag="-D_THREAD_SAFE" | |
31949 | ;; | |
31950 | *-hp-hpux* ) | |
31951 | flag="-D_REENTRANT" | |
31952 | if test "x$GCC" != "xyes"; then | |
31953 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
31954 | |
31955 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
31956 | fi |
31957 | ;; | |
31958 | *solaris* | alpha*-osf*) | |
31959 | flag="-D_REENTRANT" | |
31960 | ;; | |
31961 | esac | |
31962 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
31963 | echo "${ECHO_T}${flag}" >&6 | |
31964 | if test "x$flag" != xno; then | |
31965 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
31966 | fi | |
31967 | ||
31968 | if test "x$THREADS_CFLAGS" != "x"; then | |
31969 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
31970 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
31971 | fi | |
31972 | fi | |
31973 | fi | |
31974 | ||
31975 | if test "$wxUSE_THREADS" = "yes" ; then | |
31976 | ||
31977 | for ac_func in thr_setconcurrency | |
31978 | do | |
31979 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31980 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31981 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31982 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31984 | else | |
31985 | cat >conftest.$ac_ext <<_ACEOF | |
31986 | /* confdefs.h. */ | |
31987 | _ACEOF | |
31988 | cat confdefs.h >>conftest.$ac_ext | |
31989 | cat >>conftest.$ac_ext <<_ACEOF | |
31990 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31991 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31992 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31993 | #define $ac_func innocuous_$ac_func | |
31994 | ||
a848cd7e SC |
31995 | /* System header to define __stub macros and hopefully few prototypes, |
31996 | which can conflict with char $ac_func (); below. | |
31997 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31998 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31999 | |
a848cd7e SC |
32000 | #ifdef __STDC__ |
32001 | # include <limits.h> | |
32002 | #else | |
32003 | # include <assert.h> | |
32004 | #endif | |
ac1cb8d3 VS |
32005 | |
32006 | #undef $ac_func | |
32007 | ||
a848cd7e SC |
32008 | /* Override any gcc2 internal prototype to avoid an error. */ |
32009 | #ifdef __cplusplus | |
32010 | extern "C" | |
32011 | { | |
32012 | #endif | |
32013 | /* We use char because int might match the return type of a gcc2 | |
32014 | builtin and then its argument prototype would still apply. */ | |
32015 | char $ac_func (); | |
32016 | /* The GNU C library defines this for functions which it implements | |
32017 | to always fail with ENOSYS. Some functions are actually named | |
32018 | something starting with __ and the normal name is an alias. */ | |
32019 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32020 | choke me | |
32021 | #else | |
32022 | char (*f) () = $ac_func; | |
32023 | #endif | |
32024 | #ifdef __cplusplus | |
32025 | } | |
32026 | #endif | |
32027 | ||
32028 | int | |
32029 | main () | |
32030 | { | |
32031 | return f != $ac_func; | |
32032 | ; | |
32033 | return 0; | |
32034 | } | |
32035 | _ACEOF | |
32036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32038 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32039 | ac_status=$? |
ac1cb8d3 VS |
32040 | grep -v '^ *+' conftest.er1 >conftest.err |
32041 | rm -f conftest.er1 | |
32042 | cat conftest.err >&5 | |
a848cd7e SC |
32043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32044 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32045 | { ac_try='test -z "$ac_c_werror_flag" |
32046 | || test ! -s conftest.err' | |
32047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32048 | (eval $ac_try) 2>&5 | |
32049 | ac_status=$? | |
32050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32051 | (exit $ac_status); }; } && | |
32052 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32054 | (eval $ac_try) 2>&5 | |
32055 | ac_status=$? | |
32056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32057 | (exit $ac_status); }; }; then | |
32058 | eval "$as_ac_var=yes" | |
32059 | else | |
32060 | echo "$as_me: failed program was:" >&5 | |
32061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32062 | ||
32063 | eval "$as_ac_var=no" | |
32064 | fi | |
ac1cb8d3 VS |
32065 | rm -f conftest.err conftest.$ac_objext \ |
32066 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32067 | fi |
32068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32069 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32070 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32071 | cat >>confdefs.h <<_ACEOF | |
32072 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32073 | _ACEOF | |
32074 | ||
32075 | fi | |
32076 | done | |
32077 | ||
32078 | ||
32079 | ||
32080 | for ac_header in sched.h | |
32081 | do | |
32082 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32083 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32084 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32086 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32088 | fi | |
32089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32090 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32091 | else | |
32092 | # Is the header compilable? | |
32093 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32094 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32095 | cat >conftest.$ac_ext <<_ACEOF | |
32096 | /* confdefs.h. */ | |
32097 | _ACEOF | |
32098 | cat confdefs.h >>conftest.$ac_ext | |
32099 | cat >>conftest.$ac_ext <<_ACEOF | |
32100 | /* end confdefs.h. */ | |
32101 | $ac_includes_default | |
32102 | #include <$ac_header> | |
32103 | _ACEOF | |
32104 | rm -f conftest.$ac_objext | |
32105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32106 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32107 | ac_status=$? |
ac1cb8d3 VS |
32108 | grep -v '^ *+' conftest.er1 >conftest.err |
32109 | rm -f conftest.er1 | |
32110 | cat conftest.err >&5 | |
a848cd7e SC |
32111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32112 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32113 | { ac_try='test -z "$ac_c_werror_flag" |
32114 | || test ! -s conftest.err' | |
32115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32116 | (eval $ac_try) 2>&5 | |
32117 | ac_status=$? | |
32118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32119 | (exit $ac_status); }; } && | |
32120 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32122 | (eval $ac_try) 2>&5 | |
32123 | ac_status=$? | |
32124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32125 | (exit $ac_status); }; }; then | |
32126 | ac_header_compiler=yes | |
32127 | else | |
32128 | echo "$as_me: failed program was:" >&5 | |
32129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32130 | ||
32131 | ac_header_compiler=no | |
32132 | fi | |
ac1cb8d3 | 32133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32134 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32135 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32136 | ||
32137 | # Is the header present? | |
32138 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32139 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32140 | cat >conftest.$ac_ext <<_ACEOF | |
32141 | /* confdefs.h. */ | |
32142 | _ACEOF | |
32143 | cat confdefs.h >>conftest.$ac_ext | |
32144 | cat >>conftest.$ac_ext <<_ACEOF | |
32145 | /* end confdefs.h. */ | |
32146 | #include <$ac_header> | |
32147 | _ACEOF | |
32148 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32149 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32150 | ac_status=$? | |
32151 | grep -v '^ *+' conftest.er1 >conftest.err | |
32152 | rm -f conftest.er1 | |
32153 | cat conftest.err >&5 | |
32154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32155 | (exit $ac_status); } >/dev/null; then | |
32156 | if test -s conftest.err; then | |
32157 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32158 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32159 | else |
32160 | ac_cpp_err= | |
32161 | fi | |
32162 | else | |
32163 | ac_cpp_err=yes | |
32164 | fi | |
32165 | if test -z "$ac_cpp_err"; then | |
32166 | ac_header_preproc=yes | |
32167 | else | |
32168 | echo "$as_me: failed program was:" >&5 | |
32169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32170 | ||
32171 | ac_header_preproc=no | |
32172 | fi | |
32173 | rm -f conftest.err conftest.$ac_ext | |
32174 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32175 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32176 | ||
32177 | # So? What about this header? | |
ac1cb8d3 VS |
32178 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32179 | yes:no: ) | |
a848cd7e SC |
32180 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32181 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32183 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32184 | ac_header_preproc=yes | |
a848cd7e | 32185 | ;; |
ac1cb8d3 | 32186 | no:yes:* ) |
a848cd7e SC |
32187 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32188 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32189 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32190 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32191 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32192 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32193 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32194 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32196 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32197 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32198 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32199 | ( |
32200 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32201 | ## ----------------------------------------- ## |
32202 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32203 | ## ----------------------------------------- ## | |
a848cd7e SC |
32204 | _ASBOX |
32205 | ) | | |
32206 | sed "s/^/$as_me: WARNING: /" >&2 | |
32207 | ;; | |
32208 | esac | |
32209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32213 | else | |
ac1cb8d3 | 32214 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32215 | fi |
32216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32218 | ||
32219 | fi | |
32220 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32221 | cat >>confdefs.h <<_ACEOF | |
32222 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32223 | _ACEOF | |
32224 | ||
32225 | fi | |
32226 | ||
32227 | done | |
32228 | ||
32229 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32230 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32231 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32232 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32234 | else | |
32235 | cat >conftest.$ac_ext <<_ACEOF | |
32236 | /* confdefs.h. */ | |
32237 | _ACEOF | |
32238 | cat confdefs.h >>conftest.$ac_ext | |
32239 | cat >>conftest.$ac_ext <<_ACEOF | |
32240 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32241 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32242 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32243 | #define sched_yield innocuous_sched_yield | |
32244 | ||
a848cd7e SC |
32245 | /* System header to define __stub macros and hopefully few prototypes, |
32246 | which can conflict with char sched_yield (); below. | |
32247 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32248 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32249 | |
a848cd7e SC |
32250 | #ifdef __STDC__ |
32251 | # include <limits.h> | |
32252 | #else | |
32253 | # include <assert.h> | |
32254 | #endif | |
ac1cb8d3 VS |
32255 | |
32256 | #undef sched_yield | |
32257 | ||
a848cd7e SC |
32258 | /* Override any gcc2 internal prototype to avoid an error. */ |
32259 | #ifdef __cplusplus | |
32260 | extern "C" | |
32261 | { | |
32262 | #endif | |
32263 | /* We use char because int might match the return type of a gcc2 | |
32264 | builtin and then its argument prototype would still apply. */ | |
32265 | char sched_yield (); | |
32266 | /* The GNU C library defines this for functions which it implements | |
32267 | to always fail with ENOSYS. Some functions are actually named | |
32268 | something starting with __ and the normal name is an alias. */ | |
32269 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32270 | choke me | |
32271 | #else | |
32272 | char (*f) () = sched_yield; | |
32273 | #endif | |
32274 | #ifdef __cplusplus | |
32275 | } | |
32276 | #endif | |
32277 | ||
32278 | int | |
32279 | main () | |
32280 | { | |
32281 | return f != sched_yield; | |
32282 | ; | |
32283 | return 0; | |
32284 | } | |
32285 | _ACEOF | |
32286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32288 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32289 | ac_status=$? |
ac1cb8d3 VS |
32290 | grep -v '^ *+' conftest.er1 >conftest.err |
32291 | rm -f conftest.er1 | |
32292 | cat conftest.err >&5 | |
a848cd7e SC |
32293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32294 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32295 | { ac_try='test -z "$ac_c_werror_flag" |
32296 | || test ! -s conftest.err' | |
32297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32298 | (eval $ac_try) 2>&5 | |
32299 | ac_status=$? | |
32300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32301 | (exit $ac_status); }; } && | |
32302 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32304 | (eval $ac_try) 2>&5 | |
32305 | ac_status=$? | |
32306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32307 | (exit $ac_status); }; }; then | |
32308 | ac_cv_func_sched_yield=yes | |
32309 | else | |
32310 | echo "$as_me: failed program was:" >&5 | |
32311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32312 | ||
32313 | ac_cv_func_sched_yield=no | |
32314 | fi | |
ac1cb8d3 VS |
32315 | rm -f conftest.err conftest.$ac_objext \ |
32316 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32317 | fi |
32318 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32319 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32320 | if test $ac_cv_func_sched_yield = yes; then | |
32321 | cat >>confdefs.h <<\_ACEOF | |
32322 | #define HAVE_SCHED_YIELD 1 | |
32323 | _ACEOF | |
32324 | ||
32325 | else | |
32326 | ||
32327 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32328 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32329 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32331 | else | |
32332 | ac_check_lib_save_LIBS=$LIBS | |
32333 | LIBS="-lposix4 $LIBS" | |
32334 | cat >conftest.$ac_ext <<_ACEOF | |
32335 | /* confdefs.h. */ | |
32336 | _ACEOF | |
32337 | cat confdefs.h >>conftest.$ac_ext | |
32338 | cat >>conftest.$ac_ext <<_ACEOF | |
32339 | /* end confdefs.h. */ | |
32340 | ||
32341 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32342 | #ifdef __cplusplus | |
32343 | extern "C" | |
32344 | #endif | |
32345 | /* We use char because int might match the return type of a gcc2 | |
32346 | builtin and then its argument prototype would still apply. */ | |
32347 | char sched_yield (); | |
32348 | int | |
32349 | main () | |
32350 | { | |
32351 | sched_yield (); | |
32352 | ; | |
32353 | return 0; | |
32354 | } | |
32355 | _ACEOF | |
32356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32358 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32359 | ac_status=$? |
ac1cb8d3 VS |
32360 | grep -v '^ *+' conftest.er1 >conftest.err |
32361 | rm -f conftest.er1 | |
32362 | cat conftest.err >&5 | |
a848cd7e SC |
32363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32364 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32365 | { ac_try='test -z "$ac_c_werror_flag" |
32366 | || test ! -s conftest.err' | |
32367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32368 | (eval $ac_try) 2>&5 | |
32369 | ac_status=$? | |
32370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32371 | (exit $ac_status); }; } && | |
32372 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32374 | (eval $ac_try) 2>&5 | |
32375 | ac_status=$? | |
32376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32377 | (exit $ac_status); }; }; then | |
32378 | ac_cv_lib_posix4_sched_yield=yes | |
32379 | else | |
32380 | echo "$as_me: failed program was:" >&5 | |
32381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32382 | ||
32383 | ac_cv_lib_posix4_sched_yield=no | |
32384 | fi | |
ac1cb8d3 VS |
32385 | rm -f conftest.err conftest.$ac_objext \ |
32386 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32387 | LIBS=$ac_check_lib_save_LIBS |
32388 | fi | |
32389 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32390 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32391 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32392 | cat >>confdefs.h <<\_ACEOF | |
32393 | #define HAVE_SCHED_YIELD 1 | |
32394 | _ACEOF | |
32395 | POSIX4_LINK=" -lposix4" | |
32396 | else | |
32397 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32398 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32399 | ||
32400 | fi | |
32401 | ||
32402 | ||
32403 | ||
32404 | fi | |
32405 | ||
32406 | fi | |
32407 | ||
32408 | HAVE_PRIOR_FUNCS=0 | |
32409 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32410 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32411 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32413 | else | |
32414 | cat >conftest.$ac_ext <<_ACEOF | |
32415 | /* confdefs.h. */ | |
32416 | _ACEOF | |
32417 | cat confdefs.h >>conftest.$ac_ext | |
32418 | cat >>conftest.$ac_ext <<_ACEOF | |
32419 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32420 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32422 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32423 | ||
a848cd7e SC |
32424 | /* System header to define __stub macros and hopefully few prototypes, |
32425 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32427 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32428 | |
a848cd7e SC |
32429 | #ifdef __STDC__ |
32430 | # include <limits.h> | |
32431 | #else | |
32432 | # include <assert.h> | |
32433 | #endif | |
ac1cb8d3 VS |
32434 | |
32435 | #undef pthread_attr_getschedpolicy | |
32436 | ||
a848cd7e SC |
32437 | /* Override any gcc2 internal prototype to avoid an error. */ |
32438 | #ifdef __cplusplus | |
32439 | extern "C" | |
32440 | { | |
32441 | #endif | |
32442 | /* We use char because int might match the return type of a gcc2 | |
32443 | builtin and then its argument prototype would still apply. */ | |
32444 | char pthread_attr_getschedpolicy (); | |
32445 | /* The GNU C library defines this for functions which it implements | |
32446 | to always fail with ENOSYS. Some functions are actually named | |
32447 | something starting with __ and the normal name is an alias. */ | |
32448 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32449 | choke me | |
32450 | #else | |
32451 | char (*f) () = pthread_attr_getschedpolicy; | |
32452 | #endif | |
32453 | #ifdef __cplusplus | |
32454 | } | |
32455 | #endif | |
32456 | ||
32457 | int | |
32458 | main () | |
32459 | { | |
32460 | return f != pthread_attr_getschedpolicy; | |
32461 | ; | |
32462 | return 0; | |
32463 | } | |
32464 | _ACEOF | |
32465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32467 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32468 | ac_status=$? |
ac1cb8d3 VS |
32469 | grep -v '^ *+' conftest.er1 >conftest.err |
32470 | rm -f conftest.er1 | |
32471 | cat conftest.err >&5 | |
a848cd7e SC |
32472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32473 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32474 | { ac_try='test -z "$ac_c_werror_flag" |
32475 | || test ! -s conftest.err' | |
32476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32477 | (eval $ac_try) 2>&5 | |
32478 | ac_status=$? | |
32479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32480 | (exit $ac_status); }; } && | |
32481 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32483 | (eval $ac_try) 2>&5 | |
32484 | ac_status=$? | |
32485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32486 | (exit $ac_status); }; }; then | |
32487 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32488 | else | |
32489 | echo "$as_me: failed program was:" >&5 | |
32490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32491 | ||
32492 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32493 | fi | |
ac1cb8d3 VS |
32494 | rm -f conftest.err conftest.$ac_objext \ |
32495 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32496 | fi |
32497 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32498 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32499 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32500 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32501 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32502 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32504 | else | |
32505 | cat >conftest.$ac_ext <<_ACEOF | |
32506 | /* confdefs.h. */ | |
32507 | _ACEOF | |
32508 | cat confdefs.h >>conftest.$ac_ext | |
32509 | cat >>conftest.$ac_ext <<_ACEOF | |
32510 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32511 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32512 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32513 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32514 | ||
a848cd7e SC |
32515 | /* System header to define __stub macros and hopefully few prototypes, |
32516 | which can conflict with char pthread_attr_setschedparam (); below. | |
32517 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32518 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32519 | |
a848cd7e SC |
32520 | #ifdef __STDC__ |
32521 | # include <limits.h> | |
32522 | #else | |
32523 | # include <assert.h> | |
32524 | #endif | |
ac1cb8d3 VS |
32525 | |
32526 | #undef pthread_attr_setschedparam | |
32527 | ||
a848cd7e SC |
32528 | /* Override any gcc2 internal prototype to avoid an error. */ |
32529 | #ifdef __cplusplus | |
32530 | extern "C" | |
32531 | { | |
32532 | #endif | |
32533 | /* We use char because int might match the return type of a gcc2 | |
32534 | builtin and then its argument prototype would still apply. */ | |
32535 | char pthread_attr_setschedparam (); | |
32536 | /* The GNU C library defines this for functions which it implements | |
32537 | to always fail with ENOSYS. Some functions are actually named | |
32538 | something starting with __ and the normal name is an alias. */ | |
32539 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32540 | choke me | |
32541 | #else | |
32542 | char (*f) () = pthread_attr_setschedparam; | |
32543 | #endif | |
32544 | #ifdef __cplusplus | |
32545 | } | |
32546 | #endif | |
32547 | ||
32548 | int | |
32549 | main () | |
32550 | { | |
32551 | return f != pthread_attr_setschedparam; | |
32552 | ; | |
32553 | return 0; | |
32554 | } | |
32555 | _ACEOF | |
32556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32558 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32559 | ac_status=$? |
ac1cb8d3 VS |
32560 | grep -v '^ *+' conftest.er1 >conftest.err |
32561 | rm -f conftest.er1 | |
32562 | cat conftest.err >&5 | |
a848cd7e SC |
32563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32564 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32565 | { ac_try='test -z "$ac_c_werror_flag" |
32566 | || test ! -s conftest.err' | |
32567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32568 | (eval $ac_try) 2>&5 | |
32569 | ac_status=$? | |
32570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32571 | (exit $ac_status); }; } && | |
32572 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32574 | (eval $ac_try) 2>&5 | |
32575 | ac_status=$? | |
32576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32577 | (exit $ac_status); }; }; then | |
32578 | ac_cv_func_pthread_attr_setschedparam=yes | |
32579 | else | |
32580 | echo "$as_me: failed program was:" >&5 | |
32581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32582 | ||
32583 | ac_cv_func_pthread_attr_setschedparam=no | |
32584 | fi | |
ac1cb8d3 VS |
32585 | rm -f conftest.err conftest.$ac_objext \ |
32586 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32587 | fi |
32588 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32589 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32590 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32591 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32592 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32593 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32595 | else | |
32596 | cat >conftest.$ac_ext <<_ACEOF | |
32597 | /* confdefs.h. */ | |
32598 | _ACEOF | |
32599 | cat confdefs.h >>conftest.$ac_ext | |
32600 | cat >>conftest.$ac_ext <<_ACEOF | |
32601 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32602 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32603 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32604 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32605 | ||
a848cd7e SC |
32606 | /* System header to define __stub macros and hopefully few prototypes, |
32607 | which can conflict with char sched_get_priority_max (); below. | |
32608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32609 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32610 | |
a848cd7e SC |
32611 | #ifdef __STDC__ |
32612 | # include <limits.h> | |
32613 | #else | |
32614 | # include <assert.h> | |
32615 | #endif | |
ac1cb8d3 VS |
32616 | |
32617 | #undef sched_get_priority_max | |
32618 | ||
a848cd7e SC |
32619 | /* Override any gcc2 internal prototype to avoid an error. */ |
32620 | #ifdef __cplusplus | |
32621 | extern "C" | |
32622 | { | |
32623 | #endif | |
32624 | /* We use char because int might match the return type of a gcc2 | |
32625 | builtin and then its argument prototype would still apply. */ | |
32626 | char sched_get_priority_max (); | |
32627 | /* The GNU C library defines this for functions which it implements | |
32628 | to always fail with ENOSYS. Some functions are actually named | |
32629 | something starting with __ and the normal name is an alias. */ | |
32630 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32631 | choke me | |
32632 | #else | |
32633 | char (*f) () = sched_get_priority_max; | |
32634 | #endif | |
32635 | #ifdef __cplusplus | |
32636 | } | |
32637 | #endif | |
32638 | ||
32639 | int | |
32640 | main () | |
32641 | { | |
32642 | return f != sched_get_priority_max; | |
32643 | ; | |
32644 | return 0; | |
32645 | } | |
32646 | _ACEOF | |
32647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32649 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32650 | ac_status=$? |
ac1cb8d3 VS |
32651 | grep -v '^ *+' conftest.er1 >conftest.err |
32652 | rm -f conftest.er1 | |
32653 | cat conftest.err >&5 | |
a848cd7e SC |
32654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32655 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32656 | { ac_try='test -z "$ac_c_werror_flag" |
32657 | || test ! -s conftest.err' | |
32658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32659 | (eval $ac_try) 2>&5 | |
32660 | ac_status=$? | |
32661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32662 | (exit $ac_status); }; } && | |
32663 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32665 | (eval $ac_try) 2>&5 | |
32666 | ac_status=$? | |
32667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32668 | (exit $ac_status); }; }; then | |
32669 | ac_cv_func_sched_get_priority_max=yes | |
32670 | else | |
32671 | echo "$as_me: failed program was:" >&5 | |
32672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32673 | ||
32674 | ac_cv_func_sched_get_priority_max=no | |
32675 | fi | |
ac1cb8d3 VS |
32676 | rm -f conftest.err conftest.$ac_objext \ |
32677 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32678 | fi |
32679 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32680 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32681 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32682 | HAVE_PRIOR_FUNCS=1 | |
32683 | else | |
32684 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32685 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32686 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32688 | else | |
32689 | ac_check_lib_save_LIBS=$LIBS | |
32690 | LIBS="-lposix4 $LIBS" | |
32691 | cat >conftest.$ac_ext <<_ACEOF | |
32692 | /* confdefs.h. */ | |
32693 | _ACEOF | |
32694 | cat confdefs.h >>conftest.$ac_ext | |
32695 | cat >>conftest.$ac_ext <<_ACEOF | |
32696 | /* end confdefs.h. */ | |
32697 | ||
32698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32699 | #ifdef __cplusplus | |
32700 | extern "C" | |
32701 | #endif | |
32702 | /* We use char because int might match the return type of a gcc2 | |
32703 | builtin and then its argument prototype would still apply. */ | |
32704 | char sched_get_priority_max (); | |
32705 | int | |
32706 | main () | |
32707 | { | |
32708 | sched_get_priority_max (); | |
32709 | ; | |
32710 | return 0; | |
32711 | } | |
32712 | _ACEOF | |
32713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32715 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32716 | ac_status=$? |
ac1cb8d3 VS |
32717 | grep -v '^ *+' conftest.er1 >conftest.err |
32718 | rm -f conftest.er1 | |
32719 | cat conftest.err >&5 | |
a848cd7e SC |
32720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32721 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32722 | { ac_try='test -z "$ac_c_werror_flag" |
32723 | || test ! -s conftest.err' | |
32724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32725 | (eval $ac_try) 2>&5 | |
32726 | ac_status=$? | |
32727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32728 | (exit $ac_status); }; } && | |
32729 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32731 | (eval $ac_try) 2>&5 | |
32732 | ac_status=$? | |
32733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32734 | (exit $ac_status); }; }; then | |
32735 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32736 | else | |
32737 | echo "$as_me: failed program was:" >&5 | |
32738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32739 | ||
32740 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32741 | fi | |
ac1cb8d3 VS |
32742 | rm -f conftest.err conftest.$ac_objext \ |
32743 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32744 | LIBS=$ac_check_lib_save_LIBS |
32745 | fi | |
32746 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32747 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32748 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32749 | ||
32750 | HAVE_PRIOR_FUNCS=1 | |
32751 | POSIX4_LINK=" -lposix4" | |
32752 | ||
32753 | fi | |
32754 | ||
32755 | ||
32756 | fi | |
32757 | ||
32758 | ||
32759 | fi | |
32760 | ||
32761 | ||
32762 | fi | |
32763 | ||
32764 | ||
32765 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32766 | cat >>confdefs.h <<\_ACEOF | |
32767 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32768 | _ACEOF | |
32769 | ||
32770 | else | |
32771 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32772 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32773 | fi | |
32774 | ||
32775 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32776 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32777 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32779 | else | |
32780 | cat >conftest.$ac_ext <<_ACEOF | |
32781 | /* confdefs.h. */ | |
32782 | _ACEOF | |
32783 | cat confdefs.h >>conftest.$ac_ext | |
32784 | cat >>conftest.$ac_ext <<_ACEOF | |
32785 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32786 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32788 | #define pthread_cancel innocuous_pthread_cancel | |
32789 | ||
a848cd7e SC |
32790 | /* System header to define __stub macros and hopefully few prototypes, |
32791 | which can conflict with char pthread_cancel (); below. | |
32792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32793 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32794 | |
a848cd7e SC |
32795 | #ifdef __STDC__ |
32796 | # include <limits.h> | |
32797 | #else | |
32798 | # include <assert.h> | |
32799 | #endif | |
ac1cb8d3 VS |
32800 | |
32801 | #undef pthread_cancel | |
32802 | ||
a848cd7e SC |
32803 | /* Override any gcc2 internal prototype to avoid an error. */ |
32804 | #ifdef __cplusplus | |
32805 | extern "C" | |
32806 | { | |
32807 | #endif | |
32808 | /* We use char because int might match the return type of a gcc2 | |
32809 | builtin and then its argument prototype would still apply. */ | |
32810 | char pthread_cancel (); | |
32811 | /* The GNU C library defines this for functions which it implements | |
32812 | to always fail with ENOSYS. Some functions are actually named | |
32813 | something starting with __ and the normal name is an alias. */ | |
32814 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32815 | choke me | |
32816 | #else | |
32817 | char (*f) () = pthread_cancel; | |
32818 | #endif | |
32819 | #ifdef __cplusplus | |
32820 | } | |
32821 | #endif | |
32822 | ||
32823 | int | |
32824 | main () | |
32825 | { | |
32826 | return f != pthread_cancel; | |
32827 | ; | |
32828 | return 0; | |
32829 | } | |
32830 | _ACEOF | |
32831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32833 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32834 | ac_status=$? |
ac1cb8d3 VS |
32835 | grep -v '^ *+' conftest.er1 >conftest.err |
32836 | rm -f conftest.er1 | |
32837 | cat conftest.err >&5 | |
a848cd7e SC |
32838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32839 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32840 | { ac_try='test -z "$ac_c_werror_flag" |
32841 | || test ! -s conftest.err' | |
32842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32843 | (eval $ac_try) 2>&5 | |
32844 | ac_status=$? | |
32845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32846 | (exit $ac_status); }; } && | |
32847 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32849 | (eval $ac_try) 2>&5 | |
32850 | ac_status=$? | |
32851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32852 | (exit $ac_status); }; }; then | |
32853 | ac_cv_func_pthread_cancel=yes | |
32854 | else | |
32855 | echo "$as_me: failed program was:" >&5 | |
32856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32857 | ||
32858 | ac_cv_func_pthread_cancel=no | |
32859 | fi | |
ac1cb8d3 VS |
32860 | rm -f conftest.err conftest.$ac_objext \ |
32861 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32862 | fi |
32863 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32864 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32865 | if test $ac_cv_func_pthread_cancel = yes; then | |
32866 | cat >>confdefs.h <<\_ACEOF | |
32867 | #define HAVE_PTHREAD_CANCEL 1 | |
32868 | _ACEOF | |
32869 | ||
32870 | else | |
32871 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
32872 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
32873 | fi | |
32874 | ||
32875 | ||
32876 | ||
32877 | ||
32878 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32879 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32880 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32882 | else | |
32883 | ||
32884 | cat >conftest.$ac_ext <<_ACEOF | |
32885 | /* confdefs.h. */ | |
32886 | _ACEOF | |
32887 | cat confdefs.h >>conftest.$ac_ext | |
32888 | cat >>conftest.$ac_ext <<_ACEOF | |
32889 | /* end confdefs.h. */ | |
32890 | #include <pthread.h> | |
32891 | int | |
32892 | main () | |
32893 | { | |
32894 | ||
32895 | pthread_mutexattr_t attr; | |
32896 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
32897 | ||
32898 | ; | |
32899 | return 0; | |
32900 | } | |
32901 | _ACEOF | |
32902 | rm -f conftest.$ac_objext | |
32903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32904 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32905 | ac_status=$? |
ac1cb8d3 VS |
32906 | grep -v '^ *+' conftest.er1 >conftest.err |
32907 | rm -f conftest.er1 | |
32908 | cat conftest.err >&5 | |
a848cd7e SC |
32909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32910 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32911 | { ac_try='test -z "$ac_c_werror_flag" |
32912 | || test ! -s conftest.err' | |
32913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32914 | (eval $ac_try) 2>&5 | |
32915 | ac_status=$? | |
32916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32917 | (exit $ac_status); }; } && | |
32918 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32920 | (eval $ac_try) 2>&5 | |
32921 | ac_status=$? | |
32922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32923 | (exit $ac_status); }; }; then | |
32924 | ||
32925 | wx_cv_type_pthread_mutexattr_t=yes | |
32926 | ||
32927 | else | |
32928 | echo "$as_me: failed program was:" >&5 | |
32929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32930 | ||
32931 | ||
32932 | wx_cv_type_pthread_mutexattr_t=no | |
32933 | ||
32934 | ||
32935 | fi | |
ac1cb8d3 | 32936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32937 | |
32938 | fi | |
32939 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32940 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
32941 | ||
32942 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
32943 | cat >>confdefs.h <<\_ACEOF | |
32944 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
32945 | _ACEOF | |
32946 | ||
32947 | else | |
32948 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
32949 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32950 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32952 | else | |
32953 | ||
32954 | cat >conftest.$ac_ext <<_ACEOF | |
32955 | /* confdefs.h. */ | |
32956 | _ACEOF | |
32957 | cat confdefs.h >>conftest.$ac_ext | |
32958 | cat >>conftest.$ac_ext <<_ACEOF | |
32959 | /* end confdefs.h. */ | |
32960 | #include <pthread.h> | |
32961 | int | |
32962 | main () | |
32963 | { | |
32964 | ||
32965 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
32966 | ||
32967 | ; | |
32968 | return 0; | |
32969 | } | |
32970 | _ACEOF | |
32971 | rm -f conftest.$ac_objext | |
32972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32973 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32974 | ac_status=$? |
ac1cb8d3 VS |
32975 | grep -v '^ *+' conftest.er1 >conftest.err |
32976 | rm -f conftest.er1 | |
32977 | cat conftest.err >&5 | |
a848cd7e SC |
32978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32979 | (exit $ac_status); } && | |
ac1cb8d3 VS |
32980 | { ac_try='test -z "$ac_c_werror_flag" |
32981 | || test ! -s conftest.err' | |
32982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32983 | (eval $ac_try) 2>&5 | |
32984 | ac_status=$? | |
32985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32986 | (exit $ac_status); }; } && | |
32987 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32989 | (eval $ac_try) 2>&5 | |
32990 | ac_status=$? | |
32991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32992 | (exit $ac_status); }; }; then | |
32993 | ||
32994 | wx_cv_type_pthread_rec_mutex_init=yes | |
32995 | ||
32996 | else | |
32997 | echo "$as_me: failed program was:" >&5 | |
32998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32999 | ||
33000 | ||
33001 | wx_cv_type_pthread_rec_mutex_init=no | |
33002 | ||
33003 | ||
33004 | fi | |
ac1cb8d3 | 33005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33006 | |
33007 | fi | |
33008 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33009 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
33010 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
33011 | cat >>confdefs.h <<\_ACEOF | |
33012 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
33013 | _ACEOF | |
33014 | ||
33015 | else | |
33016 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
33017 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
33018 | fi | |
33019 | fi | |
33020 | fi | |
33021 | ||
33022 | else | |
33023 | if test "$wxUSE_THREADS" = "yes" ; then | |
33024 | case "${host}" in | |
33025 | *-*-mingw32* ) | |
33026 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
33027 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33028 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33030 | else | |
33031 | ||
33032 | CFLAGS_OLD="$CFLAGS" | |
33033 | CFLAGS="$CFLAGS -mthreads" | |
33034 | cat >conftest.$ac_ext <<_ACEOF | |
33035 | /* confdefs.h. */ | |
33036 | _ACEOF | |
33037 | cat confdefs.h >>conftest.$ac_ext | |
33038 | cat >>conftest.$ac_ext <<_ACEOF | |
33039 | /* end confdefs.h. */ | |
33040 | ||
33041 | int | |
33042 | main () | |
33043 | { | |
33044 | ||
33045 | ; | |
33046 | return 0; | |
33047 | } | |
33048 | _ACEOF | |
33049 | rm -f conftest.$ac_objext | |
33050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33051 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33052 | ac_status=$? |
ac1cb8d3 VS |
33053 | grep -v '^ *+' conftest.er1 >conftest.err |
33054 | rm -f conftest.er1 | |
33055 | cat conftest.err >&5 | |
a848cd7e SC |
33056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33057 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33058 | { ac_try='test -z "$ac_c_werror_flag" |
33059 | || test ! -s conftest.err' | |
33060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33061 | (eval $ac_try) 2>&5 | |
33062 | ac_status=$? | |
33063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33064 | (exit $ac_status); }; } && | |
33065 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33067 | (eval $ac_try) 2>&5 | |
33068 | ac_status=$? | |
33069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33070 | (exit $ac_status); }; }; then | |
33071 | wx_cv_cflags_mthread=yes | |
33072 | else | |
33073 | echo "$as_me: failed program was:" >&5 | |
33074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33075 | ||
33076 | wx_cv_cflags_mthread=no | |
33077 | ||
33078 | fi | |
ac1cb8d3 | 33079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33080 | |
33081 | ||
33082 | fi | |
33083 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33084 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33085 | ||
33086 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33087 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33088 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33089 | LDFLAGS="$LDFLAGS -mthreads" | |
33090 | else | |
33091 | CFLAGS="$CFLAGS_OLD" | |
33092 | fi | |
33093 | ;; | |
33094 | *-pc-os2*emx ) | |
33095 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33096 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33097 | LDFLAGS="$LDFLAGS -Zmt" | |
33098 | ;; | |
33099 | esac | |
33100 | fi | |
33101 | fi | |
33102 | ||
33103 | if test "$wxUSE_THREADS" = "yes"; then | |
33104 | cat >>confdefs.h <<\_ACEOF | |
33105 | #define wxUSE_THREADS 1 | |
33106 | _ACEOF | |
33107 | ||
33108 | ||
33109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33110 | else | |
33111 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33112 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33113 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33114 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33115 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33116 | echo "$as_me:$LINENO: result: yes" >&5 | |
33117 | echo "${ECHO_T}yes" >&6 | |
33118 | else | |
33119 | echo "$as_me:$LINENO: result: no" >&5 | |
33120 | echo "${ECHO_T}no" >&6 | |
33121 | fi | |
33122 | fi | |
33123 | fi | |
33124 | ||
33125 | if test "$WXGTK20" = 1 ; then | |
33126 | cat >>confdefs.h <<_ACEOF | |
33127 | #define __WXGTK20__ $WXGTK20 | |
33128 | _ACEOF | |
33129 | ||
33130 | WXGTK12=1 | |
33131 | fi | |
33132 | ||
33133 | if test "$WXGTK12" = 1 ; then | |
33134 | cat >>confdefs.h <<_ACEOF | |
33135 | #define __WXGTK12__ $WXGTK12 | |
33136 | _ACEOF | |
33137 | ||
33138 | fi | |
33139 | ||
33140 | if test "$WXGTK127" = 1 ; then | |
33141 | cat >>confdefs.h <<_ACEOF | |
33142 | #define __WXGTK127__ $WXGTK127 | |
33143 | _ACEOF | |
33144 | ||
33145 | fi | |
33146 | ||
33147 | if test "$WXGPE" = 1 ; then | |
33148 | cat >>confdefs.h <<_ACEOF | |
33149 | #define __WXGPE__ $WXGPE | |
33150 | _ACEOF | |
33151 | ||
33152 | fi | |
33153 | ||
33154 | WXDEBUG= | |
33155 | ||
33156 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33157 | WXDEBUG="-g" | |
33158 | wxUSE_OPTIMISE=no | |
33159 | fi | |
33160 | ||
33161 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33162 | wxUSE_DEBUG_INFO=yes | |
33163 | WXDEBUG="-ggdb" | |
33164 | fi | |
33165 | ||
33166 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33167 | cat >>confdefs.h <<\_ACEOF | |
33168 | #define WXDEBUG 1 | |
33169 | _ACEOF | |
33170 | ||
33171 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33172 | else | |
33173 | if test "$wxUSE_GTK" = 1 ; then | |
33174 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33175 | fi | |
33176 | fi | |
33177 | ||
33178 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33179 | cat >>confdefs.h <<\_ACEOF | |
33180 | #define wxUSE_MEMORY_TRACING 1 | |
33181 | _ACEOF | |
33182 | ||
33183 | cat >>confdefs.h <<\_ACEOF | |
33184 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33185 | _ACEOF | |
33186 | ||
33187 | cat >>confdefs.h <<\_ACEOF | |
33188 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33189 | _ACEOF | |
33190 | ||
33191 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33192 | fi | |
33193 | ||
33194 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33195 | DMALLOC_LIBS="-ldmalloc" | |
33196 | fi | |
33197 | ||
33198 | PROFILE= | |
33199 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33200 | PROFILE=" -pg" | |
33201 | fi | |
33202 | ||
33203 | CODE_GEN_FLAGS= | |
33204 | CODE_GEN_FLAGS_CXX= | |
33205 | if test "$GCC" = "yes" ; then | |
33206 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33207 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33208 | fi | |
33209 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33210 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33211 | fi | |
33212 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33213 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33214 | fi | |
33215 | ||
33216 | case "${host}" in | |
33217 | powerpc*-*-aix* ) | |
33218 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33219 | ;; | |
33220 | *-hppa* ) | |
33221 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33222 | ;; | |
33223 | esac | |
33224 | fi | |
33225 | ||
33226 | OPTIMISE= | |
33227 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33228 | if test "$GCC" = yes ; then | |
33229 | OPTIMISE="-O0" | |
33230 | fi | |
33231 | else | |
33232 | if test "$GCC" = yes ; then | |
33233 | OPTIMISE="-O2" | |
33234 | ||
33235 | case "${host}" in | |
33236 | i586-*-*|i686-*-* ) | |
33237 | OPTIMISE="${OPTIMISE} " | |
33238 | ;; | |
33239 | esac | |
33240 | else | |
33241 | OPTIMISE="-O" | |
33242 | fi | |
33243 | fi | |
33244 | ||
33245 | ||
33246 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33247 | cat >>confdefs.h <<\_ACEOF | |
33248 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33249 | _ACEOF | |
33250 | ||
33251 | ||
33252 | WXWIN_COMPATIBILITY_2_4="yes" | |
33253 | fi | |
33254 | ||
33255 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33256 | cat >>confdefs.h <<\_ACEOF | |
33257 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33258 | _ACEOF | |
33259 | ||
33260 | fi | |
33261 | ||
33262 | ||
33263 | if test "$wxUSE_GUI" = "yes"; then | |
33264 | cat >>confdefs.h <<\_ACEOF | |
33265 | #define wxUSE_GUI 1 | |
33266 | _ACEOF | |
33267 | ||
33268 | ||
33269 | else | |
33270 | cat >>confdefs.h <<\_ACEOF | |
33271 | #define wxUSE_NOGUI 1 | |
33272 | _ACEOF | |
33273 | ||
33274 | fi | |
33275 | ||
33276 | ||
33277 | if test "$wxUSE_UNIX" = "yes"; then | |
33278 | cat >>confdefs.h <<\_ACEOF | |
33279 | #define wxUSE_UNIX 1 | |
33280 | _ACEOF | |
33281 | ||
33282 | fi | |
33283 | ||
33284 | ||
33285 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33286 | ||
33287 | HAVE_DL_FUNCS=0 | |
33288 | HAVE_SHL_FUNCS=0 | |
33289 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33290 | if test "$USE_DARWIN" = 1; then | |
33291 | HAVE_DL_FUNCS=1 | |
33292 | else | |
33293 | ||
33294 | for ac_func in dlopen | |
33295 | do | |
33296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33297 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33299 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33301 | else | |
33302 | cat >conftest.$ac_ext <<_ACEOF | |
33303 | /* confdefs.h. */ | |
33304 | _ACEOF | |
33305 | cat confdefs.h >>conftest.$ac_ext | |
33306 | cat >>conftest.$ac_ext <<_ACEOF | |
33307 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33308 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33310 | #define $ac_func innocuous_$ac_func | |
33311 | ||
a848cd7e SC |
33312 | /* System header to define __stub macros and hopefully few prototypes, |
33313 | which can conflict with char $ac_func (); below. | |
33314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33315 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33316 | |
a848cd7e SC |
33317 | #ifdef __STDC__ |
33318 | # include <limits.h> | |
33319 | #else | |
33320 | # include <assert.h> | |
33321 | #endif | |
ac1cb8d3 VS |
33322 | |
33323 | #undef $ac_func | |
33324 | ||
a848cd7e SC |
33325 | /* Override any gcc2 internal prototype to avoid an error. */ |
33326 | #ifdef __cplusplus | |
33327 | extern "C" | |
33328 | { | |
33329 | #endif | |
33330 | /* We use char because int might match the return type of a gcc2 | |
33331 | builtin and then its argument prototype would still apply. */ | |
33332 | char $ac_func (); | |
33333 | /* The GNU C library defines this for functions which it implements | |
33334 | to always fail with ENOSYS. Some functions are actually named | |
33335 | something starting with __ and the normal name is an alias. */ | |
33336 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33337 | choke me | |
33338 | #else | |
33339 | char (*f) () = $ac_func; | |
33340 | #endif | |
33341 | #ifdef __cplusplus | |
33342 | } | |
33343 | #endif | |
33344 | ||
33345 | int | |
33346 | main () | |
33347 | { | |
33348 | return f != $ac_func; | |
33349 | ; | |
33350 | return 0; | |
33351 | } | |
33352 | _ACEOF | |
33353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33355 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33356 | ac_status=$? |
ac1cb8d3 VS |
33357 | grep -v '^ *+' conftest.er1 >conftest.err |
33358 | rm -f conftest.er1 | |
33359 | cat conftest.err >&5 | |
a848cd7e SC |
33360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33361 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33362 | { ac_try='test -z "$ac_c_werror_flag" |
33363 | || test ! -s conftest.err' | |
33364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33365 | (eval $ac_try) 2>&5 | |
33366 | ac_status=$? | |
33367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33368 | (exit $ac_status); }; } && | |
33369 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33371 | (eval $ac_try) 2>&5 | |
33372 | ac_status=$? | |
33373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33374 | (exit $ac_status); }; }; then | |
33375 | eval "$as_ac_var=yes" | |
33376 | else | |
33377 | echo "$as_me: failed program was:" >&5 | |
33378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33379 | ||
33380 | eval "$as_ac_var=no" | |
33381 | fi | |
ac1cb8d3 VS |
33382 | rm -f conftest.err conftest.$ac_objext \ |
33383 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33384 | fi |
33385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33386 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33387 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33388 | cat >>confdefs.h <<_ACEOF | |
33389 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33390 | _ACEOF | |
33391 | ||
33392 | cat >>confdefs.h <<\_ACEOF | |
33393 | #define HAVE_DLOPEN 1 | |
33394 | _ACEOF | |
33395 | ||
33396 | HAVE_DL_FUNCS=1 | |
33397 | ||
33398 | else | |
33399 | ||
33400 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33401 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33402 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33404 | else | |
33405 | ac_check_lib_save_LIBS=$LIBS | |
33406 | LIBS="-ldl $LIBS" | |
33407 | cat >conftest.$ac_ext <<_ACEOF | |
33408 | /* confdefs.h. */ | |
33409 | _ACEOF | |
33410 | cat confdefs.h >>conftest.$ac_ext | |
33411 | cat >>conftest.$ac_ext <<_ACEOF | |
33412 | /* end confdefs.h. */ | |
33413 | ||
33414 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33415 | #ifdef __cplusplus | |
33416 | extern "C" | |
33417 | #endif | |
33418 | /* We use char because int might match the return type of a gcc2 | |
33419 | builtin and then its argument prototype would still apply. */ | |
33420 | char dlopen (); | |
33421 | int | |
33422 | main () | |
33423 | { | |
33424 | dlopen (); | |
33425 | ; | |
33426 | return 0; | |
33427 | } | |
33428 | _ACEOF | |
33429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33431 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33432 | ac_status=$? |
ac1cb8d3 VS |
33433 | grep -v '^ *+' conftest.er1 >conftest.err |
33434 | rm -f conftest.er1 | |
33435 | cat conftest.err >&5 | |
a848cd7e SC |
33436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33437 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33438 | { ac_try='test -z "$ac_c_werror_flag" |
33439 | || test ! -s conftest.err' | |
33440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33441 | (eval $ac_try) 2>&5 | |
33442 | ac_status=$? | |
33443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33444 | (exit $ac_status); }; } && | |
33445 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33447 | (eval $ac_try) 2>&5 | |
33448 | ac_status=$? | |
33449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33450 | (exit $ac_status); }; }; then | |
33451 | ac_cv_lib_dl_dlopen=yes | |
33452 | else | |
33453 | echo "$as_me: failed program was:" >&5 | |
33454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33455 | ||
33456 | ac_cv_lib_dl_dlopen=no | |
33457 | fi | |
ac1cb8d3 VS |
33458 | rm -f conftest.err conftest.$ac_objext \ |
33459 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33460 | LIBS=$ac_check_lib_save_LIBS |
33461 | fi | |
33462 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33463 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33464 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33465 | ||
33466 | cat >>confdefs.h <<\_ACEOF | |
33467 | #define HAVE_DLOPEN 1 | |
33468 | _ACEOF | |
33469 | ||
33470 | HAVE_DL_FUNCS=1 | |
33471 | DL_LINK=" -ldl$DL_LINK" | |
33472 | ||
33473 | else | |
33474 | ||
33475 | ||
33476 | for ac_func in shl_load | |
33477 | do | |
33478 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33479 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33481 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33483 | else | |
33484 | cat >conftest.$ac_ext <<_ACEOF | |
33485 | /* confdefs.h. */ | |
33486 | _ACEOF | |
33487 | cat confdefs.h >>conftest.$ac_ext | |
33488 | cat >>conftest.$ac_ext <<_ACEOF | |
33489 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33490 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33491 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33492 | #define $ac_func innocuous_$ac_func | |
33493 | ||
a848cd7e SC |
33494 | /* System header to define __stub macros and hopefully few prototypes, |
33495 | which can conflict with char $ac_func (); below. | |
33496 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33497 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33498 | |
a848cd7e SC |
33499 | #ifdef __STDC__ |
33500 | # include <limits.h> | |
33501 | #else | |
33502 | # include <assert.h> | |
33503 | #endif | |
ac1cb8d3 VS |
33504 | |
33505 | #undef $ac_func | |
33506 | ||
a848cd7e SC |
33507 | /* Override any gcc2 internal prototype to avoid an error. */ |
33508 | #ifdef __cplusplus | |
33509 | extern "C" | |
33510 | { | |
33511 | #endif | |
33512 | /* We use char because int might match the return type of a gcc2 | |
33513 | builtin and then its argument prototype would still apply. */ | |
33514 | char $ac_func (); | |
33515 | /* The GNU C library defines this for functions which it implements | |
33516 | to always fail with ENOSYS. Some functions are actually named | |
33517 | something starting with __ and the normal name is an alias. */ | |
33518 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33519 | choke me | |
33520 | #else | |
33521 | char (*f) () = $ac_func; | |
33522 | #endif | |
33523 | #ifdef __cplusplus | |
33524 | } | |
33525 | #endif | |
33526 | ||
33527 | int | |
33528 | main () | |
33529 | { | |
33530 | return f != $ac_func; | |
33531 | ; | |
33532 | return 0; | |
33533 | } | |
33534 | _ACEOF | |
33535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33538 | ac_status=$? |
ac1cb8d3 VS |
33539 | grep -v '^ *+' conftest.er1 >conftest.err |
33540 | rm -f conftest.er1 | |
33541 | cat conftest.err >&5 | |
a848cd7e SC |
33542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33543 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33544 | { ac_try='test -z "$ac_c_werror_flag" |
33545 | || test ! -s conftest.err' | |
33546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33547 | (eval $ac_try) 2>&5 | |
33548 | ac_status=$? | |
33549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33550 | (exit $ac_status); }; } && | |
33551 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33553 | (eval $ac_try) 2>&5 | |
33554 | ac_status=$? | |
33555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33556 | (exit $ac_status); }; }; then | |
33557 | eval "$as_ac_var=yes" | |
33558 | else | |
33559 | echo "$as_me: failed program was:" >&5 | |
33560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33561 | ||
33562 | eval "$as_ac_var=no" | |
33563 | fi | |
ac1cb8d3 VS |
33564 | rm -f conftest.err conftest.$ac_objext \ |
33565 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33566 | fi |
33567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33568 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33569 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33570 | cat >>confdefs.h <<_ACEOF | |
33571 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33572 | _ACEOF | |
33573 | ||
33574 | cat >>confdefs.h <<\_ACEOF | |
33575 | #define HAVE_SHL_LOAD 1 | |
33576 | _ACEOF | |
33577 | ||
33578 | HAVE_SHL_FUNCS=1 | |
33579 | ||
33580 | else | |
33581 | ||
33582 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33583 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33584 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33586 | else | |
33587 | ac_check_lib_save_LIBS=$LIBS | |
33588 | LIBS="-lshl_load $LIBS" | |
33589 | cat >conftest.$ac_ext <<_ACEOF | |
33590 | /* confdefs.h. */ | |
33591 | _ACEOF | |
33592 | cat confdefs.h >>conftest.$ac_ext | |
33593 | cat >>conftest.$ac_ext <<_ACEOF | |
33594 | /* end confdefs.h. */ | |
33595 | ||
33596 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33597 | #ifdef __cplusplus | |
33598 | extern "C" | |
33599 | #endif | |
33600 | /* We use char because int might match the return type of a gcc2 | |
33601 | builtin and then its argument prototype would still apply. */ | |
33602 | char dld (); | |
33603 | int | |
33604 | main () | |
33605 | { | |
33606 | dld (); | |
33607 | ; | |
33608 | return 0; | |
33609 | } | |
33610 | _ACEOF | |
33611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33613 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33614 | ac_status=$? |
ac1cb8d3 VS |
33615 | grep -v '^ *+' conftest.er1 >conftest.err |
33616 | rm -f conftest.er1 | |
33617 | cat conftest.err >&5 | |
a848cd7e SC |
33618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33619 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33620 | { ac_try='test -z "$ac_c_werror_flag" |
33621 | || test ! -s conftest.err' | |
33622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33623 | (eval $ac_try) 2>&5 | |
33624 | ac_status=$? | |
33625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33626 | (exit $ac_status); }; } && | |
33627 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33629 | (eval $ac_try) 2>&5 | |
33630 | ac_status=$? | |
33631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33632 | (exit $ac_status); }; }; then | |
33633 | ac_cv_lib_shl_load_dld=yes | |
33634 | else | |
33635 | echo "$as_me: failed program was:" >&5 | |
33636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33637 | ||
33638 | ac_cv_lib_shl_load_dld=no | |
33639 | fi | |
ac1cb8d3 VS |
33640 | rm -f conftest.err conftest.$ac_objext \ |
33641 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33642 | LIBS=$ac_check_lib_save_LIBS |
33643 | fi | |
33644 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33645 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33646 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33647 | ||
33648 | HAVE_SHL_FUNCS=1 | |
33649 | DL_LINK=" -ldld$DL_LINK" | |
33650 | ||
33651 | fi | |
33652 | ||
33653 | ||
33654 | fi | |
33655 | done | |
33656 | ||
33657 | ||
33658 | fi | |
33659 | ||
33660 | ||
33661 | fi | |
33662 | done | |
33663 | ||
33664 | ||
33665 | if test "$HAVE_DL_FUNCS" = 1; then | |
33666 | ||
33667 | for ac_func in dlerror | |
33668 | do | |
33669 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33670 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33671 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33672 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33674 | else | |
33675 | cat >conftest.$ac_ext <<_ACEOF | |
33676 | /* confdefs.h. */ | |
33677 | _ACEOF | |
33678 | cat confdefs.h >>conftest.$ac_ext | |
33679 | cat >>conftest.$ac_ext <<_ACEOF | |
33680 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33681 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33682 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33683 | #define $ac_func innocuous_$ac_func | |
33684 | ||
a848cd7e SC |
33685 | /* System header to define __stub macros and hopefully few prototypes, |
33686 | which can conflict with char $ac_func (); below. | |
33687 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33688 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33689 | |
a848cd7e SC |
33690 | #ifdef __STDC__ |
33691 | # include <limits.h> | |
33692 | #else | |
33693 | # include <assert.h> | |
33694 | #endif | |
ac1cb8d3 VS |
33695 | |
33696 | #undef $ac_func | |
33697 | ||
a848cd7e SC |
33698 | /* Override any gcc2 internal prototype to avoid an error. */ |
33699 | #ifdef __cplusplus | |
33700 | extern "C" | |
33701 | { | |
33702 | #endif | |
33703 | /* We use char because int might match the return type of a gcc2 | |
33704 | builtin and then its argument prototype would still apply. */ | |
33705 | char $ac_func (); | |
33706 | /* The GNU C library defines this for functions which it implements | |
33707 | to always fail with ENOSYS. Some functions are actually named | |
33708 | something starting with __ and the normal name is an alias. */ | |
33709 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33710 | choke me | |
33711 | #else | |
33712 | char (*f) () = $ac_func; | |
33713 | #endif | |
33714 | #ifdef __cplusplus | |
33715 | } | |
33716 | #endif | |
33717 | ||
33718 | int | |
33719 | main () | |
33720 | { | |
33721 | return f != $ac_func; | |
33722 | ; | |
33723 | return 0; | |
33724 | } | |
33725 | _ACEOF | |
33726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33728 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33729 | ac_status=$? |
ac1cb8d3 VS |
33730 | grep -v '^ *+' conftest.er1 >conftest.err |
33731 | rm -f conftest.er1 | |
33732 | cat conftest.err >&5 | |
a848cd7e SC |
33733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33734 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33735 | { ac_try='test -z "$ac_c_werror_flag" |
33736 | || test ! -s conftest.err' | |
33737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33738 | (eval $ac_try) 2>&5 | |
33739 | ac_status=$? | |
33740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33741 | (exit $ac_status); }; } && | |
33742 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33744 | (eval $ac_try) 2>&5 | |
33745 | ac_status=$? | |
33746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33747 | (exit $ac_status); }; }; then | |
33748 | eval "$as_ac_var=yes" | |
33749 | else | |
33750 | echo "$as_me: failed program was:" >&5 | |
33751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33752 | ||
33753 | eval "$as_ac_var=no" | |
33754 | fi | |
ac1cb8d3 VS |
33755 | rm -f conftest.err conftest.$ac_objext \ |
33756 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33757 | fi |
33758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33759 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33760 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33761 | cat >>confdefs.h <<_ACEOF | |
33762 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33763 | _ACEOF | |
33764 | cat >>confdefs.h <<\_ACEOF | |
33765 | #define HAVE_DLERROR 1 | |
33766 | _ACEOF | |
33767 | ||
33768 | else | |
33769 | ||
33770 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33771 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33772 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33774 | else | |
33775 | ac_check_lib_save_LIBS=$LIBS | |
33776 | LIBS="-ldl $LIBS" | |
33777 | cat >conftest.$ac_ext <<_ACEOF | |
33778 | /* confdefs.h. */ | |
33779 | _ACEOF | |
33780 | cat confdefs.h >>conftest.$ac_ext | |
33781 | cat >>conftest.$ac_ext <<_ACEOF | |
33782 | /* end confdefs.h. */ | |
33783 | ||
33784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33785 | #ifdef __cplusplus | |
33786 | extern "C" | |
33787 | #endif | |
33788 | /* We use char because int might match the return type of a gcc2 | |
33789 | builtin and then its argument prototype would still apply. */ | |
33790 | char dlerror (); | |
33791 | int | |
33792 | main () | |
33793 | { | |
33794 | dlerror (); | |
33795 | ; | |
33796 | return 0; | |
33797 | } | |
33798 | _ACEOF | |
33799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33801 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33802 | ac_status=$? |
ac1cb8d3 VS |
33803 | grep -v '^ *+' conftest.er1 >conftest.err |
33804 | rm -f conftest.er1 | |
33805 | cat conftest.err >&5 | |
a848cd7e SC |
33806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33807 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33808 | { ac_try='test -z "$ac_c_werror_flag" |
33809 | || test ! -s conftest.err' | |
33810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33811 | (eval $ac_try) 2>&5 | |
33812 | ac_status=$? | |
33813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33814 | (exit $ac_status); }; } && | |
33815 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33817 | (eval $ac_try) 2>&5 | |
33818 | ac_status=$? | |
33819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33820 | (exit $ac_status); }; }; then | |
33821 | ac_cv_lib_dl_dlerror=yes | |
33822 | else | |
33823 | echo "$as_me: failed program was:" >&5 | |
33824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33825 | ||
33826 | ac_cv_lib_dl_dlerror=no | |
33827 | fi | |
ac1cb8d3 VS |
33828 | rm -f conftest.err conftest.$ac_objext \ |
33829 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33830 | LIBS=$ac_check_lib_save_LIBS |
33831 | fi | |
33832 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33833 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33834 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33835 | cat >>confdefs.h <<\_ACEOF | |
33836 | #define HAVE_DLERROR 1 | |
33837 | _ACEOF | |
33838 | ||
33839 | fi | |
33840 | ||
33841 | ||
33842 | ||
33843 | fi | |
33844 | done | |
33845 | ||
33846 | fi | |
33847 | fi | |
33848 | ||
33849 | if test "$HAVE_DL_FUNCS" = 0; then | |
33850 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33851 | if test "$USE_UNIX" = 1; then | |
33852 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33853 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33854 | wxUSE_DYNAMIC_LOADER=no | |
33855 | wxUSE_DYNLIB_CLASS=no | |
33856 | else | |
33857 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33858 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33859 | fi | |
33860 | fi | |
33861 | fi | |
33862 | fi | |
33863 | fi | |
33864 | ||
33865 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
33866 | cat >>confdefs.h <<\_ACEOF | |
33867 | #define wxUSE_DYNAMIC_LOADER 1 | |
33868 | _ACEOF | |
33869 | ||
33870 | fi | |
33871 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33872 | cat >>confdefs.h <<\_ACEOF | |
33873 | #define wxUSE_DYNLIB_CLASS 1 | |
33874 | _ACEOF | |
33875 | ||
33876 | fi | |
33877 | ||
33878 | ||
33879 | ||
33880 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33881 | if test "$wxUSE_SHARED" = "no" ; then | |
33882 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
33883 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
33884 | wxUSE_PLUGINS=no | |
33885 | fi | |
33886 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
33887 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
33888 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
33889 | wxUSE_PLUGINS=no | |
33890 | fi | |
33891 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
33892 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
33893 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
33894 | wxUSE_PLUGINS=no | |
33895 | fi | |
33896 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33897 | cat >>confdefs.h <<\_ACEOF | |
33898 | #define wxUSE_PLUGINS 1 | |
33899 | _ACEOF | |
33900 | ||
33901 | fi | |
33902 | fi | |
33903 | ||
33904 | ||
33905 | if test "$wxUSE_STL" = "yes"; then | |
33906 | cat >>confdefs.h <<\_ACEOF | |
33907 | #define wxUSE_STL 1 | |
33908 | _ACEOF | |
33909 | ||
33910 | fi | |
33911 | ||
33912 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
33913 | cat >>confdefs.h <<\_ACEOF | |
33914 | #define wxUSE_APPLE_IEEE 1 | |
33915 | _ACEOF | |
33916 | ||
33917 | fi | |
33918 | ||
33919 | if test "$wxUSE_TIMER" = "yes"; then | |
33920 | cat >>confdefs.h <<\_ACEOF | |
33921 | #define wxUSE_TIMER 1 | |
33922 | _ACEOF | |
33923 | ||
33924 | fi | |
33925 | ||
33926 | WITH_PLUGIN_SDL=0 | |
33927 | if test "$wxUSE_SOUND" = "yes"; then | |
33928 | if test "$USE_UNIX" = "1" ; then | |
33929 | ||
33930 | for ac_header in sys/soundcard.h | |
33931 | do | |
33932 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33934 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33935 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33938 | fi | |
33939 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33940 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33941 | else | |
33942 | # Is the header compilable? | |
33943 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33944 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33945 | cat >conftest.$ac_ext <<_ACEOF | |
33946 | /* confdefs.h. */ | |
33947 | _ACEOF | |
33948 | cat confdefs.h >>conftest.$ac_ext | |
33949 | cat >>conftest.$ac_ext <<_ACEOF | |
33950 | /* end confdefs.h. */ | |
33951 | $ac_includes_default | |
33952 | #include <$ac_header> | |
33953 | _ACEOF | |
33954 | rm -f conftest.$ac_objext | |
33955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33956 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33957 | ac_status=$? |
ac1cb8d3 VS |
33958 | grep -v '^ *+' conftest.er1 >conftest.err |
33959 | rm -f conftest.er1 | |
33960 | cat conftest.err >&5 | |
a848cd7e SC |
33961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33962 | (exit $ac_status); } && | |
ac1cb8d3 VS |
33963 | { ac_try='test -z "$ac_c_werror_flag" |
33964 | || test ! -s conftest.err' | |
33965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33966 | (eval $ac_try) 2>&5 | |
33967 | ac_status=$? | |
33968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33969 | (exit $ac_status); }; } && | |
33970 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33972 | (eval $ac_try) 2>&5 | |
33973 | ac_status=$? | |
33974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33975 | (exit $ac_status); }; }; then | |
33976 | ac_header_compiler=yes | |
33977 | else | |
33978 | echo "$as_me: failed program was:" >&5 | |
33979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33980 | ||
33981 | ac_header_compiler=no | |
33982 | fi | |
ac1cb8d3 | 33983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33984 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33985 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33986 | ||
33987 | # Is the header present? | |
33988 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33989 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33990 | cat >conftest.$ac_ext <<_ACEOF | |
33991 | /* confdefs.h. */ | |
33992 | _ACEOF | |
33993 | cat confdefs.h >>conftest.$ac_ext | |
33994 | cat >>conftest.$ac_ext <<_ACEOF | |
33995 | /* end confdefs.h. */ | |
33996 | #include <$ac_header> | |
33997 | _ACEOF | |
33998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34000 | ac_status=$? | |
34001 | grep -v '^ *+' conftest.er1 >conftest.err | |
34002 | rm -f conftest.er1 | |
34003 | cat conftest.err >&5 | |
34004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34005 | (exit $ac_status); } >/dev/null; then | |
34006 | if test -s conftest.err; then | |
34007 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34008 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34009 | else |
34010 | ac_cpp_err= | |
34011 | fi | |
34012 | else | |
34013 | ac_cpp_err=yes | |
34014 | fi | |
34015 | if test -z "$ac_cpp_err"; then | |
34016 | ac_header_preproc=yes | |
34017 | else | |
34018 | echo "$as_me: failed program was:" >&5 | |
34019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34020 | ||
34021 | ac_header_preproc=no | |
34022 | fi | |
34023 | rm -f conftest.err conftest.$ac_ext | |
34024 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34025 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34026 | ||
34027 | # So? What about this header? | |
ac1cb8d3 VS |
34028 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34029 | yes:no: ) | |
a848cd7e SC |
34030 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34031 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34032 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34033 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34034 | ac_header_preproc=yes | |
a848cd7e | 34035 | ;; |
ac1cb8d3 | 34036 | no:yes:* ) |
a848cd7e SC |
34037 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34038 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34039 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34040 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34041 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34042 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34043 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34044 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34046 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34047 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34048 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34049 | ( |
34050 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34051 | ## ----------------------------------------- ## |
34052 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34053 | ## ----------------------------------------- ## | |
a848cd7e SC |
34054 | _ASBOX |
34055 | ) | | |
34056 | sed "s/^/$as_me: WARNING: /" >&2 | |
34057 | ;; | |
34058 | esac | |
34059 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34063 | else | |
ac1cb8d3 | 34064 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34065 | fi |
34066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34067 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34068 | ||
34069 | fi | |
34070 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34071 | cat >>confdefs.h <<_ACEOF | |
34072 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34073 | _ACEOF | |
34074 | ||
34075 | fi | |
34076 | ||
34077 | done | |
34078 | ||
34079 | ||
34080 | if test "$wxUSE_LIBSDL" != "no"; then | |
34081 | ||
34082 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34083 | if test "${with_sdl_prefix+set}" = set; then | |
34084 | withval="$with_sdl_prefix" | |
34085 | sdl_prefix="$withval" | |
34086 | else | |
34087 | sdl_prefix="" | |
34088 | fi; | |
34089 | ||
34090 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34091 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34092 | withval="$with_sdl_exec_prefix" | |
34093 | sdl_exec_prefix="$withval" | |
34094 | else | |
34095 | sdl_exec_prefix="" | |
34096 | fi; | |
34097 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34098 | if test "${enable_sdltest+set}" = set; then | |
34099 | enableval="$enable_sdltest" | |
34100 | ||
34101 | else | |
34102 | enable_sdltest=yes | |
34103 | fi; | |
34104 | ||
34105 | if test x$sdl_exec_prefix != x ; then | |
34106 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34107 | if test x${SDL_CONFIG+set} != xset ; then | |
34108 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34109 | fi | |
34110 | fi | |
34111 | if test x$sdl_prefix != x ; then | |
34112 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34113 | if test x${SDL_CONFIG+set} != xset ; then | |
34114 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34115 | fi | |
34116 | fi | |
34117 | ||
34118 | ||
34119 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34120 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34121 | set dummy sdl-config; ac_word=$2 | |
34122 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34123 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34124 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34126 | else | |
34127 | case $SDL_CONFIG in | |
34128 | [\\/]* | ?:[\\/]*) | |
34129 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34130 | ;; | |
34131 | *) | |
34132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34133 | for as_dir in $PATH | |
34134 | do | |
34135 | IFS=$as_save_IFS | |
34136 | test -z "$as_dir" && as_dir=. | |
34137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34138 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34139 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34141 | break 2 | |
34142 | fi | |
34143 | done | |
34144 | done | |
34145 | ||
34146 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34147 | ;; | |
34148 | esac | |
34149 | fi | |
34150 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34151 | ||
34152 | if test -n "$SDL_CONFIG"; then | |
34153 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34154 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34155 | else | |
34156 | echo "$as_me:$LINENO: result: no" >&5 | |
34157 | echo "${ECHO_T}no" >&6 | |
34158 | fi | |
34159 | ||
34160 | min_sdl_version=1.2.0 | |
34161 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34162 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34163 | no_sdl="" | |
34164 | if test "$SDL_CONFIG" = "no" ; then | |
34165 | no_sdl=yes | |
34166 | else | |
34167 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34168 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34169 | ||
34170 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34171 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34172 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34173 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34174 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34175 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34176 | if test "x$enable_sdltest" = "xyes" ; then | |
34177 | ac_save_CFLAGS="$CFLAGS" | |
34178 | ac_save_LIBS="$LIBS" | |
34179 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34180 | LIBS="$LIBS $SDL_LIBS" | |
34181 | rm -f conf.sdltest | |
34182 | if test "$cross_compiling" = yes; then | |
34183 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34184 | else | |
34185 | cat >conftest.$ac_ext <<_ACEOF | |
34186 | /* confdefs.h. */ | |
34187 | _ACEOF | |
34188 | cat confdefs.h >>conftest.$ac_ext | |
34189 | cat >>conftest.$ac_ext <<_ACEOF | |
34190 | /* end confdefs.h. */ | |
34191 | ||
34192 | #include <stdio.h> | |
34193 | #include <stdlib.h> | |
34194 | #include <string.h> | |
34195 | #include "SDL.h" | |
34196 | ||
34197 | char* | |
34198 | my_strdup (char *str) | |
34199 | { | |
34200 | char *new_str; | |
34201 | ||
34202 | if (str) | |
34203 | { | |
34204 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34205 | strcpy (new_str, str); | |
34206 | } | |
34207 | else | |
34208 | new_str = NULL; | |
34209 | ||
34210 | return new_str; | |
34211 | } | |
34212 | ||
34213 | int main (int argc, char *argv[]) | |
34214 | { | |
34215 | int major, minor, micro; | |
34216 | char *tmp_version; | |
34217 | ||
34218 | /* This hangs on some systems (?) | |
34219 | system ("touch conf.sdltest"); | |
34220 | */ | |
34221 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34222 | ||
34223 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34224 | tmp_version = my_strdup("$min_sdl_version"); | |
34225 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34226 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34227 | exit(1); | |
34228 | } | |
34229 | ||
34230 | if (($sdl_major_version > major) || | |
34231 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34232 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34233 | { | |
34234 | return 0; | |
34235 | } | |
34236 | else | |
34237 | { | |
34238 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34239 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34240 | printf("*** best to upgrade to the required version.\n"); | |
34241 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34242 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34243 | printf("*** config.cache before re-running configure\n"); | |
34244 | return 1; | |
34245 | } | |
34246 | } | |
34247 | ||
34248 | ||
34249 | _ACEOF | |
34250 | rm -f conftest$ac_exeext | |
34251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34252 | (eval $ac_link) 2>&5 | |
34253 | ac_status=$? | |
34254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34255 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34257 | (eval $ac_try) 2>&5 | |
34258 | ac_status=$? | |
34259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34260 | (exit $ac_status); }; }; then | |
34261 | : | |
34262 | else | |
34263 | echo "$as_me: program exited with status $ac_status" >&5 | |
34264 | echo "$as_me: failed program was:" >&5 | |
34265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34266 | ||
34267 | ( exit $ac_status ) | |
34268 | no_sdl=yes | |
34269 | fi | |
ac1cb8d3 | 34270 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34271 | fi |
34272 | CFLAGS="$ac_save_CFLAGS" | |
34273 | LIBS="$ac_save_LIBS" | |
34274 | fi | |
34275 | fi | |
34276 | if test "x$no_sdl" = x ; then | |
34277 | echo "$as_me:$LINENO: result: yes" >&5 | |
34278 | echo "${ECHO_T}yes" >&6 | |
34279 | ||
34280 | EXTRALIBS_SDL="$SDL_LIBS" | |
34281 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34282 | cat >>confdefs.h <<\_ACEOF | |
34283 | #define wxUSE_LIBSDL 1 | |
34284 | _ACEOF | |
34285 | ||
34286 | ||
34287 | else | |
34288 | echo "$as_me:$LINENO: result: no" >&5 | |
34289 | echo "${ECHO_T}no" >&6 | |
34290 | if test "$SDL_CONFIG" = "no" ; then | |
34291 | echo "*** The sdl-config script installed by SDL could not be found" | |
34292 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34293 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34294 | echo "*** full path to sdl-config." | |
34295 | else | |
34296 | if test -f conf.sdltest ; then | |
34297 | : | |
34298 | else | |
34299 | echo "*** Could not run SDL test program, checking why..." | |
34300 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34301 | LIBS="$LIBS $SDL_LIBS" | |
34302 | cat >conftest.$ac_ext <<_ACEOF | |
34303 | /* confdefs.h. */ | |
34304 | _ACEOF | |
34305 | cat confdefs.h >>conftest.$ac_ext | |
34306 | cat >>conftest.$ac_ext <<_ACEOF | |
34307 | /* end confdefs.h. */ | |
34308 | ||
34309 | #include <stdio.h> | |
34310 | #include "SDL.h" | |
34311 | ||
34312 | int main(int argc, char *argv[]) | |
34313 | { return 0; } | |
34314 | #undef main | |
34315 | #define main K_and_R_C_main | |
34316 | ||
34317 | int | |
34318 | main () | |
34319 | { | |
34320 | return 0; | |
34321 | ; | |
34322 | return 0; | |
34323 | } | |
34324 | _ACEOF | |
34325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34327 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34328 | ac_status=$? |
ac1cb8d3 VS |
34329 | grep -v '^ *+' conftest.er1 >conftest.err |
34330 | rm -f conftest.er1 | |
34331 | cat conftest.err >&5 | |
a848cd7e SC |
34332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34333 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34334 | { ac_try='test -z "$ac_c_werror_flag" |
34335 | || test ! -s conftest.err' | |
34336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34337 | (eval $ac_try) 2>&5 | |
34338 | ac_status=$? | |
34339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34340 | (exit $ac_status); }; } && | |
34341 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34343 | (eval $ac_try) 2>&5 | |
34344 | ac_status=$? | |
34345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34346 | (exit $ac_status); }; }; then | |
34347 | echo "*** The test program compiled, but did not run. This usually means" | |
34348 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34349 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34350 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34351 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34352 | echo "*** is required on your system" | |
34353 | echo "***" | |
34354 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34355 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34356 | else | |
34357 | echo "$as_me: failed program was:" >&5 | |
34358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34359 | ||
34360 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34361 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34362 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34363 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34364 | fi | |
ac1cb8d3 VS |
34365 | rm -f conftest.err conftest.$ac_objext \ |
34366 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34367 | CFLAGS="$ac_save_CFLAGS" |
34368 | LIBS="$ac_save_LIBS" | |
34369 | fi | |
34370 | fi | |
34371 | SDL_CFLAGS="" | |
34372 | SDL_LIBS="" | |
34373 | wxUSE_LIBSDL="no" | |
34374 | fi | |
34375 | ||
34376 | ||
34377 | rm -f conf.sdltest | |
34378 | ||
34379 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34380 | WITH_PLUGIN_SDL=1 | |
34381 | fi | |
34382 | fi | |
34383 | fi | |
34384 | ||
34385 | cat >>confdefs.h <<\_ACEOF | |
34386 | #define wxUSE_SOUND 1 | |
34387 | _ACEOF | |
34388 | ||
34389 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34390 | fi | |
34391 | ||
34392 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
34393 | cat >>confdefs.h <<\_ACEOF | |
34394 | #define wxUSE_CMDLINE_PARSER 1 | |
34395 | _ACEOF | |
34396 | ||
34397 | fi | |
34398 | ||
34399 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34400 | cat >>confdefs.h <<\_ACEOF | |
34401 | #define wxUSE_STOPWATCH 1 | |
34402 | _ACEOF | |
34403 | ||
34404 | fi | |
34405 | ||
34406 | if test "$wxUSE_DATETIME" = "yes"; then | |
34407 | cat >>confdefs.h <<\_ACEOF | |
34408 | #define wxUSE_DATETIME 1 | |
34409 | _ACEOF | |
34410 | ||
34411 | fi | |
34412 | ||
34413 | if test "$wxUSE_FILE" = "yes"; then | |
34414 | cat >>confdefs.h <<\_ACEOF | |
34415 | #define wxUSE_FILE 1 | |
34416 | _ACEOF | |
34417 | ||
34418 | fi | |
34419 | ||
34420 | if test "$wxUSE_FFILE" = "yes"; then | |
34421 | cat >>confdefs.h <<\_ACEOF | |
34422 | #define wxUSE_FFILE 1 | |
34423 | _ACEOF | |
34424 | ||
34425 | fi | |
34426 | ||
34427 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34428 | cat >>confdefs.h <<\_ACEOF | |
34429 | #define wxUSE_FILESYSTEM 1 | |
34430 | _ACEOF | |
34431 | ||
34432 | fi | |
34433 | ||
34434 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34435 | cat >>confdefs.h <<\_ACEOF | |
34436 | #define wxUSE_FS_ZIP 1 | |
34437 | _ACEOF | |
34438 | ||
34439 | fi | |
34440 | ||
34441 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34442 | cat >>confdefs.h <<\_ACEOF | |
34443 | #define wxUSE_ZIPSTREAM 1 | |
34444 | _ACEOF | |
34445 | ||
34446 | fi | |
34447 | ||
a848cd7e SC |
34448 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34449 | cat >>confdefs.h <<\_ACEOF | |
34450 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34451 | _ACEOF | |
34452 | ||
34453 | fi | |
34454 | ||
34455 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34456 | cat >>confdefs.h <<\_ACEOF | |
34457 | #define wxUSE_SNGLINST_CHECKER 1 | |
34458 | _ACEOF | |
34459 | ||
34460 | fi | |
34461 | ||
34462 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34463 | cat >>confdefs.h <<\_ACEOF | |
34464 | #define wxUSE_BUSYINFO 1 | |
34465 | _ACEOF | |
34466 | ||
34467 | fi | |
34468 | ||
34469 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34470 | cat >>confdefs.h <<\_ACEOF | |
34471 | #define wxUSE_STD_IOSTREAM 1 | |
34472 | _ACEOF | |
34473 | ||
34474 | fi | |
34475 | ||
34476 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34477 | cat >>confdefs.h <<\_ACEOF | |
34478 | #define wxUSE_TEXTBUFFER 1 | |
34479 | _ACEOF | |
34480 | ||
34481 | fi | |
34482 | ||
34483 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34484 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34485 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34486 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34487 | else | |
34488 | cat >>confdefs.h <<\_ACEOF | |
34489 | #define wxUSE_TEXTFILE 1 | |
34490 | _ACEOF | |
34491 | ||
34492 | fi | |
34493 | fi | |
34494 | ||
34495 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34496 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34497 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34498 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34499 | else | |
34500 | cat >>confdefs.h <<\_ACEOF | |
34501 | #define wxUSE_CONFIG 1 | |
34502 | _ACEOF | |
34503 | ||
34504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34505 | fi | |
34506 | fi | |
34507 | ||
34508 | if test "$wxUSE_INTL" = "yes" ; then | |
34509 | if test "$wxUSE_FILE" != "yes"; then | |
34510 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34511 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34512 | else | |
34513 | cat >>confdefs.h <<\_ACEOF | |
34514 | #define wxUSE_INTL 1 | |
34515 | _ACEOF | |
34516 | ||
34517 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34518 | GUIDIST="$GUIDIST INTL_DIST" | |
34519 | fi | |
34520 | fi | |
34521 | ||
34522 | if test "$wxUSE_LOG" = "yes"; then | |
34523 | cat >>confdefs.h <<\_ACEOF | |
34524 | #define wxUSE_LOG 1 | |
34525 | _ACEOF | |
34526 | ||
34527 | ||
34528 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34529 | cat >>confdefs.h <<\_ACEOF | |
34530 | #define wxUSE_LOGGUI 1 | |
34531 | _ACEOF | |
34532 | ||
34533 | fi | |
34534 | ||
34535 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34536 | cat >>confdefs.h <<\_ACEOF | |
34537 | #define wxUSE_LOGWINDOW 1 | |
34538 | _ACEOF | |
34539 | ||
34540 | fi | |
34541 | ||
34542 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34543 | cat >>confdefs.h <<\_ACEOF | |
34544 | #define wxUSE_LOG_DIALOG 1 | |
34545 | _ACEOF | |
34546 | ||
34547 | fi | |
34548 | fi | |
34549 | ||
34550 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34551 | cat >>confdefs.h <<\_ACEOF | |
34552 | #define wxUSE_LONGLONG 1 | |
34553 | _ACEOF | |
34554 | ||
34555 | fi | |
34556 | ||
34557 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34558 | cat >>confdefs.h <<\_ACEOF | |
34559 | #define wxUSE_GEOMETRY 1 | |
34560 | _ACEOF | |
34561 | ||
34562 | fi | |
34563 | ||
34564 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34565 | cat >>confdefs.h <<\_ACEOF | |
34566 | #define wxUSE_DIALUP_MANAGER 1 | |
34567 | _ACEOF | |
34568 | ||
34569 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34570 | fi | |
34571 | ||
34572 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34573 | cat >>confdefs.h <<\_ACEOF | |
34574 | #define wxUSE_STREAMS 1 | |
34575 | _ACEOF | |
34576 | ||
34577 | fi | |
34578 | ||
34579 | ||
34580 | if test "$wxUSE_DATETIME" = "yes"; then | |
34581 | ||
34582 | for ac_func in strptime | |
34583 | do | |
34584 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34585 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34586 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34587 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34589 | else | |
34590 | cat >conftest.$ac_ext <<_ACEOF | |
34591 | /* confdefs.h. */ | |
34592 | _ACEOF | |
34593 | cat confdefs.h >>conftest.$ac_ext | |
34594 | cat >>conftest.$ac_ext <<_ACEOF | |
34595 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34596 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34597 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34598 | #define $ac_func innocuous_$ac_func | |
34599 | ||
a848cd7e SC |
34600 | /* System header to define __stub macros and hopefully few prototypes, |
34601 | which can conflict with char $ac_func (); below. | |
34602 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34603 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34604 | |
a848cd7e SC |
34605 | #ifdef __STDC__ |
34606 | # include <limits.h> | |
34607 | #else | |
34608 | # include <assert.h> | |
34609 | #endif | |
ac1cb8d3 VS |
34610 | |
34611 | #undef $ac_func | |
34612 | ||
a848cd7e SC |
34613 | /* Override any gcc2 internal prototype to avoid an error. */ |
34614 | #ifdef __cplusplus | |
34615 | extern "C" | |
34616 | { | |
34617 | #endif | |
34618 | /* We use char because int might match the return type of a gcc2 | |
34619 | builtin and then its argument prototype would still apply. */ | |
34620 | char $ac_func (); | |
34621 | /* The GNU C library defines this for functions which it implements | |
34622 | to always fail with ENOSYS. Some functions are actually named | |
34623 | something starting with __ and the normal name is an alias. */ | |
34624 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34625 | choke me | |
34626 | #else | |
34627 | char (*f) () = $ac_func; | |
34628 | #endif | |
34629 | #ifdef __cplusplus | |
34630 | } | |
34631 | #endif | |
34632 | ||
34633 | int | |
34634 | main () | |
34635 | { | |
34636 | return f != $ac_func; | |
34637 | ; | |
34638 | return 0; | |
34639 | } | |
34640 | _ACEOF | |
34641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34643 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34644 | ac_status=$? |
ac1cb8d3 VS |
34645 | grep -v '^ *+' conftest.er1 >conftest.err |
34646 | rm -f conftest.er1 | |
34647 | cat conftest.err >&5 | |
a848cd7e SC |
34648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34649 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34650 | { ac_try='test -z "$ac_c_werror_flag" |
34651 | || test ! -s conftest.err' | |
34652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34653 | (eval $ac_try) 2>&5 | |
34654 | ac_status=$? | |
34655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34656 | (exit $ac_status); }; } && | |
34657 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34659 | (eval $ac_try) 2>&5 | |
34660 | ac_status=$? | |
34661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34662 | (exit $ac_status); }; }; then | |
34663 | eval "$as_ac_var=yes" | |
34664 | else | |
34665 | echo "$as_me: failed program was:" >&5 | |
34666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34667 | ||
34668 | eval "$as_ac_var=no" | |
34669 | fi | |
ac1cb8d3 VS |
34670 | rm -f conftest.err conftest.$ac_objext \ |
34671 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34672 | fi |
34673 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34674 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34675 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34676 | cat >>confdefs.h <<_ACEOF | |
34677 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34678 | _ACEOF | |
34679 | ||
34680 | fi | |
34681 | done | |
34682 | ||
34683 | ||
34684 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34685 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34686 | if test "${wx_cv_var_timezone+set}" = set; then | |
34687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34688 | else | |
34689 | ||
34690 | cat >conftest.$ac_ext <<_ACEOF | |
34691 | /* confdefs.h. */ | |
34692 | _ACEOF | |
34693 | cat confdefs.h >>conftest.$ac_ext | |
34694 | cat >>conftest.$ac_ext <<_ACEOF | |
34695 | /* end confdefs.h. */ | |
34696 | ||
34697 | #include <time.h> | |
34698 | ||
34699 | int | |
34700 | main () | |
34701 | { | |
34702 | ||
34703 | int tz; | |
34704 | tz = timezone; | |
34705 | ||
34706 | ; | |
34707 | return 0; | |
34708 | } | |
34709 | _ACEOF | |
34710 | rm -f conftest.$ac_objext | |
34711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34712 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34713 | ac_status=$? |
ac1cb8d3 VS |
34714 | grep -v '^ *+' conftest.er1 >conftest.err |
34715 | rm -f conftest.er1 | |
34716 | cat conftest.err >&5 | |
a848cd7e SC |
34717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34718 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34719 | { ac_try='test -z "$ac_c_werror_flag" |
34720 | || test ! -s conftest.err' | |
34721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34722 | (eval $ac_try) 2>&5 | |
34723 | ac_status=$? | |
34724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34725 | (exit $ac_status); }; } && | |
34726 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34728 | (eval $ac_try) 2>&5 | |
34729 | ac_status=$? | |
34730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34731 | (exit $ac_status); }; }; then | |
34732 | ||
34733 | wx_cv_var_timezone=timezone | |
34734 | ||
34735 | else | |
34736 | echo "$as_me: failed program was:" >&5 | |
34737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34738 | ||
34739 | ||
34740 | cat >conftest.$ac_ext <<_ACEOF | |
34741 | /* confdefs.h. */ | |
34742 | _ACEOF | |
34743 | cat confdefs.h >>conftest.$ac_ext | |
34744 | cat >>conftest.$ac_ext <<_ACEOF | |
34745 | /* end confdefs.h. */ | |
34746 | ||
34747 | #include <time.h> | |
34748 | ||
34749 | int | |
34750 | main () | |
34751 | { | |
34752 | ||
34753 | int tz; | |
34754 | tz = _timezone; | |
34755 | ||
34756 | ; | |
34757 | return 0; | |
34758 | } | |
34759 | _ACEOF | |
34760 | rm -f conftest.$ac_objext | |
34761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34762 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34763 | ac_status=$? |
ac1cb8d3 VS |
34764 | grep -v '^ *+' conftest.er1 >conftest.err |
34765 | rm -f conftest.er1 | |
34766 | cat conftest.err >&5 | |
a848cd7e SC |
34767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34768 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34769 | { ac_try='test -z "$ac_c_werror_flag" |
34770 | || test ! -s conftest.err' | |
34771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34772 | (eval $ac_try) 2>&5 | |
34773 | ac_status=$? | |
34774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34775 | (exit $ac_status); }; } && | |
34776 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34778 | (eval $ac_try) 2>&5 | |
34779 | ac_status=$? | |
34780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34781 | (exit $ac_status); }; }; then | |
34782 | ||
34783 | wx_cv_var_timezone=_timezone | |
34784 | ||
34785 | else | |
34786 | echo "$as_me: failed program was:" >&5 | |
34787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34788 | ||
34789 | ||
34790 | cat >conftest.$ac_ext <<_ACEOF | |
34791 | /* confdefs.h. */ | |
34792 | _ACEOF | |
34793 | cat confdefs.h >>conftest.$ac_ext | |
34794 | cat >>conftest.$ac_ext <<_ACEOF | |
34795 | /* end confdefs.h. */ | |
34796 | ||
34797 | #include <time.h> | |
34798 | ||
34799 | int | |
34800 | main () | |
34801 | { | |
34802 | ||
34803 | int tz; | |
34804 | tz = __timezone; | |
34805 | ||
34806 | ; | |
34807 | return 0; | |
34808 | } | |
34809 | _ACEOF | |
34810 | rm -f conftest.$ac_objext | |
34811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34812 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34813 | ac_status=$? |
ac1cb8d3 VS |
34814 | grep -v '^ *+' conftest.er1 >conftest.err |
34815 | rm -f conftest.er1 | |
34816 | cat conftest.err >&5 | |
a848cd7e SC |
34817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34818 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34819 | { ac_try='test -z "$ac_c_werror_flag" |
34820 | || test ! -s conftest.err' | |
34821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34822 | (eval $ac_try) 2>&5 | |
34823 | ac_status=$? | |
34824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34825 | (exit $ac_status); }; } && | |
34826 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34828 | (eval $ac_try) 2>&5 | |
34829 | ac_status=$? | |
34830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34831 | (exit $ac_status); }; }; then | |
34832 | ||
34833 | wx_cv_var_timezone=__timezone | |
34834 | ||
34835 | else | |
34836 | echo "$as_me: failed program was:" >&5 | |
34837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34838 | ||
34839 | ||
34840 | if test "$USE_DOS" = 0 ; then | |
34841 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
34842 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
34843 | fi | |
34844 | ||
34845 | ||
34846 | fi | |
ac1cb8d3 | 34847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34848 | |
34849 | ||
34850 | fi | |
ac1cb8d3 | 34851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34852 | |
34853 | ||
34854 | fi | |
ac1cb8d3 | 34855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34856 | |
34857 | ||
34858 | fi | |
34859 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
34860 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
34861 | ||
34862 | if test "x$wx_cv_var_timezone" != x ; then | |
34863 | cat >>confdefs.h <<_ACEOF | |
34864 | #define WX_TIMEZONE $wx_cv_var_timezone | |
34865 | _ACEOF | |
34866 | ||
34867 | fi | |
34868 | ||
34869 | ||
34870 | for ac_func in localtime | |
34871 | do | |
34872 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34873 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34875 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34877 | else | |
34878 | cat >conftest.$ac_ext <<_ACEOF | |
34879 | /* confdefs.h. */ | |
34880 | _ACEOF | |
34881 | cat confdefs.h >>conftest.$ac_ext | |
34882 | cat >>conftest.$ac_ext <<_ACEOF | |
34883 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34884 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34886 | #define $ac_func innocuous_$ac_func | |
34887 | ||
a848cd7e SC |
34888 | /* System header to define __stub macros and hopefully few prototypes, |
34889 | which can conflict with char $ac_func (); below. | |
34890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34891 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34892 | |
a848cd7e SC |
34893 | #ifdef __STDC__ |
34894 | # include <limits.h> | |
34895 | #else | |
34896 | # include <assert.h> | |
34897 | #endif | |
ac1cb8d3 VS |
34898 | |
34899 | #undef $ac_func | |
34900 | ||
a848cd7e SC |
34901 | /* Override any gcc2 internal prototype to avoid an error. */ |
34902 | #ifdef __cplusplus | |
34903 | extern "C" | |
34904 | { | |
34905 | #endif | |
34906 | /* We use char because int might match the return type of a gcc2 | |
34907 | builtin and then its argument prototype would still apply. */ | |
34908 | char $ac_func (); | |
34909 | /* The GNU C library defines this for functions which it implements | |
34910 | to always fail with ENOSYS. Some functions are actually named | |
34911 | something starting with __ and the normal name is an alias. */ | |
34912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34913 | choke me | |
34914 | #else | |
34915 | char (*f) () = $ac_func; | |
34916 | #endif | |
34917 | #ifdef __cplusplus | |
34918 | } | |
34919 | #endif | |
34920 | ||
34921 | int | |
34922 | main () | |
34923 | { | |
34924 | return f != $ac_func; | |
34925 | ; | |
34926 | return 0; | |
34927 | } | |
34928 | _ACEOF | |
34929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34931 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34932 | ac_status=$? |
ac1cb8d3 VS |
34933 | grep -v '^ *+' conftest.er1 >conftest.err |
34934 | rm -f conftest.er1 | |
34935 | cat conftest.err >&5 | |
a848cd7e SC |
34936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34937 | (exit $ac_status); } && | |
ac1cb8d3 VS |
34938 | { ac_try='test -z "$ac_c_werror_flag" |
34939 | || test ! -s conftest.err' | |
34940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34941 | (eval $ac_try) 2>&5 | |
34942 | ac_status=$? | |
34943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34944 | (exit $ac_status); }; } && | |
34945 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34947 | (eval $ac_try) 2>&5 | |
34948 | ac_status=$? | |
34949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34950 | (exit $ac_status); }; }; then | |
34951 | eval "$as_ac_var=yes" | |
34952 | else | |
34953 | echo "$as_me: failed program was:" >&5 | |
34954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34955 | ||
34956 | eval "$as_ac_var=no" | |
34957 | fi | |
ac1cb8d3 VS |
34958 | rm -f conftest.err conftest.$ac_objext \ |
34959 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34960 | fi |
34961 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34962 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34963 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34964 | cat >>confdefs.h <<_ACEOF | |
34965 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34966 | _ACEOF | |
34967 | ||
34968 | fi | |
34969 | done | |
34970 | ||
34971 | ||
34972 | if test "$ac_cv_func_localtime" = "yes"; then | |
34973 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
34974 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
34975 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
34976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34977 | else | |
34978 | ||
34979 | cat >conftest.$ac_ext <<_ACEOF | |
34980 | /* confdefs.h. */ | |
34981 | _ACEOF | |
34982 | cat confdefs.h >>conftest.$ac_ext | |
34983 | cat >>conftest.$ac_ext <<_ACEOF | |
34984 | /* end confdefs.h. */ | |
34985 | ||
34986 | #include <time.h> | |
34987 | ||
34988 | int | |
34989 | main () | |
34990 | { | |
34991 | ||
34992 | struct tm tm; | |
34993 | tm.tm_gmtoff++; | |
34994 | ||
34995 | ; | |
34996 | return 0; | |
34997 | } | |
34998 | _ACEOF | |
34999 | rm -f conftest.$ac_objext | |
35000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35001 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35002 | ac_status=$? |
ac1cb8d3 VS |
35003 | grep -v '^ *+' conftest.er1 >conftest.err |
35004 | rm -f conftest.er1 | |
35005 | cat conftest.err >&5 | |
a848cd7e SC |
35006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35007 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35008 | { ac_try='test -z "$ac_c_werror_flag" |
35009 | || test ! -s conftest.err' | |
35010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35011 | (eval $ac_try) 2>&5 | |
35012 | ac_status=$? | |
35013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35014 | (exit $ac_status); }; } && | |
35015 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35017 | (eval $ac_try) 2>&5 | |
35018 | ac_status=$? | |
35019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35020 | (exit $ac_status); }; }; then | |
35021 | ||
35022 | wx_cv_struct_tm_has_gmtoff=yes | |
35023 | ||
35024 | else | |
35025 | echo "$as_me: failed program was:" >&5 | |
35026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35027 | ||
35028 | wx_cv_struct_tm_has_gmtoff=no | |
35029 | ||
35030 | fi | |
ac1cb8d3 | 35031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35032 | |
35033 | fi | |
35034 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
35035 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35036 | fi | |
35037 | ||
35038 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
35039 | cat >>confdefs.h <<\_ACEOF | |
35040 | #define WX_GMTOFF_IN_TM 1 | |
35041 | _ACEOF | |
35042 | ||
35043 | fi | |
35044 | ||
35045 | ||
35046 | ||
35047 | for ac_func in gettimeofday ftime | |
35048 | do | |
35049 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35050 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35051 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35052 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35054 | else | |
35055 | cat >conftest.$ac_ext <<_ACEOF | |
35056 | /* confdefs.h. */ | |
35057 | _ACEOF | |
35058 | cat confdefs.h >>conftest.$ac_ext | |
35059 | cat >>conftest.$ac_ext <<_ACEOF | |
35060 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35061 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35062 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35063 | #define $ac_func innocuous_$ac_func | |
35064 | ||
a848cd7e SC |
35065 | /* System header to define __stub macros and hopefully few prototypes, |
35066 | which can conflict with char $ac_func (); below. | |
35067 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35068 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35069 | |
a848cd7e SC |
35070 | #ifdef __STDC__ |
35071 | # include <limits.h> | |
35072 | #else | |
35073 | # include <assert.h> | |
35074 | #endif | |
ac1cb8d3 VS |
35075 | |
35076 | #undef $ac_func | |
35077 | ||
a848cd7e SC |
35078 | /* Override any gcc2 internal prototype to avoid an error. */ |
35079 | #ifdef __cplusplus | |
35080 | extern "C" | |
35081 | { | |
35082 | #endif | |
35083 | /* We use char because int might match the return type of a gcc2 | |
35084 | builtin and then its argument prototype would still apply. */ | |
35085 | char $ac_func (); | |
35086 | /* The GNU C library defines this for functions which it implements | |
35087 | to always fail with ENOSYS. Some functions are actually named | |
35088 | something starting with __ and the normal name is an alias. */ | |
35089 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35090 | choke me | |
35091 | #else | |
35092 | char (*f) () = $ac_func; | |
35093 | #endif | |
35094 | #ifdef __cplusplus | |
35095 | } | |
35096 | #endif | |
35097 | ||
35098 | int | |
35099 | main () | |
35100 | { | |
35101 | return f != $ac_func; | |
35102 | ; | |
35103 | return 0; | |
35104 | } | |
35105 | _ACEOF | |
35106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35108 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35109 | ac_status=$? |
ac1cb8d3 VS |
35110 | grep -v '^ *+' conftest.er1 >conftest.err |
35111 | rm -f conftest.er1 | |
35112 | cat conftest.err >&5 | |
a848cd7e SC |
35113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35114 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35115 | { ac_try='test -z "$ac_c_werror_flag" |
35116 | || test ! -s conftest.err' | |
35117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35118 | (eval $ac_try) 2>&5 | |
35119 | ac_status=$? | |
35120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35121 | (exit $ac_status); }; } && | |
35122 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35124 | (eval $ac_try) 2>&5 | |
35125 | ac_status=$? | |
35126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35127 | (exit $ac_status); }; }; then | |
35128 | eval "$as_ac_var=yes" | |
35129 | else | |
35130 | echo "$as_me: failed program was:" >&5 | |
35131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35132 | ||
35133 | eval "$as_ac_var=no" | |
35134 | fi | |
ac1cb8d3 VS |
35135 | rm -f conftest.err conftest.$ac_objext \ |
35136 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35137 | fi |
35138 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35139 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35140 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35141 | cat >>confdefs.h <<_ACEOF | |
35142 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35143 | _ACEOF | |
35144 | break | |
35145 | fi | |
35146 | done | |
35147 | ||
35148 | ||
35149 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35150 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35151 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35152 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35154 | else | |
35155 | ||
35156 | ||
35157 | ||
35158 | ac_ext=cc | |
35159 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35160 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35161 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35162 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35163 | ||
35164 | ||
35165 | cat >conftest.$ac_ext <<_ACEOF | |
35166 | /* confdefs.h. */ | |
35167 | _ACEOF | |
35168 | cat confdefs.h >>conftest.$ac_ext | |
35169 | cat >>conftest.$ac_ext <<_ACEOF | |
35170 | /* end confdefs.h. */ | |
35171 | ||
35172 | #include <sys/time.h> | |
35173 | #include <unistd.h> | |
35174 | ||
35175 | int | |
35176 | main () | |
35177 | { | |
35178 | ||
35179 | struct timeval tv; | |
35180 | gettimeofday(&tv, NULL); | |
35181 | ||
35182 | ; | |
35183 | return 0; | |
35184 | } | |
35185 | _ACEOF | |
35186 | rm -f conftest.$ac_objext | |
35187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35188 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35189 | ac_status=$? |
ac1cb8d3 VS |
35190 | grep -v '^ *+' conftest.er1 >conftest.err |
35191 | rm -f conftest.er1 | |
35192 | cat conftest.err >&5 | |
a848cd7e SC |
35193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35194 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35195 | { ac_try='test -z "$ac_cxx_werror_flag" |
35196 | || test ! -s conftest.err' | |
35197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35198 | (eval $ac_try) 2>&5 | |
35199 | ac_status=$? | |
35200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35201 | (exit $ac_status); }; } && | |
35202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35204 | (eval $ac_try) 2>&5 | |
35205 | ac_status=$? | |
35206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35207 | (exit $ac_status); }; }; then | |
35208 | wx_cv_func_gettimeofday_has_2_args=yes | |
35209 | else | |
35210 | echo "$as_me: failed program was:" >&5 | |
35211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35212 | ||
35213 | cat >conftest.$ac_ext <<_ACEOF | |
35214 | /* confdefs.h. */ | |
35215 | _ACEOF | |
35216 | cat confdefs.h >>conftest.$ac_ext | |
35217 | cat >>conftest.$ac_ext <<_ACEOF | |
35218 | /* end confdefs.h. */ | |
35219 | ||
35220 | #include <sys/time.h> | |
35221 | #include <unistd.h> | |
35222 | ||
35223 | int | |
35224 | main () | |
35225 | { | |
35226 | ||
35227 | struct timeval tv; | |
35228 | gettimeofday(&tv); | |
35229 | ||
35230 | ; | |
35231 | return 0; | |
35232 | } | |
35233 | _ACEOF | |
35234 | rm -f conftest.$ac_objext | |
35235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35236 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35237 | ac_status=$? |
ac1cb8d3 VS |
35238 | grep -v '^ *+' conftest.er1 >conftest.err |
35239 | rm -f conftest.er1 | |
35240 | cat conftest.err >&5 | |
a848cd7e SC |
35241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35242 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35243 | { ac_try='test -z "$ac_cxx_werror_flag" |
35244 | || test ! -s conftest.err' | |
35245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35246 | (eval $ac_try) 2>&5 | |
35247 | ac_status=$? | |
35248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35249 | (exit $ac_status); }; } && | |
35250 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35252 | (eval $ac_try) 2>&5 | |
35253 | ac_status=$? | |
35254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35255 | (exit $ac_status); }; }; then | |
35256 | wx_cv_func_gettimeofday_has_2_args=no | |
35257 | else | |
35258 | echo "$as_me: failed program was:" >&5 | |
35259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35260 | ||
35261 | ||
35262 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35263 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35264 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35265 | ||
35266 | ||
35267 | fi | |
ac1cb8d3 | 35268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35269 | |
35270 | fi | |
ac1cb8d3 | 35271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35272 | ac_ext=c |
35273 | ac_cpp='$CPP $CPPFLAGS' | |
35274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35277 | ||
35278 | ||
35279 | fi | |
35280 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35281 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35282 | ||
35283 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35284 | cat >>confdefs.h <<\_ACEOF | |
35285 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35286 | _ACEOF | |
35287 | ||
35288 | fi | |
35289 | fi | |
35290 | ||
35291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35292 | fi | |
35293 | ||
35294 | ||
35295 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35296 | if test "$wxUSE_MGL" = "1"; then | |
35297 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35298 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35299 | wxUSE_SOCKETS="no" | |
35300 | fi | |
35301 | fi | |
35302 | ||
35303 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35304 | if test "$TOOLKIT" != "MSW"; then | |
35305 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35306 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35307 | if test "${ac_cv_func_socket+set}" = set; then | |
35308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35309 | else | |
35310 | cat >conftest.$ac_ext <<_ACEOF | |
35311 | /* confdefs.h. */ | |
35312 | _ACEOF | |
35313 | cat confdefs.h >>conftest.$ac_ext | |
35314 | cat >>conftest.$ac_ext <<_ACEOF | |
35315 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35316 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35317 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35318 | #define socket innocuous_socket | |
35319 | ||
a848cd7e SC |
35320 | /* System header to define __stub macros and hopefully few prototypes, |
35321 | which can conflict with char socket (); below. | |
35322 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35323 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35324 | |
a848cd7e SC |
35325 | #ifdef __STDC__ |
35326 | # include <limits.h> | |
35327 | #else | |
35328 | # include <assert.h> | |
35329 | #endif | |
ac1cb8d3 VS |
35330 | |
35331 | #undef socket | |
35332 | ||
a848cd7e SC |
35333 | /* Override any gcc2 internal prototype to avoid an error. */ |
35334 | #ifdef __cplusplus | |
35335 | extern "C" | |
35336 | { | |
35337 | #endif | |
35338 | /* We use char because int might match the return type of a gcc2 | |
35339 | builtin and then its argument prototype would still apply. */ | |
35340 | char socket (); | |
35341 | /* The GNU C library defines this for functions which it implements | |
35342 | to always fail with ENOSYS. Some functions are actually named | |
35343 | something starting with __ and the normal name is an alias. */ | |
35344 | #if defined (__stub_socket) || defined (__stub___socket) | |
35345 | choke me | |
35346 | #else | |
35347 | char (*f) () = socket; | |
35348 | #endif | |
35349 | #ifdef __cplusplus | |
35350 | } | |
35351 | #endif | |
35352 | ||
35353 | int | |
35354 | main () | |
35355 | { | |
35356 | return f != socket; | |
35357 | ; | |
35358 | return 0; | |
35359 | } | |
35360 | _ACEOF | |
35361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35363 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35364 | ac_status=$? |
ac1cb8d3 VS |
35365 | grep -v '^ *+' conftest.er1 >conftest.err |
35366 | rm -f conftest.er1 | |
35367 | cat conftest.err >&5 | |
a848cd7e SC |
35368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35369 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35370 | { ac_try='test -z "$ac_c_werror_flag" |
35371 | || test ! -s conftest.err' | |
35372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35373 | (eval $ac_try) 2>&5 | |
35374 | ac_status=$? | |
35375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35376 | (exit $ac_status); }; } && | |
35377 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35379 | (eval $ac_try) 2>&5 | |
35380 | ac_status=$? | |
35381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35382 | (exit $ac_status); }; }; then | |
35383 | ac_cv_func_socket=yes | |
35384 | else | |
35385 | echo "$as_me: failed program was:" >&5 | |
35386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35387 | ||
35388 | ac_cv_func_socket=no | |
35389 | fi | |
ac1cb8d3 VS |
35390 | rm -f conftest.err conftest.$ac_objext \ |
35391 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35392 | fi |
35393 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35394 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35395 | if test $ac_cv_func_socket = yes; then | |
35396 | : | |
35397 | else | |
35398 | ||
35399 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35400 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35401 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35403 | else | |
35404 | ac_check_lib_save_LIBS=$LIBS | |
35405 | LIBS="-lsocket $LIBS" | |
35406 | cat >conftest.$ac_ext <<_ACEOF | |
35407 | /* confdefs.h. */ | |
35408 | _ACEOF | |
35409 | cat confdefs.h >>conftest.$ac_ext | |
35410 | cat >>conftest.$ac_ext <<_ACEOF | |
35411 | /* end confdefs.h. */ | |
35412 | ||
35413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35414 | #ifdef __cplusplus | |
35415 | extern "C" | |
35416 | #endif | |
35417 | /* We use char because int might match the return type of a gcc2 | |
35418 | builtin and then its argument prototype would still apply. */ | |
35419 | char socket (); | |
35420 | int | |
35421 | main () | |
35422 | { | |
35423 | socket (); | |
35424 | ; | |
35425 | return 0; | |
35426 | } | |
35427 | _ACEOF | |
35428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35430 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35431 | ac_status=$? |
ac1cb8d3 VS |
35432 | grep -v '^ *+' conftest.er1 >conftest.err |
35433 | rm -f conftest.er1 | |
35434 | cat conftest.err >&5 | |
a848cd7e SC |
35435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35436 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35437 | { ac_try='test -z "$ac_c_werror_flag" |
35438 | || test ! -s conftest.err' | |
35439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35440 | (eval $ac_try) 2>&5 | |
35441 | ac_status=$? | |
35442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35443 | (exit $ac_status); }; } && | |
35444 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35446 | (eval $ac_try) 2>&5 | |
35447 | ac_status=$? | |
35448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35449 | (exit $ac_status); }; }; then | |
35450 | ac_cv_lib_socket_socket=yes | |
35451 | else | |
35452 | echo "$as_me: failed program was:" >&5 | |
35453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35454 | ||
35455 | ac_cv_lib_socket_socket=no | |
35456 | fi | |
ac1cb8d3 VS |
35457 | rm -f conftest.err conftest.$ac_objext \ |
35458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35459 | LIBS=$ac_check_lib_save_LIBS |
35460 | fi | |
35461 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35462 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35463 | if test $ac_cv_lib_socket_socket = yes; then | |
35464 | if test "$INET_LINK" != " -lsocket"; then | |
35465 | INET_LINK="$INET_LINK -lsocket" | |
35466 | fi | |
35467 | else | |
35468 | ||
35469 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35470 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35471 | wxUSE_SOCKETS=no | |
35472 | ||
35473 | ||
35474 | fi | |
35475 | ||
35476 | ||
35477 | ||
35478 | fi | |
35479 | ||
35480 | fi | |
35481 | fi | |
35482 | ||
35483 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35484 | if test "$TOOLKIT" != "MSW"; then | |
35485 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
35486 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
35487 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35489 | else | |
35490 | ||
35491 | cat >conftest.$ac_ext <<_ACEOF | |
35492 | /* confdefs.h. */ | |
35493 | _ACEOF | |
35494 | cat confdefs.h >>conftest.$ac_ext | |
35495 | cat >>conftest.$ac_ext <<_ACEOF | |
35496 | /* end confdefs.h. */ | |
35497 | ||
35498 | #include <sys/types.h> | |
35499 | #include <sys/socket.h> | |
35500 | ||
35501 | int | |
35502 | main () | |
35503 | { | |
35504 | ||
35505 | socklen_t len; | |
35506 | getsockname(0, 0, &len); | |
35507 | ||
35508 | ; | |
35509 | return 0; | |
35510 | } | |
35511 | _ACEOF | |
35512 | rm -f conftest.$ac_objext | |
35513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35514 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35515 | ac_status=$? |
ac1cb8d3 VS |
35516 | grep -v '^ *+' conftest.er1 >conftest.err |
35517 | rm -f conftest.er1 | |
35518 | cat conftest.err >&5 | |
a848cd7e SC |
35519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35520 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35521 | { ac_try='test -z "$ac_c_werror_flag" |
35522 | || test ! -s conftest.err' | |
35523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35524 | (eval $ac_try) 2>&5 | |
35525 | ac_status=$? | |
35526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35527 | (exit $ac_status); }; } && | |
35528 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35530 | (eval $ac_try) 2>&5 | |
35531 | ac_status=$? | |
35532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35533 | (exit $ac_status); }; }; then | |
35534 | wx_cv_type_getsockname3=socklen_t | |
35535 | else | |
35536 | echo "$as_me: failed program was:" >&5 | |
35537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35538 | ||
35539 | ||
35540 | CFLAGS_OLD="$CFLAGS" | |
35541 | if test "$GCC" = yes ; then | |
35542 | CFLAGS="$CFLAGS -Werror" | |
35543 | fi | |
35544 | ||
35545 | cat >conftest.$ac_ext <<_ACEOF | |
35546 | /* confdefs.h. */ | |
35547 | _ACEOF | |
35548 | cat confdefs.h >>conftest.$ac_ext | |
35549 | cat >>conftest.$ac_ext <<_ACEOF | |
35550 | /* end confdefs.h. */ | |
35551 | ||
35552 | #include <sys/types.h> | |
35553 | #include <sys/socket.h> | |
35554 | ||
35555 | int | |
35556 | main () | |
35557 | { | |
35558 | ||
35559 | size_t len; | |
35560 | getsockname(0, 0, &len); | |
35561 | ||
35562 | ; | |
35563 | return 0; | |
35564 | } | |
35565 | _ACEOF | |
35566 | rm -f conftest.$ac_objext | |
35567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35568 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35569 | ac_status=$? |
ac1cb8d3 VS |
35570 | grep -v '^ *+' conftest.er1 >conftest.err |
35571 | rm -f conftest.er1 | |
35572 | cat conftest.err >&5 | |
a848cd7e SC |
35573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35574 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35575 | { ac_try='test -z "$ac_c_werror_flag" |
35576 | || test ! -s conftest.err' | |
35577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35578 | (eval $ac_try) 2>&5 | |
35579 | ac_status=$? | |
35580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35581 | (exit $ac_status); }; } && | |
35582 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35584 | (eval $ac_try) 2>&5 | |
35585 | ac_status=$? | |
35586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35587 | (exit $ac_status); }; }; then | |
35588 | wx_cv_type_getsockname3=size_t | |
35589 | else | |
35590 | echo "$as_me: failed program was:" >&5 | |
35591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35592 | ||
35593 | cat >conftest.$ac_ext <<_ACEOF | |
35594 | /* confdefs.h. */ | |
35595 | _ACEOF | |
35596 | cat confdefs.h >>conftest.$ac_ext | |
35597 | cat >>conftest.$ac_ext <<_ACEOF | |
35598 | /* end confdefs.h. */ | |
35599 | ||
35600 | #include <sys/types.h> | |
35601 | #include <sys/socket.h> | |
35602 | ||
35603 | int | |
35604 | main () | |
35605 | { | |
35606 | ||
35607 | int len; | |
35608 | getsockname(0, 0, &len); | |
35609 | ||
35610 | ; | |
35611 | return 0; | |
35612 | } | |
35613 | _ACEOF | |
35614 | rm -f conftest.$ac_objext | |
35615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35616 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35617 | ac_status=$? |
ac1cb8d3 VS |
35618 | grep -v '^ *+' conftest.er1 >conftest.err |
35619 | rm -f conftest.er1 | |
35620 | cat conftest.err >&5 | |
a848cd7e SC |
35621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35622 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35623 | { ac_try='test -z "$ac_c_werror_flag" |
35624 | || test ! -s conftest.err' | |
35625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35626 | (eval $ac_try) 2>&5 | |
35627 | ac_status=$? | |
35628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35629 | (exit $ac_status); }; } && | |
35630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35632 | (eval $ac_try) 2>&5 | |
35633 | ac_status=$? | |
35634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35635 | (exit $ac_status); }; }; then | |
35636 | wx_cv_type_getsockname3=int | |
35637 | else | |
35638 | echo "$as_me: failed program was:" >&5 | |
35639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35640 | ||
35641 | wx_cv_type_getsockname3=unknown | |
35642 | ||
35643 | fi | |
ac1cb8d3 | 35644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35645 | |
35646 | fi | |
ac1cb8d3 | 35647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35648 | |
35649 | CFLAGS="$CFLAGS_OLD" | |
35650 | ||
35651 | ||
35652 | fi | |
ac1cb8d3 | 35653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35654 | |
35655 | fi | |
35656 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35657 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35658 | ||
35659 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35660 | wxUSE_SOCKETS=no | |
35661 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35662 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35663 | else | |
35664 | cat >>confdefs.h <<_ACEOF | |
35665 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35666 | _ACEOF | |
35667 | ||
35668 | fi | |
35669 | fi | |
35670 | fi | |
35671 | ||
35672 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35673 | cat >>confdefs.h <<\_ACEOF | |
35674 | #define wxUSE_SOCKETS 1 | |
35675 | _ACEOF | |
35676 | ||
35677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35678 | fi | |
35679 | ||
35680 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35681 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35682 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35683 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35684 | wxUSE_PROTOCOL=no | |
35685 | fi | |
35686 | fi | |
35687 | ||
35688 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35689 | cat >>confdefs.h <<\_ACEOF | |
35690 | #define wxUSE_PROTOCOL 1 | |
35691 | _ACEOF | |
35692 | ||
35693 | ||
35694 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35695 | cat >>confdefs.h <<\_ACEOF | |
35696 | #define wxUSE_PROTOCOL_HTTP 1 | |
35697 | _ACEOF | |
35698 | ||
35699 | fi | |
35700 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35701 | cat >>confdefs.h <<\_ACEOF | |
35702 | #define wxUSE_PROTOCOL_FTP 1 | |
35703 | _ACEOF | |
35704 | ||
35705 | fi | |
35706 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35707 | cat >>confdefs.h <<\_ACEOF | |
35708 | #define wxUSE_PROTOCOL_FILE 1 | |
35709 | _ACEOF | |
35710 | ||
35711 | fi | |
35712 | else | |
35713 | if test "$wxUSE_FS_INET" = "yes"; then | |
35714 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35715 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35716 | wxUSE_FS_INET="no" | |
35717 | fi | |
35718 | fi | |
35719 | ||
35720 | if test "$wxUSE_URL" = "yes"; then | |
35721 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35722 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35723 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35724 | wxUSE_URL=no | |
35725 | fi | |
35726 | if test "$wxUSE_URL" = "yes"; then | |
35727 | cat >>confdefs.h <<\_ACEOF | |
35728 | #define wxUSE_URL 1 | |
35729 | _ACEOF | |
35730 | ||
35731 | fi | |
35732 | fi | |
35733 | ||
35734 | if test "$wxUSE_FS_INET" = "yes"; then | |
35735 | cat >>confdefs.h <<\_ACEOF | |
35736 | #define wxUSE_FS_INET 1 | |
35737 | _ACEOF | |
35738 | ||
35739 | fi | |
35740 | ||
35741 | ||
35742 | if test "$wxUSE_GUI" = "yes"; then | |
35743 | ||
35744 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35745 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35746 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35747 | wxUSE_JOYSTICK=no | |
35748 | fi | |
35749 | ||
35750 | if test "$TOOLKIT" != "MSW"; then | |
35751 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35752 | ||
35753 | for ac_header in linux/joystick.h | |
35754 | do | |
35755 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35757 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35758 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35761 | fi | |
35762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35764 | else | |
35765 | # Is the header compilable? | |
35766 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35767 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35768 | cat >conftest.$ac_ext <<_ACEOF | |
35769 | /* confdefs.h. */ | |
35770 | _ACEOF | |
35771 | cat confdefs.h >>conftest.$ac_ext | |
35772 | cat >>conftest.$ac_ext <<_ACEOF | |
35773 | /* end confdefs.h. */ | |
35774 | $ac_includes_default | |
35775 | #include <$ac_header> | |
35776 | _ACEOF | |
35777 | rm -f conftest.$ac_objext | |
35778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35779 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35780 | ac_status=$? |
ac1cb8d3 VS |
35781 | grep -v '^ *+' conftest.er1 >conftest.err |
35782 | rm -f conftest.er1 | |
35783 | cat conftest.err >&5 | |
a848cd7e SC |
35784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35785 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35786 | { ac_try='test -z "$ac_c_werror_flag" |
35787 | || test ! -s conftest.err' | |
35788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35789 | (eval $ac_try) 2>&5 | |
35790 | ac_status=$? | |
35791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35792 | (exit $ac_status); }; } && | |
35793 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35795 | (eval $ac_try) 2>&5 | |
35796 | ac_status=$? | |
35797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35798 | (exit $ac_status); }; }; then | |
35799 | ac_header_compiler=yes | |
35800 | else | |
35801 | echo "$as_me: failed program was:" >&5 | |
35802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35803 | ||
35804 | ac_header_compiler=no | |
35805 | fi | |
ac1cb8d3 | 35806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35807 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35808 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35809 | ||
35810 | # Is the header present? | |
35811 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35812 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35813 | cat >conftest.$ac_ext <<_ACEOF | |
35814 | /* confdefs.h. */ | |
35815 | _ACEOF | |
35816 | cat confdefs.h >>conftest.$ac_ext | |
35817 | cat >>conftest.$ac_ext <<_ACEOF | |
35818 | /* end confdefs.h. */ | |
35819 | #include <$ac_header> | |
35820 | _ACEOF | |
35821 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35822 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35823 | ac_status=$? | |
35824 | grep -v '^ *+' conftest.er1 >conftest.err | |
35825 | rm -f conftest.er1 | |
35826 | cat conftest.err >&5 | |
35827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35828 | (exit $ac_status); } >/dev/null; then | |
35829 | if test -s conftest.err; then | |
35830 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35831 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35832 | else |
35833 | ac_cpp_err= | |
35834 | fi | |
35835 | else | |
35836 | ac_cpp_err=yes | |
35837 | fi | |
35838 | if test -z "$ac_cpp_err"; then | |
35839 | ac_header_preproc=yes | |
35840 | else | |
35841 | echo "$as_me: failed program was:" >&5 | |
35842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35843 | ||
35844 | ac_header_preproc=no | |
35845 | fi | |
35846 | rm -f conftest.err conftest.$ac_ext | |
35847 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35848 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35849 | ||
35850 | # So? What about this header? | |
ac1cb8d3 VS |
35851 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35852 | yes:no: ) | |
a848cd7e SC |
35853 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35854 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35855 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35856 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35857 | ac_header_preproc=yes | |
a848cd7e | 35858 | ;; |
ac1cb8d3 | 35859 | no:yes:* ) |
a848cd7e SC |
35860 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35861 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35862 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35863 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35864 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35865 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35866 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35867 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35868 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35869 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35870 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35871 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35872 | ( |
35873 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35874 | ## ----------------------------------------- ## |
35875 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35876 | ## ----------------------------------------- ## | |
a848cd7e SC |
35877 | _ASBOX |
35878 | ) | | |
35879 | sed "s/^/$as_me: WARNING: /" >&2 | |
35880 | ;; | |
35881 | esac | |
35882 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35883 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35884 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35886 | else | |
ac1cb8d3 | 35887 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35888 | fi |
35889 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35890 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35891 | ||
35892 | fi | |
35893 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35894 | cat >>confdefs.h <<_ACEOF | |
35895 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35896 | _ACEOF | |
35897 | ||
35898 | fi | |
35899 | ||
35900 | done | |
35901 | ||
35902 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
35903 | wxUSE_JOYSTICK=no | |
35904 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
35905 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
35906 | fi | |
35907 | fi | |
35908 | fi | |
35909 | ||
35910 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35911 | cat >>confdefs.h <<\_ACEOF | |
35912 | #define wxUSE_JOYSTICK 1 | |
35913 | _ACEOF | |
35914 | ||
35915 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
35916 | fi | |
35917 | fi | |
35918 | ||
35919 | ||
35920 | ||
35921 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
35922 | cat >>confdefs.h <<\_ACEOF | |
35923 | #define wxUSE_FONTMAP 1 | |
35924 | _ACEOF | |
35925 | ||
35926 | fi | |
35927 | ||
35928 | if test "$wxUSE_UNICODE" = "yes" ; then | |
35929 | cat >>confdefs.h <<\_ACEOF | |
35930 | #define wxUSE_UNICODE 1 | |
35931 | _ACEOF | |
35932 | ||
35933 | ||
35934 | if test "$USE_WIN32" != 1; then | |
35935 | wxUSE_UNICODE_MSLU=no | |
35936 | fi | |
35937 | ||
35938 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
35939 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
35940 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
35941 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
35942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35943 | else | |
35944 | ac_check_lib_save_LIBS=$LIBS | |
35945 | LIBS="-lunicows $LIBS" | |
35946 | cat >conftest.$ac_ext <<_ACEOF | |
35947 | /* confdefs.h. */ | |
35948 | _ACEOF | |
35949 | cat confdefs.h >>conftest.$ac_ext | |
35950 | cat >>conftest.$ac_ext <<_ACEOF | |
35951 | /* end confdefs.h. */ | |
35952 | ||
35953 | ||
35954 | int | |
35955 | main () | |
35956 | { | |
35957 | main (); | |
35958 | ; | |
35959 | return 0; | |
35960 | } | |
35961 | _ACEOF | |
35962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35964 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35965 | ac_status=$? |
ac1cb8d3 VS |
35966 | grep -v '^ *+' conftest.er1 >conftest.err |
35967 | rm -f conftest.er1 | |
35968 | cat conftest.err >&5 | |
a848cd7e SC |
35969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35970 | (exit $ac_status); } && | |
ac1cb8d3 VS |
35971 | { ac_try='test -z "$ac_c_werror_flag" |
35972 | || test ! -s conftest.err' | |
35973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35974 | (eval $ac_try) 2>&5 | |
35975 | ac_status=$? | |
35976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35977 | (exit $ac_status); }; } && | |
35978 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35980 | (eval $ac_try) 2>&5 | |
35981 | ac_status=$? | |
35982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35983 | (exit $ac_status); }; }; then | |
35984 | ac_cv_lib_unicows_main=yes | |
35985 | else | |
35986 | echo "$as_me: failed program was:" >&5 | |
35987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35988 | ||
35989 | ac_cv_lib_unicows_main=no | |
35990 | fi | |
ac1cb8d3 VS |
35991 | rm -f conftest.err conftest.$ac_objext \ |
35992 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35993 | LIBS=$ac_check_lib_save_LIBS |
35994 | fi | |
35995 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
35996 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
35997 | if test $ac_cv_lib_unicows_main = yes; then | |
35998 | ||
35999 | cat >>confdefs.h <<\_ACEOF | |
36000 | #define wxUSE_UNICODE_MSLU 1 | |
36001 | _ACEOF | |
36002 | ||
36003 | ||
36004 | else | |
36005 | ||
36006 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36007 | Applications will only run on Windows NT/2000/XP!" >&5 | |
36008 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36009 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
36010 | wxUSE_UNICODE_MSLU=no | |
36011 | ||
36012 | fi | |
36013 | ||
36014 | fi | |
36015 | fi | |
36016 | ||
36017 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
36018 | cat >>confdefs.h <<\_ACEOF | |
36019 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
36020 | _ACEOF | |
36021 | ||
36022 | fi | |
36023 | ||
36024 | ||
36025 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
36026 | cat >>confdefs.h <<\_ACEOF | |
36027 | #define wxUSE_POSTSCRIPT 1 | |
36028 | _ACEOF | |
36029 | ||
36030 | fi | |
36031 | ||
36032 | cat >>confdefs.h <<\_ACEOF | |
36033 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
36034 | _ACEOF | |
36035 | ||
36036 | ||
36037 | cat >>confdefs.h <<\_ACEOF | |
36038 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
36039 | _ACEOF | |
36040 | ||
36041 | ||
36042 | ||
36043 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
36044 | cat >>confdefs.h <<\_ACEOF | |
36045 | #define wxUSE_CONSTRAINTS 1 | |
36046 | _ACEOF | |
36047 | ||
36048 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36049 | fi | |
36050 | ||
8a7b1113 VZ |
36051 | if test "$wxUSE_MDI" = "yes"; then |
36052 | cat >>confdefs.h <<\_ACEOF | |
36053 | #define wxUSE_MDI 1 | |
36054 | _ACEOF | |
36055 | ||
36056 | ||
36057 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36058 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36059 | #define wxUSE_MDI_ARCHITECTURE 1 |
36060 | _ACEOF | |
36061 | ||
8a7b1113 VZ |
36062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
36063 | fi | |
a848cd7e SC |
36064 | fi |
36065 | ||
36066 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
36067 | cat >>confdefs.h <<\_ACEOF | |
36068 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
36069 | _ACEOF | |
36070 | ||
36071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36072 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36073 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36074 | fi | |
36075 | fi | |
36076 | ||
36077 | if test "$wxUSE_HELP" = "yes"; then | |
36078 | cat >>confdefs.h <<\_ACEOF | |
36079 | #define wxUSE_HELP 1 | |
36080 | _ACEOF | |
36081 | ||
36082 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
36083 | ||
36084 | if test "$wxUSE_MSW" = 1; then | |
36085 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
36086 | cat >>confdefs.h <<\_ACEOF | |
36087 | #define wxUSE_MS_HTML_HELP 1 | |
36088 | _ACEOF | |
36089 | ||
36090 | fi | |
36091 | fi | |
36092 | ||
36093 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36094 | if test "$wxUSE_HTML" = "yes"; then | |
36095 | cat >>confdefs.h <<\_ACEOF | |
36096 | #define wxUSE_WXHTML_HELP 1 | |
36097 | _ACEOF | |
36098 | ||
36099 | else | |
36100 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
36101 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
36102 | wxUSE_WXHTML_HELP=no | |
36103 | fi | |
36104 | fi | |
36105 | fi | |
36106 | ||
36107 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36108 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36109 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
36110 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
36111 | else | |
36112 | cat >>confdefs.h <<\_ACEOF | |
36113 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
36114 | _ACEOF | |
36115 | ||
36116 | fi | |
36117 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36118 | fi | |
36119 | ||
36120 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
36121 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36122 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36123 | { (exit 1); exit 1; }; } | |
36124 | fi | |
36125 | ||
36126 | ||
36127 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
36128 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
36129 | -o "$wxUSE_OLE" = "yes" \ | |
36130 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36131 | ||
36132 | for ac_header in ole2.h | |
36133 | do | |
36134 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36136 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36140 | fi | |
36141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36142 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36143 | else | |
36144 | # Is the header compilable? | |
36145 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36146 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36147 | cat >conftest.$ac_ext <<_ACEOF | |
36148 | /* confdefs.h. */ | |
36149 | _ACEOF | |
36150 | cat confdefs.h >>conftest.$ac_ext | |
36151 | cat >>conftest.$ac_ext <<_ACEOF | |
36152 | /* end confdefs.h. */ | |
36153 | $ac_includes_default | |
36154 | #include <$ac_header> | |
36155 | _ACEOF | |
36156 | rm -f conftest.$ac_objext | |
36157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36158 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36159 | ac_status=$? |
ac1cb8d3 VS |
36160 | grep -v '^ *+' conftest.er1 >conftest.err |
36161 | rm -f conftest.er1 | |
36162 | cat conftest.err >&5 | |
a848cd7e SC |
36163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36164 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36165 | { ac_try='test -z "$ac_c_werror_flag" |
36166 | || test ! -s conftest.err' | |
36167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36168 | (eval $ac_try) 2>&5 | |
36169 | ac_status=$? | |
36170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36171 | (exit $ac_status); }; } && | |
36172 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36174 | (eval $ac_try) 2>&5 | |
36175 | ac_status=$? | |
36176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36177 | (exit $ac_status); }; }; then | |
36178 | ac_header_compiler=yes | |
36179 | else | |
36180 | echo "$as_me: failed program was:" >&5 | |
36181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36182 | ||
36183 | ac_header_compiler=no | |
36184 | fi | |
ac1cb8d3 | 36185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36186 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36187 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36188 | ||
36189 | # Is the header present? | |
36190 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36191 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36192 | cat >conftest.$ac_ext <<_ACEOF | |
36193 | /* confdefs.h. */ | |
36194 | _ACEOF | |
36195 | cat confdefs.h >>conftest.$ac_ext | |
36196 | cat >>conftest.$ac_ext <<_ACEOF | |
36197 | /* end confdefs.h. */ | |
36198 | #include <$ac_header> | |
36199 | _ACEOF | |
36200 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36201 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36202 | ac_status=$? | |
36203 | grep -v '^ *+' conftest.er1 >conftest.err | |
36204 | rm -f conftest.er1 | |
36205 | cat conftest.err >&5 | |
36206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36207 | (exit $ac_status); } >/dev/null; then | |
36208 | if test -s conftest.err; then | |
36209 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36210 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36211 | else |
36212 | ac_cpp_err= | |
36213 | fi | |
36214 | else | |
36215 | ac_cpp_err=yes | |
36216 | fi | |
36217 | if test -z "$ac_cpp_err"; then | |
36218 | ac_header_preproc=yes | |
36219 | else | |
36220 | echo "$as_me: failed program was:" >&5 | |
36221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36222 | ||
36223 | ac_header_preproc=no | |
36224 | fi | |
36225 | rm -f conftest.err conftest.$ac_ext | |
36226 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36227 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36228 | ||
36229 | # So? What about this header? | |
ac1cb8d3 VS |
36230 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36231 | yes:no: ) | |
a848cd7e SC |
36232 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36233 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36235 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36236 | ac_header_preproc=yes | |
a848cd7e | 36237 | ;; |
ac1cb8d3 | 36238 | no:yes:* ) |
a848cd7e SC |
36239 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36240 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36241 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36242 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36243 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36244 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36245 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36246 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36248 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36249 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36250 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36251 | ( |
36252 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36253 | ## ----------------------------------------- ## |
36254 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36255 | ## ----------------------------------------- ## | |
a848cd7e SC |
36256 | _ASBOX |
36257 | ) | | |
36258 | sed "s/^/$as_me: WARNING: /" >&2 | |
36259 | ;; | |
36260 | esac | |
36261 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36262 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36263 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36265 | else | |
ac1cb8d3 | 36266 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36267 | fi |
36268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36270 | ||
36271 | fi | |
36272 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36273 | cat >>confdefs.h <<_ACEOF | |
36274 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36275 | _ACEOF | |
36276 | ||
36277 | fi | |
36278 | ||
36279 | done | |
36280 | ||
36281 | ||
36282 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36283 | if test "$GCC" = yes ; then | |
36284 | ||
36285 | ||
36286 | ac_ext=cc | |
36287 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36288 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36289 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36290 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36291 | ||
36292 | ||
36293 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36294 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36295 | cat >conftest.$ac_ext <<_ACEOF | |
36296 | /* confdefs.h. */ | |
36297 | _ACEOF | |
36298 | cat confdefs.h >>conftest.$ac_ext | |
36299 | cat >>conftest.$ac_ext <<_ACEOF | |
36300 | /* end confdefs.h. */ | |
36301 | #include <windows.h> | |
36302 | #include <ole2.h> | |
36303 | int | |
36304 | main () | |
36305 | { | |
36306 | ||
36307 | ; | |
36308 | return 0; | |
36309 | } | |
36310 | _ACEOF | |
36311 | rm -f conftest.$ac_objext | |
36312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36313 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36314 | ac_status=$? |
ac1cb8d3 VS |
36315 | grep -v '^ *+' conftest.er1 >conftest.err |
36316 | rm -f conftest.er1 | |
36317 | cat conftest.err >&5 | |
a848cd7e SC |
36318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36319 | (exit $ac_status); } && | |
ac1cb8d3 VS |
36320 | { ac_try='test -z "$ac_cxx_werror_flag" |
36321 | || test ! -s conftest.err' | |
36322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36323 | (eval $ac_try) 2>&5 | |
36324 | ac_status=$? | |
36325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36326 | (exit $ac_status); }; } && | |
36327 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36329 | (eval $ac_try) 2>&5 | |
36330 | ac_status=$? | |
36331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36332 | (exit $ac_status); }; }; then | |
36333 | echo "$as_me:$LINENO: result: no" >&5 | |
36334 | echo "${ECHO_T}no" >&6 | |
36335 | else | |
36336 | echo "$as_me: failed program was:" >&5 | |
36337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36338 | ||
36339 | echo "$as_me:$LINENO: result: yes" >&5 | |
36340 | echo "${ECHO_T}yes" >&6 | |
36341 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36342 | fi | |
ac1cb8d3 | 36343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36344 | ac_ext=c |
36345 | ac_cpp='$CPP $CPPFLAGS' | |
36346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36349 | ||
36350 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
36351 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
36352 | if test "$wxUSE_OLE" = "yes" ; then | |
36353 | cat >>confdefs.h <<\_ACEOF | |
36354 | #define wxUSE_OLE 1 | |
36355 | _ACEOF | |
36356 | ||
36357 | fi | |
36358 | fi | |
36359 | ||
36360 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36361 | cat >>confdefs.h <<\_ACEOF | |
36362 | #define wxUSE_DATAOBJ 1 | |
36363 | _ACEOF | |
36364 | ||
36365 | fi | |
36366 | else | |
36367 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36368 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36369 | ||
36370 | wxUSE_CLIPBOARD=no | |
36371 | wxUSE_DRAG_AND_DROP=no | |
36372 | wxUSE_DATAOBJ=no | |
36373 | wxUSE_OLE=no | |
36374 | fi | |
36375 | ||
36376 | if test "$wxUSE_METAFILE" = "yes"; then | |
36377 | cat >>confdefs.h <<\_ACEOF | |
36378 | #define wxUSE_METAFILE 1 | |
36379 | _ACEOF | |
36380 | ||
36381 | ||
36382 | cat >>confdefs.h <<\_ACEOF | |
36383 | #define wxUSE_ENH_METAFILE 1 | |
36384 | _ACEOF | |
36385 | ||
36386 | fi | |
36387 | fi | |
36388 | ||
36389 | if test "$wxUSE_IPC" = "yes"; then | |
36390 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36391 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36392 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36393 | fi |
36394 | ||
36395 | cat >>confdefs.h <<\_ACEOF | |
36396 | #define wxUSE_IPC 1 | |
36397 | _ACEOF | |
36398 | ||
36399 | fi | |
36400 | ||
36401 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36402 | if test "$wxUSE_MGL" = 1; then | |
36403 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36404 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36405 | wxUSE_CLIPBOARD=no | |
36406 | fi | |
36407 | ||
36408 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36409 | cat >>confdefs.h <<\_ACEOF | |
36410 | #define wxUSE_CLIPBOARD 1 | |
36411 | _ACEOF | |
36412 | ||
36413 | ||
36414 | cat >>confdefs.h <<\_ACEOF | |
36415 | #define wxUSE_DATAOBJ 1 | |
36416 | _ACEOF | |
36417 | ||
36418 | fi | |
36419 | fi | |
36420 | ||
36421 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36422 | if test "$wxUSE_GTK" = 1; then | |
36423 | if test "$WXGTK12" != 1; then | |
36424 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36425 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36426 | wxUSE_DRAG_AND_DROP=no | |
36427 | fi | |
36428 | fi | |
36429 | ||
36430 | if test "$wxUSE_MOTIF" = 1; then | |
36431 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36432 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36433 | wxUSE_DRAG_AND_DROP=no | |
36434 | fi | |
36435 | ||
36436 | if test "$wxUSE_X11" = 1; then | |
36437 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36438 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36439 | wxUSE_DRAG_AND_DROP=no | |
36440 | fi | |
36441 | ||
36442 | if test "$wxUSE_MGL" = 1; then | |
36443 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36444 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36445 | wxUSE_DRAG_AND_DROP=no | |
36446 | fi | |
36447 | ||
36448 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36449 | cat >>confdefs.h <<\_ACEOF | |
36450 | #define wxUSE_DRAG_AND_DROP 1 | |
36451 | _ACEOF | |
36452 | ||
36453 | fi | |
36454 | ||
36455 | fi | |
36456 | ||
36457 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36459 | fi | |
36460 | ||
36461 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36462 | cat >>confdefs.h <<\_ACEOF | |
36463 | #define wxUSE_SPLINES 1 | |
36464 | _ACEOF | |
36465 | ||
36466 | fi | |
36467 | ||
36468 | ||
36469 | USES_CONTROLS=0 | |
36470 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36471 | USES_CONTROLS=1 | |
36472 | fi | |
36473 | ||
36474 | if test "$wxUSE_ACCEL" = "yes"; then | |
36475 | cat >>confdefs.h <<\_ACEOF | |
36476 | #define wxUSE_ACCEL 1 | |
36477 | _ACEOF | |
36478 | ||
36479 | USES_CONTROLS=1 | |
36480 | fi | |
36481 | ||
36482 | if test "$wxUSE_BUTTON" = "yes"; then | |
36483 | cat >>confdefs.h <<\_ACEOF | |
36484 | #define wxUSE_BUTTON 1 | |
36485 | _ACEOF | |
36486 | ||
36487 | USES_CONTROLS=1 | |
36488 | fi | |
36489 | ||
36490 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36491 | cat >>confdefs.h <<\_ACEOF | |
36492 | #define wxUSE_BMPBUTTON 1 | |
36493 | _ACEOF | |
36494 | ||
36495 | USES_CONTROLS=1 | |
36496 | fi | |
36497 | ||
36498 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36499 | cat >>confdefs.h <<\_ACEOF | |
36500 | #define wxUSE_CALENDARCTRL 1 | |
36501 | _ACEOF | |
36502 | ||
36503 | USES_CONTROLS=1 | |
36504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36505 | fi | |
36506 | ||
36507 | if test "$wxUSE_CARET" = "yes"; then | |
36508 | cat >>confdefs.h <<\_ACEOF | |
36509 | #define wxUSE_CARET 1 | |
36510 | _ACEOF | |
36511 | ||
36512 | USES_CONTROLS=1 | |
36513 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36514 | fi | |
36515 | ||
36516 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36517 | cat >>confdefs.h <<\_ACEOF | |
36518 | #define wxUSE_COMBOBOX 1 | |
36519 | _ACEOF | |
36520 | ||
36521 | USES_CONTROLS=1 | |
36522 | fi | |
36523 | ||
36524 | if test "$wxUSE_CHOICE" = "yes"; then | |
36525 | cat >>confdefs.h <<\_ACEOF | |
36526 | #define wxUSE_CHOICE 1 | |
36527 | _ACEOF | |
36528 | ||
36529 | USES_CONTROLS=1 | |
36530 | fi | |
36531 | ||
36532 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
36533 | cat >>confdefs.h <<\_ACEOF | |
36534 | #define wxUSE_CHECKBOX 1 | |
36535 | _ACEOF | |
36536 | ||
36537 | USES_CONTROLS=1 | |
36538 | fi | |
36539 | ||
36540 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36541 | cat >>confdefs.h <<\_ACEOF | |
36542 | #define wxUSE_CHECKLISTBOX 1 | |
36543 | _ACEOF | |
36544 | ||
36545 | USES_CONTROLS=1 | |
36546 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36547 | fi | |
36548 | ||
36549 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36550 | cat >>confdefs.h <<\_ACEOF | |
36551 | #define wxUSE_DISPLAY 1 | |
36552 | _ACEOF | |
36553 | ||
36554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36555 | fi | |
36556 | ||
36557 | if test "$wxUSE_GAUGE" = "yes"; then | |
36558 | cat >>confdefs.h <<\_ACEOF | |
36559 | #define wxUSE_GAUGE 1 | |
36560 | _ACEOF | |
36561 | ||
36562 | USES_CONTROLS=1 | |
36563 | fi | |
36564 | ||
36565 | if test "$wxUSE_GRID" = "yes"; then | |
36566 | cat >>confdefs.h <<\_ACEOF | |
36567 | #define wxUSE_GRID 1 | |
36568 | _ACEOF | |
36569 | ||
36570 | USES_CONTROLS=1 | |
36571 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36572 | fi | |
36573 | ||
36574 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36575 | cat >>confdefs.h <<\_ACEOF | |
36576 | #define wxUSE_IMAGLIST 1 | |
36577 | _ACEOF | |
36578 | ||
36579 | fi | |
36580 | ||
36581 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36582 | cat >>confdefs.h <<\_ACEOF | |
36583 | #define wxUSE_LISTBOOK 1 | |
36584 | _ACEOF | |
36585 | ||
36586 | USES_CONTROLS=1 | |
36587 | fi | |
36588 | ||
36589 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36590 | cat >>confdefs.h <<\_ACEOF | |
36591 | #define wxUSE_LISTBOX 1 | |
36592 | _ACEOF | |
36593 | ||
36594 | USES_CONTROLS=1 | |
36595 | fi | |
36596 | ||
36597 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36598 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36599 | cat >>confdefs.h <<\_ACEOF | |
36600 | #define wxUSE_LISTCTRL 1 | |
36601 | _ACEOF | |
36602 | ||
36603 | USES_CONTROLS=1 | |
36604 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36605 | else | |
36606 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36607 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36608 | fi | |
36609 | fi | |
36610 | ||
36611 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36612 | cat >>confdefs.h <<\_ACEOF | |
36613 | #define wxUSE_NOTEBOOK 1 | |
36614 | _ACEOF | |
36615 | ||
36616 | USES_CONTROLS=1 | |
36617 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36618 | fi | |
36619 | ||
36620 | ||
36621 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36622 | cat >>confdefs.h <<\_ACEOF | |
36623 | #define wxUSE_RADIOBOX 1 | |
36624 | _ACEOF | |
36625 | ||
36626 | USES_CONTROLS=1 | |
36627 | fi | |
36628 | ||
36629 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36630 | cat >>confdefs.h <<\_ACEOF | |
36631 | #define wxUSE_RADIOBTN 1 | |
36632 | _ACEOF | |
36633 | ||
36634 | USES_CONTROLS=1 | |
36635 | fi | |
36636 | ||
36637 | if test "$wxUSE_SASH" = "yes"; then | |
36638 | cat >>confdefs.h <<\_ACEOF | |
36639 | #define wxUSE_SASH 1 | |
36640 | _ACEOF | |
36641 | ||
36642 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36643 | fi | |
36644 | ||
36645 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36646 | cat >>confdefs.h <<\_ACEOF | |
36647 | #define wxUSE_SCROLLBAR 1 | |
36648 | _ACEOF | |
36649 | ||
36650 | USES_CONTROLS=1 | |
36651 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36652 | fi | |
36653 | ||
36654 | if test "$wxUSE_SLIDER" = "yes"; then | |
36655 | cat >>confdefs.h <<\_ACEOF | |
36656 | #define wxUSE_SLIDER 1 | |
36657 | _ACEOF | |
36658 | ||
36659 | USES_CONTROLS=1 | |
36660 | fi | |
36661 | ||
36662 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36663 | cat >>confdefs.h <<\_ACEOF | |
36664 | #define wxUSE_SPINBTN 1 | |
36665 | _ACEOF | |
36666 | ||
36667 | USES_CONTROLS=1 | |
36668 | fi | |
36669 | ||
36670 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36671 | cat >>confdefs.h <<\_ACEOF | |
36672 | #define wxUSE_SPINCTRL 1 | |
36673 | _ACEOF | |
36674 | ||
36675 | USES_CONTROLS=1 | |
36676 | fi | |
36677 | ||
36678 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36679 | cat >>confdefs.h <<\_ACEOF | |
36680 | #define wxUSE_SPLITTER 1 | |
36681 | _ACEOF | |
36682 | ||
36683 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36684 | fi | |
36685 | ||
36686 | if test "$wxUSE_STATBMP" = "yes"; then | |
36687 | cat >>confdefs.h <<\_ACEOF | |
36688 | #define wxUSE_STATBMP 1 | |
36689 | _ACEOF | |
36690 | ||
36691 | USES_CONTROLS=1 | |
36692 | fi | |
36693 | ||
36694 | if test "$wxUSE_STATBOX" = "yes"; then | |
36695 | cat >>confdefs.h <<\_ACEOF | |
36696 | #define wxUSE_STATBOX 1 | |
36697 | _ACEOF | |
36698 | ||
36699 | USES_CONTROLS=1 | |
36700 | fi | |
36701 | ||
36702 | if test "$wxUSE_STATTEXT" = "yes"; then | |
36703 | cat >>confdefs.h <<\_ACEOF | |
36704 | #define wxUSE_STATTEXT 1 | |
36705 | _ACEOF | |
36706 | ||
36707 | USES_CONTROLS=1 | |
36708 | fi | |
36709 | ||
36710 | if test "$wxUSE_STATLINE" = "yes"; then | |
36711 | cat >>confdefs.h <<\_ACEOF | |
36712 | #define wxUSE_STATLINE 1 | |
36713 | _ACEOF | |
36714 | ||
36715 | USES_CONTROLS=1 | |
36716 | fi | |
36717 | ||
36718 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
36719 | cat >>confdefs.h <<\_ACEOF | |
36720 | #define wxUSE_STATUSBAR 1 | |
36721 | _ACEOF | |
36722 | ||
36723 | USES_CONTROLS=1 | |
36724 | ||
36725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
36726 | fi | |
36727 | ||
36728 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
36729 | cat >>confdefs.h <<\_ACEOF | |
36730 | #define wxUSE_TAB_DIALOG 1 | |
36731 | _ACEOF | |
36732 | ||
36733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36734 | fi | |
36735 | ||
36736 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
36737 | cat >>confdefs.h <<\_ACEOF | |
36738 | #define wxUSE_TEXTCTRL 1 | |
36739 | _ACEOF | |
36740 | ||
36741 | USES_CONTROLS=1 | |
36742 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36743 | fi | |
36744 | ||
36745 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36746 | if test "$wxUSE_COCOA" = 1 ; then | |
36747 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
36748 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
36749 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
36750 | else |
36751 | if test "$wxUSE_PM" = 1; then | |
36752 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
36753 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
36754 | wxUSE_TOGGLEBTN=no | |
36755 | fi | |
a848cd7e SC |
36756 | fi |
36757 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36758 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
36759 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
36760 | wxUSE_TOGGLEBTN=no | |
36761 | fi | |
36762 | ||
36763 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36764 | cat >>confdefs.h <<\_ACEOF | |
36765 | #define wxUSE_TOGGLEBTN 1 | |
36766 | _ACEOF | |
36767 | ||
36768 | USES_CONTROLS=1 | |
36769 | fi | |
36770 | fi | |
36771 | ||
36772 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
36773 | cat >>confdefs.h <<\_ACEOF | |
36774 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
36775 | _ACEOF | |
36776 | ||
36777 | wxUSE_TOOLBAR="yes" | |
36778 | USES_CONTROLS=1 | |
36779 | fi | |
36780 | ||
36781 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
36782 | cat >>confdefs.h <<\_ACEOF | |
36783 | #define wxUSE_TOOLBAR 1 | |
36784 | _ACEOF | |
36785 | ||
36786 | USES_CONTROLS=1 | |
36787 | ||
36788 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
36789 | wxUSE_TOOLBAR_NATIVE="yes" | |
36790 | fi | |
36791 | ||
36792 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
36793 | cat >>confdefs.h <<\_ACEOF | |
36794 | #define wxUSE_TOOLBAR_NATIVE 1 | |
36795 | _ACEOF | |
36796 | ||
36797 | USES_CONTROLS=1 | |
36798 | fi | |
36799 | ||
36800 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
36801 | fi | |
36802 | ||
36803 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
36804 | if test "$wxUSE_MOTIF" = 1; then | |
36805 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
36806 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
36807 | else | |
36808 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36809 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
36810 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
36811 | else | |
36812 | cat >>confdefs.h <<\_ACEOF | |
36813 | #define wxUSE_TOOLTIPS 1 | |
36814 | _ACEOF | |
36815 | ||
36816 | fi | |
36817 | fi | |
36818 | fi | |
36819 | ||
36820 | if test "$wxUSE_TREECTRL" = "yes"; then | |
36821 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36822 | cat >>confdefs.h <<\_ACEOF | |
36823 | #define wxUSE_TREECTRL 1 | |
36824 | _ACEOF | |
36825 | ||
36826 | USES_CONTROLS=1 | |
36827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
36828 | else | |
36829 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
36830 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36831 | fi | |
36832 | fi | |
36833 | ||
36834 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
36835 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
36836 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
36837 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
36838 | else | |
36839 | if test "$wxUSE_PM" = 1; then | |
36840 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
36841 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
36842 | else | |
36843 | cat >>confdefs.h <<\_ACEOF | |
36844 | #define wxUSE_POPUPWIN 1 | |
36845 | _ACEOF | |
36846 | ||
36847 | ||
36848 | USES_CONTROLS=1 | |
36849 | fi | |
36850 | fi | |
36851 | fi | |
36852 | ||
36853 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
36854 | if test "$wxUSE_PM" = 1; then | |
36855 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
36856 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
36857 | else | |
36858 | cat >>confdefs.h <<\_ACEOF | |
36859 | #define wxUSE_TIPWINDOW 1 | |
36860 | _ACEOF | |
36861 | ||
36862 | fi | |
36863 | fi | |
36864 | ||
36865 | if test "$USES_CONTROLS" = 1; then | |
36866 | cat >>confdefs.h <<\_ACEOF | |
36867 | #define wxUSE_CONTROLS 1 | |
36868 | _ACEOF | |
36869 | ||
36870 | fi | |
36871 | ||
36872 | ||
36873 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
36874 | cat >>confdefs.h <<\_ACEOF | |
36875 | #define wxUSE_ACCESSIBILITY 1 | |
36876 | _ACEOF | |
36877 | ||
36878 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36879 | fi | |
36880 | ||
36881 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
36882 | cat >>confdefs.h <<\_ACEOF | |
36883 | #define wxUSE_DRAGIMAGE 1 | |
36884 | _ACEOF | |
36885 | ||
36886 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36887 | fi | |
36888 | ||
36889 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
36890 | cat >>confdefs.h <<\_ACEOF | |
36891 | #define wxUSE_EXCEPTIONS 1 | |
36892 | _ACEOF | |
36893 | ||
36894 | fi | |
36895 | ||
36896 | USE_HTML=0 | |
36897 | if test "$wxUSE_HTML" = "yes"; then | |
36898 | cat >>confdefs.h <<\_ACEOF | |
36899 | #define wxUSE_HTML 1 | |
36900 | _ACEOF | |
36901 | ||
36902 | USE_HTML=1 | |
36903 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
36904 | if test "$wxUSE_MAC" = 1; then |
36905 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
36906 | fi | |
a848cd7e SC |
36907 | fi |
36908 | ||
646b6ec1 VS |
36909 | if test "$wxUSE_WEBKIT" = "yes"; then |
36910 | cat >>confdefs.h <<\_ACEOF | |
36911 | #define wxUSE_WEBKIT 1 | |
36912 | _ACEOF | |
36913 | ||
36914 | fi | |
36915 | ||
a848cd7e SC |
36916 | if test "$wxUSE_MENUS" = "yes"; then |
36917 | cat >>confdefs.h <<\_ACEOF | |
36918 | #define wxUSE_MENUS 1 | |
36919 | _ACEOF | |
36920 | ||
36921 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
36922 | fi | |
36923 | ||
36924 | if test "$wxUSE_METAFILE" = "yes"; then | |
36925 | cat >>confdefs.h <<\_ACEOF | |
36926 | #define wxUSE_METAFILE 1 | |
36927 | _ACEOF | |
36928 | ||
36929 | fi | |
36930 | ||
36931 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
36932 | cat >>confdefs.h <<\_ACEOF | |
36933 | #define wxUSE_MIMETYPE 1 | |
36934 | _ACEOF | |
36935 | ||
36936 | fi | |
36937 | ||
36938 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
36939 | cat >>confdefs.h <<\_ACEOF | |
36940 | #define wxUSE_MINIFRAME 1 | |
36941 | _ACEOF | |
36942 | ||
36943 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
36944 | fi | |
36945 | ||
36946 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
36947 | cat >>confdefs.h <<\_ACEOF | |
36948 | #define wxUSE_SYSTEM_OPTIONS 1 | |
36949 | _ACEOF | |
36950 | ||
36951 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
36952 | "$TOOLKIT" = "MOTIF"; then | |
36953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
36954 | fi | |
36955 | fi | |
36956 | ||
36957 | ||
36958 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
36959 | cat >>confdefs.h <<\_ACEOF | |
36960 | #define wxUSE_VALIDATORS 1 | |
36961 | _ACEOF | |
36962 | ||
36963 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
36964 | fi | |
36965 | ||
36966 | if test "$wxUSE_PALETTE" = "yes" ; then | |
36967 | cat >>confdefs.h <<\_ACEOF | |
36968 | #define wxUSE_PALETTE 1 | |
36969 | _ACEOF | |
36970 | ||
36971 | fi | |
36972 | ||
36973 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
36974 | LIBS=" -lunicows $LIBS" | |
36975 | fi | |
36976 | ||
36977 | ||
36978 | if test "$wxUSE_IMAGE" = "yes" ; then | |
36979 | cat >>confdefs.h <<\_ACEOF | |
36980 | #define wxUSE_IMAGE 1 | |
36981 | _ACEOF | |
36982 | ||
36983 | ||
36984 | if test "$wxUSE_GIF" = "yes" ; then | |
36985 | cat >>confdefs.h <<\_ACEOF | |
36986 | #define wxUSE_GIF 1 | |
36987 | _ACEOF | |
36988 | ||
36989 | fi | |
36990 | ||
36991 | if test "$wxUSE_PCX" = "yes" ; then | |
36992 | cat >>confdefs.h <<\_ACEOF | |
36993 | #define wxUSE_PCX 1 | |
36994 | _ACEOF | |
36995 | ||
36996 | fi | |
36997 | ||
36998 | if test "$wxUSE_IFF" = "yes" ; then | |
36999 | cat >>confdefs.h <<\_ACEOF | |
37000 | #define wxUSE_IFF 1 | |
37001 | _ACEOF | |
37002 | ||
37003 | fi | |
37004 | ||
37005 | if test "$wxUSE_PNM" = "yes" ; then | |
37006 | cat >>confdefs.h <<\_ACEOF | |
37007 | #define wxUSE_PNM 1 | |
37008 | _ACEOF | |
37009 | ||
37010 | fi | |
37011 | ||
37012 | if test "$wxUSE_XPM" = "yes" ; then | |
37013 | cat >>confdefs.h <<\_ACEOF | |
37014 | #define wxUSE_XPM 1 | |
37015 | _ACEOF | |
37016 | ||
37017 | fi | |
37018 | ||
37019 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
37020 | cat >>confdefs.h <<\_ACEOF | |
37021 | #define wxUSE_ICO_CUR 1 | |
37022 | _ACEOF | |
37023 | ||
37024 | fi | |
37025 | fi | |
37026 | ||
37027 | ||
37028 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
37029 | cat >>confdefs.h <<\_ACEOF | |
37030 | #define wxUSE_CHOICEDLG 1 | |
37031 | _ACEOF | |
37032 | ||
37033 | fi | |
37034 | ||
37035 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
37036 | cat >>confdefs.h <<\_ACEOF | |
37037 | #define wxUSE_COLOURDLG 1 | |
37038 | _ACEOF | |
37039 | ||
37040 | fi | |
37041 | ||
37042 | if test "$wxUSE_FILEDLG" = "yes"; then | |
37043 | cat >>confdefs.h <<\_ACEOF | |
37044 | #define wxUSE_FILEDLG 1 | |
37045 | _ACEOF | |
37046 | ||
37047 | fi | |
37048 | ||
37049 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
37050 | cat >>confdefs.h <<\_ACEOF | |
37051 | #define wxUSE_FINDREPLDLG 1 | |
37052 | _ACEOF | |
37053 | ||
37054 | fi | |
37055 | ||
37056 | if test "$wxUSE_FONTDLG" = "yes"; then | |
37057 | cat >>confdefs.h <<\_ACEOF | |
37058 | #define wxUSE_FONTDLG 1 | |
37059 | _ACEOF | |
37060 | ||
37061 | fi | |
37062 | ||
37063 | if test "$wxUSE_DIRDLG" = "yes"; then | |
37064 | if test "$wxUSE_TREECTRL" != "yes"; then | |
37065 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
37066 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
37067 | else | |
37068 | cat >>confdefs.h <<\_ACEOF | |
37069 | #define wxUSE_DIRDLG 1 | |
37070 | _ACEOF | |
37071 | ||
37072 | fi | |
37073 | fi | |
37074 | ||
37075 | if test "$wxUSE_MSGDLG" = "yes"; then | |
37076 | cat >>confdefs.h <<\_ACEOF | |
37077 | #define wxUSE_MSGDLG 1 | |
37078 | _ACEOF | |
37079 | ||
37080 | fi | |
37081 | ||
37082 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
37083 | cat >>confdefs.h <<\_ACEOF | |
37084 | #define wxUSE_NUMBERDLG 1 | |
37085 | _ACEOF | |
37086 | ||
37087 | fi | |
37088 | ||
37089 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37090 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37091 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
37092 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
37093 | else | |
37094 | cat >>confdefs.h <<\_ACEOF | |
37095 | #define wxUSE_PROGRESSDLG 1 | |
37096 | _ACEOF | |
37097 | ||
37098 | fi | |
37099 | fi | |
37100 | ||
37101 | if test "$wxUSE_SPLASH" = "yes"; then | |
37102 | cat >>confdefs.h <<\_ACEOF | |
37103 | #define wxUSE_SPLASH 1 | |
37104 | _ACEOF | |
37105 | ||
37106 | fi | |
37107 | ||
37108 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
37109 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37110 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
37111 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
37112 | else | |
37113 | cat >>confdefs.h <<\_ACEOF | |
37114 | #define wxUSE_STARTUP_TIPS 1 | |
37115 | _ACEOF | |
37116 | ||
37117 | fi | |
37118 | fi | |
37119 | ||
37120 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
37121 | cat >>confdefs.h <<\_ACEOF | |
37122 | #define wxUSE_TEXTDLG 1 | |
37123 | _ACEOF | |
37124 | ||
37125 | fi | |
37126 | ||
37127 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37128 | cat >>confdefs.h <<\_ACEOF | |
37129 | #define wxUSE_WIZARDDLG 1 | |
37130 | _ACEOF | |
37131 | ||
37132 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37133 | fi | |
37134 | ||
37135 | ||
37136 | if test "$cross_compiling" = "yes"; then | |
37137 | OSINFO="\"$host\"" | |
37138 | else | |
37139 | OSINFO=`uname -s -r -m` | |
37140 | OSINFO="\"$OSINFO\"" | |
37141 | fi | |
37142 | ||
37143 | cat >>confdefs.h <<_ACEOF | |
37144 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37145 | _ACEOF | |
37146 | ||
37147 | ||
37148 | ||
37149 | if test "x$prefix" != "xNONE"; then | |
37150 | wxPREFIX=$prefix | |
37151 | else | |
37152 | wxPREFIX=$ac_default_prefix | |
37153 | fi | |
37154 | ||
37155 | cat >>confdefs.h <<_ACEOF | |
37156 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37157 | _ACEOF | |
37158 | ||
37159 | ||
37160 | top_builddir_wxconfig=`pwd` | |
37161 | ||
37162 | ||
37163 | ||
37164 | CORE_BASE_LIBS="net base" | |
37165 | CORE_GUI_LIBS="adv core" | |
37166 | ||
37167 | if test "$wxUSE_XML" = "yes" ; then | |
37168 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37169 | fi | |
37170 | if test "$wxUSE_ODBC" != "no" ; then | |
37171 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37172 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37173 | fi | |
37174 | if test "$wxUSE_HTML" = "yes" ; then | |
37175 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37176 | fi | |
37177 | ||
37178 | if test "$wxUSE_GUI" != "yes"; then | |
37179 | CORE_GUI_LIBS="" | |
37180 | fi | |
37181 | ||
37182 | ||
37183 | ||
37184 | ||
37185 | ||
37186 | ||
37187 | ||
37188 | ||
37189 | if test "$wxUSE_MAC" = 1 ; then | |
de59c161 | 37190 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework WebKit -framework System" |
a848cd7e SC |
37191 | fi |
37192 | if test "$wxUSE_COCOA" = 1 ; then | |
37193 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
37194 | fi | |
37195 | ||
37196 | ||
37197 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37198 | ||
37199 | have_cos=0 | |
37200 | have_floor=0 | |
37201 | ||
37202 | for ac_func in cos | |
37203 | do | |
37204 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37205 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37206 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37207 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37209 | else | |
37210 | cat >conftest.$ac_ext <<_ACEOF | |
37211 | /* confdefs.h. */ | |
37212 | _ACEOF | |
37213 | cat confdefs.h >>conftest.$ac_ext | |
37214 | cat >>conftest.$ac_ext <<_ACEOF | |
37215 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37216 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37217 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37218 | #define $ac_func innocuous_$ac_func | |
37219 | ||
a848cd7e SC |
37220 | /* System header to define __stub macros and hopefully few prototypes, |
37221 | which can conflict with char $ac_func (); below. | |
37222 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37223 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37224 | |
a848cd7e SC |
37225 | #ifdef __STDC__ |
37226 | # include <limits.h> | |
37227 | #else | |
37228 | # include <assert.h> | |
37229 | #endif | |
ac1cb8d3 VS |
37230 | |
37231 | #undef $ac_func | |
37232 | ||
a848cd7e SC |
37233 | /* Override any gcc2 internal prototype to avoid an error. */ |
37234 | #ifdef __cplusplus | |
37235 | extern "C" | |
37236 | { | |
37237 | #endif | |
37238 | /* We use char because int might match the return type of a gcc2 | |
37239 | builtin and then its argument prototype would still apply. */ | |
37240 | char $ac_func (); | |
37241 | /* The GNU C library defines this for functions which it implements | |
37242 | to always fail with ENOSYS. Some functions are actually named | |
37243 | something starting with __ and the normal name is an alias. */ | |
37244 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37245 | choke me | |
37246 | #else | |
37247 | char (*f) () = $ac_func; | |
37248 | #endif | |
37249 | #ifdef __cplusplus | |
37250 | } | |
37251 | #endif | |
37252 | ||
37253 | int | |
37254 | main () | |
37255 | { | |
37256 | return f != $ac_func; | |
37257 | ; | |
37258 | return 0; | |
37259 | } | |
37260 | _ACEOF | |
37261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37263 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37264 | ac_status=$? |
ac1cb8d3 VS |
37265 | grep -v '^ *+' conftest.er1 >conftest.err |
37266 | rm -f conftest.er1 | |
37267 | cat conftest.err >&5 | |
a848cd7e SC |
37268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37269 | (exit $ac_status); } && | |
ac1cb8d3 VS |
37270 | { ac_try='test -z "$ac_c_werror_flag" |
37271 | || test ! -s conftest.err' | |
37272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37273 | (eval $ac_try) 2>&5 | |
37274 | ac_status=$? | |
37275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37276 | (exit $ac_status); }; } && | |
37277 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37279 | (eval $ac_try) 2>&5 | |
37280 | ac_status=$? | |
37281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37282 | (exit $ac_status); }; }; then | |
37283 | eval "$as_ac_var=yes" | |
37284 | else | |
37285 | echo "$as_me: failed program was:" >&5 | |
37286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37287 | ||
37288 | eval "$as_ac_var=no" | |
37289 | fi | |
ac1cb8d3 VS |
37290 | rm -f conftest.err conftest.$ac_objext \ |
37291 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37292 | fi |
37293 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37294 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37295 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37296 | cat >>confdefs.h <<_ACEOF | |
37297 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37298 | _ACEOF | |
37299 | have_cos=1 | |
37300 | fi | |
37301 | done | |
37302 | ||
37303 | ||
37304 | for ac_func in floor | |
37305 | do | |
37306 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37307 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37308 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37309 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37311 | else | |
37312 | cat >conftest.$ac_ext <<_ACEOF | |
37313 | /* confdefs.h. */ | |
37314 | _ACEOF | |
37315 | cat confdefs.h >>conftest.$ac_ext | |
37316 | cat >>conftest.$ac_ext <<_ACEOF | |
37317 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37318 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37319 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37320 | #define $ac_func innocuous_$ac_func | |
37321 | ||
a848cd7e SC |
37322 | /* System header to define __stub macros and hopefully few prototypes, |
37323 | which can conflict with char $ac_func (); below. | |
37324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37325 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37326 | |
a848cd7e SC |
37327 | #ifdef __STDC__ |
37328 | # include <limits.h> | |
37329 | #else | |
37330 | # include <assert.h> | |
37331 | #endif | |
ac1cb8d3 VS |
37332 | |
37333 | #undef $ac_func | |
37334 | ||
a848cd7e SC |
37335 | /* Override any gcc2 internal prototype to avoid an error. */ |
37336 | #ifdef __cplusplus | |
37337 | extern "C" | |
37338 | { | |
37339 | #endif | |
37340 | /* We use char because int might match the return type of a gcc2 | |
37341 | builtin and then its argument prototype would still apply. */ | |
37342 | char $ac_func (); | |
37343 | /* The GNU C library defines this for functions which it implements | |
37344 | to always fail with ENOSYS. Some functions are actually named | |
37345 | something starting with __ and the normal name is an alias. */ | |
37346 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37347 | choke me | |
37348 | #else | |
37349 | char (*f) () = $ac_func; | |
37350 | #endif | |
37351 | #ifdef __cplusplus | |
37352 | } | |
37353 | #endif | |
37354 | ||
37355 | int | |
37356 | main () | |
37357 | { | |
37358 | return f != $ac_func; | |
37359 | ; | |
37360 | return 0; | |
37361 | } | |
37362 | _ACEOF | |
37363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37365 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37366 | ac_status=$? |
ac1cb8d3 VS |
37367 | grep -v '^ *+' conftest.er1 >conftest.err |
37368 | rm -f conftest.er1 | |
37369 | cat conftest.err >&5 | |
a848cd7e SC |
37370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37371 | (exit $ac_status); } && | |
ac1cb8d3 VS |
37372 | { ac_try='test -z "$ac_c_werror_flag" |
37373 | || test ! -s conftest.err' | |
37374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37375 | (eval $ac_try) 2>&5 | |
37376 | ac_status=$? | |
37377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37378 | (exit $ac_status); }; } && | |
37379 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37381 | (eval $ac_try) 2>&5 | |
37382 | ac_status=$? | |
37383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37384 | (exit $ac_status); }; }; then | |
37385 | eval "$as_ac_var=yes" | |
37386 | else | |
37387 | echo "$as_me: failed program was:" >&5 | |
37388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37389 | ||
37390 | eval "$as_ac_var=no" | |
37391 | fi | |
ac1cb8d3 VS |
37392 | rm -f conftest.err conftest.$ac_objext \ |
37393 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37394 | fi |
37395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37396 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37397 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37398 | cat >>confdefs.h <<_ACEOF | |
37399 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37400 | _ACEOF | |
37401 | have_floor=1 | |
37402 | fi | |
37403 | done | |
37404 | ||
37405 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37406 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37407 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37408 | echo "$as_me:$LINENO: result: yes" >&5 | |
37409 | echo "${ECHO_T}yes" >&6 | |
37410 | else | |
37411 | echo "$as_me:$LINENO: result: no" >&5 | |
37412 | echo "${ECHO_T}no" >&6 | |
37413 | LIBS="$LIBS -lm" | |
37414 | # use different functions to avoid configure caching | |
37415 | have_sin=0 | |
37416 | have_ceil=0 | |
37417 | ||
37418 | for ac_func in sin | |
37419 | do | |
37420 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37421 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37422 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37423 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37425 | else | |
37426 | cat >conftest.$ac_ext <<_ACEOF | |
37427 | /* confdefs.h. */ | |
37428 | _ACEOF | |
37429 | cat confdefs.h >>conftest.$ac_ext | |
37430 | cat >>conftest.$ac_ext <<_ACEOF | |
37431 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37432 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37433 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37434 | #define $ac_func innocuous_$ac_func | |
37435 | ||
a848cd7e SC |
37436 | /* System header to define __stub macros and hopefully few prototypes, |
37437 | which can conflict with char $ac_func (); below. | |
37438 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37439 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37440 | |
a848cd7e SC |
37441 | #ifdef __STDC__ |
37442 | # include <limits.h> | |
37443 | #else | |
37444 | # include <assert.h> | |
37445 | #endif | |
ac1cb8d3 VS |
37446 | |
37447 | #undef $ac_func | |
37448 | ||
a848cd7e SC |
37449 | /* Override any gcc2 internal prototype to avoid an error. */ |
37450 | #ifdef __cplusplus | |
37451 | extern "C" | |
37452 | { | |
37453 | #endif | |
37454 | /* We use char because int might match the return type of a gcc2 | |
37455 | builtin and then its argument prototype would still apply. */ | |
37456 | char $ac_func (); | |
37457 | /* The GNU C library defines this for functions which it implements | |
37458 | to always fail with ENOSYS. Some functions are actually named | |
37459 | something starting with __ and the normal name is an alias. */ | |
37460 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37461 | choke me | |
37462 | #else | |
37463 | char (*f) () = $ac_func; | |
37464 | #endif | |
37465 | #ifdef __cplusplus | |
37466 | } | |
37467 | #endif | |
37468 | ||
37469 | int | |
37470 | main () | |
37471 | { | |
37472 | return f != $ac_func; | |
37473 | ; | |
37474 | return 0; | |
37475 | } | |
37476 | _ACEOF | |
37477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37479 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37480 | ac_status=$? |
ac1cb8d3 VS |
37481 | grep -v '^ *+' conftest.er1 >conftest.err |
37482 | rm -f conftest.er1 | |
37483 | cat conftest.err >&5 | |
a848cd7e SC |
37484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37485 | (exit $ac_status); } && | |
ac1cb8d3 VS |
37486 | { ac_try='test -z "$ac_c_werror_flag" |
37487 | || test ! -s conftest.err' | |
37488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37489 | (eval $ac_try) 2>&5 | |
37490 | ac_status=$? | |
37491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37492 | (exit $ac_status); }; } && | |
37493 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37495 | (eval $ac_try) 2>&5 | |
37496 | ac_status=$? | |
37497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37498 | (exit $ac_status); }; }; then | |
37499 | eval "$as_ac_var=yes" | |
37500 | else | |
37501 | echo "$as_me: failed program was:" >&5 | |
37502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37503 | ||
37504 | eval "$as_ac_var=no" | |
37505 | fi | |
ac1cb8d3 VS |
37506 | rm -f conftest.err conftest.$ac_objext \ |
37507 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37508 | fi |
37509 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37510 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37511 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37512 | cat >>confdefs.h <<_ACEOF | |
37513 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37514 | _ACEOF | |
37515 | have_sin=1 | |
37516 | fi | |
37517 | done | |
37518 | ||
37519 | ||
37520 | for ac_func in ceil | |
37521 | do | |
37522 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37523 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37524 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37525 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37527 | else | |
37528 | cat >conftest.$ac_ext <<_ACEOF | |
37529 | /* confdefs.h. */ | |
37530 | _ACEOF | |
37531 | cat confdefs.h >>conftest.$ac_ext | |
37532 | cat >>conftest.$ac_ext <<_ACEOF | |
37533 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37534 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37535 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37536 | #define $ac_func innocuous_$ac_func | |
37537 | ||
a848cd7e SC |
37538 | /* System header to define __stub macros and hopefully few prototypes, |
37539 | which can conflict with char $ac_func (); below. | |
37540 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37541 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37542 | |
a848cd7e SC |
37543 | #ifdef __STDC__ |
37544 | # include <limits.h> | |
37545 | #else | |
37546 | # include <assert.h> | |
37547 | #endif | |
ac1cb8d3 VS |
37548 | |
37549 | #undef $ac_func | |
37550 | ||
a848cd7e SC |
37551 | /* Override any gcc2 internal prototype to avoid an error. */ |
37552 | #ifdef __cplusplus | |
37553 | extern "C" | |
37554 | { | |
37555 | #endif | |
37556 | /* We use char because int might match the return type of a gcc2 | |
37557 | builtin and then its argument prototype would still apply. */ | |
37558 | char $ac_func (); | |
37559 | /* The GNU C library defines this for functions which it implements | |
37560 | to always fail with ENOSYS. Some functions are actually named | |
37561 | something starting with __ and the normal name is an alias. */ | |
37562 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37563 | choke me | |
37564 | #else | |
37565 | char (*f) () = $ac_func; | |
37566 | #endif | |
37567 | #ifdef __cplusplus | |
37568 | } | |
37569 | #endif | |
37570 | ||
37571 | int | |
37572 | main () | |
37573 | { | |
37574 | return f != $ac_func; | |
37575 | ; | |
37576 | return 0; | |
37577 | } | |
37578 | _ACEOF | |
37579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37581 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37582 | ac_status=$? |
ac1cb8d3 VS |
37583 | grep -v '^ *+' conftest.er1 >conftest.err |
37584 | rm -f conftest.er1 | |
37585 | cat conftest.err >&5 | |
a848cd7e SC |
37586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37587 | (exit $ac_status); } && | |
ac1cb8d3 VS |
37588 | { ac_try='test -z "$ac_c_werror_flag" |
37589 | || test ! -s conftest.err' | |
37590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37591 | (eval $ac_try) 2>&5 | |
37592 | ac_status=$? | |
37593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37594 | (exit $ac_status); }; } && | |
37595 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37597 | (eval $ac_try) 2>&5 | |
37598 | ac_status=$? | |
37599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37600 | (exit $ac_status); }; }; then | |
37601 | eval "$as_ac_var=yes" | |
37602 | else | |
37603 | echo "$as_me: failed program was:" >&5 | |
37604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37605 | ||
37606 | eval "$as_ac_var=no" | |
37607 | fi | |
ac1cb8d3 VS |
37608 | rm -f conftest.err conftest.$ac_objext \ |
37609 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37610 | fi |
37611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37612 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37613 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37614 | cat >>confdefs.h <<_ACEOF | |
37615 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37616 | _ACEOF | |
37617 | have_ceil=1 | |
37618 | fi | |
37619 | done | |
37620 | ||
37621 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
37622 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
37623 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
37624 | echo "$as_me:$LINENO: result: yes" >&5 | |
37625 | echo "${ECHO_T}yes" >&6 | |
37626 | else | |
37627 | echo "$as_me:$LINENO: result: no" >&5 | |
37628 | echo "${ECHO_T}no" >&6 | |
37629 | # not sure we should warn the user, crash, etc. | |
37630 | fi | |
37631 | fi | |
37632 | ||
37633 | if test "$wxUSE_GUI" = "yes"; then | |
37634 | ||
37635 | ||
37636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
37637 | drawing dynamic erase event exec font image \ | |
37638 | minimal propsize rotate shaped widgets render" | |
37639 | ||
37640 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37641 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37642 | fi | |
37643 | else | |
37644 | SAMPLES_SUBDIRS="console" | |
37645 | fi | |
37646 | ||
37647 | ||
37648 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ | |
37649 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" | |
37650 | ||
37651 | if test "$GXX" = yes ; then | |
37652 | CXXWARNINGS="-Wall" | |
37653 | fi | |
37654 | ||
37655 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37656 | ||
37657 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` | |
37658 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
37659 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
37660 | ||
37661 | ||
37662 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
37663 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" | |
37664 | EXTRALIBS_XML="$EXPAT_LINK" | |
37665 | EXTRALIBS_HTML="$MSPACK_LINK" | |
37666 | EXTRALIBS_ODBC="$ODBC_LINK" | |
37667 | if test "$wxUSE_GUI" = "yes"; then | |
37668 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
37669 | fi | |
37670 | if test "$wxUSE_OPENGL" = "yes"; then | |
37671 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37672 | fi | |
37673 | ||
37674 | LDFLAGS="$LDFLAGS $PROFILE" | |
37675 | ||
37676 | if test "$wxUSE_GTK" = 1; then | |
37677 | WXCONFIG_INCLUDE= | |
37678 | else | |
37679 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37680 | fi | |
37681 | ||
37682 | WXCONFIG_EXTRALIBS="$LIBS" | |
37683 | ||
37684 | if test "$wxUSE_REGEX" = "builtin" ; then | |
37685 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
37686 | fi | |
37687 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37688 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37689 | fi | |
37690 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37691 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37692 | fi | |
37693 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37694 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37695 | fi | |
37696 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37697 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37698 | fi | |
37699 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37700 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37701 | fi | |
37702 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37703 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37704 | fi | |
37705 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37706 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37707 | fi | |
37708 | ||
37709 | for i in $wxconfig_3rdparty ; do | |
37710 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
37711 | done | |
37712 | ||
37713 | ||
37714 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
37715 | WXUNIV=1 | |
37716 | else | |
37717 | WXUNIV=0 | |
37718 | fi | |
37719 | ||
37720 | ||
37721 | ||
37722 | ||
37723 | ||
37724 | ||
37725 | ||
37726 | ||
37727 | ||
37728 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
37729 | MONOLITHIC=1 | |
37730 | else | |
37731 | MONOLITHIC=0 | |
37732 | fi | |
37733 | ||
37734 | if test $wxUSE_PLUGINS = "yes" ; then | |
37735 | USE_PLUGINS=1 | |
37736 | else | |
37737 | USE_PLUGINS=0 | |
37738 | fi | |
37739 | ||
37740 | if test $wxUSE_ODBC != "no" ; then | |
37741 | USE_ODBC=1 | |
37742 | else | |
37743 | USE_ODBC=0 | |
37744 | fi | |
37745 | ||
37746 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
37747 | OFFICIAL_BUILD=1 | |
37748 | else | |
37749 | OFFICIAL_BUILD=0 | |
37750 | fi | |
37751 | ||
37752 | ||
37753 | ||
37754 | ||
37755 | ||
37756 | ||
37757 | ||
37758 | ||
37759 | ||
37760 | ||
37761 | ||
37762 | ||
37763 | ||
37764 | ||
37765 | ||
37766 | ||
37767 | ||
37768 | ||
37769 | ||
37770 | ||
37771 | ||
37772 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
37773 | ||
37774 | ||
37775 | ||
37776 | ||
37777 | ||
37778 | ||
37779 | ||
37780 | ||
37781 | ||
37782 | if test "x$BAKEFILE_HOST" = "x"; then | |
37783 | BAKEFILE_HOST="${host}" | |
37784 | fi | |
37785 | ||
37786 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
37787 | ||
37788 | if test -n "$ac_tool_prefix"; then | |
37789 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37790 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37791 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37793 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37795 | else | |
37796 | if test -n "$RANLIB"; then | |
37797 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
37798 | else | |
37799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37800 | for as_dir in $PATH | |
37801 | do | |
37802 | IFS=$as_save_IFS | |
37803 | test -z "$as_dir" && as_dir=. | |
37804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37806 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
37807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37808 | break 2 | |
37809 | fi | |
37810 | done | |
37811 | done | |
37812 | ||
37813 | fi | |
37814 | fi | |
37815 | RANLIB=$ac_cv_prog_RANLIB | |
37816 | if test -n "$RANLIB"; then | |
37817 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
37818 | echo "${ECHO_T}$RANLIB" >&6 | |
37819 | else | |
37820 | echo "$as_me:$LINENO: result: no" >&5 | |
37821 | echo "${ECHO_T}no" >&6 | |
37822 | fi | |
37823 | ||
37824 | fi | |
37825 | if test -z "$ac_cv_prog_RANLIB"; then | |
37826 | ac_ct_RANLIB=$RANLIB | |
37827 | # Extract the first word of "ranlib", so it can be a program name with args. | |
37828 | set dummy ranlib; ac_word=$2 | |
37829 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37831 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
37832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37833 | else | |
37834 | if test -n "$ac_ct_RANLIB"; then | |
37835 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
37836 | else | |
37837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37838 | for as_dir in $PATH | |
37839 | do | |
37840 | IFS=$as_save_IFS | |
37841 | test -z "$as_dir" && as_dir=. | |
37842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37844 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
37845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37846 | break 2 | |
37847 | fi | |
37848 | done | |
37849 | done | |
37850 | ||
37851 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
37852 | fi | |
37853 | fi | |
37854 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
37855 | if test -n "$ac_ct_RANLIB"; then | |
37856 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
37857 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
37858 | else | |
37859 | echo "$as_me:$LINENO: result: no" >&5 | |
37860 | echo "${ECHO_T}no" >&6 | |
37861 | fi | |
37862 | ||
37863 | RANLIB=$ac_ct_RANLIB | |
37864 | else | |
37865 | RANLIB="$ac_cv_prog_RANLIB" | |
37866 | fi | |
37867 | ||
37868 | # Find a good install program. We prefer a C program (faster), | |
37869 | # so one script is as good as another. But avoid the broken or | |
37870 | # incompatible versions: | |
37871 | # SysV /etc/install, /usr/sbin/install | |
37872 | # SunOS /usr/etc/install | |
37873 | # IRIX /sbin/install | |
37874 | # AIX /bin/install | |
37875 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
37876 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
37877 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
37878 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 37879 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
37880 | # ./install, which can be erroneously created by make from ./install.sh. |
37881 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
37882 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
37883 | if test -z "$INSTALL"; then | |
37884 | if test "${ac_cv_path_install+set}" = set; then | |
37885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37886 | else | |
37887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37888 | for as_dir in $PATH | |
37889 | do | |
37890 | IFS=$as_save_IFS | |
37891 | test -z "$as_dir" && as_dir=. | |
37892 | # Account for people who put trailing slashes in PATH elements. | |
37893 | case $as_dir/ in | |
37894 | ./ | .// | /cC/* | \ | |
37895 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 37896 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
37897 | /usr/ucb/* ) ;; |
37898 | *) | |
37899 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
37900 | # Don't use installbsd from OSF since it installs stuff as root | |
37901 | # by default. | |
37902 | for ac_prog in ginstall scoinst install; do | |
37903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
37904 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
37905 | if test $ac_prog = install && | |
37906 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37907 | # AIX install. It has an incompatible calling convention. | |
37908 | : | |
37909 | elif test $ac_prog = install && | |
37910 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37911 | # program-specific install script used by HP pwplus--don't use. | |
37912 | : | |
37913 | else | |
37914 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
37915 | break 3 | |
37916 | fi | |
37917 | fi | |
a848cd7e SC |
37918 | done |
37919 | done | |
37920 | ;; | |
37921 | esac | |
37922 | done | |
37923 | ||
37924 | ||
37925 | fi | |
37926 | if test "${ac_cv_path_install+set}" = set; then | |
37927 | INSTALL=$ac_cv_path_install | |
37928 | else | |
37929 | # As a last resort, use the slow shell script. We don't cache a | |
37930 | # path for INSTALL within a source directory, because that will | |
37931 | # break other packages using the cache if that directory is | |
37932 | # removed, or if the path is relative. | |
37933 | INSTALL=$ac_install_sh | |
37934 | fi | |
37935 | fi | |
37936 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
37937 | echo "${ECHO_T}$INSTALL" >&6 | |
37938 | ||
37939 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
37940 | # It thinks the first close brace ends the variable substitution. | |
37941 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
37942 | ||
37943 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
37944 | ||
37945 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
37946 | ||
37947 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
37948 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
37949 | LN_S=$as_ln_s | |
37950 | if test "$LN_S" = "ln -s"; then | |
37951 | echo "$as_me:$LINENO: result: yes" >&5 | |
37952 | echo "${ECHO_T}yes" >&6 | |
37953 | else | |
37954 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
37955 | echo "${ECHO_T}no, using $LN_S" >&6 | |
37956 | fi | |
37957 | ||
37958 | ||
37959 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
37960 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 37961 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
37962 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
37963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37964 | else | |
37965 | cat >conftest.make <<\_ACEOF | |
37966 | all: | |
37967 | @echo 'ac_maketemp="$(MAKE)"' | |
37968 | _ACEOF | |
37969 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
37970 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
37971 | if test -n "$ac_maketemp"; then | |
37972 | eval ac_cv_prog_make_${ac_make}_set=yes | |
37973 | else | |
37974 | eval ac_cv_prog_make_${ac_make}_set=no | |
37975 | fi | |
37976 | rm -f conftest.make | |
37977 | fi | |
37978 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
37979 | echo "$as_me:$LINENO: result: yes" >&5 | |
37980 | echo "${ECHO_T}yes" >&6 | |
37981 | SET_MAKE= | |
37982 | else | |
37983 | echo "$as_me:$LINENO: result: no" >&5 | |
37984 | echo "${ECHO_T}no" >&6 | |
37985 | SET_MAKE="MAKE=${MAKE-make}" | |
37986 | fi | |
37987 | ||
37988 | ||
37989 | ||
37990 | if test -n "$ac_tool_prefix"; then | |
37991 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
37992 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
37993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37995 | if test "${ac_cv_prog_AR+set}" = set; then | |
37996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37997 | else | |
37998 | if test -n "$AR"; then | |
37999 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38000 | else | |
38001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38002 | for as_dir in $PATH | |
38003 | do | |
38004 | IFS=$as_save_IFS | |
38005 | test -z "$as_dir" && as_dir=. | |
38006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38008 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
38009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38010 | break 2 | |
38011 | fi | |
38012 | done | |
38013 | done | |
38014 | ||
38015 | fi | |
38016 | fi | |
38017 | AR=$ac_cv_prog_AR | |
38018 | if test -n "$AR"; then | |
38019 | echo "$as_me:$LINENO: result: $AR" >&5 | |
38020 | echo "${ECHO_T}$AR" >&6 | |
38021 | else | |
38022 | echo "$as_me:$LINENO: result: no" >&5 | |
38023 | echo "${ECHO_T}no" >&6 | |
38024 | fi | |
38025 | ||
38026 | fi | |
38027 | if test -z "$ac_cv_prog_AR"; then | |
38028 | ac_ct_AR=$AR | |
38029 | # Extract the first word of "ar", so it can be a program name with args. | |
38030 | set dummy ar; ac_word=$2 | |
38031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38033 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38035 | else | |
38036 | if test -n "$ac_ct_AR"; then | |
38037 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38038 | else | |
38039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38040 | for as_dir in $PATH | |
38041 | do | |
38042 | IFS=$as_save_IFS | |
38043 | test -z "$as_dir" && as_dir=. | |
38044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38045 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38046 | ac_cv_prog_ac_ct_AR="ar" | |
38047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38048 | break 2 | |
38049 | fi | |
38050 | done | |
38051 | done | |
38052 | ||
38053 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38054 | fi | |
38055 | fi | |
38056 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38057 | if test -n "$ac_ct_AR"; then | |
38058 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38059 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38060 | else | |
38061 | echo "$as_me:$LINENO: result: no" >&5 | |
38062 | echo "${ECHO_T}no" >&6 | |
38063 | fi | |
38064 | ||
38065 | AR=$ac_ct_AR | |
38066 | else | |
38067 | AR="$ac_cv_prog_AR" | |
38068 | fi | |
38069 | ||
38070 | if test -n "$ac_tool_prefix"; then | |
38071 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38072 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
38073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38075 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38077 | else | |
38078 | if test -n "$STRIP"; then | |
38079 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38080 | else | |
38081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38082 | for as_dir in $PATH | |
38083 | do | |
38084 | IFS=$as_save_IFS | |
38085 | test -z "$as_dir" && as_dir=. | |
38086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38088 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
38089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38090 | break 2 | |
38091 | fi | |
38092 | done | |
38093 | done | |
38094 | ||
38095 | fi | |
38096 | fi | |
38097 | STRIP=$ac_cv_prog_STRIP | |
38098 | if test -n "$STRIP"; then | |
38099 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
38100 | echo "${ECHO_T}$STRIP" >&6 | |
38101 | else | |
38102 | echo "$as_me:$LINENO: result: no" >&5 | |
38103 | echo "${ECHO_T}no" >&6 | |
38104 | fi | |
38105 | ||
38106 | fi | |
38107 | if test -z "$ac_cv_prog_STRIP"; then | |
38108 | ac_ct_STRIP=$STRIP | |
38109 | # Extract the first word of "strip", so it can be a program name with args. | |
38110 | set dummy strip; ac_word=$2 | |
38111 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38113 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38115 | else | |
38116 | if test -n "$ac_ct_STRIP"; then | |
38117 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38118 | else | |
38119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38120 | for as_dir in $PATH | |
38121 | do | |
38122 | IFS=$as_save_IFS | |
38123 | test -z "$as_dir" && as_dir=. | |
38124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38125 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38126 | ac_cv_prog_ac_ct_STRIP="strip" | |
38127 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38128 | break 2 | |
38129 | fi | |
38130 | done | |
38131 | done | |
38132 | ||
38133 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38134 | fi | |
38135 | fi | |
38136 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38137 | if test -n "$ac_ct_STRIP"; then | |
38138 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38139 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38140 | else | |
38141 | echo "$as_me:$LINENO: result: no" >&5 | |
38142 | echo "${ECHO_T}no" >&6 | |
38143 | fi | |
38144 | ||
38145 | STRIP=$ac_ct_STRIP | |
38146 | else | |
38147 | STRIP="$ac_cv_prog_STRIP" | |
38148 | fi | |
38149 | ||
38150 | if test -n "$ac_tool_prefix"; then | |
38151 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38152 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38153 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38155 | if test "${ac_cv_prog_NM+set}" = set; then | |
38156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38157 | else | |
38158 | if test -n "$NM"; then | |
38159 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38160 | else | |
38161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38162 | for as_dir in $PATH | |
38163 | do | |
38164 | IFS=$as_save_IFS | |
38165 | test -z "$as_dir" && as_dir=. | |
38166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38167 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38168 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38169 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38170 | break 2 | |
38171 | fi | |
38172 | done | |
38173 | done | |
38174 | ||
38175 | fi | |
38176 | fi | |
38177 | NM=$ac_cv_prog_NM | |
38178 | if test -n "$NM"; then | |
38179 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38180 | echo "${ECHO_T}$NM" >&6 | |
38181 | else | |
38182 | echo "$as_me:$LINENO: result: no" >&5 | |
38183 | echo "${ECHO_T}no" >&6 | |
38184 | fi | |
38185 | ||
38186 | fi | |
38187 | if test -z "$ac_cv_prog_NM"; then | |
38188 | ac_ct_NM=$NM | |
38189 | # Extract the first word of "nm", so it can be a program name with args. | |
38190 | set dummy nm; ac_word=$2 | |
38191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38193 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38195 | else | |
38196 | if test -n "$ac_ct_NM"; then | |
38197 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38198 | else | |
38199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38200 | for as_dir in $PATH | |
38201 | do | |
38202 | IFS=$as_save_IFS | |
38203 | test -z "$as_dir" && as_dir=. | |
38204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38206 | ac_cv_prog_ac_ct_NM="nm" | |
38207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38208 | break 2 | |
38209 | fi | |
38210 | done | |
38211 | done | |
38212 | ||
38213 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38214 | fi | |
38215 | fi | |
38216 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38217 | if test -n "$ac_ct_NM"; then | |
38218 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38219 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38220 | else | |
38221 | echo "$as_me:$LINENO: result: no" >&5 | |
38222 | echo "${ECHO_T}no" >&6 | |
38223 | fi | |
38224 | ||
38225 | NM=$ac_ct_NM | |
38226 | else | |
38227 | NM="$ac_cv_prog_NM" | |
38228 | fi | |
38229 | ||
38230 | ||
38231 | case ${BAKEFILE_HOST} in | |
38232 | *-hp-hpux* ) | |
38233 | INSTALL_DIR="mkdir" | |
38234 | ;; | |
38235 | *) INSTALL_DIR="$INSTALL -d" | |
38236 | ;; | |
38237 | esac | |
38238 | ||
38239 | ||
38240 | LDFLAGS_GUI= | |
38241 | case ${BAKEFILE_HOST} in | |
38242 | *-*-cygwin* | *-*-mingw32* ) | |
38243 | LDFLAGS_GUI="-mwindows" | |
38244 | esac | |
38245 | ||
38246 | ||
38247 | fi | |
38248 | ||
38249 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38250 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38251 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38253 | else | |
38254 | ||
38255 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38256 | egrep -s GNU > /dev/null); then | |
38257 | bakefile_cv_prog_makeisgnu="yes" | |
38258 | else | |
38259 | bakefile_cv_prog_makeisgnu="no" | |
38260 | fi | |
38261 | ||
38262 | fi | |
38263 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38264 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38265 | ||
38266 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38267 | IF_GNU_MAKE="" | |
38268 | else | |
38269 | IF_GNU_MAKE="#" | |
38270 | fi | |
38271 | ||
38272 | ||
38273 | ||
38274 | PLATFORM_UNIX=0 | |
38275 | PLATFORM_WIN32=0 | |
38276 | PLATFORM_MSDOS=0 | |
38277 | PLATFORM_MAC=0 | |
38278 | PLATFORM_MACOSX=0 | |
38279 | PLATFORM_OS2=0 | |
38280 | ||
38281 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38282 | case "${BAKEFILE_HOST}" in | |
38283 | *-*-cygwin* | *-*-mingw32* ) | |
38284 | PLATFORM_WIN32=1 | |
38285 | ;; | |
38286 | *-pc-msdosdjgpp ) | |
38287 | PLATFORM_MSDOS=1 | |
38288 | ;; | |
38289 | *-pc-os2_emx | *-pc-os2-emx ) | |
38290 | PLATFORM_OS2=1 | |
38291 | ;; | |
38292 | powerpc-*-darwin* ) | |
38293 | PLATFORM_MAC=1 | |
38294 | PLATFORM_MACOSX=1 | |
38295 | ;; | |
38296 | * ) | |
38297 | PLATFORM_UNIX=1 | |
38298 | ;; | |
38299 | esac | |
38300 | else | |
38301 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38302 | win32 ) | |
38303 | PLATFORM_WIN32=1 | |
38304 | ;; | |
38305 | msdos ) | |
38306 | PLATFORM_MSDOS=1 | |
38307 | ;; | |
38308 | os2 ) | |
38309 | PLATFORM_OS2=1 | |
38310 | ;; | |
38311 | darwin ) | |
38312 | PLATFORM_MAC=1 | |
38313 | PLATFORM_MACOSX=1 | |
38314 | ;; | |
38315 | unix ) | |
38316 | PLATFORM_UNIX=1 | |
38317 | ;; | |
38318 | * ) | |
38319 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38320 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38321 | { (exit 1); exit 1; }; } | |
38322 | ;; | |
38323 | esac | |
38324 | fi | |
38325 | ||
38326 | ||
38327 | ||
38328 | ||
38329 | ||
38330 | ||
38331 | ||
38332 | ||
38333 | ||
38334 | # Check whether --enable-omf or --disable-omf was given. | |
38335 | if test "${enable_omf+set}" = set; then | |
38336 | enableval="$enable_omf" | |
38337 | bk_os2_use_omf="$enableval" | |
38338 | fi; | |
38339 | ||
38340 | case "${BAKEFILE_HOST}" in | |
38341 | *-*-darwin* ) | |
38342 | CFLAGS="$CFLAGS -fno-common" | |
38343 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38344 | ;; | |
38345 | ||
38346 | *-pc-os2_emx | *-pc-os2-emx ) | |
38347 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38348 | AR=emxomfar | |
38349 | RANLIB=: | |
38350 | LDFLAGS="-Zomf $LDFLAGS" | |
38351 | CFLAGS="-Zomf $CFLAGS" | |
38352 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38353 | OS2_LIBEXT="lib" | |
38354 | else | |
38355 | OS2_LIBEXT="a" | |
38356 | fi | |
38357 | ;; | |
38358 | esac | |
38359 | ||
38360 | ||
38361 | SO_SUFFIX="so" | |
38362 | SO_SUFFIX_MODULE="so" | |
38363 | EXEEXT="" | |
38364 | LIBPREFIX="lib" | |
38365 | LIBEXT=".a" | |
38366 | DLLPREFIX="lib" | |
38367 | DLLPREFIX_MODULE="" | |
38368 | DLLIMP_SUFFIX="" | |
38369 | ||
38370 | case "${BAKEFILE_HOST}" in | |
38371 | *-hp-hpux* ) | |
38372 | SO_SUFFIX="sl" | |
38373 | SO_SUFFIX_MODULE="sl" | |
38374 | ;; | |
38375 | *-*-aix* ) | |
38376 | SO_SUFFIX="a" | |
38377 | SO_SUFFIX_MODULE="a" | |
38378 | ;; | |
38379 | *-*-cygwin* | *-*-mingw32* ) | |
38380 | SO_SUFFIX="dll" | |
38381 | SO_SUFFIX_MODULE="dll" | |
38382 | DLLIMP_SUFFIX="dll.a" | |
38383 | EXEEXT=".exe" | |
38384 | DLLPREFIX="" | |
38385 | ;; | |
38386 | *-pc-msdosdjgpp ) | |
38387 | EXEEXT=".exe" | |
38388 | DLLPREFIX="" | |
38389 | ;; | |
38390 | *-pc-os2_emx | *-pc-os2-emx ) | |
38391 | SO_SUFFIX="dll" | |
38392 | SO_SUFFIX_MODULE="dll" | |
38393 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38394 | EXEEXT=".exe" | |
38395 | DLLPREFIX="" | |
38396 | LIBPREFIX="" | |
38397 | LIBEXT=".$OS2_LIBEXT" | |
38398 | ;; | |
38399 | powerpc-*-darwin* ) | |
38400 | SO_SUFFIX="dylib" | |
38401 | SO_SUFFIX_MODULE="bundle" | |
38402 | ;; | |
38403 | esac | |
38404 | ||
38405 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38406 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38407 | fi | |
38408 | ||
38409 | ||
38410 | ||
38411 | ||
38412 | ||
38413 | ||
38414 | ||
38415 | ||
38416 | ||
38417 | ||
38418 | ||
38419 | SHARED_LD_CC="\$(CC) -shared -o" | |
38420 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38421 | ||
38422 | if test "x$GCC" = "xyes"; then | |
38423 | PIC_FLAG="-fPIC" | |
38424 | fi | |
38425 | ||
38426 | case "${BAKEFILE_HOST}" in | |
38427 | *-hp-hpux* ) | |
38428 | if test "x$GCC" = "xyes"; then | |
38429 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38430 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38431 | else | |
38432 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38433 | ||
38434 | SHARED_LD_CC="${CC} -b -o" | |
38435 | SHARED_LD_CXX="${CXX} -b -o" | |
38436 | PIC_FLAG="+Z" | |
38437 | fi | |
38438 | ;; | |
38439 | ||
38440 | *-*-linux* ) | |
38441 | if test "x$GCC" != "xyes"; then | |
38442 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38443 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38444 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38446 | else | |
38447 | ||
38448 | cat >conftest.$ac_ext <<_ACEOF | |
38449 | /* confdefs.h. */ | |
38450 | _ACEOF | |
38451 | cat confdefs.h >>conftest.$ac_ext | |
38452 | cat >>conftest.$ac_ext <<_ACEOF | |
38453 | /* end confdefs.h. */ | |
38454 | ||
38455 | int | |
38456 | main () | |
38457 | { | |
38458 | ||
38459 | #ifndef __INTEL_COMPILER | |
38460 | #error Not icc | |
38461 | #endif | |
38462 | ||
38463 | ; | |
38464 | return 0; | |
38465 | } | |
38466 | _ACEOF | |
38467 | rm -f conftest.$ac_objext | |
38468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38469 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38470 | ac_status=$? |
ac1cb8d3 VS |
38471 | grep -v '^ *+' conftest.er1 >conftest.err |
38472 | rm -f conftest.er1 | |
38473 | cat conftest.err >&5 | |
a848cd7e SC |
38474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38475 | (exit $ac_status); } && | |
ac1cb8d3 VS |
38476 | { ac_try='test -z "$ac_c_werror_flag" |
38477 | || test ! -s conftest.err' | |
38478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38479 | (eval $ac_try) 2>&5 | |
38480 | ac_status=$? | |
38481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38482 | (exit $ac_status); }; } && | |
38483 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38485 | (eval $ac_try) 2>&5 | |
38486 | ac_status=$? | |
38487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38488 | (exit $ac_status); }; }; then | |
38489 | bakefile_cv_prog_icc=yes | |
38490 | else | |
38491 | echo "$as_me: failed program was:" >&5 | |
38492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38493 | ||
38494 | bakefile_cv_prog_icc=no | |
38495 | ||
38496 | fi | |
ac1cb8d3 | 38497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38498 | |
38499 | fi | |
38500 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38501 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38502 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38503 | PIC_FLAG="-KPIC" | |
38504 | fi | |
38505 | fi | |
38506 | ;; | |
38507 | ||
38508 | *-*-solaris2* ) | |
38509 | if test "x$GCC" != xyes ; then | |
38510 | SHARED_LD_CC="${CC} -G -o" | |
38511 | SHARED_LD_CXX="${CXX} -G -o" | |
38512 | PIC_FLAG="-KPIC" | |
38513 | fi | |
38514 | ;; | |
38515 | ||
38516 | *-*-darwin* ) | |
38517 | ||
38518 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38519 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38520 | if test "${wx_cv_gcc31+set}" = set; then | |
38521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38522 | else | |
38523 | ||
38524 | cat >conftest.$ac_ext <<_ACEOF | |
38525 | /* confdefs.h. */ | |
38526 | _ACEOF | |
38527 | cat confdefs.h >>conftest.$ac_ext | |
38528 | cat >>conftest.$ac_ext <<_ACEOF | |
38529 | /* end confdefs.h. */ | |
38530 | ||
38531 | int | |
38532 | main () | |
38533 | { | |
38534 | ||
38535 | #if (__GNUC__ < 3) || \ | |
38536 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38537 | #error old gcc | |
38538 | #endif | |
38539 | ||
38540 | ; | |
38541 | return 0; | |
38542 | } | |
38543 | _ACEOF | |
38544 | rm -f conftest.$ac_objext | |
38545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38546 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38547 | ac_status=$? |
ac1cb8d3 VS |
38548 | grep -v '^ *+' conftest.er1 >conftest.err |
38549 | rm -f conftest.er1 | |
38550 | cat conftest.err >&5 | |
a848cd7e SC |
38551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38552 | (exit $ac_status); } && | |
ac1cb8d3 VS |
38553 | { ac_try='test -z "$ac_c_werror_flag" |
38554 | || test ! -s conftest.err' | |
38555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38556 | (eval $ac_try) 2>&5 | |
38557 | ac_status=$? | |
38558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38559 | (exit $ac_status); }; } && | |
38560 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38562 | (eval $ac_try) 2>&5 | |
38563 | ac_status=$? | |
38564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38565 | (exit $ac_status); }; }; then | |
38566 | ||
38567 | wx_cv_gcc31=yes | |
38568 | ||
38569 | else | |
38570 | echo "$as_me: failed program was:" >&5 | |
38571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38572 | ||
38573 | ||
38574 | wx_cv_gcc31=no | |
38575 | ||
38576 | ||
38577 | fi | |
ac1cb8d3 | 38578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38579 | |
38580 | fi | |
38581 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38582 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
38583 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
38584 | |
38585 | D='$' | |
38586 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38587 | #!/bin/sh |
38588 | #----------------------------------------------------------------------------- | |
38589 | #-- Name: distrib/mac/shared-ld-sh | |
38590 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38591 | #-- Author: Gilles Depeyrot | |
38592 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38593 | #-- Licence: any use permitted | |
38594 | #----------------------------------------------------------------------------- | |
38595 | ||
38596 | verbose=0 | |
38597 | args="" | |
38598 | objects="" | |
38599 | linking_flag="-dynamiclib" | |
38600 | ||
473276a9 VS |
38601 | while test ${D}# -gt 0; do |
38602 | case ${D}1 in | |
a848cd7e SC |
38603 | |
38604 | -v) | |
38605 | verbose=1 | |
38606 | ;; | |
38607 | ||
38608 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38609 | # collect these options and values | |
473276a9 | 38610 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
38611 | shift |
38612 | ;; | |
38613 | ||
38614 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
38615 | # collect these options | |
473276a9 | 38616 | args="${D}{args} ${D}1" |
a848cd7e SC |
38617 | ;; |
38618 | ||
38619 | -dynamiclib|-bundle) | |
473276a9 | 38620 | linking_flag="${D}1" |
a848cd7e SC |
38621 | ;; |
38622 | ||
38623 | -*) | |
473276a9 | 38624 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
38625 | exit 1 |
38626 | ;; | |
38627 | ||
38628 | *.o | *.a | *.dylib) | |
38629 | # collect object files | |
473276a9 | 38630 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
38631 | ;; |
38632 | ||
38633 | *) | |
473276a9 | 38634 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
38635 | exit 1 |
38636 | ;; | |
38637 | ||
38638 | esac | |
38639 | shift | |
38640 | done | |
38641 | ||
38642 | # | |
38643 | # Link one module containing all the others | |
38644 | # | |
473276a9 VS |
38645 | if test ${D}{verbose} = 1; then |
38646 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 38647 | fi |
473276a9 VS |
38648 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
38649 | status=${D}? | |
38650 | if test ${D}{status} != 0; then | |
38651 | exit ${D}{status} | |
a848cd7e SC |
38652 | fi |
38653 | ||
38654 | # | |
38655 | # Link the shared library from the single module created | |
38656 | # | |
473276a9 VS |
38657 | if test ${D}{verbose} = 1; then |
38658 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 38659 | fi |
473276a9 VS |
38660 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
38661 | status=${D}? | |
38662 | if test ${D}{status} != 0; then | |
38663 | exit ${D}{status} | |
a848cd7e SC |
38664 | fi |
38665 | ||
38666 | # | |
38667 | # Remove intermediate module | |
38668 | # | |
473276a9 | 38669 | rm -f master.${D}${D}.o |
a848cd7e SC |
38670 | |
38671 | exit 0 | |
38672 | EOF | |
473276a9 | 38673 | |
a848cd7e SC |
38674 | chmod +x shared-ld-sh |
38675 | ||
38676 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
38677 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
38678 | SHARED_LD_CXX="$SHARED_LD_CC" | |
38679 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38680 | else | |
38681 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38682 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38683 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38684 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
38685 | fi | |
38686 | ||
38687 | PIC_FLAG="-dynamic -fPIC" | |
38688 | ;; | |
38689 | ||
38690 | *-*-aix* ) | |
38691 | if test "x$GCC" != "xyes"; then | |
38692 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38693 | set dummy makeC++SharedLib; ac_word=$2 | |
38694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38696 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38698 | else | |
38699 | if test -n "$AIX_CXX_LD"; then | |
38700 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38701 | else | |
38702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38703 | for as_dir in $PATH | |
38704 | do | |
38705 | IFS=$as_save_IFS | |
38706 | test -z "$as_dir" && as_dir=. | |
38707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38709 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38711 | break 2 | |
38712 | fi | |
38713 | done | |
38714 | done | |
38715 | ||
38716 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
38717 | fi | |
38718 | fi | |
38719 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
38720 | if test -n "$AIX_CXX_LD"; then | |
38721 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
38722 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
38723 | else | |
38724 | echo "$as_me:$LINENO: result: no" >&5 | |
38725 | echo "${ECHO_T}no" >&6 | |
38726 | fi | |
38727 | ||
38728 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38729 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38730 | fi | |
38731 | ;; | |
38732 | ||
38733 | *-*-beos* ) | |
38734 | SHARED_LD_CC="${LD} -shared -o" | |
38735 | SHARED_LD_CXX="${LD} -shared -o" | |
38736 | ;; | |
38737 | ||
38738 | *-*-irix* ) | |
38739 | if test "x$GCC" != "xyes"; then | |
38740 | PIC_FLAG="-KPIC" | |
38741 | fi | |
38742 | ;; | |
38743 | ||
38744 | *-*-cygwin* | *-*-mingw32* ) | |
38745 | PIC_FLAG="" | |
38746 | ;; | |
38747 | ||
38748 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
38749 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
38750 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 38751 | PIC_FLAG="" |
473276a9 VS |
38752 | |
38753 | D='$' | |
38754 | cat <<EOF >dllar.sh | |
38755 | #!/bin/sh | |
38756 | # | |
38757 | # dllar - a tool to build both a .dll and an .a file | |
38758 | # from a set of object (.o) files for EMX/OS2. | |
38759 | # | |
38760 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
38761 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
38762 | # | |
38763 | # This script will accept a set of files on the command line. | |
38764 | # All the public symbols from the .o files will be exported into | |
38765 | # a .DEF file, then linker will be run (through gcc) against them to | |
38766 | # build a shared library consisting of all given .o files. All libraries | |
38767 | # (.a) will be first decompressed into component .o files then act as | |
38768 | # described above. You can optionally give a description (-d "description") | |
38769 | # which will be put into .DLL. To see the list of accepted options (as well | |
38770 | # as command-line format) simply run this program without options. The .DLL | |
38771 | # is built to be imported by name (there is no guarantee that new versions | |
38772 | # of the library you build will have same ordinals for same symbols). | |
38773 | # | |
38774 | # dllar is free software; you can redistribute it and/or modify | |
38775 | # it under the terms of the GNU General Public License as published by | |
38776 | # the Free Software Foundation; either version 2, or (at your option) | |
38777 | # any later version. | |
38778 | # | |
38779 | # dllar is distributed in the hope that it will be useful, | |
38780 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
38781 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
38782 | # GNU General Public License for more details. | |
38783 | # | |
38784 | # You should have received a copy of the GNU General Public License | |
38785 | # along with dllar; see the file COPYING. If not, write to the Free | |
38786 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
38787 | # 02111-1307, USA. | |
38788 | ||
38789 | # To successfuly run this program you will need: | |
38790 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
38791 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
38792 | # - gcc | |
38793 | # (used to build the .dll) | |
38794 | # - emxexp | |
38795 | # (used to create .def file from .o files) | |
38796 | # - emximp | |
38797 | # (used to create .a file from .def file) | |
38798 | # - GNU text utilites (cat, sort, uniq) | |
38799 | # used to process emxexp output | |
38800 | # - GNU file utilities (mv, rm) | |
38801 | # - GNU sed | |
38802 | # - lxlite (optional, see flag below) | |
38803 | # (used for general .dll cleanup) | |
38804 | # | |
38805 | ||
38806 | flag_USE_LXLITE=1; | |
38807 | ||
38808 | # | |
38809 | # helper functions | |
38810 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
38811 | # second argument (suffix to remove) is given | |
38812 | basnam(){ | |
38813 | case ${D}# in | |
38814 | 1) | |
38815 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
38816 | ;; | |
38817 | 2) | |
38818 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
38819 | ;; | |
38820 | *) | |
38821 | echo "error in basnam ${D}*" | |
38822 | exit 8 | |
38823 | ;; | |
38824 | esac | |
38825 | } | |
38826 | ||
38827 | # Cleanup temporary files and output | |
38828 | CleanUp() { | |
38829 | cd ${D}curDir | |
38830 | for i in ${D}inputFiles ; do | |
38831 | case ${D}i in | |
38832 | *!) | |
38833 | rm -rf \`basnam ${D}i !\` | |
38834 | ;; | |
38835 | *) | |
38836 | ;; | |
38837 | esac | |
38838 | done | |
38839 | ||
38840 | # Kill result in case of failure as there is just to many stupid make/nmake | |
38841 | # things out there which doesn't do this. | |
9f45f08e | 38842 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
38843 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
38844 | fi | |
38845 | } | |
38846 | ||
38847 | # Print usage and exit script with rc=1. | |
38848 | PrintHelp() { | |
9f45f08e VS |
38849 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
38850 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
38851 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
38852 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
38853 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
38854 | echo '*> "output_file" should have no extension.' |
38855 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
38856 | echo ' The import library name is derived from this and is set to "name".a,' | |
38857 | echo ' unless overridden by -import' | |
38858 | echo '*> "importlib_name" should have no extension.' | |
38859 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
38860 | echo ' This name is used as the import library name and may be longer and' | |
38861 | echo ' more descriptive than the DLL name which has to follow the old ' | |
38862 | echo ' 8.3 convention of FAT.' | |
38863 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
38864 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
38865 | echo ' These flags will be put at the start of GCC command line.' | |
9f45f08e VS |
38866 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
38867 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
38868 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
38869 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
38870 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
9f45f08e | 38871 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 38872 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
9f45f08e | 38873 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 38874 | echo ' C runtime DLLs.' |
9f45f08e | 38875 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
38876 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
38877 | echo ' unchanged to GCC at the end of command line.' | |
38878 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
38879 | echo ' the basename for DLL and import library will be set to library name,' | |
38880 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
38881 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
38882 | echo ' library will be renamed into gcc_s.a.' | |
38883 | echo '--------' | |
38884 | echo 'Example:' | |
38885 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
38886 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
38887 | CleanUp | |
38888 | exit 1 | |
38889 | } | |
38890 | ||
38891 | # Execute a command. | |
38892 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
38893 | # @Uses Whatever CleanUp() uses. | |
38894 | doCommand() { | |
38895 | echo "${D}*" | |
38896 | eval ${D}* | |
38897 | rcCmd=${D}? | |
38898 | ||
9f45f08e | 38899 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
38900 | echo "command failed, exit code="${D}rcCmd |
38901 | CleanUp | |
38902 | exit ${D}rcCmd | |
38903 | fi | |
38904 | } | |
38905 | ||
38906 | # main routine | |
38907 | # setup globals | |
38908 | cmdLine=${D}* | |
38909 | outFile="" | |
38910 | outimpFile="" | |
38911 | inputFiles="" | |
38912 | description="" | |
38913 | CC=gcc.exe | |
38914 | CFLAGS="-s -Zcrtdll" | |
38915 | EXTRA_CFLAGS="" | |
38916 | EXPORT_BY_ORDINALS=0 | |
38917 | exclude_symbols="" | |
38918 | library_flags="" | |
38919 | curDir=\`pwd\` | |
38920 | curDirS=curDir | |
38921 | case ${D}curDirS in | |
38922 | */) | |
38923 | ;; | |
38924 | *) | |
38925 | curDirS=${D}{curDirS}"/" | |
38926 | ;; | |
38927 | esac | |
38928 | # Parse commandline | |
38929 | libsToLink=0 | |
9f45f08e | 38930 | while [] ${D}1 []; do |
473276a9 VS |
38931 | case ${D}1 in |
38932 | -ord*) | |
38933 | EXPORT_BY_ORDINALS=1; | |
38934 | ;; | |
38935 | -o*) | |
38936 | shift | |
38937 | outFile=${D}1 | |
38938 | ;; | |
38939 | -i*) | |
38940 | shift | |
38941 | outimpFile=${D}1 | |
38942 | ;; | |
38943 | -d*) | |
38944 | shift | |
38945 | description=${D}1 | |
38946 | ;; | |
38947 | -f*) | |
38948 | shift | |
38949 | CFLAGS=${D}1 | |
38950 | ;; | |
38951 | -c*) | |
38952 | shift | |
38953 | CC=${D}1 | |
38954 | ;; | |
38955 | -h*) | |
38956 | PrintHelp | |
38957 | ;; | |
38958 | -ex*) | |
38959 | shift | |
38960 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
38961 | ;; | |
38962 | -libf*) | |
38963 | shift | |
38964 | library_flags=${D}{library_flags}${D}1" " | |
38965 | ;; | |
38966 | -nocrt*) | |
38967 | CFLAGS="-s" | |
38968 | ;; | |
38969 | -nolxl*) | |
38970 | flag_USE_LXLITE=0 | |
38971 | ;; | |
38972 | -* | /*) | |
38973 | case ${D}1 in | |
38974 | -L* | -l*) | |
38975 | libsToLink=1 | |
38976 | ;; | |
38977 | *) | |
38978 | ;; | |
38979 | esac | |
38980 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
38981 | ;; | |
38982 | *) | |
38983 | found=0; | |
9f45f08e | 38984 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
38985 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
38986 | else | |
38987 | for file in ${D}1 ; do | |
9f45f08e | 38988 | if [] -f ${D}file []; then |
473276a9 VS |
38989 | inputFiles="${D}{inputFiles} ${D}file" |
38990 | found=1 | |
38991 | fi | |
38992 | done | |
9f45f08e | 38993 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
38994 | echo "ERROR: No file(s) found: "${D}1 |
38995 | exit 8 | |
38996 | fi | |
38997 | fi | |
38998 | ;; | |
38999 | esac | |
39000 | shift | |
39001 | done # iterate cmdline words | |
39002 | ||
39003 | # | |
9f45f08e | 39004 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
39005 | echo "dllar: no input files" |
39006 | PrintHelp | |
39007 | fi | |
39008 | ||
39009 | # Now extract all .o files from .a files | |
39010 | newInputFiles="" | |
39011 | for file in ${D}inputFiles ; do | |
39012 | case ${D}file in | |
39013 | *.a | *.lib) | |
39014 | case ${D}file in | |
39015 | *.a) | |
39016 | suffix=".a" | |
39017 | AR="ar" | |
39018 | ;; | |
39019 | *.lib) | |
39020 | suffix=".lib" | |
39021 | AR="emxomfar" | |
39022 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39023 | ;; | |
39024 | *) | |
39025 | ;; | |
39026 | esac | |
39027 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39028 | mkdir ${D}dirname | |
9f45f08e | 39029 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
39030 | echo "Failed to create subdirectory ./${D}dirname" |
39031 | CleanUp | |
39032 | exit 8; | |
39033 | fi | |
39034 | # Append '!' to indicate archive | |
39035 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39036 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39037 | cd ${D}curDir | |
39038 | found=0; | |
39039 | for subfile in ${D}dirname/*.o* ; do | |
9f45f08e | 39040 | if [] -f ${D}subfile []; then |
473276a9 | 39041 | found=1 |
9f45f08e | 39042 | if [] -s ${D}subfile []; then |
473276a9 VS |
39043 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39044 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39045 | fi | |
39046 | fi | |
39047 | done | |
9f45f08e | 39048 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39049 | echo "WARNING: there are no files in archive \'${D}file\'" |
39050 | fi | |
39051 | ;; | |
39052 | *) | |
39053 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39054 | ;; | |
39055 | esac | |
39056 | done | |
39057 | inputFiles="${D}newInputFiles" | |
39058 | ||
39059 | # Output filename(s). | |
39060 | do_backup=0; | |
9f45f08e | 39061 | if [] -z ${D}outFile []; then |
473276a9 VS |
39062 | do_backup=1; |
39063 | set outFile ${D}inputFiles; outFile=${D}2 | |
39064 | fi | |
39065 | ||
39066 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39067 | case ${D}outFile in | |
39068 | *_%!) | |
39069 | outFile=\`basnam ${D}outFile _%!\` | |
39070 | ;; | |
39071 | *) | |
39072 | ;; | |
39073 | esac | |
39074 | case ${D}outFile in | |
39075 | *.dll) | |
39076 | outFile=\`basnam ${D}outFile .dll\` | |
39077 | ;; | |
39078 | *.DLL) | |
39079 | outFile=\`basnam ${D}outFile .DLL\` | |
39080 | ;; | |
39081 | *.o) | |
39082 | outFile=\`basnam ${D}outFile .o\` | |
39083 | ;; | |
39084 | *.obj) | |
39085 | outFile=\`basnam ${D}outFile .obj\` | |
39086 | ;; | |
39087 | *.a) | |
39088 | outFile=\`basnam ${D}outFile .a\` | |
39089 | ;; | |
39090 | *.lib) | |
39091 | outFile=\`basnam ${D}outFile .lib\` | |
39092 | ;; | |
39093 | *) | |
39094 | ;; | |
39095 | esac | |
39096 | case ${D}outimpFile in | |
39097 | *.a) | |
39098 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39099 | ;; | |
39100 | *.lib) | |
39101 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39102 | ;; | |
39103 | *) | |
39104 | ;; | |
39105 | esac | |
9f45f08e | 39106 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
39107 | outimpFile=${D}outFile |
39108 | fi | |
39109 | defFile="${D}{outFile}.def" | |
39110 | arcFile="${D}{outimpFile}.a" | |
39111 | arcFile2="${D}{outimpFile}.lib" | |
39112 | dllFile="${D}outFile" | |
39113 | # Add suffix to dllFile later, first we need a version to use as | |
39114 | # name in .def file. | |
39115 | ||
9f45f08e VS |
39116 | if [] ${D}do_backup -ne 0 [] ; then |
39117 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
39118 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39119 | fi | |
9f45f08e | 39120 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
39121 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39122 | fi | |
39123 | fi | |
39124 | ||
39125 | # Extract public symbols from all the object files. | |
39126 | tmpdefFile=${D}{defFile}_% | |
39127 | rm -f ${D}tmpdefFile | |
39128 | for file in ${D}inputFiles ; do | |
39129 | case ${D}file in | |
39130 | *!) | |
39131 | ;; | |
39132 | *) | |
39133 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39134 | ;; | |
39135 | esac | |
39136 | done | |
39137 | ||
39138 | # Create the def file. | |
39139 | rm -f ${D}defFile | |
39140 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39141 | dllFile="${D}dllFile.dll" | |
9f45f08e | 39142 | if [] -n ${D}description []; then |
473276a9 VS |
39143 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
39144 | fi | |
39145 | echo "EXPORTS" >> ${D}defFile | |
39146 | ||
39147 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39148 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39149 | ||
39150 | # Checks if the export is ok or not. | |
39151 | for word in ${D}exclude_symbols; do | |
39152 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39153 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39154 | done | |
39155 | ||
39156 | ||
9f45f08e | 39157 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39158 | sed "=" < ${D}tmpdefFile | \ |
39159 | sed ' | |
39160 | N | |
39161 | : loop | |
9f45f08e | 39162 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
39163 | t loop |
39164 | ' > ${D}{tmpdefFile}% | |
39165 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39166 | else | |
39167 | rm -f ${D}{tmpdefFile}% | |
39168 | fi | |
39169 | cat ${D}tmpdefFile >> ${D}defFile | |
39170 | rm -f ${D}tmpdefFile | |
39171 | ||
39172 | # Do linking, create implib, and apply lxlite. | |
39173 | gccCmdl=""; | |
39174 | for file in ${D}inputFiles ; do | |
39175 | case ${D}file in | |
39176 | *!) | |
39177 | ;; | |
39178 | *) | |
39179 | gccCmdl="${D}gccCmdl ${D}file" | |
39180 | ;; | |
39181 | esac | |
39182 | done | |
39183 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39184 | touch "${D}{outFile}.dll" | |
39185 | ||
39186 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
9f45f08e | 39187 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39188 | add_flags=""; |
9f45f08e | 39189 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39190 | add_flags="-ynd" |
39191 | fi | |
39192 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39193 | fi | |
39194 | doCommand "emxomf -s -l ${D}arcFile" | |
39195 | ||
39196 | # Successful exit. | |
39197 | CleanUp 1 | |
39198 | exit 0 | |
39199 | EOF | |
39200 | ||
39201 | chmod +x dllar.sh | |
a848cd7e SC |
39202 | ;; |
39203 | ||
39204 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39205 | *-*-sunos4* | \ | |
39206 | *-*-osf* | \ | |
39207 | *-*-dgux5* | \ | |
39208 | *-*-sysv5* ) | |
39209 | ;; | |
39210 | ||
39211 | *) | |
39212 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39213 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39214 | { (exit 1); exit 1; }; } | |
39215 | esac | |
39216 | ||
9f45f08e VS |
39217 | if test "x$PIC_FLAG" != "x" ; then |
39218 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39219 | fi | |
39220 | ||
a848cd7e SC |
39221 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39222 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39223 | fi | |
39224 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39225 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39226 | fi | |
39227 | ||
39228 | ||
39229 | ||
39230 | ||
39231 | ||
39232 | ||
39233 | ||
39234 | ||
39235 | USE_SOVERSION=0 | |
39236 | USE_SOVERLINUX=0 | |
39237 | USE_SOVERSOLARIS=0 | |
39238 | USE_SOSYMLINKS=0 | |
39239 | USE_MACVERSION=0 | |
39240 | SONAME_FLAG= | |
39241 | ||
39242 | case "${BAKEFILE_HOST}" in | |
39243 | *-*-linux* ) | |
39244 | SONAME_FLAG="-Wl,-soname," | |
39245 | USE_SOVERSION=1 | |
39246 | USE_SOVERLINUX=1 | |
39247 | USE_SOSYMLINKS=1 | |
39248 | ;; | |
39249 | ||
39250 | *-*-solaris2* ) | |
39251 | SONAME_FLAG="-h " | |
39252 | USE_SOVERSION=1 | |
39253 | USE_SOVERSOLARIS=1 | |
39254 | USE_SOSYMLINKS=1 | |
39255 | ;; | |
39256 | ||
39257 | *-*-darwin* ) | |
39258 | USE_MACVERSION=1 | |
39259 | USE_SOVERSION=1 | |
39260 | USE_SOSYMLINKS=1 | |
39261 | ;; | |
39262 | esac | |
39263 | ||
39264 | ||
39265 | ||
39266 | ||
39267 | ||
39268 | ||
39269 | ||
39270 | ||
39271 | ||
39272 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39273 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39274 | DEPS_TRACKING=0 | |
39275 | ||
39276 | if test "x$GCC" = "xyes"; then | |
39277 | DEPSMODE=gcc | |
39278 | DEPS_TRACKING=1 | |
39279 | case "${BAKEFILE_HOST}" in | |
39280 | powerpc-*-darwin* ) | |
39281 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39282 | ;; | |
39283 | * ) | |
39284 | DEPSFLAG_GCC="-MMD" | |
39285 | ;; | |
39286 | esac | |
39287 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39288 | echo "${ECHO_T}gcc" >&6 | |
39289 | else | |
39290 | echo "$as_me:$LINENO: result: none" >&5 | |
39291 | echo "${ECHO_T}none" >&6 | |
39292 | fi | |
39293 | ||
39294 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39295 | |
39296 | D='$' | |
39297 | cat <<EOF >bk-deps | |
a848cd7e SC |
39298 | #!/bin/sh |
39299 | ||
39300 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39301 | # script. It is used to track C/C++ files dependencies in portable way. | |
39302 | # | |
39303 | # Permission is given to use this file in any way. | |
39304 | ||
473276a9 | 39305 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39306 | DEPSDIR=.deps |
473276a9 | 39307 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39308 | |
473276a9 | 39309 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39310 | |
473276a9 VS |
39311 | if test ${D}DEPSMODE = gcc ; then |
39312 | ${D}* ${D}{DEPSFLAG_GCC} | |
39313 | status=${D}? | |
39314 | if test ${D}{status} != 0 ; then | |
39315 | exit ${D}{status} | |
a848cd7e SC |
39316 | fi |
39317 | # move created file to the location we want it in: | |
473276a9 VS |
39318 | while test ${D}# -gt 0; do |
39319 | case "${D}1" in | |
a848cd7e SC |
39320 | -o ) |
39321 | shift | |
473276a9 | 39322 | objfile=${D}1 |
a848cd7e SC |
39323 | ;; |
39324 | -* ) | |
39325 | ;; | |
39326 | * ) | |
473276a9 | 39327 | srcfile=${D}1 |
a848cd7e SC |
39328 | ;; |
39329 | esac | |
39330 | shift | |
39331 | done | |
473276a9 VS |
39332 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39333 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39334 | if test -f ${D}depfile ; then | |
39335 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39336 | rm -f ${D}depfile | |
a848cd7e | 39337 | else |
473276a9 VS |
39338 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39339 | if test -f ${D}depfile ; then | |
39340 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39341 | rm -f ${D}depfile | |
a848cd7e SC |
39342 | fi |
39343 | fi | |
39344 | exit 0 | |
39345 | else | |
473276a9 VS |
39346 | ${D}* |
39347 | exit ${D}? | |
a848cd7e SC |
39348 | fi |
39349 | EOF | |
473276a9 | 39350 | |
a848cd7e SC |
39351 | chmod +x bk-deps |
39352 | fi | |
39353 | ||
39354 | ||
39355 | ||
39356 | ||
39357 | RESCOMP= | |
39358 | SETFILE= | |
39359 | ||
39360 | case ${BAKEFILE_HOST} in | |
39361 | *-*-cygwin* | *-*-mingw32* ) | |
39362 | if test "$build" != "$host" ; then | |
39363 | RESCOMP=$host_alias-windres | |
39364 | else | |
39365 | # Extract the first word of "windres", so it can be a program name with args. | |
39366 | set dummy windres; ac_word=$2 | |
39367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39369 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39371 | else | |
39372 | if test -n "$RESCOMP"; then | |
39373 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39374 | else | |
39375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39376 | for as_dir in $PATH | |
39377 | do | |
39378 | IFS=$as_save_IFS | |
39379 | test -z "$as_dir" && as_dir=. | |
39380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39382 | ac_cv_prog_RESCOMP="windres" | |
39383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39384 | break 2 | |
39385 | fi | |
39386 | done | |
39387 | done | |
39388 | ||
39389 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39390 | fi | |
39391 | fi | |
39392 | RESCOMP=$ac_cv_prog_RESCOMP | |
39393 | if test -n "$RESCOMP"; then | |
39394 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39395 | echo "${ECHO_T}$RESCOMP" >&6 | |
39396 | else | |
39397 | echo "$as_me:$LINENO: result: no" >&5 | |
39398 | echo "${ECHO_T}no" >&6 | |
39399 | fi | |
39400 | ||
39401 | fi | |
39402 | ;; | |
39403 | ||
39404 | *-*-darwin* ) | |
39405 | # Extract the first word of "Rez", so it can be a program name with args. | |
39406 | set dummy Rez; ac_word=$2 | |
39407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39409 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39411 | else | |
39412 | if test -n "$RESCOMP"; then | |
39413 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39414 | else | |
39415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39416 | for as_dir in $PATH | |
39417 | do | |
39418 | IFS=$as_save_IFS | |
39419 | test -z "$as_dir" && as_dir=. | |
39420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39422 | ac_cv_prog_RESCOMP="Rez" | |
39423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39424 | break 2 | |
39425 | fi | |
39426 | done | |
39427 | done | |
39428 | ||
39429 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39430 | fi | |
39431 | fi | |
39432 | RESCOMP=$ac_cv_prog_RESCOMP | |
39433 | if test -n "$RESCOMP"; then | |
39434 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39435 | echo "${ECHO_T}$RESCOMP" >&6 | |
39436 | else | |
39437 | echo "$as_me:$LINENO: result: no" >&5 | |
39438 | echo "${ECHO_T}no" >&6 | |
39439 | fi | |
39440 | ||
39441 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39442 | set dummy SetFile; ac_word=$2 | |
39443 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39445 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39447 | else | |
39448 | if test -n "$SETFILE"; then | |
39449 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39450 | else | |
39451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39452 | for as_dir in $PATH | |
39453 | do | |
39454 | IFS=$as_save_IFS | |
39455 | test -z "$as_dir" && as_dir=. | |
39456 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39457 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39458 | ac_cv_prog_SETFILE="SetFile" | |
39459 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39460 | break 2 | |
39461 | fi | |
39462 | done | |
39463 | done | |
39464 | ||
39465 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39466 | fi | |
39467 | fi | |
39468 | SETFILE=$ac_cv_prog_SETFILE | |
39469 | if test -n "$SETFILE"; then | |
39470 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39471 | echo "${ECHO_T}$SETFILE" >&6 | |
39472 | else | |
39473 | echo "$as_me:$LINENO: result: no" >&5 | |
39474 | echo "${ECHO_T}no" >&6 | |
39475 | fi | |
39476 | ||
39477 | ;; | |
39478 | esac | |
39479 | ||
39480 | ||
39481 | ||
39482 | ||
39483 | ||
9f45f08e | 39484 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39485 | |
dcc1b6ad | 39486 | |
9f45f08e | 39487 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39488 | |
646b6ec1 | 39489 | |
74b84332 | 39490 | |
a848cd7e SC |
39491 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39492 | if test "${enable_precomp_headers+set}" = set; then | |
39493 | enableval="$enable_precomp_headers" | |
39494 | bk_use_pch="$enableval" | |
39495 | fi; | |
39496 | ||
39497 | GCC_PCH=0 | |
39498 | ||
39499 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39500 | if test "x$GCC" = "xyes"; then | |
39501 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39502 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39503 | cat >conftest.$ac_ext <<_ACEOF | |
39504 | /* confdefs.h. */ | |
39505 | _ACEOF | |
39506 | cat confdefs.h >>conftest.$ac_ext | |
39507 | cat >>conftest.$ac_ext <<_ACEOF | |
39508 | /* end confdefs.h. */ | |
39509 | ||
39510 | int | |
39511 | main () | |
39512 | { | |
39513 | ||
39514 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39515 | #error "no pch support" | |
39516 | #endif | |
39517 | #if (__GNUC__ < 3) | |
39518 | #error "no pch support" | |
39519 | #endif | |
39520 | #if (__GNUC__ == 3) && \ | |
39521 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39522 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39523 | #error "no pch support" | |
39524 | #endif | |
39525 | ||
39526 | ; | |
39527 | return 0; | |
39528 | } | |
39529 | _ACEOF | |
39530 | rm -f conftest.$ac_objext | |
39531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39532 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39533 | ac_status=$? |
ac1cb8d3 VS |
39534 | grep -v '^ *+' conftest.er1 >conftest.err |
39535 | rm -f conftest.er1 | |
39536 | cat conftest.err >&5 | |
a848cd7e SC |
39537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39538 | (exit $ac_status); } && | |
ac1cb8d3 VS |
39539 | { ac_try='test -z "$ac_c_werror_flag" |
39540 | || test ! -s conftest.err' | |
39541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39542 | (eval $ac_try) 2>&5 | |
39543 | ac_status=$? | |
39544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39545 | (exit $ac_status); }; } && | |
39546 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39548 | (eval $ac_try) 2>&5 | |
39549 | ac_status=$? | |
39550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39551 | (exit $ac_status); }; }; then | |
39552 | ||
39553 | echo "$as_me:$LINENO: result: yes" >&5 | |
39554 | echo "${ECHO_T}yes" >&6 | |
39555 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
39556 | GCC_PCH=1 | |
39557 | ||
39558 | else | |
39559 | echo "$as_me: failed program was:" >&5 | |
39560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39561 | ||
39562 | ||
39563 | echo "$as_me:$LINENO: result: no" >&5 | |
39564 | echo "${ECHO_T}no" >&6 | |
39565 | ||
39566 | fi | |
ac1cb8d3 | 39567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39568 | if test $GCC_PCH = 1 ; then |
39569 | cat <<EOF >bk-make-pch | |
39570 | #!/bin/sh | |
39571 | ||
39572 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39573 | # script. It is used to generated precompiled headers. | |
39574 | # | |
39575 | # Permission is given to use this file in any way. | |
39576 | ||
39577 | outfile="\${1}" | |
39578 | header="\${2}" | |
39579 | shift | |
39580 | shift | |
39581 | ||
39582 | compiler= | |
39583 | headerfile= | |
39584 | while test \${#} -gt 0; do | |
39585 | case "\${1}" in | |
39586 | -I* ) | |
39587 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39588 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39589 | headerfile="\${incdir}/\${header}" | |
39590 | fi | |
39591 | ;; | |
39592 | esac | |
39593 | compiler="\${compiler} \${1}" | |
39594 | shift | |
39595 | done | |
39596 | ||
39597 | if test "x\${headerfile}" = "x" ; then | |
39598 | echo "error: can't find header \${header} in include paths" >2 | |
39599 | else | |
39600 | if test -f \${outfile} ; then | |
39601 | rm -f \${outfile} | |
39602 | else | |
39603 | mkdir -p \`dirname \${outfile}\` | |
39604 | fi | |
39605 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39606 | mkdir -p .deps | |
39607 | # can do this because gcc is >= 3.4: | |
39608 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39609 | exit \${?} | |
39610 | fi | |
39611 | EOF | |
39612 | chmod +x bk-make-pch | |
39613 | fi | |
39614 | fi | |
39615 | fi | |
39616 | ||
39617 | ||
39618 | ||
39619 | ||
39620 | ||
dcc1b6ad VS |
39621 | |
39622 | ||
39623 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
39624 | if test "${enable_precomp_headers+set}" = set; then | |
39625 | enableval="$enable_precomp_headers" | |
39626 | bk_use_pch="$enableval" | |
39627 | fi; | |
39628 | ||
39629 | GCC_PCH=0 | |
39630 | ||
39631 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39632 | if test "x$GCC" = "xyes"; then | |
39633 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39634 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39635 | cat >conftest.$ac_ext <<_ACEOF | |
39636 | /* confdefs.h. */ | |
39637 | _ACEOF | |
39638 | cat confdefs.h >>conftest.$ac_ext | |
39639 | cat >>conftest.$ac_ext <<_ACEOF | |
39640 | /* end confdefs.h. */ | |
39641 | ||
39642 | int | |
39643 | main () | |
39644 | { | |
39645 | ||
39646 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39647 | #error "no pch support" | |
39648 | #endif | |
39649 | #if (__GNUC__ < 3) | |
39650 | #error "no pch support" | |
39651 | #endif | |
39652 | #if (__GNUC__ == 3) && \ | |
39653 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39654 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39655 | #error "no pch support" | |
39656 | #endif | |
39657 | ||
39658 | ; | |
39659 | return 0; | |
39660 | } | |
39661 | _ACEOF | |
39662 | rm -f conftest.$ac_objext | |
39663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39664 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 39665 | ac_status=$? |
ac1cb8d3 VS |
39666 | grep -v '^ *+' conftest.er1 >conftest.err |
39667 | rm -f conftest.er1 | |
39668 | cat conftest.err >&5 | |
dcc1b6ad VS |
39669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39670 | (exit $ac_status); } && | |
ac1cb8d3 VS |
39671 | { ac_try='test -z "$ac_c_werror_flag" |
39672 | || test ! -s conftest.err' | |
39673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39674 | (eval $ac_try) 2>&5 | |
39675 | ac_status=$? | |
39676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39677 | (exit $ac_status); }; } && | |
39678 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
39679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39680 | (eval $ac_try) 2>&5 | |
39681 | ac_status=$? | |
39682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39683 | (exit $ac_status); }; }; then | |
39684 | ||
39685 | echo "$as_me:$LINENO: result: yes" >&5 | |
39686 | echo "${ECHO_T}yes" >&6 | |
39687 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
39688 | GCC_PCH=1 | |
39689 | ||
39690 | else | |
39691 | echo "$as_me: failed program was:" >&5 | |
39692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39693 | ||
39694 | ||
39695 | echo "$as_me:$LINENO: result: no" >&5 | |
39696 | echo "${ECHO_T}no" >&6 | |
39697 | ||
39698 | fi | |
ac1cb8d3 | 39699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
39700 | if test $GCC_PCH = 1 ; then |
39701 | cat <<EOF >bk-make-pch | |
39702 | #!/bin/sh | |
39703 | ||
39704 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39705 | # script. It is used to generated precompiled headers. | |
39706 | # | |
39707 | # Permission is given to use this file in any way. | |
39708 | ||
39709 | outfile="\${1}" | |
39710 | header="\${2}" | |
39711 | shift | |
39712 | shift | |
39713 | ||
39714 | compiler= | |
39715 | headerfile= | |
39716 | while test \${#} -gt 0; do | |
39717 | case "\${1}" in | |
39718 | -I* ) | |
39719 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39720 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39721 | headerfile="\${incdir}/\${header}" | |
39722 | fi | |
39723 | ;; | |
39724 | esac | |
39725 | compiler="\${compiler} \${1}" | |
39726 | shift | |
39727 | done | |
39728 | ||
39729 | if test "x\${headerfile}" = "x" ; then | |
39730 | echo "error: can't find header \${header} in include paths" >2 | |
39731 | else | |
39732 | if test -f \${outfile} ; then | |
39733 | rm -f \${outfile} | |
39734 | else | |
39735 | mkdir -p \`dirname \${outfile}\` | |
39736 | fi | |
39737 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39738 | mkdir -p .deps | |
39739 | # can do this because gcc is >= 3.4: | |
39740 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39741 | exit \${?} | |
39742 | fi | |
39743 | EOF | |
39744 | chmod +x bk-make-pch | |
39745 | fi | |
39746 | fi | |
39747 | fi | |
39748 | ||
39749 | ||
39750 | ||
39751 | ||
a848cd7e SC |
39752 | COND_BUILD_DEBUG="#" |
39753 | if test "x$BUILD" = "xdebug" ; then | |
39754 | COND_BUILD_DEBUG="" | |
39755 | fi | |
39756 | ||
39757 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
39758 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39759 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39760 | fi | |
39761 | ||
39762 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39763 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39764 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39765 | fi | |
39766 | ||
39767 | COND_BUILD_DEBUG_UNICODE_0="#" | |
39768 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39769 | COND_BUILD_DEBUG_UNICODE_0="" | |
39770 | fi | |
39771 | ||
39772 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39773 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39774 | COND_BUILD_DEBUG_UNICODE_1="" | |
39775 | fi | |
39776 | ||
39777 | COND_BUILD_RELEASE="#" | |
39778 | if test "x$BUILD" = "xrelease" ; then | |
39779 | COND_BUILD_RELEASE="" | |
39780 | fi | |
39781 | ||
39782 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
39783 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39784 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39785 | fi | |
39786 | ||
39787 | COND_BUILD_RELEASE_UNICODE_0="#" | |
39788 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39789 | COND_BUILD_RELEASE_UNICODE_0="" | |
39790 | fi | |
39791 | ||
39792 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39793 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39794 | COND_BUILD_RELEASE_UNICODE_1="" | |
39795 | fi | |
39796 | ||
39797 | COND_DEBUG_FLAG_1="#" | |
39798 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39799 | COND_DEBUG_FLAG_1="" | |
39800 | fi | |
39801 | ||
39802 | COND_DEBUG_INFO_0="#" | |
39803 | if test "x$DEBUG_INFO" = "x0" ; then | |
39804 | COND_DEBUG_INFO_0="" | |
39805 | fi | |
39806 | ||
39807 | COND_DEBUG_INFO_1="#" | |
39808 | if test "x$DEBUG_INFO" = "x1" ; then | |
39809 | COND_DEBUG_INFO_1="" | |
39810 | fi | |
39811 | ||
39812 | COND_DEPS_TRACKING_0="#" | |
39813 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39814 | COND_DEPS_TRACKING_0="" | |
39815 | fi | |
39816 | ||
39817 | COND_DEPS_TRACKING_1="#" | |
39818 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39819 | COND_DEPS_TRACKING_1="" | |
39820 | fi | |
39821 | ||
39822 | COND_GCC_PCH_1="#" | |
39823 | if test "x$GCC_PCH" = "x1" ; then | |
39824 | COND_GCC_PCH_1="" | |
39825 | fi | |
39826 | ||
39827 | COND_MONOLITHIC_0="#" | |
39828 | if test "x$MONOLITHIC" = "x0" ; then | |
39829 | COND_MONOLITHIC_0="" | |
39830 | fi | |
39831 | ||
39832 | COND_MONOLITHIC_0_SHARED_0="#" | |
39833 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39834 | COND_MONOLITHIC_0_SHARED_0="" | |
39835 | fi | |
39836 | ||
39837 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39838 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39839 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
39840 | fi | |
39841 | ||
39842 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
39843 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39844 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39845 | fi | |
39846 | ||
39847 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
39848 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39849 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39850 | fi | |
39851 | ||
39852 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
39853 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39854 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39855 | fi | |
39856 | ||
39857 | COND_MONOLITHIC_0_SHARED_1="#" | |
39858 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39859 | COND_MONOLITHIC_0_SHARED_1="" | |
39860 | fi | |
39861 | ||
39862 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
39863 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39864 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
39865 | fi | |
39866 | ||
39867 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
39868 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39869 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
39870 | fi | |
39871 | ||
39872 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
39873 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
39874 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
39875 | fi | |
39876 | ||
39877 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
39878 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39879 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
39880 | fi | |
39881 | ||
39882 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
39883 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39884 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
39885 | fi | |
39886 | ||
39887 | COND_MONOLITHIC_1="#" | |
39888 | if test "x$MONOLITHIC" = "x1" ; then | |
39889 | COND_MONOLITHIC_1="" | |
39890 | fi | |
39891 | ||
39892 | COND_MONOLITHIC_1_SHARED_0="#" | |
39893 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
39894 | COND_MONOLITHIC_1_SHARED_0="" | |
39895 | fi | |
39896 | ||
39897 | COND_MONOLITHIC_1_SHARED_1="#" | |
39898 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
39899 | COND_MONOLITHIC_1_SHARED_1="" | |
39900 | fi | |
39901 | ||
39902 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
39903 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39904 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
39905 | fi | |
39906 | ||
39907 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
39908 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39909 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
39910 | fi | |
39911 | ||
39912 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
39913 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
39914 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
39915 | fi | |
39916 | ||
39917 | COND_PLATFORM_MACOSX_1="#" | |
39918 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
39919 | COND_PLATFORM_MACOSX_1="" | |
39920 | fi | |
39921 | ||
39922 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
39923 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
39924 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
39925 | fi | |
39926 | ||
39927 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
39928 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
39929 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
39930 | fi | |
39931 | ||
39932 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
39933 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
39934 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
39935 | fi | |
39936 | ||
39937 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
39938 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39939 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
39940 | fi | |
39941 | ||
39942 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
39943 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
39944 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
39945 | fi | |
39946 | ||
39947 | COND_PLATFORM_MAC_1="#" | |
39948 | if test "x$PLATFORM_MAC" = "x1" ; then | |
39949 | COND_PLATFORM_MAC_1="" | |
39950 | fi | |
39951 | ||
39952 | COND_PLATFORM_OS2_1="#" | |
39953 | if test "x$PLATFORM_OS2" = "x1" ; then | |
39954 | COND_PLATFORM_OS2_1="" | |
39955 | fi | |
39956 | ||
39957 | COND_PLATFORM_UNIX_0="#" | |
39958 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
39959 | COND_PLATFORM_UNIX_0="" | |
39960 | fi | |
39961 | ||
39962 | COND_PLATFORM_UNIX_1="#" | |
39963 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
39964 | COND_PLATFORM_UNIX_1="" | |
39965 | fi | |
39966 | ||
39967 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
39968 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39969 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
39970 | fi | |
39971 | ||
39972 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
39973 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
39974 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
39975 | fi | |
39976 | ||
39977 | COND_PLATFORM_WIN32_0="#" | |
39978 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
39979 | COND_PLATFORM_WIN32_0="" | |
39980 | fi | |
39981 | ||
39982 | COND_PLATFORM_WIN32_1="#" | |
39983 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
39984 | COND_PLATFORM_WIN32_1="" | |
39985 | fi | |
39986 | ||
39987 | COND_SHARED_0="#" | |
39988 | if test "x$SHARED" = "x0" ; then | |
39989 | COND_SHARED_0="" | |
39990 | fi | |
39991 | ||
39992 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
39993 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39994 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
39995 | fi | |
39996 | ||
39997 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
39998 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39999 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40000 | fi | |
40001 | ||
40002 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40003 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40004 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40005 | fi | |
40006 | ||
40007 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40008 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40009 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40010 | fi | |
40011 | ||
40012 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40013 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40014 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40015 | fi | |
40016 | ||
40017 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40018 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40019 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40020 | fi | |
40021 | ||
40022 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40023 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40024 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40025 | fi | |
40026 | ||
40027 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40028 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40029 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40030 | fi | |
40031 | ||
40032 | COND_SHARED_1="#" | |
40033 | if test "x$SHARED" = "x1" ; then | |
40034 | COND_SHARED_1="" | |
40035 | fi | |
40036 | ||
40037 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40038 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40039 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40040 | fi | |
40041 | ||
40042 | COND_TOOLKIT_COCOA="#" | |
40043 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40044 | COND_TOOLKIT_COCOA="" | |
40045 | fi | |
40046 | ||
40047 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40048 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40049 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40050 | fi | |
40051 | ||
40052 | COND_TOOLKIT_GTK="#" | |
40053 | if test "x$TOOLKIT" = "xGTK" ; then | |
40054 | COND_TOOLKIT_GTK="" | |
40055 | fi | |
40056 | ||
40057 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40058 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40059 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40060 | fi | |
40061 | ||
40062 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40063 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40064 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40065 | fi | |
40066 | ||
40067 | COND_TOOLKIT_MAC="#" | |
40068 | if test "x$TOOLKIT" = "xMAC" ; then | |
40069 | COND_TOOLKIT_MAC="" | |
40070 | fi | |
40071 | ||
40072 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40073 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40074 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40075 | fi | |
40076 | ||
40077 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40078 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40079 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40080 | fi | |
40081 | ||
e835546c DE |
40082 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
40083 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40084 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
40085 | fi | |
40086 | ||
a848cd7e SC |
40087 | COND_TOOLKIT_MGL="#" |
40088 | if test "x$TOOLKIT" = "xMGL" ; then | |
40089 | COND_TOOLKIT_MGL="" | |
40090 | fi | |
40091 | ||
40092 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40093 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40094 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40095 | fi | |
40096 | ||
40097 | COND_TOOLKIT_MOTIF="#" | |
40098 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40099 | COND_TOOLKIT_MOTIF="" | |
40100 | fi | |
40101 | ||
40102 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40103 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40104 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40105 | fi | |
40106 | ||
40107 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40108 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40109 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40110 | fi | |
40111 | ||
40112 | COND_TOOLKIT_MSW="#" | |
40113 | if test "x$TOOLKIT" = "xMSW" ; then | |
40114 | COND_TOOLKIT_MSW="" | |
40115 | fi | |
40116 | ||
40117 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40118 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40119 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40120 | fi | |
40121 | ||
40122 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40123 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40124 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40125 | fi | |
40126 | ||
e835546c DE |
40127 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
40128 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40129 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
40130 | fi | |
40131 | ||
a848cd7e SC |
40132 | COND_TOOLKIT_PM="#" |
40133 | if test "x$TOOLKIT" = "xPM" ; then | |
40134 | COND_TOOLKIT_PM="" | |
40135 | fi | |
40136 | ||
40137 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40138 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40139 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40140 | fi | |
40141 | ||
40142 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40143 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40144 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40145 | fi | |
40146 | ||
e835546c DE |
40147 | COND_TOOLKIT_PM_WXUNIV_0="#" |
40148 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40149 | COND_TOOLKIT_PM_WXUNIV_0="" | |
40150 | fi | |
40151 | ||
3fd9c298 DE |
40152 | COND_TOOLKIT_WINCE="#" |
40153 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40154 | COND_TOOLKIT_WINCE="" | |
40155 | fi | |
40156 | ||
40157 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40158 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40159 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40160 | fi | |
40161 | ||
40162 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40163 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40164 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40165 | fi | |
40166 | ||
a848cd7e SC |
40167 | COND_TOOLKIT_X11="#" |
40168 | if test "x$TOOLKIT" = "xX11" ; then | |
40169 | COND_TOOLKIT_X11="" | |
40170 | fi | |
40171 | ||
40172 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40173 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40174 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40175 | fi | |
40176 | ||
40177 | COND_UNICODE_1="#" | |
40178 | if test "x$UNICODE" = "x1" ; then | |
40179 | COND_UNICODE_1="" | |
40180 | fi | |
40181 | ||
40182 | COND_USE_EXCEPTIONS_0="#" | |
40183 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40184 | COND_USE_EXCEPTIONS_0="" | |
40185 | fi | |
40186 | ||
40187 | COND_USE_EXCEPTIONS_1="#" | |
40188 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40189 | COND_USE_EXCEPTIONS_1="" | |
40190 | fi | |
40191 | ||
40192 | COND_USE_GUI_0="#" | |
40193 | if test "x$USE_GUI" = "x0" ; then | |
40194 | COND_USE_GUI_0="" | |
40195 | fi | |
40196 | ||
40197 | COND_USE_GUI_1="#" | |
40198 | if test "x$USE_GUI" = "x1" ; then | |
40199 | COND_USE_GUI_1="" | |
40200 | fi | |
40201 | ||
40202 | COND_USE_GUI_1_WXUNIV_0="#" | |
40203 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40204 | COND_USE_GUI_1_WXUNIV_0="" | |
40205 | fi | |
40206 | ||
40207 | COND_USE_GUI_1_WXUNIV_1="#" | |
40208 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40209 | COND_USE_GUI_1_WXUNIV_1="" | |
40210 | fi | |
40211 | ||
40212 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40213 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40214 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40215 | fi | |
40216 | ||
40217 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40218 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40219 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40220 | fi | |
40221 | ||
40222 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40223 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40224 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40225 | fi | |
40226 | ||
40227 | COND_USE_ODBC_1="#" | |
40228 | if test "x$USE_ODBC" = "x1" ; then | |
40229 | COND_USE_ODBC_1="" | |
40230 | fi | |
40231 | ||
40232 | COND_USE_PLUGINS_0="#" | |
40233 | if test "x$USE_PLUGINS" = "x0" ; then | |
40234 | COND_USE_PLUGINS_0="" | |
40235 | fi | |
40236 | ||
40237 | COND_USE_SOSYMLINKS_1="#" | |
40238 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40239 | COND_USE_SOSYMLINKS_1="" | |
40240 | fi | |
40241 | ||
40242 | COND_USE_SOVERLINUX_1="#" | |
40243 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40244 | COND_USE_SOVERLINUX_1="" | |
40245 | fi | |
40246 | ||
40247 | COND_USE_SOVERSION_0="#" | |
40248 | if test "x$USE_SOVERSION" = "x0" ; then | |
40249 | COND_USE_SOVERSION_0="" | |
40250 | fi | |
40251 | ||
40252 | COND_USE_SOVERSOLARIS_1="#" | |
40253 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40254 | COND_USE_SOVERSOLARIS_1="" | |
40255 | fi | |
40256 | ||
40257 | COND_WITH_PLUGIN_SDL_1="#" | |
40258 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40259 | COND_WITH_PLUGIN_SDL_1="" | |
40260 | fi | |
40261 | ||
40262 | COND_WITH_SDL_1="#" | |
40263 | if test "x$WITH_SDL" = "x1" ; then | |
40264 | COND_WITH_SDL_1="" | |
40265 | fi | |
40266 | ||
40267 | COND_WXUNIV_1="#" | |
40268 | if test "x$WXUNIV" = "x1" ; then | |
40269 | COND_WXUNIV_1="" | |
40270 | fi | |
40271 | ||
40272 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40273 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40274 | COND_WXUSE_EXPAT_BUILTIN="" | |
40275 | fi | |
40276 | ||
40277 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40278 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40279 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40280 | fi | |
40281 | ||
40282 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40283 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40284 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40285 | fi | |
40286 | ||
40287 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40288 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40289 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40290 | fi | |
40291 | ||
40292 | COND_WXUSE_ODBC_BUILTIN="#" | |
40293 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40294 | COND_WXUSE_ODBC_BUILTIN="" | |
40295 | fi | |
40296 | ||
40297 | COND_WXUSE_REGEX_BUILTIN="#" | |
40298 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40299 | COND_WXUSE_REGEX_BUILTIN="" | |
40300 | fi | |
40301 | ||
40302 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40303 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40304 | COND_WXUSE_ZLIB_BUILTIN="" | |
40305 | fi | |
40306 | ||
dcc1b6ad VS |
40307 | COND_BUILD_DEBUG="#" |
40308 | if test "x$BUILD" = "xdebug" ; then | |
40309 | COND_BUILD_DEBUG="" | |
40310 | fi | |
40311 | ||
40312 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40313 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40314 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40315 | fi | |
40316 | ||
40317 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40318 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40319 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40320 | fi | |
40321 | ||
40322 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40323 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40324 | COND_BUILD_DEBUG_UNICODE_0="" | |
40325 | fi | |
40326 | ||
40327 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40328 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40329 | COND_BUILD_DEBUG_UNICODE_1="" | |
40330 | fi | |
40331 | ||
40332 | COND_BUILD_RELEASE="#" | |
40333 | if test "x$BUILD" = "xrelease" ; then | |
40334 | COND_BUILD_RELEASE="" | |
40335 | fi | |
40336 | ||
40337 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40338 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40339 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40340 | fi | |
40341 | ||
40342 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40343 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40344 | COND_BUILD_RELEASE_UNICODE_0="" | |
40345 | fi | |
40346 | ||
40347 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40348 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40349 | COND_BUILD_RELEASE_UNICODE_1="" | |
40350 | fi | |
40351 | ||
40352 | COND_DEBUG_FLAG_1="#" | |
40353 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40354 | COND_DEBUG_FLAG_1="" | |
40355 | fi | |
40356 | ||
40357 | COND_DEBUG_INFO_0="#" | |
40358 | if test "x$DEBUG_INFO" = "x0" ; then | |
40359 | COND_DEBUG_INFO_0="" | |
40360 | fi | |
40361 | ||
40362 | COND_DEBUG_INFO_1="#" | |
40363 | if test "x$DEBUG_INFO" = "x1" ; then | |
40364 | COND_DEBUG_INFO_1="" | |
40365 | fi | |
40366 | ||
40367 | COND_DEPS_TRACKING_0="#" | |
40368 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40369 | COND_DEPS_TRACKING_0="" | |
40370 | fi | |
40371 | ||
40372 | COND_DEPS_TRACKING_1="#" | |
40373 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40374 | COND_DEPS_TRACKING_1="" | |
40375 | fi | |
40376 | ||
40377 | COND_GCC_PCH_1="#" | |
40378 | if test "x$GCC_PCH" = "x1" ; then | |
40379 | COND_GCC_PCH_1="" | |
40380 | fi | |
40381 | ||
40382 | COND_MONOLITHIC_0="#" | |
40383 | if test "x$MONOLITHIC" = "x0" ; then | |
40384 | COND_MONOLITHIC_0="" | |
40385 | fi | |
40386 | ||
40387 | COND_MONOLITHIC_0_SHARED_0="#" | |
40388 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40389 | COND_MONOLITHIC_0_SHARED_0="" | |
40390 | fi | |
40391 | ||
40392 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40393 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40394 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40395 | fi | |
40396 | ||
40397 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40398 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40399 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40400 | fi | |
40401 | ||
40402 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40403 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40404 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40405 | fi | |
40406 | ||
40407 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40408 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40409 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40410 | fi | |
40411 | ||
40412 | COND_MONOLITHIC_0_SHARED_1="#" | |
40413 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40414 | COND_MONOLITHIC_0_SHARED_1="" | |
40415 | fi | |
40416 | ||
40417 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40418 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40419 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40420 | fi | |
40421 | ||
40422 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40423 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40424 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40425 | fi | |
40426 | ||
40427 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40428 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40429 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40430 | fi | |
40431 | ||
40432 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40433 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40434 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40435 | fi | |
40436 | ||
40437 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
40438 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40439 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40440 | fi | |
40441 | ||
40442 | COND_MONOLITHIC_1="#" | |
40443 | if test "x$MONOLITHIC" = "x1" ; then | |
40444 | COND_MONOLITHIC_1="" | |
40445 | fi | |
40446 | ||
40447 | COND_MONOLITHIC_1_SHARED_0="#" | |
40448 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40449 | COND_MONOLITHIC_1_SHARED_0="" | |
40450 | fi | |
40451 | ||
40452 | COND_MONOLITHIC_1_SHARED_1="#" | |
40453 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40454 | COND_MONOLITHIC_1_SHARED_1="" | |
40455 | fi | |
40456 | ||
40457 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40458 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40459 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40460 | fi | |
40461 | ||
40462 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40463 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40464 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40465 | fi | |
40466 | ||
40467 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40468 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40469 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40470 | fi | |
40471 | ||
40472 | COND_PLATFORM_MACOSX_1="#" | |
40473 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40474 | COND_PLATFORM_MACOSX_1="" | |
40475 | fi | |
40476 | ||
40477 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40478 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40479 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40480 | fi | |
40481 | ||
40482 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40483 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40484 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40485 | fi | |
40486 | ||
40487 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40488 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40489 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40490 | fi | |
40491 | ||
40492 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
40493 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40494 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40495 | fi | |
40496 | ||
40497 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40498 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40499 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40500 | fi | |
40501 | ||
40502 | COND_PLATFORM_MAC_1="#" | |
40503 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40504 | COND_PLATFORM_MAC_1="" | |
40505 | fi | |
40506 | ||
40507 | COND_PLATFORM_OS2_1="#" | |
40508 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40509 | COND_PLATFORM_OS2_1="" | |
40510 | fi | |
40511 | ||
40512 | COND_PLATFORM_UNIX_0="#" | |
40513 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40514 | COND_PLATFORM_UNIX_0="" | |
40515 | fi | |
40516 | ||
40517 | COND_PLATFORM_UNIX_1="#" | |
40518 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40519 | COND_PLATFORM_UNIX_1="" | |
40520 | fi | |
40521 | ||
40522 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40523 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40524 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40525 | fi | |
40526 | ||
40527 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40528 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40529 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40530 | fi | |
40531 | ||
40532 | COND_PLATFORM_WIN32_0="#" | |
40533 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40534 | COND_PLATFORM_WIN32_0="" | |
40535 | fi | |
40536 | ||
40537 | COND_PLATFORM_WIN32_1="#" | |
40538 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40539 | COND_PLATFORM_WIN32_1="" | |
40540 | fi | |
40541 | ||
40542 | COND_SHARED_0="#" | |
40543 | if test "x$SHARED" = "x0" ; then | |
40544 | COND_SHARED_0="" | |
40545 | fi | |
40546 | ||
40547 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
40548 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40549 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40550 | fi | |
40551 | ||
40552 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40553 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40554 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40555 | fi | |
40556 | ||
40557 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40558 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40559 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40560 | fi | |
40561 | ||
40562 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40563 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40564 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40565 | fi | |
40566 | ||
40567 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40568 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40569 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40570 | fi | |
40571 | ||
40572 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40573 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40574 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40575 | fi | |
40576 | ||
40577 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40578 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40579 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40580 | fi | |
40581 | ||
40582 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40583 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40584 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40585 | fi | |
40586 | ||
40587 | COND_SHARED_1="#" | |
40588 | if test "x$SHARED" = "x1" ; then | |
40589 | COND_SHARED_1="" | |
40590 | fi | |
40591 | ||
40592 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40593 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40594 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40595 | fi | |
40596 | ||
40597 | COND_TOOLKIT_COCOA="#" | |
40598 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40599 | COND_TOOLKIT_COCOA="" | |
40600 | fi | |
40601 | ||
40602 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40603 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40604 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40605 | fi | |
40606 | ||
40607 | COND_TOOLKIT_GTK="#" | |
40608 | if test "x$TOOLKIT" = "xGTK" ; then | |
40609 | COND_TOOLKIT_GTK="" | |
40610 | fi | |
40611 | ||
40612 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40613 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40614 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40615 | fi | |
40616 | ||
40617 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40618 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40619 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40620 | fi | |
40621 | ||
40622 | COND_TOOLKIT_MAC="#" | |
40623 | if test "x$TOOLKIT" = "xMAC" ; then | |
40624 | COND_TOOLKIT_MAC="" | |
40625 | fi | |
40626 | ||
40627 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40628 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40629 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40630 | fi | |
40631 | ||
40632 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40633 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40634 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40635 | fi | |
40636 | ||
40637 | COND_TOOLKIT_MGL="#" | |
40638 | if test "x$TOOLKIT" = "xMGL" ; then | |
40639 | COND_TOOLKIT_MGL="" | |
40640 | fi | |
40641 | ||
40642 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40643 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40644 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40645 | fi | |
40646 | ||
40647 | COND_TOOLKIT_MOTIF="#" | |
40648 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40649 | COND_TOOLKIT_MOTIF="" | |
40650 | fi | |
40651 | ||
40652 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40653 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40654 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40655 | fi | |
40656 | ||
40657 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40658 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40659 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40660 | fi | |
40661 | ||
40662 | COND_TOOLKIT_MSW="#" | |
40663 | if test "x$TOOLKIT" = "xMSW" ; then | |
40664 | COND_TOOLKIT_MSW="" | |
40665 | fi | |
40666 | ||
40667 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40668 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40669 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40670 | fi | |
40671 | ||
40672 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40673 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40674 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40675 | fi | |
40676 | ||
40677 | COND_TOOLKIT_PM="#" | |
40678 | if test "x$TOOLKIT" = "xPM" ; then | |
40679 | COND_TOOLKIT_PM="" | |
40680 | fi | |
40681 | ||
40682 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40683 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40684 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40685 | fi | |
40686 | ||
40687 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40688 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40689 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40690 | fi | |
40691 | ||
40692 | COND_TOOLKIT_WINCE="#" | |
40693 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40694 | COND_TOOLKIT_WINCE="" | |
40695 | fi | |
40696 | ||
40697 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40698 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40699 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40700 | fi | |
40701 | ||
40702 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40703 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40704 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40705 | fi | |
40706 | ||
40707 | COND_TOOLKIT_X11="#" | |
40708 | if test "x$TOOLKIT" = "xX11" ; then | |
40709 | COND_TOOLKIT_X11="" | |
40710 | fi | |
40711 | ||
40712 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40713 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40714 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40715 | fi | |
40716 | ||
40717 | COND_UNICODE_1="#" | |
40718 | if test "x$UNICODE" = "x1" ; then | |
40719 | COND_UNICODE_1="" | |
40720 | fi | |
40721 | ||
40722 | COND_USE_EXCEPTIONS_0="#" | |
40723 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40724 | COND_USE_EXCEPTIONS_0="" | |
40725 | fi | |
40726 | ||
40727 | COND_USE_EXCEPTIONS_1="#" | |
40728 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40729 | COND_USE_EXCEPTIONS_1="" | |
40730 | fi | |
40731 | ||
40732 | COND_USE_GUI_0="#" | |
40733 | if test "x$USE_GUI" = "x0" ; then | |
40734 | COND_USE_GUI_0="" | |
40735 | fi | |
40736 | ||
40737 | COND_USE_GUI_1="#" | |
40738 | if test "x$USE_GUI" = "x1" ; then | |
40739 | COND_USE_GUI_1="" | |
40740 | fi | |
40741 | ||
40742 | COND_USE_GUI_1_WXUNIV_0="#" | |
40743 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40744 | COND_USE_GUI_1_WXUNIV_0="" | |
40745 | fi | |
40746 | ||
40747 | COND_USE_GUI_1_WXUNIV_1="#" | |
40748 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40749 | COND_USE_GUI_1_WXUNIV_1="" | |
40750 | fi | |
40751 | ||
40752 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40753 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40754 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40755 | fi | |
40756 | ||
40757 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40758 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40759 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40760 | fi | |
40761 | ||
40762 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40763 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40764 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40765 | fi | |
40766 | ||
40767 | COND_USE_ODBC_1="#" | |
40768 | if test "x$USE_ODBC" = "x1" ; then | |
40769 | COND_USE_ODBC_1="" | |
40770 | fi | |
40771 | ||
40772 | COND_USE_PLUGINS_0="#" | |
40773 | if test "x$USE_PLUGINS" = "x0" ; then | |
40774 | COND_USE_PLUGINS_0="" | |
40775 | fi | |
40776 | ||
40777 | COND_USE_SOSYMLINKS_1="#" | |
40778 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40779 | COND_USE_SOSYMLINKS_1="" | |
40780 | fi | |
40781 | ||
40782 | COND_USE_SOVERLINUX_1="#" | |
40783 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40784 | COND_USE_SOVERLINUX_1="" | |
40785 | fi | |
40786 | ||
40787 | COND_USE_SOVERSION_0="#" | |
40788 | if test "x$USE_SOVERSION" = "x0" ; then | |
40789 | COND_USE_SOVERSION_0="" | |
40790 | fi | |
40791 | ||
40792 | COND_USE_SOVERSOLARIS_1="#" | |
40793 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40794 | COND_USE_SOVERSOLARIS_1="" | |
40795 | fi | |
40796 | ||
40797 | COND_WITH_PLUGIN_SDL_1="#" | |
40798 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40799 | COND_WITH_PLUGIN_SDL_1="" | |
40800 | fi | |
40801 | ||
40802 | COND_WXUNIV_1="#" | |
40803 | if test "x$WXUNIV" = "x1" ; then | |
40804 | COND_WXUNIV_1="" | |
40805 | fi | |
40806 | ||
40807 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40808 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40809 | COND_WXUSE_EXPAT_BUILTIN="" | |
40810 | fi | |
40811 | ||
40812 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40813 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40814 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40815 | fi | |
40816 | ||
40817 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40818 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40819 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40820 | fi | |
40821 | ||
40822 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40823 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40824 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40825 | fi | |
40826 | ||
40827 | COND_WXUSE_ODBC_BUILTIN="#" | |
40828 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40829 | COND_WXUSE_ODBC_BUILTIN="" | |
40830 | fi | |
40831 | ||
40832 | COND_WXUSE_REGEX_BUILTIN="#" | |
40833 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40834 | COND_WXUSE_REGEX_BUILTIN="" | |
40835 | fi | |
40836 | ||
40837 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40838 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40839 | COND_WXUSE_ZLIB_BUILTIN="" | |
40840 | fi | |
40841 | ||
a848cd7e SC |
40842 | |
40843 | ||
9f45f08e VS |
40844 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
40845 | { { 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 | |
40846 | 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;} | |
40847 | { (exit 1); exit 1; }; } | |
40848 | fi | |
40849 | ||
a848cd7e SC |
40850 | |
40851 | ||
74b84332 | 40852 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 40853 | if test $GCC_PCH = 1 ; then |
74b84332 | 40854 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
40855 | else |
40856 | case "${host}" in | |
40857 | powerpc-*-darwin* ) | |
74b84332 | 40858 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 40859 | ;; |
bea8e651 | 40860 | *-*-mingw32* ) |
1f344abf VS |
40861 | if test "$wxUSE_STL" = "yes" -o \ |
40862 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
40863 | "$wxUSE_NO_RTTI" != "yes"; then | |
40864 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
40865 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
40866 | cat >conftest.$ac_ext <<_ACEOF |
40867 | /* confdefs.h. */ | |
40868 | _ACEOF | |
40869 | cat confdefs.h >>conftest.$ac_ext | |
40870 | cat >>conftest.$ac_ext <<_ACEOF | |
40871 | /* end confdefs.h. */ | |
40872 | ||
40873 | int | |
40874 | main () | |
40875 | { | |
1f344abf | 40876 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
40877 | #error "Not GCC 3.2 or greater" |
40878 | #endif | |
40879 | ||
40880 | ; | |
40881 | return 0; | |
40882 | } | |
40883 | _ACEOF | |
40884 | rm -f conftest.$ac_objext | |
40885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40886 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 40887 | ac_status=$? |
ac1cb8d3 VS |
40888 | grep -v '^ *+' conftest.er1 >conftest.err |
40889 | rm -f conftest.er1 | |
40890 | cat conftest.err >&5 | |
bea8e651 MB |
40891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40892 | (exit $ac_status); } && | |
ac1cb8d3 VS |
40893 | { ac_try='test -z "$ac_c_werror_flag" |
40894 | || test ! -s conftest.err' | |
40895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40896 | (eval $ac_try) 2>&5 | |
40897 | ac_status=$? | |
40898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40899 | (exit $ac_status); }; } && | |
40900 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
40901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40902 | (eval $ac_try) 2>&5 | |
40903 | ac_status=$? | |
40904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40905 | (exit $ac_status); }; }; then | |
74b84332 | 40906 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
40907 | echo "$as_me:$LINENO: result: yes" >&5 |
40908 | echo "${ECHO_T}yes" >&6 | |
40909 | else | |
40910 | echo "$as_me: failed program was:" >&5 | |
40911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40912 | ||
40913 | echo "$as_me:$LINENO: result: no" >&5 | |
40914 | echo "${ECHO_T}no" >&6 | |
40915 | fi | |
ac1cb8d3 | 40916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
40917 | fi |
40918 | ;; | |
a848cd7e SC |
40919 | esac |
40920 | fi | |
74b84332 | 40921 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
40922 | |
40923 | ||
40924 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
40925 | ||
40926 | ||
40927 | ||
40928 | ||
40929 | ||
40930 | ||
40931 | ||
40932 | ||
40933 | ||
40934 | ||
40935 | ||
40936 | ||
40937 | ||
40938 | ||
40939 | ||
40940 | ||
40941 | ||
40942 | ||
40943 | ||
40944 | ||
40945 | ||
40946 | ||
40947 | ||
40948 | ||
40949 | ||
40950 | ||
40951 | ||
40952 | ||
40953 | ||
40954 | ||
40955 | ||
40956 | ||
40957 | ||
40958 | ||
40959 | ||
40960 | ||
40961 | ||
40962 | ||
40963 | ||
40964 | ||
40965 | ||
40966 | ||
40967 | ||
40968 | ||
40969 | ||
40970 | ||
40971 | ||
40972 | ||
40973 | ||
40974 | ||
40975 | ||
40976 | ||
40977 | ||
40978 | ||
40979 | ||
40980 | ||
40981 | ||
40982 | ||
40983 | ||
40984 | ||
40985 | ||
40986 | ||
40987 | ||
40988 | ||
40989 | ||
40990 | ||
40991 | ||
40992 | ||
40993 | ||
40994 | ||
40995 | ||
40996 | ||
40997 | ||
40998 | ||
40999 | ||
41000 | ||
41001 | ||
41002 | ||
41003 | ||
41004 | ||
41005 | ||
41006 | ||
41007 | ||
41008 | ||
41009 | ||
41010 | ||
41011 | ||
41012 | ||
41013 | ||
41014 | ||
41015 | ||
41016 | ||
41017 | ||
41018 | ||
41019 | ||
41020 | ||
41021 | ||
41022 | ||
74b84332 | 41023 | |
a848cd7e SC |
41024 | |
41025 | ||
41026 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41027 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41028 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41029 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41031 | else | |
41032 | cat >conftest.make <<\_ACEOF | |
41033 | all: | |
41034 | @echo 'ac_maketemp="$(MAKE)"' | |
41035 | _ACEOF | |
41036 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41037 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41038 | if test -n "$ac_maketemp"; then | |
41039 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41040 | else | |
41041 | eval ac_cv_prog_make_${ac_make}_set=no | |
41042 | fi | |
41043 | rm -f conftest.make | |
41044 | fi | |
41045 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41046 | echo "$as_me:$LINENO: result: yes" >&5 | |
41047 | echo "${ECHO_T}yes" >&6 | |
41048 | SET_MAKE= | |
41049 | else | |
41050 | echo "$as_me:$LINENO: result: no" >&5 | |
41051 | echo "${ECHO_T}no" >&6 | |
41052 | SET_MAKE="MAKE=${MAKE-make}" | |
41053 | fi | |
41054 | ||
41055 | ||
41056 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
41057 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
41058 | fi | |
41059 | ||
41060 | ac_config_headers="$ac_config_headers setup.h" | |
41061 | ||
41062 | ||
41063 | ac_config_files="$ac_config_files wx-config version-script Makefile" | |
41064 | ||
41065 | ||
41066 | ac_config_commands="$ac_config_commands default" | |
41067 | ||
41068 | ||
41069 | ||
41070 | if test "$wxUSE_GUI" = "yes"; then | |
41071 | SUBDIRS="samples demos utils contrib" | |
41072 | else SUBDIRS="samples utils" | |
41073 | fi | |
41074 | ||
41075 | ||
41076 | ||
41077 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41078 | if test "${with_cppunit_prefix+set}" = set; then | |
41079 | withval="$with_cppunit_prefix" | |
41080 | cppunit_config_prefix="$withval" | |
41081 | else | |
41082 | cppunit_config_prefix="" | |
41083 | fi; | |
41084 | ||
41085 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41086 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41087 | withval="$with_cppunit_exec_prefix" | |
41088 | cppunit_config_exec_prefix="$withval" | |
41089 | else | |
41090 | cppunit_config_exec_prefix="" | |
41091 | fi; | |
41092 | ||
41093 | if test x$cppunit_config_exec_prefix != x ; then | |
41094 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41095 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41096 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41097 | fi | |
41098 | fi | |
41099 | if test x$cppunit_config_prefix != x ; then | |
41100 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41101 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41102 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41103 | fi | |
41104 | fi | |
41105 | ||
41106 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41107 | set dummy cppunit-config; ac_word=$2 | |
41108 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41109 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41110 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41112 | else | |
41113 | case $CPPUNIT_CONFIG in | |
41114 | [\\/]* | ?:[\\/]*) | |
41115 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41116 | ;; | |
41117 | *) | |
41118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41119 | for as_dir in $PATH | |
41120 | do | |
41121 | IFS=$as_save_IFS | |
41122 | test -z "$as_dir" && as_dir=. | |
41123 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41124 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41125 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41126 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41127 | break 2 | |
41128 | fi | |
41129 | done | |
41130 | done | |
41131 | ||
41132 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41133 | ;; | |
41134 | esac | |
41135 | fi | |
41136 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41137 | ||
41138 | if test -n "$CPPUNIT_CONFIG"; then | |
41139 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41140 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41141 | else | |
41142 | echo "$as_me:$LINENO: result: no" >&5 | |
41143 | echo "${ECHO_T}no" >&6 | |
41144 | fi | |
41145 | ||
41146 | cppunit_version_min=1.8.0 | |
41147 | ||
41148 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41149 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41150 | no_cppunit="" | |
41151 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41152 | no_cppunit=yes | |
41153 | else | |
41154 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41155 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41156 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41157 | ||
41158 | cppunit_major_version=`echo $cppunit_version | \ | |
41159 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41160 | cppunit_minor_version=`echo $cppunit_version | \ | |
41161 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41162 | cppunit_micro_version=`echo $cppunit_version | \ | |
41163 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41164 | ||
41165 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41166 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41167 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41168 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41169 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41170 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41171 | ||
41172 | cppunit_version_proper=`expr \ | |
41173 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41174 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41175 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41176 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41177 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41178 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41179 | ||
41180 | if test "$cppunit_version_proper" = "1" ; then | |
41181 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41182 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41183 | else | |
41184 | echo "$as_me:$LINENO: result: no" >&5 | |
41185 | echo "${ECHO_T}no" >&6 | |
41186 | no_cppunit=yes | |
41187 | fi | |
41188 | fi | |
41189 | ||
41190 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41191 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41192 | else |
41193 | CPPUNIT_CFLAGS="" | |
41194 | CPPUNIT_LIBS="" | |
c2218763 | 41195 | : |
a848cd7e SC |
41196 | fi |
41197 | ||
41198 | ||
41199 | ||
41200 | ||
41201 | ||
41202 | for subdir in `echo $SUBDIRS`; do | |
41203 | if test -d ${srcdir}/${subdir} ; then | |
41204 | if test "$wxUSE_GUI" = "yes"; then | |
41205 | if test ${subdir} = "samples"; then | |
41206 | makefiles="samples/Makefile.in $makefiles" | |
41207 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41208 | if test -d $srcdir/samples/$sample; then | |
41209 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41210 | fi | |
41211 | done | |
41212 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41213 | fi | |
41214 | else if test ${subdir} = "samples"; then | |
41215 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41216 | elif test ${subdir} = "utils"; then | |
41217 | makefiles="utils/HelpGen/Makefile.in \ | |
41218 | utils/HelpGen/src/Makefile.in \ | |
41219 | utils/tex2rtf/Makefile.in \ | |
41220 | utils/tex2rtf/src/Makefile.in" | |
41221 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41222 | fi | |
41223 | fi | |
41224 | ||
41225 | for mkin in $makefiles ; do | |
41226 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41227 | ac_config_files="$ac_config_files $mk" | |
41228 | ||
41229 | done | |
41230 | fi | |
41231 | done | |
41232 | ||
41233 | ||
41234 | cat >confcache <<\_ACEOF | |
41235 | # This file is a shell script that caches the results of configure | |
41236 | # tests run on this system so they can be shared between configure | |
41237 | # scripts and configure runs, see configure's option --config-cache. | |
41238 | # It is not useful on other systems. If it contains results you don't | |
41239 | # want to keep, you may remove or edit it. | |
41240 | # | |
41241 | # config.status only pays attention to the cache file if you give it | |
41242 | # the --recheck option to rerun configure. | |
41243 | # | |
41244 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41245 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41246 | # following values. | |
41247 | ||
41248 | _ACEOF | |
41249 | ||
41250 | # The following way of writing the cache mishandles newlines in values, | |
41251 | # but we know of no workaround that is simple, portable, and efficient. | |
41252 | # So, don't put newlines in cache variables' values. | |
41253 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41254 | # and sets the high bit in the cache file unless we assign to the vars. | |
41255 | { | |
41256 | (set) 2>&1 | | |
41257 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41258 | *ac_space=\ *) | |
41259 | # `set' does not quote correctly, so add quotes (double-quote | |
41260 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41261 | sed -n \ | |
ac1cb8d3 VS |
41262 | "s/'/'\\\\''/g; |
41263 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41264 | ;; |
41265 | *) | |
41266 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41267 | sed -n \ | |
ac1cb8d3 | 41268 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41269 | ;; |
41270 | esac; | |
41271 | } | | |
41272 | sed ' | |
41273 | t clear | |
41274 | : clear | |
41275 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41276 | t end | |
41277 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41278 | : end' >>confcache | |
41279 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41280 | if test -w $cache_file; then | |
41281 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41282 | cat confcache >$cache_file | |
41283 | else | |
41284 | echo "not updating unwritable cache $cache_file" | |
41285 | fi | |
41286 | fi | |
41287 | rm -f confcache | |
41288 | ||
41289 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41290 | # Let make expand exec_prefix. | |
41291 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41292 | ||
41293 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41294 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41295 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41296 | # (actually we leave an empty line to preserve line numbers). | |
41297 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41298 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41299 | s/:*\$(srcdir):*/:/; |
41300 | s/:*\${srcdir}:*/:/; | |
41301 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41302 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41303 | s/:*$//; |
ac1cb8d3 | 41304 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41305 | }' |
41306 | fi | |
41307 | ||
41308 | DEFS=-DHAVE_CONFIG_H | |
41309 | ||
41310 | ac_libobjs= | |
41311 | ac_ltlibobjs= | |
41312 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41313 | # 1. Remove the extension, and $U if already installed. | |
41314 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41315 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41316 | # 2. Add them. |
41317 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41318 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41319 | done | |
41320 | LIBOBJS=$ac_libobjs | |
41321 | ||
41322 | LTLIBOBJS=$ac_ltlibobjs | |
41323 | ||
41324 | ||
41325 | ||
41326 | : ${CONFIG_STATUS=./config.status} | |
41327 | ac_clean_files_save=$ac_clean_files | |
41328 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41329 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41330 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41331 | cat >$CONFIG_STATUS <<_ACEOF | |
41332 | #! $SHELL | |
41333 | # Generated by $as_me. | |
41334 | # Run this file to recreate the current configuration. | |
41335 | # Compiler output produced by configure, useful for debugging | |
41336 | # configure, is in config.log if it exists. | |
41337 | ||
41338 | debug=false | |
41339 | ac_cs_recheck=false | |
41340 | ac_cs_silent=false | |
41341 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41342 | _ACEOF | |
41343 | ||
41344 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41345 | ## --------------------- ## | |
41346 | ## M4sh Initialization. ## | |
41347 | ## --------------------- ## | |
41348 | ||
41349 | # Be Bourne compatible | |
41350 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41351 | emulate sh | |
41352 | NULLCMD=: | |
41353 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41354 | # is contrary to our usage. Disable this feature. | |
41355 | alias -g '${1+"$@"}'='"$@"' | |
41356 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41357 | set -o posix | |
41358 | fi | |
ac1cb8d3 | 41359 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41360 | |
41361 | # Support unset when possible. | |
ac1cb8d3 | 41362 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41363 | as_unset=unset |
41364 | else | |
41365 | as_unset=false | |
41366 | fi | |
41367 | ||
41368 | ||
41369 | # Work around bugs in pre-3.0 UWIN ksh. | |
41370 | $as_unset ENV MAIL MAILPATH | |
41371 | PS1='$ ' | |
41372 | PS2='> ' | |
41373 | PS4='+ ' | |
41374 | ||
41375 | # NLS nuisances. | |
41376 | for as_var in \ | |
41377 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41378 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41379 | LC_TELEPHONE LC_TIME | |
41380 | do | |
ac1cb8d3 | 41381 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41382 | eval $as_var=C; export $as_var |
41383 | else | |
41384 | $as_unset $as_var | |
41385 | fi | |
41386 | done | |
41387 | ||
41388 | # Required to use basename. | |
41389 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41390 | as_expr=expr | |
41391 | else | |
41392 | as_expr=false | |
41393 | fi | |
41394 | ||
41395 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41396 | as_basename=basename | |
41397 | else | |
41398 | as_basename=false | |
41399 | fi | |
41400 | ||
41401 | ||
41402 | # Name of the executable. | |
41403 | as_me=`$as_basename "$0" || | |
41404 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41405 | X"$0" : 'X\(//\)$' \| \ | |
41406 | X"$0" : 'X\(/\)$' \| \ | |
41407 | . : '\(.\)' 2>/dev/null || | |
41408 | echo X/"$0" | | |
41409 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41410 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41411 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41412 | s/.*/./; q'` | |
41413 | ||
41414 | ||
41415 | # PATH needs CR, and LINENO needs CR and PATH. | |
41416 | # Avoid depending upon Character Ranges. | |
41417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41420 | as_cr_digits='0123456789' | |
41421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41422 | ||
41423 | # The user is always right. | |
41424 | if test "${PATH_SEPARATOR+set}" != set; then | |
41425 | echo "#! /bin/sh" >conf$$.sh | |
41426 | echo "exit 0" >>conf$$.sh | |
41427 | chmod +x conf$$.sh | |
41428 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41429 | PATH_SEPARATOR=';' | |
41430 | else | |
41431 | PATH_SEPARATOR=: | |
41432 | fi | |
41433 | rm -f conf$$.sh | |
41434 | fi | |
41435 | ||
41436 | ||
41437 | as_lineno_1=$LINENO | |
41438 | as_lineno_2=$LINENO | |
41439 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41440 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41441 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41442 | # Find who we are. Look in the path if we contain no path at all | |
41443 | # relative or not. | |
41444 | case $0 in | |
41445 | *[\\/]* ) as_myself=$0 ;; | |
41446 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41447 | for as_dir in $PATH | |
41448 | do | |
41449 | IFS=$as_save_IFS | |
41450 | test -z "$as_dir" && as_dir=. | |
41451 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41452 | done | |
41453 | ||
41454 | ;; | |
41455 | esac | |
41456 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41457 | # in which case we are not to be found in the path. | |
41458 | if test "x$as_myself" = x; then | |
41459 | as_myself=$0 | |
41460 | fi | |
41461 | if test ! -f "$as_myself"; then | |
41462 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41463 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41464 | { (exit 1); exit 1; }; } | |
41465 | fi | |
41466 | case $CONFIG_SHELL in | |
41467 | '') | |
41468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41469 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41470 | do | |
41471 | IFS=$as_save_IFS | |
41472 | test -z "$as_dir" && as_dir=. | |
41473 | for as_base in sh bash ksh sh5; do | |
41474 | case $as_dir in | |
41475 | /*) | |
41476 | if ("$as_dir/$as_base" -c ' | |
41477 | as_lineno_1=$LINENO | |
41478 | as_lineno_2=$LINENO | |
41479 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41480 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41481 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41482 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41483 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41484 | CONFIG_SHELL=$as_dir/$as_base | |
41485 | export CONFIG_SHELL | |
41486 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41487 | fi;; | |
41488 | esac | |
41489 | done | |
41490 | done | |
41491 | ;; | |
41492 | esac | |
41493 | ||
41494 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41495 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41496 | # line-number line before each line; the second 'sed' does the real | |
41497 | # work. The second script uses 'N' to pair each line-number line | |
41498 | # with the numbered line, and appends trailing '-' during | |
41499 | # substitution so that $LINENO is not a special case at line end. | |
41500 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41501 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41502 | sed '=' <$as_myself | | |
41503 | sed ' | |
41504 | N | |
41505 | s,$,-, | |
41506 | : loop | |
41507 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41508 | t loop | |
41509 | s,-$,, | |
41510 | s,^['$as_cr_digits']*\n,, | |
41511 | ' >$as_me.lineno && | |
41512 | chmod +x $as_me.lineno || | |
41513 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41514 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41515 | { (exit 1); exit 1; }; } | |
41516 | ||
41517 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41518 | # (the dirname of $[0] is not the place where we might find the | |
41519 | # original and so on. Autoconf is especially sensible to this). | |
41520 | . ./$as_me.lineno | |
41521 | # Exit status is that of the last command. | |
41522 | exit | |
41523 | } | |
41524 | ||
41525 | ||
41526 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
41527 | *c*,-n*) ECHO_N= ECHO_C=' | |
41528 | ' ECHO_T=' ' ;; | |
41529 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
41530 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
41531 | esac | |
41532 | ||
41533 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41534 | as_expr=expr | |
41535 | else | |
41536 | as_expr=false | |
41537 | fi | |
41538 | ||
41539 | rm -f conf$$ conf$$.exe conf$$.file | |
41540 | echo >conf$$.file | |
41541 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41542 | # We could just check for DJGPP; but this test a) works b) is more generic | |
41543 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
41544 | if test -f conf$$.exe; then | |
41545 | # Don't use ln at all; we don't have any links | |
41546 | as_ln_s='cp -p' | |
41547 | else | |
41548 | as_ln_s='ln -s' | |
41549 | fi | |
41550 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
41551 | as_ln_s=ln | |
41552 | else | |
41553 | as_ln_s='cp -p' | |
41554 | fi | |
41555 | rm -f conf$$ conf$$.exe conf$$.file | |
41556 | ||
41557 | if mkdir -p . 2>/dev/null; then | |
41558 | as_mkdir_p=: | |
41559 | else | |
ac1cb8d3 | 41560 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
41561 | as_mkdir_p=false |
41562 | fi | |
41563 | ||
41564 | as_executable_p="test -f" | |
41565 | ||
41566 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 41567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41568 | |
41569 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 41570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41571 | |
41572 | ||
41573 | # IFS | |
41574 | # We need space, tab and new line, in precisely that order. | |
41575 | as_nl=' | |
41576 | ' | |
41577 | IFS=" $as_nl" | |
41578 | ||
41579 | # CDPATH. | |
41580 | $as_unset CDPATH | |
41581 | ||
41582 | exec 6>&1 | |
41583 | ||
41584 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
41585 | # report actual input values of CONFIG_FILES etc. instead of their | |
41586 | # values after options handling. Logging --version etc. is OK. | |
41587 | exec 5>>config.log | |
41588 | { | |
41589 | echo | |
41590 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
41591 | ## Running $as_me. ## | |
41592 | _ASBOX | |
41593 | } >&5 | |
41594 | cat >&5 <<_CSEOF | |
41595 | ||
77ffb593 | 41596 | This file was extended by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 41597 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
41598 | |
41599 | CONFIG_FILES = $CONFIG_FILES | |
41600 | CONFIG_HEADERS = $CONFIG_HEADERS | |
41601 | CONFIG_LINKS = $CONFIG_LINKS | |
41602 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
41603 | $ $0 $@ | |
41604 | ||
41605 | _CSEOF | |
41606 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
41607 | echo >&5 | |
41608 | _ACEOF | |
41609 | ||
41610 | # Files that config.status was made for. | |
41611 | if test -n "$ac_config_files"; then | |
41612 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
41613 | fi | |
41614 | ||
41615 | if test -n "$ac_config_headers"; then | |
41616 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
41617 | fi | |
41618 | ||
41619 | if test -n "$ac_config_links"; then | |
41620 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
41621 | fi | |
41622 | ||
41623 | if test -n "$ac_config_commands"; then | |
41624 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
41625 | fi | |
41626 | ||
41627 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41628 | ||
41629 | ac_cs_usage="\ | |
41630 | \`$as_me' instantiates files from templates according to the | |
41631 | current configuration. | |
41632 | ||
41633 | Usage: $0 [OPTIONS] [FILE]... | |
41634 | ||
41635 | -h, --help print this help, then exit | |
41636 | -V, --version print version number, then exit | |
41637 | -q, --quiet do not print progress messages | |
41638 | -d, --debug don't remove temporary files | |
41639 | --recheck update $as_me by reconfiguring in the same conditions | |
41640 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 41641 | instantiate the configuration file FILE |
a848cd7e | 41642 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 41643 | instantiate the configuration header FILE |
a848cd7e SC |
41644 | |
41645 | Configuration files: | |
41646 | $config_files | |
41647 | ||
41648 | Configuration headers: | |
41649 | $config_headers | |
41650 | ||
41651 | Configuration commands: | |
41652 | $config_commands | |
41653 | ||
41654 | Report bugs to <bug-autoconf@gnu.org>." | |
41655 | _ACEOF | |
41656 | ||
41657 | cat >>$CONFIG_STATUS <<_ACEOF | |
41658 | ac_cs_version="\\ | |
77ffb593 | 41659 | wxWidgets config.status 2.5.2 |
ac1cb8d3 | 41660 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
41661 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
41662 | ||
ac1cb8d3 | 41663 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
41664 | This config.status script is free software; the Free Software Foundation |
41665 | gives unlimited permission to copy, distribute and modify it." | |
41666 | srcdir=$srcdir | |
41667 | INSTALL="$INSTALL" | |
41668 | _ACEOF | |
41669 | ||
41670 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41671 | # If no file are specified by the user, then we need to provide default | |
41672 | # value. By we need to know if files were specified by the user. | |
41673 | ac_need_defaults=: | |
41674 | while test $# != 0 | |
41675 | do | |
41676 | case $1 in | |
41677 | --*=*) | |
41678 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
41679 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
41680 | ac_shift=: | |
41681 | ;; | |
41682 | -*) | |
41683 | ac_option=$1 | |
41684 | ac_optarg=$2 | |
41685 | ac_shift=shift | |
41686 | ;; | |
41687 | *) # This is not an option, so the user has probably given explicit | |
41688 | # arguments. | |
41689 | ac_option=$1 | |
41690 | ac_need_defaults=false;; | |
41691 | esac | |
41692 | ||
41693 | case $ac_option in | |
41694 | # Handling of the options. | |
41695 | _ACEOF | |
41696 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41697 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
41698 | ac_cs_recheck=: ;; | |
41699 | --version | --vers* | -V ) | |
41700 | echo "$ac_cs_version"; exit 0 ;; | |
41701 | --he | --h) | |
41702 | # Conflict between --help and --header | |
41703 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
41704 | Try \`$0 --help' for more information." >&5 | |
41705 | echo "$as_me: error: ambiguous option: $1 | |
41706 | Try \`$0 --help' for more information." >&2;} | |
41707 | { (exit 1); exit 1; }; };; | |
41708 | --help | --hel | -h ) | |
41709 | echo "$ac_cs_usage"; exit 0 ;; | |
41710 | --debug | --d* | -d ) | |
41711 | debug=: ;; | |
41712 | --file | --fil | --fi | --f ) | |
41713 | $ac_shift | |
41714 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
41715 | ac_need_defaults=false;; | |
41716 | --header | --heade | --head | --hea ) | |
41717 | $ac_shift | |
41718 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
41719 | ac_need_defaults=false;; | |
41720 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
41721 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
41722 | ac_cs_silent=: ;; | |
41723 | ||
41724 | # This is an error. | |
41725 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
41726 | Try \`$0 --help' for more information." >&5 | |
41727 | echo "$as_me: error: unrecognized option: $1 | |
41728 | Try \`$0 --help' for more information." >&2;} | |
41729 | { (exit 1); exit 1; }; } ;; | |
41730 | ||
41731 | *) ac_config_targets="$ac_config_targets $1" ;; | |
41732 | ||
41733 | esac | |
41734 | shift | |
41735 | done | |
41736 | ||
41737 | ac_configure_extra_args= | |
41738 | ||
41739 | if $ac_cs_silent; then | |
41740 | exec 6>/dev/null | |
41741 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
41742 | fi | |
41743 | ||
41744 | _ACEOF | |
41745 | cat >>$CONFIG_STATUS <<_ACEOF | |
41746 | if \$ac_cs_recheck; then | |
41747 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
41748 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
41749 | fi | |
41750 | ||
41751 | _ACEOF | |
41752 | ||
41753 | cat >>$CONFIG_STATUS <<_ACEOF | |
41754 | # | |
41755 | # INIT-COMMANDS section. | |
41756 | # | |
41757 | ||
41758 | ||
41759 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
41760 | LN_S="${LN_S}" | |
41761 | ||
41762 | ||
41763 | ||
41764 | _ACEOF | |
41765 | ||
41766 | ||
41767 | ||
41768 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41769 | for ac_config_target in $ac_config_targets | |
41770 | do | |
41771 | case "$ac_config_target" in | |
41772 | # Handling of arguments. | |
41773 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
41774 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
41775 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
41776 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
41777 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
41778 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
41779 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
41780 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
41781 | { (exit 1); exit 1; }; };; | |
41782 | esac | |
41783 | done | |
41784 | ||
41785 | # If the user did not use the arguments to specify the items to instantiate, | |
41786 | # then the envvar interface is used. Set only those that are not. | |
41787 | # We use the long form for the default assignment because of an extremely | |
41788 | # bizarre bug on SunOS 4.1.3. | |
41789 | if $ac_need_defaults; then | |
41790 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
41791 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
41792 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
41793 | fi | |
41794 | ||
41795 | # Have a temporary directory for convenience. Make it in the build tree | |
41796 | # simply because there is no reason to put it here, and in addition, | |
41797 | # creating and moving files from /tmp can sometimes cause problems. | |
41798 | # Create a temporary directory, and hook for its removal unless debugging. | |
41799 | $debug || | |
41800 | { | |
41801 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
41802 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
41803 | } | |
41804 | ||
41805 | # Create a (secure) tmp directory for tmp files. | |
41806 | ||
41807 | { | |
41808 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
41809 | test -n "$tmp" && test -d "$tmp" | |
41810 | } || | |
41811 | { | |
41812 | tmp=./confstat$$-$RANDOM | |
41813 | (umask 077 && mkdir $tmp) | |
41814 | } || | |
41815 | { | |
41816 | echo "$me: cannot create a temporary directory in ." >&2 | |
41817 | { (exit 1); exit 1; } | |
41818 | } | |
41819 | ||
41820 | _ACEOF | |
41821 | ||
41822 | cat >>$CONFIG_STATUS <<_ACEOF | |
41823 | ||
41824 | # | |
41825 | # CONFIG_FILES section. | |
41826 | # | |
41827 | ||
41828 | # No need to generate the scripts if there are no CONFIG_FILES. | |
41829 | # This happens for instance when ./config.status config.h | |
41830 | if test -n "\$CONFIG_FILES"; then | |
41831 | # Protect against being on the right side of a sed subst in config.status. | |
41832 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
41833 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
41834 | s,@SHELL@,$SHELL,;t t | |
41835 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
41836 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
41837 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
41838 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
41839 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
41840 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
41841 | s,@exec_prefix@,$exec_prefix,;t t | |
41842 | s,@prefix@,$prefix,;t t | |
41843 | s,@program_transform_name@,$program_transform_name,;t t | |
41844 | s,@bindir@,$bindir,;t t | |
41845 | s,@sbindir@,$sbindir,;t t | |
41846 | s,@libexecdir@,$libexecdir,;t t | |
41847 | s,@datadir@,$datadir,;t t | |
41848 | s,@sysconfdir@,$sysconfdir,;t t | |
41849 | s,@sharedstatedir@,$sharedstatedir,;t t | |
41850 | s,@localstatedir@,$localstatedir,;t t | |
41851 | s,@libdir@,$libdir,;t t | |
41852 | s,@includedir@,$includedir,;t t | |
41853 | s,@oldincludedir@,$oldincludedir,;t t | |
41854 | s,@infodir@,$infodir,;t t | |
41855 | s,@mandir@,$mandir,;t t | |
41856 | s,@build_alias@,$build_alias,;t t | |
41857 | s,@host_alias@,$host_alias,;t t | |
41858 | s,@target_alias@,$target_alias,;t t | |
41859 | s,@DEFS@,$DEFS,;t t | |
41860 | s,@ECHO_C@,$ECHO_C,;t t | |
41861 | s,@ECHO_N@,$ECHO_N,;t t | |
41862 | s,@ECHO_T@,$ECHO_T,;t t | |
41863 | s,@LIBS@,$LIBS,;t t | |
41864 | s,@build@,$build,;t t | |
41865 | s,@build_cpu@,$build_cpu,;t t | |
41866 | s,@build_vendor@,$build_vendor,;t t | |
41867 | s,@build_os@,$build_os,;t t | |
41868 | s,@host@,$host,;t t | |
41869 | s,@host_cpu@,$host_cpu,;t t | |
41870 | s,@host_vendor@,$host_vendor,;t t | |
41871 | s,@host_os@,$host_os,;t t | |
41872 | s,@target@,$target,;t t | |
41873 | s,@target_cpu@,$target_cpu,;t t | |
41874 | s,@target_vendor@,$target_vendor,;t t | |
41875 | s,@target_os@,$target_os,;t t | |
41876 | s,@CC@,$CC,;t t | |
41877 | s,@CFLAGS@,$CFLAGS,;t t | |
41878 | s,@LDFLAGS@,$LDFLAGS,;t t | |
41879 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
41880 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
41881 | s,@EXEEXT@,$EXEEXT,;t t | |
41882 | s,@OBJEXT@,$OBJEXT,;t t | |
41883 | s,@CPP@,$CPP,;t t | |
41884 | s,@EGREP@,$EGREP,;t t | |
41885 | s,@CXX@,$CXX,;t t | |
41886 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
41887 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
41888 | s,@RANLIB@,$RANLIB,;t t | |
41889 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
41890 | s,@AR@,$AR,;t t | |
41891 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
41892 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
41893 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
41894 | s,@STRIP@,$STRIP,;t t | |
41895 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
41896 | s,@LN_S@,$LN_S,;t t | |
41897 | s,@CXXCPP@,$CXXCPP,;t t | |
41898 | s,@subdirs@,$subdirs,;t t | |
41899 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
41900 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
41901 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
41902 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
41903 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
41904 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
41905 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
41906 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
41907 | s,@X_LIBS@,$X_LIBS,;t t | |
41908 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
41909 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
41910 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
41911 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
41912 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
41913 | s,@RESCOMP@,$RESCOMP,;t t | |
41914 | s,@DEREZ@,$DEREZ,;t t | |
41915 | s,@SETFILE@,$SETFILE,;t t | |
41916 | s,@LIBICONV@,$LIBICONV,;t t | |
41917 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
41918 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
41919 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
41920 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
41921 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
41922 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
41923 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
41924 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
41925 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
41926 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
41927 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
41928 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
41929 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
41930 | s,@VENDOR@,$VENDOR,;t t | |
41931 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
41932 | s,@WXUNIV@,$WXUNIV,;t t | |
41933 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
41934 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
41935 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
41936 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
41937 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
41938 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
41939 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
41940 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
41941 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
41942 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
41943 | s,@UNICODE@,$UNICODE,;t t | |
41944 | s,@BUILD@,$BUILD,;t t | |
41945 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
41946 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
41947 | s,@SHARED@,$SHARED,;t t | |
41948 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
41949 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
41950 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
41951 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
41952 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
41953 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
41954 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
41955 | s,@SET_MAKE@,$SET_MAKE,;t t | |
41956 | s,@MAKE_SET@,$MAKE_SET,;t t | |
41957 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
41958 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
41959 | s,@NM@,$NM,;t t | |
41960 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
41961 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
41962 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
41963 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
41964 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
41965 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
41966 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
41967 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
41968 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
41969 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
41970 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
41971 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
41972 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
41973 | s,@LIBEXT@,$LIBEXT,;t t | |
41974 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
41975 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
41976 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
41977 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
41978 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
41979 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
41980 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
41981 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
41982 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
41983 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
41984 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
41985 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
41986 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
41987 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
41988 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
41989 | s,@GCC_PCH@,$GCC_PCH,;t t | |
41990 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
41991 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
41992 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
41993 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
41994 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
41995 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
41996 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
41997 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
41998 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
41999 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42000 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42001 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42002 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42003 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42004 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42005 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42006 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42007 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
42008 | 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 | |
42009 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
42010 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
42011 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t | |
42012 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
42013 | 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 | |
42014 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
42015 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
42016 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t | |
42017 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42018 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42019 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42020 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42021 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42022 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42023 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
42024 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
42025 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42026 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
42027 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t | |
42028 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
42029 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
42030 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42031 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42032 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42033 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42034 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42035 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42036 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42037 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
42038 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t | |
42039 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42040 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42041 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42042 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42043 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42044 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42045 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42046 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42047 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
42048 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
42049 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
42050 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42051 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42052 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42053 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42054 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42055 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
e835546c | 42056 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
a848cd7e SC |
42057 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t |
42058 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42059 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42060 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42061 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42062 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42063 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42064 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
e835546c | 42065 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
42066 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
42067 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42068 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
e835546c | 42069 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t |
3fd9c298 DE |
42070 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42071 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42072 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42073 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42074 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42075 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42076 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42077 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42078 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42079 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
42080 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
42081 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
42082 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42083 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42084 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42085 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t | |
42086 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t | |
42087 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
42088 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
42089 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
42090 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
42091 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t | |
42092 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t | |
42093 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t | |
42094 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
42095 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
42096 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
42097 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
42098 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
42099 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
42100 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
42101 | s,@PATH_IFS@,$PATH_IFS,;t t | |
42102 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
42103 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
42104 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
42105 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
42106 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
42107 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t | |
42108 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
42109 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
42110 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
42111 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
42112 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
42113 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
42114 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
42115 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
42116 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
42117 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
42118 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
42119 | s,@WX_ALL@,$WX_ALL,;t t | |
42120 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
42121 | s,@SHARED_LD@,$SHARED_LD,;t t | |
42122 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t | |
42123 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
42124 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
42125 | s,@USE_GUI@,$USE_GUI,;t t | |
42126 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42127 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42128 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42129 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
42130 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
42131 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
42132 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
42133 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
42134 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
42135 | s,@cross_compiling@,$cross_compiling,;t t | |
42136 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t | |
42137 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
42138 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
42139 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
42140 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
42141 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
42142 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42143 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
42144 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 42145 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42146 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42147 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
42148 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
42149 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
42150 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
42151 | s,@GUIDIST@,$GUIDIST,;t t | |
42152 | s,@PORT_FILES@,$PORT_FILES,;t t | |
42153 | s,@DISTDIR@,$DISTDIR,;t t | |
42154 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42155 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
42156 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
42157 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
42158 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
42159 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42160 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42161 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42162 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42163 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42164 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42165 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42166 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42167 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42168 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42169 | s,@GCC@,$GCC,;t t | |
42170 | s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t | |
42171 | s,@DLLTOOL@,$DLLTOOL,;t t | |
42172 | s,@AS@,$AS,;t t | |
42173 | s,@LD@,$LD,;t t | |
42174 | s,@MAKEINFO@,$MAKEINFO,;t t | |
42175 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
42176 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t | |
42177 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42178 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42179 | CEOF | |
42180 | ||
42181 | _ACEOF | |
42182 | ||
42183 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42184 | # Split the substitutions into bite-sized pieces for seds with | |
42185 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42186 | ac_max_sed_lines=48 | |
42187 | ac_sed_frag=1 # Number of current file. | |
42188 | ac_beg=1 # First line for current file. | |
42189 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42190 | ac_more_lines=: | |
42191 | ac_sed_cmds= | |
42192 | while $ac_more_lines; do | |
42193 | if test $ac_beg -gt 1; then | |
42194 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42195 | else | |
42196 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42197 | fi | |
42198 | if test ! -s $tmp/subs.frag; then | |
42199 | ac_more_lines=false | |
42200 | else | |
42201 | # The purpose of the label and of the branching condition is to | |
42202 | # speed up the sed processing (if there are no `@' at all, there | |
42203 | # is no need to browse any of the substitutions). | |
42204 | # These are the two extra sed commands mentioned above. | |
42205 | (echo ':t | |
42206 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42207 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42208 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42209 | else |
ac1cb8d3 | 42210 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42211 | fi |
42212 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42213 | ac_beg=$ac_end | |
42214 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42215 | fi | |
42216 | done | |
42217 | if test -z "$ac_sed_cmds"; then | |
42218 | ac_sed_cmds=cat | |
42219 | fi | |
42220 | fi # test -n "$CONFIG_FILES" | |
42221 | ||
42222 | _ACEOF | |
42223 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42224 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42225 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42226 | case $ac_file in | |
42227 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42228 | cat >$tmp/stdin |
42229 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42230 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42231 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42232 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42233 | * ) ac_file_in=$ac_file.in ;; |
42234 | esac | |
42235 | ||
42236 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42237 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42238 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42239 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42240 | X"$ac_file" : 'X\(//\)$' \| \ | |
42241 | X"$ac_file" : 'X\(/\)' \| \ | |
42242 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42243 | echo X"$ac_file" | |
42244 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42245 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42246 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42247 | /^X\(\/\).*/{ s//\1/; q; } | |
42248 | s/.*/./; q'` | |
42249 | { if $as_mkdir_p; then | |
42250 | mkdir -p "$ac_dir" | |
42251 | else | |
42252 | as_dir="$ac_dir" | |
42253 | as_dirs= | |
42254 | while test ! -d "$as_dir"; do | |
42255 | as_dirs="$as_dir $as_dirs" | |
42256 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42257 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42258 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42259 | X"$as_dir" : 'X\(//\)$' \| \ | |
42260 | X"$as_dir" : 'X\(/\)' \| \ | |
42261 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42262 | echo X"$as_dir" | |
42263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42264 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42265 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42266 | /^X\(\/\).*/{ s//\1/; q; } | |
42267 | s/.*/./; q'` | |
42268 | done | |
42269 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42270 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42271 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42272 | { (exit 1); exit 1; }; }; } | |
42273 | ||
42274 | ac_builddir=. | |
42275 | ||
42276 | if test "$ac_dir" != .; then | |
42277 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42278 | # A "../" for each directory in $ac_dir_suffix. | |
42279 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42280 | else | |
42281 | ac_dir_suffix= ac_top_builddir= | |
42282 | fi | |
42283 | ||
42284 | case $srcdir in | |
42285 | .) # No --srcdir option. We are building in place. | |
42286 | ac_srcdir=. | |
42287 | if test -z "$ac_top_builddir"; then | |
42288 | ac_top_srcdir=. | |
42289 | else | |
42290 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42291 | fi ;; | |
42292 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42293 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42294 | ac_top_srcdir=$srcdir ;; | |
42295 | *) # Relative path. | |
42296 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42297 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42298 | esac | |
ac1cb8d3 VS |
42299 | |
42300 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42301 | # the directories may not exist. | |
42302 | case `pwd` in | |
42303 | .) ac_abs_builddir="$ac_dir";; | |
42304 | *) | |
42305 | case "$ac_dir" in | |
42306 | .) ac_abs_builddir=`pwd`;; | |
42307 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42308 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42309 | esac;; | |
42310 | esac | |
42311 | case $ac_abs_builddir in | |
42312 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42313 | *) | |
42314 | case ${ac_top_builddir}. in | |
42315 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42316 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42317 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42318 | esac;; | |
42319 | esac | |
42320 | case $ac_abs_builddir in | |
42321 | .) ac_abs_srcdir=$ac_srcdir;; | |
42322 | *) | |
42323 | case $ac_srcdir in | |
42324 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42325 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42326 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42327 | esac;; | |
42328 | esac | |
42329 | case $ac_abs_builddir in | |
42330 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42331 | *) | |
42332 | case $ac_top_srcdir in | |
42333 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42334 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42335 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42336 | esac;; | |
42337 | esac | |
a848cd7e SC |
42338 | |
42339 | ||
42340 | case $INSTALL in | |
42341 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42342 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42343 | esac | |
42344 | ||
dcc1b6ad VS |
42345 | if test x"$ac_file" != x-; then |
42346 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42347 | echo "$as_me: creating $ac_file" >&6;} | |
42348 | rm -f "$ac_file" | |
42349 | fi | |
a848cd7e SC |
42350 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42351 | # use $as_me), people would be surprised to read: | |
42352 | # /* config.h. Generated by config.status. */ | |
42353 | if test x"$ac_file" = x-; then | |
42354 | configure_input= | |
42355 | else | |
42356 | configure_input="$ac_file. " | |
42357 | fi | |
42358 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42359 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42360 | |
42361 | # First look for the input files in the build tree, otherwise in the | |
42362 | # src tree. | |
42363 | ac_file_inputs=`IFS=: | |
42364 | for f in $ac_file_in; do | |
42365 | case $f in | |
42366 | -) echo $tmp/stdin ;; | |
42367 | [\\/$]*) | |
ac1cb8d3 VS |
42368 | # Absolute (can't be DOS-style, as IFS=:) |
42369 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42370 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42371 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42372 | echo "$f";; |
a848cd7e | 42373 | *) # Relative |
ac1cb8d3 VS |
42374 | if test -f "$f"; then |
42375 | # Build tree | |
42376 | echo "$f" | |
42377 | elif test -f "$srcdir/$f"; then | |
42378 | # Source tree | |
42379 | echo "$srcdir/$f" | |
42380 | else | |
42381 | # /dev/null tree | |
42382 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42383 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42384 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42385 | fi;; |
a848cd7e SC |
42386 | esac |
42387 | done` || { (exit 1); exit 1; } | |
42388 | _ACEOF | |
42389 | cat >>$CONFIG_STATUS <<_ACEOF | |
42390 | sed "$ac_vpsub | |
42391 | $extrasub | |
42392 | _ACEOF | |
42393 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42394 | :t | |
42395 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42396 | s,@configure_input@,$configure_input,;t t | |
42397 | s,@srcdir@,$ac_srcdir,;t t | |
42398 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42399 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42400 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42401 | s,@builddir@,$ac_builddir,;t t | |
42402 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42403 | s,@top_builddir@,$ac_top_builddir,;t t | |
42404 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42405 | s,@INSTALL@,$ac_INSTALL,;t t | |
42406 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42407 | rm -f $tmp/stdin | |
42408 | if test x"$ac_file" != x-; then | |
42409 | mv $tmp/out $ac_file | |
42410 | else | |
42411 | cat $tmp/out | |
42412 | rm -f $tmp/out | |
42413 | fi | |
42414 | ||
42415 | done | |
42416 | _ACEOF | |
42417 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42418 | ||
42419 | # | |
42420 | # CONFIG_HEADER section. | |
42421 | # | |
42422 | ||
42423 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42424 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42425 | # | |
42426 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42427 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42428 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42429 | ac_dC=' ' |
42430 | ac_dD=',;t' | |
42431 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42432 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42433 | ac_uB='$,\1#\2define\3' |
42434 | ac_uC=' ' | |
42435 | ac_uD=',;t' | |
42436 | ||
42437 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42438 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42439 | case $ac_file in | |
42440 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42441 | cat >$tmp/stdin |
42442 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42443 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42444 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42445 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42446 | * ) ac_file_in=$ac_file.in ;; |
42447 | esac | |
42448 | ||
42449 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42450 | echo "$as_me: creating $ac_file" >&6;} | |
42451 | ||
42452 | # First look for the input files in the build tree, otherwise in the | |
42453 | # src tree. | |
42454 | ac_file_inputs=`IFS=: | |
42455 | for f in $ac_file_in; do | |
42456 | case $f in | |
42457 | -) echo $tmp/stdin ;; | |
42458 | [\\/$]*) | |
ac1cb8d3 VS |
42459 | # Absolute (can't be DOS-style, as IFS=:) |
42460 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42461 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42462 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42463 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42464 | echo "$f";; | |
a848cd7e | 42465 | *) # Relative |
ac1cb8d3 VS |
42466 | if test -f "$f"; then |
42467 | # Build tree | |
42468 | echo "$f" | |
42469 | elif test -f "$srcdir/$f"; then | |
42470 | # Source tree | |
42471 | echo "$srcdir/$f" | |
42472 | else | |
42473 | # /dev/null tree | |
42474 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42475 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42476 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42477 | fi;; |
a848cd7e SC |
42478 | esac |
42479 | done` || { (exit 1); exit 1; } | |
42480 | # Remove the trailing spaces. | |
ac1cb8d3 | 42481 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42482 | |
42483 | _ACEOF | |
42484 | ||
42485 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42486 | # `conftest.undefs', that substitutes the proper values into | |
42487 | # config.h.in to produce config.h. The first handles `#define' | |
42488 | # templates, and the second `#undef' templates. | |
42489 | # And first: Protect against being on the right side of a sed subst in | |
42490 | # config.status. Protect against being in an unquoted here document | |
42491 | # in config.status. | |
42492 | rm -f conftest.defines conftest.undefs | |
42493 | # Using a here document instead of a string reduces the quoting nightmare. | |
42494 | # Putting comments in sed scripts is not portable. | |
42495 | # | |
42496 | # `end' is used to avoid that the second main sed command (meant for | |
42497 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42498 | # See the Autoconf documentation for `clear'. | |
42499 | cat >confdef2sed.sed <<\_ACEOF | |
42500 | s/[\\&,]/\\&/g | |
42501 | s,[\\$`],\\&,g | |
42502 | t clear | |
42503 | : clear | |
ac1cb8d3 | 42504 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42505 | t end |
ac1cb8d3 | 42506 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42507 | : end |
42508 | _ACEOF | |
42509 | # If some macros were called several times there might be several times | |
42510 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42511 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42512 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42513 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42514 | rm -f confdef2sed.sed | |
42515 | ||
42516 | # This sed command replaces #undef with comments. This is necessary, for | |
42517 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42518 | # on some systems where configure will not decide to define it. | |
42519 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42520 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42521 | _ACEOF |
42522 | ||
42523 | # Break up conftest.defines because some shells have a limit on the size | |
42524 | # of here documents, and old seds have small limits too (100 cmds). | |
42525 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42526 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42527 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42528 | echo ' :' >>$CONFIG_STATUS | |
42529 | rm -f conftest.tail | |
42530 | while grep . conftest.defines >/dev/null | |
42531 | do | |
42532 | # Write a limited-size here document to $tmp/defines.sed. | |
42533 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
42534 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 42535 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42536 | # Work around the forget-to-reset-the-flag bug. |
42537 | echo 't clr' >>$CONFIG_STATUS | |
42538 | echo ': clr' >>$CONFIG_STATUS | |
42539 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
42540 | echo 'CEOF | |
42541 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
42542 | rm -f $tmp/in | |
42543 | mv $tmp/out $tmp/in | |
42544 | ' >>$CONFIG_STATUS | |
42545 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
42546 | rm -f conftest.defines | |
42547 | mv conftest.tail conftest.defines | |
42548 | done | |
42549 | rm -f conftest.defines | |
42550 | echo ' fi # grep' >>$CONFIG_STATUS | |
42551 | echo >>$CONFIG_STATUS | |
42552 | ||
42553 | # Break up conftest.undefs because some shells have a limit on the size | |
42554 | # of here documents, and old seds have small limits too (100 cmds). | |
42555 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
42556 | rm -f conftest.tail | |
42557 | while grep . conftest.undefs >/dev/null | |
42558 | do | |
42559 | # Write a limited-size here document to $tmp/undefs.sed. | |
42560 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
42561 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 42562 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42563 | # Work around the forget-to-reset-the-flag bug. |
42564 | echo 't clr' >>$CONFIG_STATUS | |
42565 | echo ': clr' >>$CONFIG_STATUS | |
42566 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
42567 | echo 'CEOF | |
42568 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
42569 | rm -f $tmp/in | |
42570 | mv $tmp/out $tmp/in | |
42571 | ' >>$CONFIG_STATUS | |
42572 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
42573 | rm -f conftest.undefs | |
42574 | mv conftest.tail conftest.undefs | |
42575 | done | |
42576 | rm -f conftest.undefs | |
42577 | ||
42578 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42579 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
42580 | # use $as_me), people would be surprised to read: | |
42581 | # /* config.h. Generated by config.status. */ | |
42582 | if test x"$ac_file" = x-; then | |
42583 | echo "/* Generated by configure. */" >$tmp/config.h | |
42584 | else | |
42585 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
42586 | fi | |
42587 | cat $tmp/in >>$tmp/config.h | |
42588 | rm -f $tmp/in | |
42589 | if test x"$ac_file" != x-; then | |
42590 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
42591 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
42592 | echo "$as_me: $ac_file is unchanged" >&6;} | |
42593 | else | |
42594 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42595 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42596 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42597 | X"$ac_file" : 'X\(//\)$' \| \ | |
42598 | X"$ac_file" : 'X\(/\)' \| \ | |
42599 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42600 | echo X"$ac_file" | |
42601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42602 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42603 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42604 | /^X\(\/\).*/{ s//\1/; q; } | |
42605 | s/.*/./; q'` | |
42606 | { if $as_mkdir_p; then | |
42607 | mkdir -p "$ac_dir" | |
42608 | else | |
42609 | as_dir="$ac_dir" | |
42610 | as_dirs= | |
42611 | while test ! -d "$as_dir"; do | |
42612 | as_dirs="$as_dir $as_dirs" | |
42613 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42614 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42615 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42616 | X"$as_dir" : 'X\(//\)$' \| \ | |
42617 | X"$as_dir" : 'X\(/\)' \| \ | |
42618 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42619 | echo X"$as_dir" | |
42620 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42621 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42622 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42623 | /^X\(\/\).*/{ s//\1/; q; } | |
42624 | s/.*/./; q'` | |
42625 | done | |
42626 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42627 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42628 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42629 | { (exit 1); exit 1; }; }; } | |
42630 | ||
42631 | rm -f $ac_file | |
42632 | mv $tmp/config.h $ac_file | |
42633 | fi | |
42634 | else | |
42635 | cat $tmp/config.h | |
42636 | rm -f $tmp/config.h | |
42637 | fi | |
42638 | done | |
42639 | _ACEOF | |
42640 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42641 | ||
42642 | # | |
42643 | # CONFIG_COMMANDS section. | |
42644 | # | |
42645 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
42646 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
42647 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42648 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
42649 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42650 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
42651 | X"$ac_dest" : 'X\(//\)$' \| \ | |
42652 | X"$ac_dest" : 'X\(/\)' \| \ | |
42653 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42654 | echo X"$ac_dest" | |
42655 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42656 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42657 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42658 | /^X\(\/\).*/{ s//\1/; q; } | |
42659 | s/.*/./; q'` | |
ac1cb8d3 VS |
42660 | { if $as_mkdir_p; then |
42661 | mkdir -p "$ac_dir" | |
42662 | else | |
42663 | as_dir="$ac_dir" | |
42664 | as_dirs= | |
42665 | while test ! -d "$as_dir"; do | |
42666 | as_dirs="$as_dir $as_dirs" | |
42667 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42668 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
42669 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
42670 | X"$as_dir" : 'X\(//\)$' \| \ | |
42671 | X"$as_dir" : 'X\(/\)' \| \ | |
42672 | . : '\(.\)' 2>/dev/null || | |
42673 | echo X"$as_dir" | | |
42674 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42675 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42676 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42677 | /^X\(\/\).*/{ s//\1/; q; } | |
42678 | s/.*/./; q'` | |
42679 | done | |
42680 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42681 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42682 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42683 | { (exit 1); exit 1; }; }; } | |
42684 | ||
a848cd7e SC |
42685 | ac_builddir=. |
42686 | ||
42687 | if test "$ac_dir" != .; then | |
42688 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42689 | # A "../" for each directory in $ac_dir_suffix. | |
42690 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42691 | else | |
42692 | ac_dir_suffix= ac_top_builddir= | |
42693 | fi | |
42694 | ||
42695 | case $srcdir in | |
42696 | .) # No --srcdir option. We are building in place. | |
42697 | ac_srcdir=. | |
42698 | if test -z "$ac_top_builddir"; then | |
42699 | ac_top_srcdir=. | |
42700 | else | |
42701 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42702 | fi ;; | |
42703 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42704 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42705 | ac_top_srcdir=$srcdir ;; | |
42706 | *) # Relative path. | |
42707 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42708 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42709 | esac | |
ac1cb8d3 VS |
42710 | |
42711 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42712 | # the directories may not exist. | |
42713 | case `pwd` in | |
42714 | .) ac_abs_builddir="$ac_dir";; | |
42715 | *) | |
42716 | case "$ac_dir" in | |
42717 | .) ac_abs_builddir=`pwd`;; | |
42718 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42719 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42720 | esac;; | |
42721 | esac | |
42722 | case $ac_abs_builddir in | |
42723 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42724 | *) | |
42725 | case ${ac_top_builddir}. in | |
42726 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42727 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42728 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42729 | esac;; | |
42730 | esac | |
42731 | case $ac_abs_builddir in | |
42732 | .) ac_abs_srcdir=$ac_srcdir;; | |
42733 | *) | |
42734 | case $ac_srcdir in | |
42735 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42736 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42737 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42738 | esac;; | |
42739 | esac | |
42740 | case $ac_abs_builddir in | |
42741 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42742 | *) | |
42743 | case $ac_top_srcdir in | |
42744 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42745 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42746 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42747 | esac;; | |
42748 | esac | |
a848cd7e SC |
42749 | |
42750 | ||
42751 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
42752 | echo "$as_me: executing $ac_dest commands" >&6;} | |
42753 | case $ac_dest in | |
42754 | default ) | |
42755 | if test ! -h wx-config; then | |
42756 | chmod +x wx-config | |
42757 | mv wx-config wx${TOOLCHAIN_NAME}-config | |
42758 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
42759 | fi | |
42760 | ||
42761 | if test ! -d lib; then | |
42762 | mkdir lib | |
42763 | fi | |
42764 | if test ! -d lib/wx; then | |
42765 | mkdir lib/wx | |
42766 | fi | |
42767 | if test ! -d lib/wx/include; then | |
42768 | mkdir lib/wx/include | |
42769 | fi | |
42770 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
42771 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
42772 | fi | |
42773 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
42774 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
42775 | fi | |
42776 | if test -f setup.h; then | |
42777 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
42778 | fi | |
42779 | ;; | |
42780 | esac | |
42781 | done | |
42782 | _ACEOF | |
42783 | ||
42784 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42785 | ||
42786 | { (exit 0); exit 0; } | |
42787 | _ACEOF | |
42788 | chmod +x $CONFIG_STATUS | |
42789 | ac_clean_files=$ac_clean_files_save | |
42790 | ||
42791 | ||
42792 | # configure is writing to config.log, and then calls config.status. | |
42793 | # config.status does its own redirection, appending to config.log. | |
42794 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
42795 | # by configure, so config.status won't be able to write to it; its | |
42796 | # output is simply discarded. So we exec the FD to /dev/null, | |
42797 | # effectively closing config.log, so it can be properly (re)opened and | |
42798 | # appended to by config.status. When coming back to configure, we | |
42799 | # need to make the FD available again. | |
42800 | if test "$no_create" != yes; then | |
42801 | ac_cs_success=: | |
42802 | ac_config_status_args= | |
42803 | test "$silent" = yes && | |
42804 | ac_config_status_args="$ac_config_status_args --quiet" | |
42805 | exec 5>/dev/null | |
42806 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
42807 | exec 5>>config.log | |
42808 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
42809 | # would make configure fail if this is the last instruction. | |
42810 | $ac_cs_success || { (exit 1); exit 1; } | |
42811 | fi | |
42812 | ||
42813 | # | |
42814 | # CONFIG_SUBDIRS section. | |
42815 | # | |
42816 | if test "$no_recursion" != yes; then | |
42817 | ||
42818 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
42819 | ac_sub_configure_args= | |
42820 | ac_prev= | |
42821 | for ac_arg in $ac_configure_args; do | |
42822 | if test -n "$ac_prev"; then | |
42823 | ac_prev= | |
42824 | continue | |
42825 | fi | |
42826 | case $ac_arg in | |
42827 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
42828 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
42829 | ac_prev=cache_file ;; | |
42830 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
42831 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
42832 | | --c=*) | |
42833 | ;; | |
42834 | --config-cache | -C) | |
42835 | ;; | |
42836 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
42837 | ac_prev=srcdir ;; | |
42838 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42839 | ;; | |
42840 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
42841 | ac_prev=prefix ;; | |
42842 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42843 | ;; | |
42844 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
42845 | esac | |
42846 | done | |
42847 | ||
42848 | # Always prepend --prefix to ensure using the same prefix | |
42849 | # in subdir configurations. | |
42850 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
42851 | ||
42852 | ac_popdir=`pwd` | |
42853 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
42854 | ||
42855 | # Do not complain, so a configure script can configure whichever | |
42856 | # parts of a large source tree are present. | |
42857 | test -d $srcdir/$ac_dir || continue | |
42858 | ||
42859 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
42860 | echo "$as_me: configuring in $ac_dir" >&6;} | |
42861 | { if $as_mkdir_p; then | |
42862 | mkdir -p "$ac_dir" | |
42863 | else | |
42864 | as_dir="$ac_dir" | |
42865 | as_dirs= | |
42866 | while test ! -d "$as_dir"; do | |
42867 | as_dirs="$as_dir $as_dirs" | |
42868 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42869 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42870 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42871 | X"$as_dir" : 'X\(//\)$' \| \ | |
42872 | X"$as_dir" : 'X\(/\)' \| \ | |
42873 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42874 | echo X"$as_dir" | |
42875 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42876 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42877 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42878 | /^X\(\/\).*/{ s//\1/; q; } | |
42879 | s/.*/./; q'` | |
42880 | done | |
42881 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42882 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42883 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42884 | { (exit 1); exit 1; }; }; } | |
42885 | ||
42886 | ac_builddir=. | |
42887 | ||
42888 | if test "$ac_dir" != .; then | |
42889 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42890 | # A "../" for each directory in $ac_dir_suffix. | |
42891 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42892 | else | |
42893 | ac_dir_suffix= ac_top_builddir= | |
42894 | fi | |
42895 | ||
42896 | case $srcdir in | |
42897 | .) # No --srcdir option. We are building in place. | |
42898 | ac_srcdir=. | |
42899 | if test -z "$ac_top_builddir"; then | |
42900 | ac_top_srcdir=. | |
42901 | else | |
42902 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42903 | fi ;; | |
42904 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42905 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42906 | ac_top_srcdir=$srcdir ;; | |
42907 | *) # Relative path. | |
42908 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42909 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42910 | esac | |
ac1cb8d3 VS |
42911 | |
42912 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42913 | # the directories may not exist. | |
42914 | case `pwd` in | |
42915 | .) ac_abs_builddir="$ac_dir";; | |
42916 | *) | |
42917 | case "$ac_dir" in | |
42918 | .) ac_abs_builddir=`pwd`;; | |
42919 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42920 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42921 | esac;; | |
42922 | esac | |
42923 | case $ac_abs_builddir in | |
42924 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42925 | *) | |
42926 | case ${ac_top_builddir}. in | |
42927 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42928 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42929 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42930 | esac;; | |
42931 | esac | |
42932 | case $ac_abs_builddir in | |
42933 | .) ac_abs_srcdir=$ac_srcdir;; | |
42934 | *) | |
42935 | case $ac_srcdir in | |
42936 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42937 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42938 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42939 | esac;; | |
42940 | esac | |
42941 | case $ac_abs_builddir in | |
42942 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42943 | *) | |
42944 | case $ac_top_srcdir in | |
42945 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42946 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42947 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42948 | esac;; | |
42949 | esac | |
a848cd7e SC |
42950 | |
42951 | ||
42952 | cd $ac_dir | |
42953 | ||
42954 | # Check for guested configure; otherwise get Cygnus style configure. | |
42955 | if test -f $ac_srcdir/configure.gnu; then | |
42956 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
42957 | elif test -f $ac_srcdir/configure; then | |
42958 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
42959 | elif test -f $ac_srcdir/configure.in; then | |
42960 | ac_sub_configure=$ac_configure | |
42961 | else | |
42962 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
42963 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
42964 | ac_sub_configure= | |
42965 | fi | |
42966 | ||
42967 | # The recursion is here. | |
42968 | if test -n "$ac_sub_configure"; then | |
42969 | # Make the cache file name correct relative to the subdirectory. | |
42970 | case $cache_file in | |
42971 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
42972 | *) # Relative path. | |
ac1cb8d3 | 42973 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
42974 | esac |
42975 | ||
42976 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
42977 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
42978 | # The eval makes quoting arguments work. | |
42979 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
42980 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
42981 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
42982 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
42983 | { (exit 1); exit 1; }; } | |
42984 | fi | |
42985 | ||
dcc1b6ad | 42986 | cd $ac_popdir |
a848cd7e SC |
42987 | done |
42988 | fi | |
42989 | ||
42990 | ||
42991 | echo | |
77ffb593 | 42992 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 42993 | echo "" |
77ffb593 JS |
42994 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}" |
42995 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" | |
a848cd7e | 42996 | |
77ffb593 JS |
42997 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
42998 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
42999 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43000 | |
77ffb593 JS |
43001 | echo " What level of wxWidgets compatibility should be enabled?" |
43002 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43003 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43004 | |
77ffb593 | 43005 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43006 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43007 | echo " png ${wxUSE_LIBPNG-none}" | |
43008 | echo " regex ${wxUSE_REGEX}" | |
43009 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43010 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43011 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43012 | fi | |
43013 | echo " zlib ${wxUSE_ZLIB}" | |
43014 | echo " odbc ${wxUSE_ODBC}" | |
43015 | echo " expat ${wxUSE_EXPAT}" | |
43016 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43017 | echo " sdl ${wxUSE_LIBSDL}" | |
43018 | ||
43019 | echo "" | |
43020 |