]>
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" | |
ceec2216 | 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 WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_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_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
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 | |
9a8f0513 | 947 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
948 | --enable-constraints use layout-constraints system |
949 | --enable-printarch use printing architecture | |
950 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 951 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
952 | --enable-loggui use standard GUI logger |
953 | --enable-logwin use wxLogWindow | |
954 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 955 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
956 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
957 | --enable-prologio not available; see contrib | |
958 | --enable-resources not available; see contrib | |
959 | --enable-clipboard use wxClipboard class | |
960 | --enable-dnd use Drag'n'Drop classes | |
961 | --enable-metafile use win32 metafiles | |
962 | --enable-controls use all usual controls | |
963 | --enable-accel use accelerators | |
964 | --enable-button use wxButton class | |
965 | --enable-bmpbutton use wxBitmapButton class | |
966 | --enable-calendar use wxCalendarCtrl class | |
967 | --enable-caret use wxCaret class | |
968 | --enable-checkbox use wxCheckBox class | |
969 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
970 | --enable-choice use wxChoice class | |
92bbdbcd | 971 | --enable-choicebook use wxChoicebook class |
a848cd7e SC |
972 | --enable-combobox use wxComboBox class |
973 | --enable-display use wxDisplay class | |
974 | --enable-gauge use wxGauge class | |
975 | --enable-grid use wxGrid class | |
976 | --enable-imaglist use wxImageList class | |
977 | --enable-listbook use wxListbook class | |
978 | --enable-listbox use wxListBox class | |
979 | --enable-listctrl use wxListCtrl class | |
980 | --enable-notebook use wxNotebook class | |
981 | --enable-radiobox use wxRadioBox class | |
982 | --enable-radiobtn use wxRadioButton class | |
983 | --enable-sash use wxSashWindow class | |
984 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
985 | --enable-slider use wxSlider class | |
986 | --enable-spinbtn use wxSpinButton class | |
987 | --enable-spinctrl use wxSpinCtrl class | |
988 | --enable-splitter use wxSplitterWindow class | |
989 | --enable-statbmp use wxStaticBitmap class | |
990 | --enable-statbox use wxStaticBox class | |
991 | --enable-statline use wxStaticLine class | |
992 | --enable-stattext use wxStaticText class | |
993 | --enable-statusbar use wxStatusBar class | |
994 | --enable-tabdialog use wxTabControl class | |
995 | --enable-textctrl use wxTextCtrl class | |
996 | --enable-togglebtn use wxToggleButton class | |
997 | --enable-toolbar use wxToolBar class | |
998 | --enable-tbarnative use native wxToolBar class | |
999 | --enable-tbarsmpl use wxToolBarSimple class | |
1000 | --enable-treectrl use wxTreeCtrl class | |
1001 | --enable-tipwindow use wxTipWindow class | |
1002 | --enable-popupwin use wxPopUpWindow class | |
1003 | --enable-commondlg use all common dialogs | |
1004 | --enable-choicedlg use wxChoiceDialog | |
1005 | --enable-coldlg use wxColourDialog | |
1006 | --enable-filedlg use wxFileDialog | |
1007 | --enable-finddlg use wxFindReplaceDialog | |
1008 | --enable-fontdlg use wxFontDialog | |
1009 | --enable-dirdlg use wxDirDialog | |
1010 | --enable-msgdlg use wxMessageDialog | |
1011 | --enable-numberdlg use wxNumberEntryDialog | |
1012 | --enable-splash use wxSplashScreen | |
1013 | --enable-textdlg use wxTextDialog | |
1014 | --enable-tipdlg use startup tips | |
1015 | --enable-progressdlg use wxProgressDialog | |
1016 | --enable-wizarddlg use wxWizard | |
1017 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1018 | --enable-miniframe use wxMiniFrame class | |
1019 | --enable-tooltips use wxToolTip class | |
1020 | --enable-splines use spline drawing code | |
1021 | --enable-validators use wxValidator and derived classes | |
1022 | --enable-busyinfo use wxBusyInfo | |
1023 | --enable-joystick use wxJoystick (Linux only) | |
1024 | --enable-metafiles use wxMetaFile (Windows only) | |
1025 | --enable-dragimage use wxDragImage | |
1026 | --enable-accessibility enable accessibility support | |
1027 | --enable-palette use wxPalette class | |
1028 | --enable-image use wxImage class | |
1029 | --enable-gif use gif images (GIF file format) | |
1030 | --enable-pcx use pcx images (PCX file format) | |
1031 | --enable-iff use iff images (IFF file format) | |
1032 | --enable-pnm use pnm images (PNM file format) | |
1033 | --enable-xpm use xpm images (XPM file format) | |
1034 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1035 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1036 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1037 | --disable-largefile omit support for large files | |
1038 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1039 | --disable-gtktest Do not try to compile and run a test GTK program | |
1040 | --disable-sdltest Do not try to compile and run a test SDL program | |
1041 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1042 | --disable-precomp-headers |
1043 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1044 | |
1045 | Optional Packages: | |
1046 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1047 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1048 | --with-gtk use GTK+ | |
1049 | --with-motif use Motif/Lesstif | |
1050 | --with-mac use Mac OS X | |
1051 | --with-cocoa use Cocoa | |
1052 | --with-wine use Wine | |
1053 | --with-msw use MS-Windows | |
1054 | --with-pm use OS/2 Presentation Manager | |
1055 | --with-mgl use SciTech MGL | |
1056 | --with-microwin use MicroWindows | |
1057 | --with-x11 use X11 | |
1058 | --with-libpng use libpng (PNG image format) | |
1059 | --with-libjpeg use libjpeg (JPEG file format) | |
1060 | --with-libtiff use libtiff (TIFF file format) | |
1061 | --with-libxpm use libxpm (XPM file format) | |
1062 | --with-libmspack use libmspack (CHM help files loading) | |
1063 | --with-sdl use SDL for audio on Unix | |
1064 | --with-opengl use OpenGL (or Mesa) | |
1065 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1066 | --with-regex enable support for wxRegEx class | |
1067 | --with-zlib use zlib for LZW compression | |
1068 | --with-odbc use the IODBC and wxODBC classes | |
1069 | --with-expat enable XML support using expat parser | |
ceec2216 | 1070 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1071 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1072 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1073 | --with-x use the X Window System | |
1074 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1075 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1076 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1077 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1078 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1079 | ||
1080 | Some influential environment variables: | |
dcc1b6ad VS |
1081 | CC C compiler command |
1082 | CFLAGS C compiler flags | |
1083 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1084 | nonstandard directory <lib dir> | |
1085 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1086 | headers in a nonstandard directory <include dir> | |
1087 | CPP C preprocessor | |
1088 | CXX C++ compiler command | |
1089 | CXXFLAGS C++ compiler flags | |
1090 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1091 | |
1092 | Use these variables to override the choices made by `configure' or to help | |
1093 | it to find libraries and programs with nonstandard names/locations. | |
1094 | ||
77ffb593 | 1095 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1096 | _ACEOF |
1097 | fi | |
1098 | ||
1099 | if test "$ac_init_help" = "recursive"; then | |
1100 | # If there are subdirs, report their specific --help. | |
1101 | ac_popdir=`pwd` | |
1102 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1103 | test -d $ac_dir || continue | |
1104 | ac_builddir=. | |
1105 | ||
1106 | if test "$ac_dir" != .; then | |
1107 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1108 | # A "../" for each directory in $ac_dir_suffix. | |
1109 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1110 | else | |
1111 | ac_dir_suffix= ac_top_builddir= | |
1112 | fi | |
1113 | ||
1114 | case $srcdir in | |
1115 | .) # No --srcdir option. We are building in place. | |
1116 | ac_srcdir=. | |
1117 | if test -z "$ac_top_builddir"; then | |
1118 | ac_top_srcdir=. | |
1119 | else | |
1120 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1121 | fi ;; | |
1122 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1123 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1124 | ac_top_srcdir=$srcdir ;; | |
1125 | *) # Relative path. | |
1126 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1127 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1128 | esac | |
ac1cb8d3 VS |
1129 | |
1130 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1131 | # the directories may not exist. | |
1132 | case `pwd` in | |
1133 | .) ac_abs_builddir="$ac_dir";; | |
1134 | *) | |
1135 | case "$ac_dir" in | |
1136 | .) ac_abs_builddir=`pwd`;; | |
1137 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1138 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1139 | esac;; | |
1140 | esac | |
1141 | case $ac_abs_builddir in | |
1142 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1143 | *) | |
1144 | case ${ac_top_builddir}. in | |
1145 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1146 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1147 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1148 | esac;; | |
1149 | esac | |
1150 | case $ac_abs_builddir in | |
1151 | .) ac_abs_srcdir=$ac_srcdir;; | |
1152 | *) | |
1153 | case $ac_srcdir in | |
1154 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1155 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1156 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1157 | esac;; | |
1158 | esac | |
1159 | case $ac_abs_builddir in | |
1160 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1161 | *) | |
1162 | case $ac_top_srcdir in | |
1163 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1164 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1165 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1166 | esac;; | |
1167 | esac | |
a848cd7e SC |
1168 | |
1169 | cd $ac_dir | |
1170 | # Check for guested configure; otherwise get Cygnus style configure. | |
1171 | if test -f $ac_srcdir/configure.gnu; then | |
1172 | echo | |
1173 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1174 | elif test -f $ac_srcdir/configure; then | |
1175 | echo | |
1176 | $SHELL $ac_srcdir/configure --help=recursive | |
1177 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1178 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1179 | echo |
1180 | $ac_configure --help | |
1181 | else | |
1182 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1183 | fi | |
5dcf30a0 | 1184 | cd $ac_popdir |
a848cd7e SC |
1185 | done |
1186 | fi | |
1187 | ||
1188 | test -n "$ac_init_help" && exit 0 | |
1189 | if $ac_init_version; then | |
1190 | cat <<\_ACEOF | |
77ffb593 | 1191 | wxWidgets configure 2.5.2 |
ac1cb8d3 | 1192 | generated by GNU Autoconf 2.59 |
a848cd7e | 1193 | |
ac1cb8d3 | 1194 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1195 | This configure script is free software; the Free Software Foundation |
1196 | gives unlimited permission to copy, distribute and modify it. | |
1197 | _ACEOF | |
1198 | exit 0 | |
1199 | fi | |
1200 | exec 5>config.log | |
1201 | cat >&5 <<_ACEOF | |
1202 | This file contains any messages produced by compilers while | |
1203 | running configure, to aid debugging if configure makes a mistake. | |
1204 | ||
77ffb593 | 1205 | It was created by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 1206 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1207 | |
1208 | $ $0 $@ | |
1209 | ||
1210 | _ACEOF | |
1211 | { | |
1212 | cat <<_ASUNAME | |
1213 | ## --------- ## | |
1214 | ## Platform. ## | |
1215 | ## --------- ## | |
1216 | ||
1217 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1218 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1219 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1220 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1221 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1222 | ||
1223 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1224 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1225 | ||
1226 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1227 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1228 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1229 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1230 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1231 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1232 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1233 | ||
1234 | _ASUNAME | |
1235 | ||
1236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1237 | for as_dir in $PATH | |
1238 | do | |
1239 | IFS=$as_save_IFS | |
1240 | test -z "$as_dir" && as_dir=. | |
1241 | echo "PATH: $as_dir" | |
1242 | done | |
1243 | ||
1244 | } >&5 | |
1245 | ||
1246 | cat >&5 <<_ACEOF | |
1247 | ||
1248 | ||
1249 | ## ----------- ## | |
1250 | ## Core tests. ## | |
1251 | ## ----------- ## | |
1252 | ||
1253 | _ACEOF | |
1254 | ||
1255 | ||
1256 | # Keep a trace of the command line. | |
1257 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1258 | # Strip out --silent because we don't want to record it for future runs. | |
1259 | # Also quote any args containing shell meta-characters. | |
1260 | # Make two passes to allow for proper duplicate-argument suppression. | |
1261 | ac_configure_args= | |
1262 | ac_configure_args0= | |
1263 | ac_configure_args1= | |
1264 | ac_sep= | |
1265 | ac_must_keep_next=false | |
1266 | for ac_pass in 1 2 | |
1267 | do | |
1268 | for ac_arg | |
1269 | do | |
1270 | case $ac_arg in | |
1271 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1272 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1273 | | -silent | --silent | --silen | --sile | --sil) | |
1274 | continue ;; | |
1275 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1276 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1277 | esac | |
1278 | case $ac_pass in | |
1279 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1280 | 2) | |
1281 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1282 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1283 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1284 | else |
ac1cb8d3 VS |
1285 | case $ac_arg in |
1286 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1287 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1288 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1289 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1290 | case "$ac_configure_args0 " in | |
1291 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1292 | esac | |
1293 | ;; | |
1294 | -* ) ac_must_keep_next=true ;; | |
1295 | esac | |
a848cd7e SC |
1296 | fi |
1297 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1298 | # Get rid of the leading space. | |
1299 | ac_sep=" " | |
1300 | ;; | |
1301 | esac | |
1302 | done | |
1303 | done | |
1304 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1305 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1306 | ||
1307 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1308 | # config.log. We remove comments because anyway the quotes in there | |
1309 | # would cause problems or look ugly. | |
1310 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1311 | # such as our DU 5.0 friend, will then `close' the trap. | |
1312 | trap 'exit_status=$? | |
1313 | # Save into config.log some information that might help in debugging. | |
1314 | { | |
1315 | echo | |
1316 | ||
1317 | cat <<\_ASBOX | |
1318 | ## ---------------- ## | |
1319 | ## Cache variables. ## | |
1320 | ## ---------------- ## | |
1321 | _ASBOX | |
1322 | echo | |
1323 | # The following way of writing the cache mishandles newlines in values, | |
1324 | { | |
1325 | (set) 2>&1 | | |
1326 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1327 | *ac_space=\ *) | |
1328 | sed -n \ | |
ac1cb8d3 VS |
1329 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1330 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1331 | ;; |
1332 | *) | |
1333 | sed -n \ | |
ac1cb8d3 | 1334 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1335 | ;; |
1336 | esac; | |
1337 | } | |
1338 | echo | |
1339 | ||
1340 | cat <<\_ASBOX | |
1341 | ## ----------------- ## | |
1342 | ## Output variables. ## | |
1343 | ## ----------------- ## | |
1344 | _ASBOX | |
1345 | echo | |
1346 | for ac_var in $ac_subst_vars | |
1347 | do | |
1348 | eval ac_val=$`echo $ac_var` | |
1349 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1350 | done | sort | |
1351 | echo | |
1352 | ||
1353 | if test -n "$ac_subst_files"; then | |
1354 | cat <<\_ASBOX | |
1355 | ## ------------- ## | |
1356 | ## Output files. ## | |
1357 | ## ------------- ## | |
1358 | _ASBOX | |
1359 | echo | |
1360 | for ac_var in $ac_subst_files | |
1361 | do | |
1362 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1363 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1364 | done | sort |
1365 | echo | |
1366 | fi | |
1367 | ||
1368 | if test -s confdefs.h; then | |
1369 | cat <<\_ASBOX | |
1370 | ## ----------- ## | |
1371 | ## confdefs.h. ## | |
1372 | ## ----------- ## | |
1373 | _ASBOX | |
1374 | echo | |
1375 | sed "/^$/d" confdefs.h | sort | |
1376 | echo | |
1377 | fi | |
1378 | test "$ac_signal" != 0 && | |
1379 | echo "$as_me: caught signal $ac_signal" | |
1380 | echo "$as_me: exit $exit_status" | |
1381 | } >&5 | |
ac1cb8d3 | 1382 | rm -f core *.core && |
a848cd7e SC |
1383 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1384 | exit $exit_status | |
1385 | ' 0 | |
1386 | for ac_signal in 1 2 13 15; do | |
1387 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1388 | done | |
1389 | ac_signal=0 | |
1390 | ||
1391 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1392 | rm -rf conftest* confdefs.h | |
1393 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1394 | echo >confdefs.h | |
1395 | ||
1396 | # Predefined preprocessor variables. | |
1397 | ||
1398 | cat >>confdefs.h <<_ACEOF | |
1399 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1400 | _ACEOF | |
1401 | ||
1402 | ||
1403 | cat >>confdefs.h <<_ACEOF | |
1404 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1405 | _ACEOF | |
1406 | ||
1407 | ||
1408 | cat >>confdefs.h <<_ACEOF | |
1409 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1410 | _ACEOF | |
1411 | ||
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | # Let the site file select an alternate cache file if it wants to. | |
1424 | # Prefer explicitly selected file to automatically selected ones. | |
1425 | if test -z "$CONFIG_SITE"; then | |
1426 | if test "x$prefix" != xNONE; then | |
1427 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1428 | else | |
1429 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1430 | fi | |
1431 | fi | |
1432 | for ac_site_file in $CONFIG_SITE; do | |
1433 | if test -r "$ac_site_file"; then | |
1434 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1435 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1436 | sed 's/^/| /' "$ac_site_file" >&5 | |
1437 | . "$ac_site_file" | |
1438 | fi | |
1439 | done | |
1440 | ||
1441 | if test -r "$cache_file"; then | |
1442 | # Some versions of bash will fail to source /dev/null (special | |
1443 | # files actually), so we avoid doing that. | |
1444 | if test -f "$cache_file"; then | |
1445 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1446 | echo "$as_me: loading cache $cache_file" >&6;} | |
1447 | case $cache_file in | |
1448 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1449 | *) . ./$cache_file;; | |
1450 | esac | |
1451 | fi | |
1452 | else | |
1453 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1454 | echo "$as_me: creating cache $cache_file" >&6;} | |
1455 | >$cache_file | |
1456 | fi | |
1457 | ||
1458 | # Check that the precious variables saved in the cache have kept the same | |
1459 | # value. | |
1460 | ac_cache_corrupted=false | |
1461 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1462 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1463 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1464 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1465 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1466 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1467 | case $ac_old_set,$ac_new_set in | |
1468 | set,) | |
1469 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1470 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1471 | ac_cache_corrupted=: ;; | |
1472 | ,set) | |
1473 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1474 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1475 | ac_cache_corrupted=: ;; | |
1476 | ,);; | |
1477 | *) | |
1478 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1479 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1480 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1481 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1482 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1483 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1484 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1485 | ac_cache_corrupted=: |
a848cd7e SC |
1486 | fi;; |
1487 | esac | |
1488 | # Pass precious variables to config.status. | |
1489 | if test "$ac_new_set" = set; then | |
1490 | case $ac_new_val in | |
1491 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1492 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1493 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1494 | esac | |
1495 | case " $ac_configure_args " in | |
1496 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1497 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1498 | esac | |
1499 | fi | |
1500 | done | |
1501 | if $ac_cache_corrupted; then | |
1502 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1503 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1504 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1505 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1506 | { (exit 1); exit 1; }; } | |
1507 | fi | |
1508 | ||
1509 | ac_ext=c | |
1510 | ac_cpp='$CPP $CPPFLAGS' | |
1511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
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 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ac_aux_dir= | |
1545 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1546 | if 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/install.sh; then | |
1551 | ac_aux_dir=$ac_dir | |
1552 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1553 | break | |
1554 | elif test -f $ac_dir/shtool; then | |
1555 | ac_aux_dir=$ac_dir | |
1556 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1557 | break | |
1558 | fi | |
1559 | done | |
1560 | if test -z "$ac_aux_dir"; then | |
1561 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1562 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1563 | { (exit 1); exit 1; }; } | |
1564 | fi | |
1565 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1566 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1567 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1568 | ||
1569 | # Make sure we can run config.sub. | |
1570 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1571 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1572 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1573 | { (exit 1); exit 1; }; } | |
1574 | ||
1575 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1576 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1577 | if test "${ac_cv_build+set}" = set; then | |
1578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1579 | else | |
1580 | ac_cv_build_alias=$build_alias | |
1581 | test -z "$ac_cv_build_alias" && | |
1582 | ac_cv_build_alias=`$ac_config_guess` | |
1583 | test -z "$ac_cv_build_alias" && | |
1584 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1585 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1588 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1589 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1590 | { (exit 1); exit 1; }; } | |
1591 | ||
1592 | fi | |
1593 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1594 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1595 | build=$ac_cv_build | |
1596 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1597 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1598 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1599 | ||
1600 | ||
1601 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1602 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1603 | if test "${ac_cv_host+set}" = set; then | |
1604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1605 | else | |
1606 | ac_cv_host_alias=$host_alias | |
1607 | test -z "$ac_cv_host_alias" && | |
1608 | ac_cv_host_alias=$ac_cv_build_alias | |
1609 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1610 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1611 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1612 | { (exit 1); exit 1; }; } | |
1613 | ||
1614 | fi | |
1615 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1616 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1617 | host=$ac_cv_host | |
1618 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1619 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1620 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1621 | ||
1622 | ||
1623 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1624 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1625 | if test "${ac_cv_target+set}" = set; then | |
1626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1627 | else | |
1628 | ac_cv_target_alias=$target_alias | |
1629 | test "x$ac_cv_target_alias" = "x" && | |
1630 | ac_cv_target_alias=$ac_cv_host_alias | |
1631 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1632 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1633 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1634 | { (exit 1); exit 1; }; } | |
1635 | ||
1636 | fi | |
1637 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1638 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1639 | target=$ac_cv_target | |
1640 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1641 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1642 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1643 | ||
1644 | ||
1645 | # The aliases save the names the user supplied, while $host etc. | |
1646 | # will get canonicalized. | |
1647 | test -n "$target_alias" && | |
1648 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1649 | NONENONEs,x,x, && | |
1650 | program_prefix=${target_alias}- | |
1651 | ||
1652 | ||
1653 | ||
ceec2216 RL |
1654 | wx_major_version_number=2 |
1655 | wx_minor_version_number=5 | |
1656 | wx_release_number=2 | |
fdec3549 | 1657 | wx_subrelease_number=9 |
a848cd7e | 1658 | |
ceec2216 RL |
1659 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1660 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1661 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1662 | |
ceec2216 | 1663 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1664 | |
de59c161 | 1665 | WX_CURRENT=2 |
a848cd7e SC |
1666 | WX_REVISION=0 |
1667 | WX_AGE=0 | |
1668 | ||
1669 | ||
1670 | ||
1671 | USE_UNIX=1 | |
1672 | USE_OS2=0 | |
1673 | USE_WIN32=0 | |
1674 | USE_DOS=0 | |
1675 | USE_BEOS=0 | |
1676 | USE_MAC=0 | |
1677 | ||
1678 | USE_AIX= | |
1679 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1680 | USE_GNU= USE_HPUX= | |
1681 | USE_LINUX= | |
1682 | USE_NETBSD= | |
1683 | USE_OPENBSD= | |
1684 | USE_OSF= USE_SGI= | |
1685 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1686 | USE_ULTRIX= | |
1687 | USE_UNIXWARE= | |
1688 | ||
1689 | USE_ALPHA= | |
1690 | ||
1691 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1692 | ||
1693 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1694 | ||
1695 | DEFAULT_wxUSE_COCOA=0 | |
1696 | DEFAULT_wxUSE_GTK=0 | |
1697 | DEFAULT_wxUSE_MAC=0 | |
1698 | DEFAULT_wxUSE_MGL=0 | |
1699 | DEFAULT_wxUSE_MICROWIN=0 | |
1700 | DEFAULT_wxUSE_MOTIF=0 | |
1701 | DEFAULT_wxUSE_MSW=0 | |
1702 | DEFAULT_wxUSE_PM=0 | |
1703 | DEFAULT_wxUSE_X11=0 | |
1704 | ||
1705 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1706 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1710 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1714 | ||
1715 | PROGRAM_EXT= | |
1716 | SO_SUFFIX=so | |
1717 | SAMPLES_RPATH_FLAG= | |
1718 | SAMPLES_RPATH_POSTLINK= | |
1719 | ||
1720 | case "${host}" in | |
1721 | *-hp-hpux* ) | |
1722 | USE_HPUX=1 | |
1723 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1724 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1725 | SO_SUFFIX=sl | |
1726 | cat >>confdefs.h <<\_ACEOF | |
1727 | #define __HPUX__ 1 | |
1728 | _ACEOF | |
1729 | ||
1730 | ;; | |
1731 | *-*-linux* ) | |
1732 | USE_LINUX=1 | |
1733 | cat >>confdefs.h <<\_ACEOF | |
1734 | #define __LINUX__ 1 | |
1735 | _ACEOF | |
1736 | ||
1737 | TMP=`uname -m` | |
1738 | if test "x$TMP" = "xalpha"; then | |
1739 | USE_ALPHA=1 | |
1740 | cat >>confdefs.h <<\_ACEOF | |
1741 | #define __ALPHA__ 1 | |
1742 | _ACEOF | |
1743 | ||
1744 | fi | |
1745 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1746 | ;; | |
1747 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1748 | USE_GNU=1 | |
1749 | TMP=`uname -m` | |
1750 | if test "x$TMP" = "xalpha"; then | |
1751 | USE_ALPHA=1 | |
1752 | cat >>confdefs.h <<\_ACEOF | |
1753 | #define __ALPHA__ 1 | |
1754 | _ACEOF | |
1755 | ||
1756 | fi | |
1757 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1758 | ;; | |
1759 | *-*-irix5* | *-*-irix6* ) | |
1760 | USE_SGI=1 | |
1761 | USE_SVR4=1 | |
1762 | cat >>confdefs.h <<\_ACEOF | |
1763 | #define __SGI__ 1 | |
1764 | _ACEOF | |
1765 | ||
1766 | cat >>confdefs.h <<\_ACEOF | |
1767 | #define __SVR4__ 1 | |
1768 | _ACEOF | |
1769 | ||
1770 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1771 | ;; | |
1772 | *-*-solaris2* ) | |
1773 | USE_SUN=1 | |
1774 | USE_SOLARIS=1 | |
1775 | USE_SVR4=1 | |
1776 | cat >>confdefs.h <<\_ACEOF | |
1777 | #define __SUN__ 1 | |
1778 | _ACEOF | |
1779 | ||
1780 | cat >>confdefs.h <<\_ACEOF | |
1781 | #define __SOLARIS__ 1 | |
1782 | _ACEOF | |
1783 | ||
1784 | cat >>confdefs.h <<\_ACEOF | |
1785 | #define __SVR4__ 1 | |
1786 | _ACEOF | |
1787 | ||
1788 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1789 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1790 | ;; | |
1791 | *-*-sunos4* ) | |
1792 | USE_SUN=1 | |
1793 | USE_SUNOS=1 | |
1794 | USE_BSD=1 | |
1795 | cat >>confdefs.h <<\_ACEOF | |
1796 | #define __SUN__ 1 | |
1797 | _ACEOF | |
1798 | ||
1799 | cat >>confdefs.h <<\_ACEOF | |
1800 | #define __SUNOS__ 1 | |
1801 | _ACEOF | |
1802 | ||
1803 | cat >>confdefs.h <<\_ACEOF | |
1804 | #define __BSD__ 1 | |
1805 | _ACEOF | |
1806 | ||
1807 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1808 | ;; | |
1809 | *-*-freebsd*) | |
1810 | USE_BSD=1 | |
1811 | USE_FREEBSD=1 | |
1812 | cat >>confdefs.h <<\_ACEOF | |
1813 | #define __FREEBSD__ 1 | |
1814 | _ACEOF | |
1815 | ||
1816 | cat >>confdefs.h <<\_ACEOF | |
1817 | #define __BSD__ 1 | |
1818 | _ACEOF | |
1819 | ||
1820 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1821 | ;; | |
1822 | *-*-openbsd*) | |
1823 | USE_BSD=1 | |
1824 | USE_OPENBSD=1 | |
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __OPENBSD__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | cat >>confdefs.h <<\_ACEOF | |
1830 | #define __BSD__ 1 | |
1831 | _ACEOF | |
1832 | ||
1833 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1834 | ;; | |
1835 | *-*-netbsd*) | |
1836 | USE_BSD=1 | |
1837 | USE_NETBSD=1 | |
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __NETBSD__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | cat >>confdefs.h <<\_ACEOF | |
1843 | #define __BSD__ 1 | |
1844 | _ACEOF | |
1845 | ||
1846 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1847 | ;; | |
1848 | *-*-osf* ) | |
1849 | USE_ALPHA=1 | |
1850 | USE_OSF=1 | |
1851 | cat >>confdefs.h <<\_ACEOF | |
1852 | #define __ALPHA__ 1 | |
1853 | _ACEOF | |
1854 | ||
1855 | cat >>confdefs.h <<\_ACEOF | |
1856 | #define __OSF__ 1 | |
1857 | _ACEOF | |
1858 | ||
1859 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1860 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1861 | ;; | |
1862 | *-*-dgux5* ) | |
1863 | USE_ALPHA=1 | |
1864 | USE_SVR4=1 | |
1865 | cat >>confdefs.h <<\_ACEOF | |
1866 | #define __ALPHA__ 1 | |
1867 | _ACEOF | |
1868 | ||
1869 | cat >>confdefs.h <<\_ACEOF | |
1870 | #define __SVR4__ 1 | |
1871 | _ACEOF | |
1872 | ||
1873 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1874 | ;; | |
1875 | *-*-sysv5* ) | |
1876 | USE_SYSV=1 | |
1877 | USE_SVR4=1 | |
1878 | cat >>confdefs.h <<\_ACEOF | |
1879 | #define __SYSV__ 1 | |
1880 | _ACEOF | |
1881 | ||
1882 | cat >>confdefs.h <<\_ACEOF | |
1883 | #define __SVR4__ 1 | |
1884 | _ACEOF | |
1885 | ||
1886 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1887 | ;; | |
1888 | *-*-aix* ) | |
1889 | USE_AIX=1 | |
1890 | USE_SYSV=1 | |
1891 | USE_SVR4=1 | |
1892 | SO_SUFFIX=a | |
1893 | cat >>confdefs.h <<\_ACEOF | |
1894 | #define __AIX__ 1 | |
1895 | _ACEOF | |
1896 | ||
1897 | cat >>confdefs.h <<\_ACEOF | |
1898 | #define __SYSV__ 1 | |
1899 | _ACEOF | |
1900 | ||
1901 | cat >>confdefs.h <<\_ACEOF | |
1902 | #define __SVR4__ 1 | |
1903 | _ACEOF | |
1904 | ||
1905 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1906 | ;; | |
1907 | ||
1908 | *-*-*UnixWare*) | |
1909 | USE_SYSV=1 | |
1910 | USE_SVR4=1 | |
1911 | USE_UNIXWARE=1 | |
1912 | cat >>confdefs.h <<\_ACEOF | |
1913 | #define __UNIXWARE__ 1 | |
1914 | _ACEOF | |
1915 | ||
1916 | ;; | |
1917 | ||
1918 | *-*-cygwin* | *-*-mingw32* ) | |
1919 | SO_SUFFIX=dll | |
1920 | PROGRAM_EXT=".exe" | |
1921 | RESCOMP=windres | |
1922 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1923 | ;; | |
1924 | ||
1925 | *-pc-msdosdjgpp ) | |
1926 | USE_UNIX=0 | |
1927 | USE_DOS=1 | |
1928 | cat >>confdefs.h <<\_ACEOF | |
1929 | #define __DOS__ 1 | |
1930 | _ACEOF | |
1931 | ||
1932 | PROGRAM_EXT=".exe" | |
1933 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1934 | LIBS="$LIBS -lstdc++" | |
1935 | ;; | |
1936 | ||
1937 | *-pc-os2_emx | *-pc-os2-emx ) | |
1938 | cat >>confdefs.h <<\_ACEOF | |
1939 | #define __EMX__ 1 | |
1940 | _ACEOF | |
1941 | ||
1942 | USE_OS2=1 | |
1943 | cat >>confdefs.h <<\_ACEOF | |
1944 | #define __OS2__ 1 | |
1945 | _ACEOF | |
1946 | ||
1947 | PROGRAM_EXT=".exe" | |
1948 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1949 | CXX=gcc | |
1950 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1951 | ac_executable_extensions=".exe" | |
1952 | export ac_executable_extensions | |
1953 | ac_save_IFS="$IFS" | |
1954 | IFS='\\' | |
1955 | ac_TEMP_PATH= | |
1956 | for ac_dir in $PATH; do | |
1957 | IFS=$ac_save_IFS | |
1958 | if test -z "$ac_TEMP_PATH"; then | |
1959 | ac_TEMP_PATH="$ac_dir" | |
1960 | else | |
1961 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1962 | fi | |
1963 | done | |
1964 | export PATH="$ac_TEMP_PATH" | |
1965 | unset ac_TEMP_PATH | |
1966 | ;; | |
1967 | ||
1968 | powerpc-*-darwin* ) | |
1969 | USE_BSD=1 | |
1970 | USE_DARWIN=1 | |
1971 | SO_SUFFIX=dylib | |
1972 | cat >>confdefs.h <<\_ACEOF | |
1973 | #define __BSD__ 1 | |
1974 | _ACEOF | |
1975 | ||
1976 | cat >>confdefs.h <<\_ACEOF | |
1977 | #define __DARWIN__ 1 | |
1978 | _ACEOF | |
1979 | ||
1980 | cat >>confdefs.h <<\_ACEOF | |
1981 | #define __POWERPC__ 1 | |
1982 | _ACEOF | |
1983 | ||
1984 | cat >>confdefs.h <<\_ACEOF | |
1985 | #define TARGET_CARBON 1 | |
1986 | _ACEOF | |
1987 | ||
1988 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1989 | ;; | |
1990 | ||
1991 | *-*-beos* ) | |
1992 | USE_BEOS=1 | |
1993 | cat >>confdefs.h <<\_ACEOF | |
1994 | #define __BEOS__ 1 | |
1995 | _ACEOF | |
1996 | ||
1997 | ;; | |
1998 | ||
1999 | *) | |
2000 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2001 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2002 | { (exit 1); exit 1; }; } | |
2003 | esac | |
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | wx_arg_cache_file="configarg.cache" | |
2009 | echo "loading argument cache $wx_arg_cache_file" | |
2010 | rm -f ${wx_arg_cache_file}.tmp | |
2011 | touch ${wx_arg_cache_file}.tmp | |
2012 | touch ${wx_arg_cache_file} | |
2013 | ||
2014 | ||
2015 | DEBUG_CONFIGURE=0 | |
2016 | if test $DEBUG_CONFIGURE = 1; then | |
2017 | DEFAULT_wxUSE_UNIVERSAL=no | |
2018 | DEFAULT_wxUSE_STL=no | |
2019 | ||
2020 | DEFAULT_wxUSE_NANOX=no | |
2021 | ||
2022 | DEFAULT_wxUSE_THREADS=yes | |
2023 | ||
2024 | DEFAULT_wxUSE_SHARED=yes | |
2025 | DEFAULT_wxUSE_OPTIMISE=no | |
2026 | DEFAULT_wxUSE_PROFILE=no | |
2027 | DEFAULT_wxUSE_NO_DEPS=no | |
2028 | DEFAULT_wxUSE_NO_RTTI=no | |
2029 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2030 | DEFAULT_wxUSE_PERMISSIVE=no | |
2031 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2032 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2033 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2034 | DEFAULT_wxUSE_MEM_TRACING=no | |
2035 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2036 | DEFAULT_wxUSE_DMALLOC=no | |
2037 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2038 | ||
2039 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2040 | DEFAULT_wxUSE_LOG=yes | |
2041 | DEFAULT_wxUSE_LOGWINDOW=no | |
2042 | DEFAULT_wxUSE_LOGGUI=no | |
2043 | DEFAULT_wxUSE_LOGDIALOG=no | |
2044 | ||
2045 | DEFAULT_wxUSE_GUI=yes | |
2046 | DEFAULT_wxUSE_CONTROLS=no | |
2047 | ||
2048 | DEFAULT_wxUSE_REGEX=no | |
2049 | DEFAULT_wxUSE_XML=no | |
2050 | DEFAULT_wxUSE_EXPAT=no | |
2051 | DEFAULT_wxUSE_ZLIB=no | |
2052 | DEFAULT_wxUSE_LIBPNG=no | |
2053 | DEFAULT_wxUSE_LIBJPEG=no | |
2054 | DEFAULT_wxUSE_LIBTIFF=no | |
2055 | DEFAULT_wxUSE_LIBXPM=no | |
2056 | DEFAULT_wxUSE_LIBMSPACK=no | |
2057 | DEFAULT_wxUSE_LIBSDL=no | |
2058 | DEFAULT_wxUSE_ODBC=no | |
2059 | DEFAULT_wxUSE_OPENGL=no | |
2060 | ||
2061 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2062 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2063 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2064 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2065 | DEFAULT_wxUSE_DATETIME=no | |
2066 | DEFAULT_wxUSE_TIMER=no | |
2067 | DEFAULT_wxUSE_STOPWATCH=no | |
2068 | DEFAULT_wxUSE_FILE=no | |
2069 | DEFAULT_wxUSE_FFILE=no | |
2070 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2071 | DEFAULT_wxUSE_TEXTFILE=no | |
2072 | DEFAULT_wxUSE_SOUND=no | |
2073 | DEFAULT_wxUSE_INTL=no | |
2074 | DEFAULT_wxUSE_CONFIG=no | |
2075 | DEFAULT_wxUSE_FONTMAP=no | |
2076 | DEFAULT_wxUSE_STREAMS=no | |
2077 | DEFAULT_wxUSE_SOCKETS=no | |
2078 | DEFAULT_wxUSE_OLE=no | |
2079 | DEFAULT_wxUSE_DATAOBJ=no | |
2080 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2081 | DEFAULT_wxUSE_JOYSTICK=no | |
2082 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2083 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2084 | DEFAULT_wxUSE_LONGLONG=no | |
2085 | DEFAULT_wxUSE_GEOMETRY=no | |
2086 | ||
2087 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2088 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2089 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2090 | ||
2091 | DEFAULT_wxUSE_CLIPBOARD=no | |
2092 | DEFAULT_wxUSE_TOOLTIPS=no | |
2093 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2094 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2095 | DEFAULT_wxUSE_SPLINES=no | |
2096 | ||
8a7b1113 | 2097 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2098 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2099 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2100 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2101 | ||
2102 | DEFAULT_wxUSE_RESOURCES=no | |
2103 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2104 | DEFAULT_wxUSE_IPC=no | |
2105 | DEFAULT_wxUSE_HELP=no | |
2106 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2107 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2108 | DEFAULT_wxUSE_TREELAYOUT=no | |
2109 | DEFAULT_wxUSE_METAFILE=no | |
2110 | DEFAULT_wxUSE_MIMETYPE=no | |
2111 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2112 | DEFAULT_wxUSE_PROTOCOL=no | |
2113 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2114 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2115 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2116 | DEFAULT_wxUSE_URL=no | |
2117 | ||
2118 | DEFAULT_wxUSE_COMMONDLGS=no | |
2119 | DEFAULT_wxUSE_CHOICEDLG=no | |
2120 | DEFAULT_wxUSE_COLOURDLG=no | |
2121 | DEFAULT_wxUSE_DIRDLG=no | |
2122 | DEFAULT_wxUSE_FILEDLG=no | |
2123 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2124 | DEFAULT_wxUSE_FONTDLG=no | |
2125 | DEFAULT_wxUSE_MSGDLG=no | |
2126 | DEFAULT_wxUSE_NUMBERDLG=no | |
2127 | DEFAULT_wxUSE_TEXTDLG=no | |
2128 | DEFAULT_wxUSE_SPLASH=no | |
2129 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2130 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2131 | DEFAULT_wxUSE_WIZARDDLG=no | |
2132 | ||
2133 | DEFAULT_wxUSE_MENUS=no | |
2134 | DEFAULT_wxUSE_MINIFRAME=no | |
2135 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2136 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2137 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2138 | DEFAULT_wxUSE_FILESYSTEM=no |
2139 | DEFAULT_wxUSE_FS_INET=no | |
2140 | DEFAULT_wxUSE_FS_ZIP=no | |
2141 | DEFAULT_wxUSE_BUSYINFO=no | |
2142 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2143 | DEFAULT_wxUSE_VALIDATORS=no |
2144 | ||
2145 | DEFAULT_wxUSE_ACCEL=no | |
2146 | DEFAULT_wxUSE_BUTTON=no | |
2147 | DEFAULT_wxUSE_BMPBUTTON=no | |
2148 | DEFAULT_wxUSE_CALCTRL=no | |
2149 | DEFAULT_wxUSE_CARET=no | |
2150 | DEFAULT_wxUSE_CHECKBOX=no | |
2151 | DEFAULT_wxUSE_CHECKLST=no | |
2152 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2153 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
2154 | DEFAULT_wxUSE_COMBOBOX=no |
2155 | DEFAULT_wxUSE_DISPLAY=no | |
2156 | DEFAULT_wxUSE_GAUGE=no | |
2157 | DEFAULT_wxUSE_GRID=no | |
2158 | DEFAULT_wxUSE_IMAGLIST=no | |
2159 | DEFAULT_wxUSE_LISTBOOK=no | |
2160 | DEFAULT_wxUSE_LISTBOX=no | |
2161 | DEFAULT_wxUSE_LISTCTRL=no | |
2162 | DEFAULT_wxUSE_NOTEBOOK=no | |
2163 | DEFAULT_wxUSE_RADIOBOX=no | |
2164 | DEFAULT_wxUSE_RADIOBTN=no | |
2165 | DEFAULT_wxUSE_SASH=no | |
2166 | DEFAULT_wxUSE_SCROLLBAR=no | |
2167 | DEFAULT_wxUSE_SLIDER=no | |
2168 | DEFAULT_wxUSE_SPINBTN=no | |
2169 | DEFAULT_wxUSE_SPINCTRL=no | |
2170 | DEFAULT_wxUSE_SPLITTER=no | |
2171 | DEFAULT_wxUSE_STATBMP=no | |
2172 | DEFAULT_wxUSE_STATBOX=no | |
2173 | DEFAULT_wxUSE_STATLINE=no | |
2174 | DEFAULT_wxUSE_STATTEXT=no | |
2175 | DEFAULT_wxUSE_STATUSBAR=yes | |
2176 | DEFAULT_wxUSE_TABDIALOG=no | |
2177 | DEFAULT_wxUSE_TEXTCTRL=no | |
2178 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2179 | DEFAULT_wxUSE_TOOLBAR=no | |
2180 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2181 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2182 | DEFAULT_wxUSE_TREECTRL=no | |
2183 | DEFAULT_wxUSE_POPUPWIN=no | |
2184 | DEFAULT_wxUSE_TIPWINDOW=no | |
2185 | ||
2186 | DEFAULT_wxUSE_UNICODE=no | |
2187 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2188 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2189 | ||
2190 | DEFAULT_wxUSE_PALETTE=no | |
2191 | DEFAULT_wxUSE_IMAGE=no | |
2192 | DEFAULT_wxUSE_GIF=no | |
2193 | DEFAULT_wxUSE_PCX=no | |
2194 | DEFAULT_wxUSE_PNM=no | |
2195 | DEFAULT_wxUSE_IFF=no | |
2196 | DEFAULT_wxUSE_XPM=no | |
2197 | DEFAULT_wxUSE_ICO_CUR=no | |
2198 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2199 | ||
2200 | DEFAULT_wxUSE_MONOLITHIC=no | |
2201 | DEFAULT_wxUSE_PLUGINS=no | |
2202 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2203 | else | |
2204 | DEFAULT_wxUSE_UNIVERSAL=no | |
2205 | DEFAULT_wxUSE_STL=no | |
2206 | ||
2207 | DEFAULT_wxUSE_NANOX=no | |
2208 | ||
2209 | DEFAULT_wxUSE_THREADS=yes | |
2210 | ||
2211 | DEFAULT_wxUSE_SHARED=yes | |
2212 | DEFAULT_wxUSE_OPTIMISE=yes | |
2213 | DEFAULT_wxUSE_PROFILE=no | |
2214 | DEFAULT_wxUSE_NO_DEPS=no | |
2215 | DEFAULT_wxUSE_NO_RTTI=no | |
2216 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2217 | DEFAULT_wxUSE_PERMISSIVE=no | |
2218 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2219 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2220 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2221 | DEFAULT_wxUSE_MEM_TRACING=no | |
2222 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2223 | DEFAULT_wxUSE_DMALLOC=no | |
2224 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2225 | ||
2226 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2227 | DEFAULT_wxUSE_LOG=yes | |
2228 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2229 | DEFAULT_wxUSE_LOGGUI=yes | |
2230 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2231 | ||
2232 | DEFAULT_wxUSE_GUI=yes | |
2233 | ||
2234 | DEFAULT_wxUSE_REGEX=yes | |
2235 | DEFAULT_wxUSE_XML=yes | |
2236 | DEFAULT_wxUSE_EXPAT=yes | |
2237 | DEFAULT_wxUSE_ZLIB=yes | |
2238 | DEFAULT_wxUSE_LIBPNG=yes | |
2239 | DEFAULT_wxUSE_LIBJPEG=yes | |
2240 | DEFAULT_wxUSE_LIBTIFF=yes | |
2241 | DEFAULT_wxUSE_LIBXPM=yes | |
2242 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2243 | DEFAULT_wxUSE_LIBSDL=no | |
2244 | DEFAULT_wxUSE_ODBC=no | |
2245 | DEFAULT_wxUSE_OPENGL=no | |
2246 | ||
2247 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2248 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2249 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2250 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2251 | DEFAULT_wxUSE_DATETIME=yes | |
2252 | DEFAULT_wxUSE_TIMER=yes | |
2253 | DEFAULT_wxUSE_STOPWATCH=yes | |
2254 | DEFAULT_wxUSE_FILE=yes | |
2255 | DEFAULT_wxUSE_FFILE=yes | |
2256 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2257 | DEFAULT_wxUSE_TEXTFILE=yes | |
2258 | DEFAULT_wxUSE_SOUND=yes | |
2259 | DEFAULT_wxUSE_INTL=yes | |
2260 | DEFAULT_wxUSE_CONFIG=yes | |
2261 | DEFAULT_wxUSE_FONTMAP=yes | |
2262 | DEFAULT_wxUSE_STREAMS=yes | |
2263 | DEFAULT_wxUSE_SOCKETS=yes | |
2264 | DEFAULT_wxUSE_OLE=yes | |
2265 | DEFAULT_wxUSE_DATAOBJ=yes | |
2266 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2267 | DEFAULT_wxUSE_JOYSTICK=yes | |
2268 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2269 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2270 | DEFAULT_wxUSE_LONGLONG=yes | |
2271 | DEFAULT_wxUSE_GEOMETRY=yes | |
2272 | ||
2273 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2274 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2275 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2276 | ||
2277 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2278 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2279 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2280 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2281 | DEFAULT_wxUSE_SPLINES=yes | |
2282 | ||
8a7b1113 | 2283 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2284 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2285 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2286 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2287 | ||
2288 | DEFAULT_wxUSE_RESOURCES=no | |
2289 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2290 | DEFAULT_wxUSE_IPC=yes | |
2291 | DEFAULT_wxUSE_HELP=yes | |
2292 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2293 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2294 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2295 | DEFAULT_wxUSE_METAFILE=yes | |
2296 | DEFAULT_wxUSE_MIMETYPE=yes | |
2297 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2298 | DEFAULT_wxUSE_PROTOCOL=yes | |
2299 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2300 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2301 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2302 | DEFAULT_wxUSE_URL=yes | |
2303 | ||
2304 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2305 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2306 | DEFAULT_wxUSE_COLOURDLG=yes | |
2307 | DEFAULT_wxUSE_DIRDLG=yes | |
2308 | DEFAULT_wxUSE_FILEDLG=yes | |
2309 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2310 | DEFAULT_wxUSE_FONTDLG=yes | |
2311 | DEFAULT_wxUSE_MSGDLG=yes | |
2312 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2313 | DEFAULT_wxUSE_TEXTDLG=yes | |
2314 | DEFAULT_wxUSE_SPLASH=yes | |
2315 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2316 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2317 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2318 | ||
2319 | DEFAULT_wxUSE_MENUS=yes | |
2320 | DEFAULT_wxUSE_MINIFRAME=yes | |
2321 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2322 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2323 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2324 | DEFAULT_wxUSE_FILESYSTEM=yes |
2325 | DEFAULT_wxUSE_FS_INET=yes | |
2326 | DEFAULT_wxUSE_FS_ZIP=yes | |
2327 | DEFAULT_wxUSE_BUSYINFO=yes | |
2328 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2329 | DEFAULT_wxUSE_VALIDATORS=yes |
2330 | ||
2331 | DEFAULT_wxUSE_ACCEL=yes | |
2332 | DEFAULT_wxUSE_BUTTON=yes | |
2333 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2334 | DEFAULT_wxUSE_CALCTRL=yes | |
2335 | DEFAULT_wxUSE_CARET=yes | |
2336 | DEFAULT_wxUSE_CHECKBOX=yes | |
2337 | DEFAULT_wxUSE_CHECKLST=yes | |
2338 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2339 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
2340 | DEFAULT_wxUSE_COMBOBOX=yes |
2341 | DEFAULT_wxUSE_DISPLAY=yes | |
2342 | DEFAULT_wxUSE_GAUGE=yes | |
2343 | DEFAULT_wxUSE_GRID=yes | |
2344 | DEFAULT_wxUSE_IMAGLIST=yes | |
2345 | DEFAULT_wxUSE_LISTBOOK=yes | |
2346 | DEFAULT_wxUSE_LISTBOX=yes | |
2347 | DEFAULT_wxUSE_LISTCTRL=yes | |
2348 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2349 | DEFAULT_wxUSE_RADIOBOX=yes | |
2350 | DEFAULT_wxUSE_RADIOBTN=yes | |
2351 | DEFAULT_wxUSE_SASH=yes | |
2352 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2353 | DEFAULT_wxUSE_SLIDER=yes | |
2354 | DEFAULT_wxUSE_SPINBTN=yes | |
2355 | DEFAULT_wxUSE_SPINCTRL=yes | |
2356 | DEFAULT_wxUSE_SPLITTER=yes | |
2357 | DEFAULT_wxUSE_STATBMP=yes | |
2358 | DEFAULT_wxUSE_STATBOX=yes | |
2359 | DEFAULT_wxUSE_STATLINE=yes | |
2360 | DEFAULT_wxUSE_STATTEXT=yes | |
2361 | DEFAULT_wxUSE_STATUSBAR=yes | |
2362 | DEFAULT_wxUSE_TABDIALOG=no | |
2363 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2364 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2365 | DEFAULT_wxUSE_TOOLBAR=yes | |
2366 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2367 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2368 | DEFAULT_wxUSE_TREECTRL=yes | |
2369 | DEFAULT_wxUSE_POPUPWIN=yes | |
2370 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2371 | ||
2372 | DEFAULT_wxUSE_UNICODE=no | |
2373 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2374 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2375 | ||
2376 | DEFAULT_wxUSE_PALETTE=yes | |
2377 | DEFAULT_wxUSE_IMAGE=yes | |
2378 | DEFAULT_wxUSE_GIF=yes | |
2379 | DEFAULT_wxUSE_PCX=yes | |
2380 | DEFAULT_wxUSE_IFF=no | |
2381 | DEFAULT_wxUSE_PNM=yes | |
2382 | DEFAULT_wxUSE_XPM=yes | |
2383 | DEFAULT_wxUSE_ICO_CUR=yes | |
2384 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2385 | ||
2386 | DEFAULT_wxUSE_MONOLITHIC=no | |
2387 | DEFAULT_wxUSE_PLUGINS=no | |
2388 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2389 | |
2390 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2391 | fi |
2392 | ||
2393 | ||
2394 | ||
2395 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2396 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2397 | if test "x$LINE" != "x" ; then | |
2398 | has_toolkit_in_cache=1 | |
2399 | eval "DEFAULT_$LINE" | |
2400 | eval "CACHE_$toolkit=1" | |
2401 | fi | |
2402 | done | |
2403 | ||
2404 | ||
2405 | ||
2406 | enablestring= | |
2407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2408 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2409 | no_cache=0 | |
2410 | # Check whether --enable-gui or --disable-gui was given. | |
2411 | if test "${enable_gui+set}" = set; then | |
2412 | enableval="$enable_gui" | |
2413 | ||
2414 | if test "$enableval" = yes; then | |
2415 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2416 | else | |
2417 | ac_cv_use_gui='wxUSE_GUI=no' | |
2418 | fi | |
2419 | ||
2420 | else | |
2421 | ||
2422 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2423 | if test "x$LINE" != x ; then | |
2424 | eval "DEFAULT_$LINE" | |
2425 | else | |
2426 | no_cache=1 | |
2427 | fi | |
2428 | ||
2429 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2430 | ||
2431 | fi; | |
2432 | ||
2433 | eval "$ac_cv_use_gui" | |
2434 | if test "$no_cache" != 1; then | |
2435 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2436 | fi | |
2437 | ||
2438 | if test "$wxUSE_GUI" = yes; then | |
2439 | echo "$as_me:$LINENO: result: yes" >&5 | |
2440 | echo "${ECHO_T}yes" >&6 | |
2441 | else | |
2442 | echo "$as_me:$LINENO: result: no" >&5 | |
2443 | echo "${ECHO_T}no" >&6 | |
2444 | fi | |
2445 | ||
2446 | ||
2447 | enablestring= | |
2448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2449 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2450 | no_cache=0 | |
2451 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2452 | if test "${enable_monolithic+set}" = set; then | |
2453 | enableval="$enable_monolithic" | |
2454 | ||
2455 | if test "$enableval" = yes; then | |
2456 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2457 | else | |
2458 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2459 | fi | |
2460 | ||
2461 | else | |
2462 | ||
2463 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2464 | if test "x$LINE" != x ; then | |
2465 | eval "DEFAULT_$LINE" | |
2466 | else | |
2467 | no_cache=1 | |
2468 | fi | |
2469 | ||
2470 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2471 | ||
2472 | fi; | |
2473 | ||
2474 | eval "$ac_cv_use_monolithic" | |
2475 | if test "$no_cache" != 1; then | |
2476 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2477 | fi | |
2478 | ||
2479 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2480 | echo "$as_me:$LINENO: result: yes" >&5 | |
2481 | echo "${ECHO_T}yes" >&6 | |
2482 | else | |
2483 | echo "$as_me:$LINENO: result: no" >&5 | |
2484 | echo "${ECHO_T}no" >&6 | |
2485 | fi | |
2486 | ||
2487 | ||
2488 | enablestring= | |
2489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2490 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2491 | no_cache=0 | |
2492 | # Check whether --enable-plugins or --disable-plugins was given. | |
2493 | if test "${enable_plugins+set}" = set; then | |
2494 | enableval="$enable_plugins" | |
2495 | ||
2496 | if test "$enableval" = yes; then | |
2497 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2498 | else | |
2499 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2500 | fi | |
2501 | ||
2502 | else | |
2503 | ||
2504 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2505 | if test "x$LINE" != x ; then | |
2506 | eval "DEFAULT_$LINE" | |
2507 | else | |
2508 | no_cache=1 | |
2509 | fi | |
2510 | ||
2511 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2512 | ||
2513 | fi; | |
2514 | ||
2515 | eval "$ac_cv_use_plugins" | |
2516 | if test "$no_cache" != 1; then | |
2517 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2518 | fi | |
2519 | ||
2520 | if test "$wxUSE_PLUGINS" = yes; then | |
2521 | echo "$as_me:$LINENO: result: yes" >&5 | |
2522 | echo "${ECHO_T}yes" >&6 | |
2523 | else | |
2524 | echo "$as_me:$LINENO: result: no" >&5 | |
2525 | echo "${ECHO_T}no" >&6 | |
2526 | fi | |
2527 | ||
2528 | ||
2529 | if test "$wxUSE_GUI" = "yes"; then | |
2530 | ||
2531 | ||
2532 | enablestring= | |
2533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2534 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2535 | no_cache=0 | |
2536 | # Check whether --enable-universal or --disable-universal was given. | |
2537 | if test "${enable_universal+set}" = set; then | |
2538 | enableval="$enable_universal" | |
2539 | ||
2540 | if test "$enableval" = yes; then | |
2541 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2542 | else | |
2543 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2544 | fi | |
2545 | ||
2546 | else | |
2547 | ||
2548 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2549 | if test "x$LINE" != x ; then | |
2550 | eval "DEFAULT_$LINE" | |
2551 | else | |
2552 | no_cache=1 | |
2553 | fi | |
2554 | ||
2555 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2556 | ||
2557 | fi; | |
2558 | ||
2559 | eval "$ac_cv_use_universal" | |
2560 | if test "$no_cache" != 1; then | |
2561 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2562 | fi | |
2563 | ||
2564 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2565 | echo "$as_me:$LINENO: result: yes" >&5 | |
2566 | echo "${ECHO_T}yes" >&6 | |
2567 | else | |
2568 | echo "$as_me:$LINENO: result: no" >&5 | |
2569 | echo "${ECHO_T}no" >&6 | |
2570 | fi | |
2571 | ||
2572 | ||
2573 | # Check whether --with-gtk or --without-gtk was given. | |
2574 | if test "${with_gtk+set}" = set; then | |
2575 | withval="$with_gtk" | |
2576 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2577 | fi; | |
2578 | ||
2579 | # Check whether --with-motif or --without-motif was given. | |
2580 | if test "${with_motif+set}" = set; then | |
2581 | withval="$with_motif" | |
2582 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2583 | fi; | |
2584 | ||
2585 | # Check whether --with-mac or --without-mac was given. | |
2586 | if test "${with_mac+set}" = set; then | |
2587 | withval="$with_mac" | |
2588 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
2589 | fi; | |
2590 | ||
2591 | # Check whether --with-cocoa or --without-cocoa was given. | |
2592 | if test "${with_cocoa+set}" = set; then | |
2593 | withval="$with_cocoa" | |
2594 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
2595 | fi; | |
2596 | ||
2597 | # Check whether --with-wine or --without-wine was given. | |
2598 | if test "${with_wine+set}" = set; then | |
2599 | withval="$with_wine" | |
2600 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2601 | fi; | |
2602 | ||
2603 | # Check whether --with-msw or --without-msw was given. | |
2604 | if test "${with_msw+set}" = set; then | |
2605 | withval="$with_msw" | |
2606 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2607 | fi; | |
2608 | ||
2609 | # Check whether --with-pm or --without-pm was given. | |
2610 | if test "${with_pm+set}" = set; then | |
2611 | withval="$with_pm" | |
2612 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2613 | fi; | |
2614 | ||
2615 | # Check whether --with-mgl or --without-mgl was given. | |
2616 | if test "${with_mgl+set}" = set; then | |
2617 | withval="$with_mgl" | |
2618 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2619 | fi; | |
2620 | ||
2621 | # Check whether --with-microwin or --without-microwin was given. | |
2622 | if test "${with_microwin+set}" = set; then | |
2623 | withval="$with_microwin" | |
2624 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2625 | fi; | |
2626 | ||
2627 | # Check whether --with-x11 or --without-x11 was given. | |
2628 | if test "${with_x11+set}" = set; then | |
2629 | withval="$with_x11" | |
2630 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2631 | fi; | |
2632 | ||
2633 | enablestring= | |
2634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2635 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2636 | no_cache=0 | |
2637 | # Check whether --enable-nanox or --disable-nanox was given. | |
2638 | if test "${enable_nanox+set}" = set; then | |
2639 | enableval="$enable_nanox" | |
2640 | ||
2641 | if test "$enableval" = yes; then | |
2642 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2643 | else | |
2644 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2645 | fi | |
2646 | ||
2647 | else | |
2648 | ||
2649 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2650 | if test "x$LINE" != x ; then | |
2651 | eval "DEFAULT_$LINE" | |
2652 | else | |
2653 | no_cache=1 | |
2654 | fi | |
2655 | ||
2656 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2657 | ||
2658 | fi; | |
2659 | ||
2660 | eval "$ac_cv_use_nanox" | |
2661 | if test "$no_cache" != 1; then | |
2662 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2663 | fi | |
2664 | ||
2665 | if test "$wxUSE_NANOX" = yes; then | |
2666 | echo "$as_me:$LINENO: result: yes" >&5 | |
2667 | echo "${ECHO_T}yes" >&6 | |
2668 | else | |
2669 | echo "$as_me:$LINENO: result: no" >&5 | |
2670 | echo "${ECHO_T}no" >&6 | |
2671 | fi | |
2672 | ||
2673 | ||
2674 | ||
2675 | enablestring= | |
2676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2677 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2678 | no_cache=0 | |
2679 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2680 | if test "${enable_gtk2+set}" = set; then | |
2681 | enableval="$enable_gtk2" | |
2682 | ||
2683 | if test "$enableval" = yes; then | |
2684 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2685 | else | |
2686 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2687 | fi | |
2688 | ||
2689 | else | |
2690 | ||
2691 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2692 | if test "x$LINE" != x ; then | |
2693 | eval "DEFAULT_$LINE" | |
2694 | else | |
2695 | no_cache=1 | |
2696 | fi | |
2697 | ||
2698 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2699 | ||
2700 | fi; | |
2701 | ||
2702 | eval "$ac_cv_use_gtk2" | |
2703 | if test "$no_cache" != 1; then | |
2704 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2705 | fi | |
2706 | ||
2707 | if test "$wxUSE_GTK2" = yes; then | |
2708 | echo "$as_me:$LINENO: result: yes" >&5 | |
2709 | echo "${ECHO_T}yes" >&6 | |
2710 | else | |
2711 | echo "$as_me:$LINENO: result: no" >&5 | |
2712 | echo "${ECHO_T}no" >&6 | |
2713 | fi | |
2714 | ||
2715 | ||
2716 | enablestring= | |
2717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2718 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2719 | no_cache=0 | |
2720 | # Check whether --enable-gpe or --disable-gpe was given. | |
2721 | if test "${enable_gpe+set}" = set; then | |
2722 | enableval="$enable_gpe" | |
2723 | ||
2724 | if test "$enableval" = yes; then | |
2725 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2726 | else | |
2727 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2728 | fi | |
2729 | ||
2730 | else | |
2731 | ||
2732 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2733 | if test "x$LINE" != x ; then | |
2734 | eval "DEFAULT_$LINE" | |
2735 | else | |
2736 | no_cache=1 | |
2737 | fi | |
2738 | ||
2739 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2740 | ||
2741 | fi; | |
2742 | ||
2743 | eval "$ac_cv_use_gpe" | |
2744 | if test "$no_cache" != 1; then | |
2745 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2746 | fi | |
2747 | ||
2748 | if test "$wxUSE_GPE" = yes; then | |
2749 | echo "$as_me:$LINENO: result: yes" >&5 | |
2750 | echo "${ECHO_T}yes" >&6 | |
2751 | else | |
2752 | echo "$as_me:$LINENO: result: no" >&5 | |
2753 | echo "${ECHO_T}no" >&6 | |
2754 | fi | |
2755 | ||
2756 | ||
2757 | ||
2758 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2759 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2760 | no_cache=0 | |
2761 | ||
2762 | # Check whether --with-libpng or --without-libpng was given. | |
2763 | if test "${with_libpng+set}" = set; then | |
2764 | withval="$with_libpng" | |
2765 | ||
2766 | if test "$withval" = yes; then | |
2767 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2768 | elif test "$withval" = no; then | |
2769 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2770 | elif test "$withval" = sys; then | |
2771 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2772 | elif test "$withval" = builtin; then | |
2773 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2774 | else | |
2775 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2776 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2777 | { (exit 1); exit 1; }; } | |
2778 | fi | |
2779 | ||
2780 | else | |
2781 | ||
2782 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2783 | if test "x$LINE" != x ; then | |
2784 | eval "DEFAULT_$LINE" | |
2785 | else | |
2786 | no_cache=1 | |
2787 | fi | |
2788 | ||
2789 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2790 | ||
2791 | fi; | |
2792 | ||
2793 | eval "$ac_cv_use_libpng" | |
2794 | if test "$no_cache" != 1; then | |
2795 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2796 | fi | |
2797 | ||
2798 | if test "$wxUSE_LIBPNG" = yes; then | |
2799 | echo "$as_me:$LINENO: result: yes" >&5 | |
2800 | echo "${ECHO_T}yes" >&6 | |
2801 | elif test "$wxUSE_LIBPNG" = no; then | |
2802 | echo "$as_me:$LINENO: result: no" >&5 | |
2803 | echo "${ECHO_T}no" >&6 | |
2804 | elif test "$wxUSE_LIBPNG" = sys; then | |
2805 | echo "$as_me:$LINENO: result: system version" >&5 | |
2806 | echo "${ECHO_T}system version" >&6 | |
2807 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2808 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2809 | echo "${ECHO_T}builtin version" >&6 | |
2810 | else | |
2811 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2812 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2813 | { (exit 1); exit 1; }; } | |
2814 | fi | |
2815 | ||
2816 | ||
2817 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2818 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2819 | no_cache=0 | |
2820 | ||
2821 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2822 | if test "${with_libjpeg+set}" = set; then | |
2823 | withval="$with_libjpeg" | |
2824 | ||
2825 | if test "$withval" = yes; then | |
2826 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2827 | elif test "$withval" = no; then | |
2828 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2829 | elif test "$withval" = sys; then | |
2830 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2831 | elif test "$withval" = builtin; then | |
2832 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2833 | else | |
2834 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2835 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2836 | { (exit 1); exit 1; }; } | |
2837 | fi | |
2838 | ||
2839 | else | |
2840 | ||
2841 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2842 | if test "x$LINE" != x ; then | |
2843 | eval "DEFAULT_$LINE" | |
2844 | else | |
2845 | no_cache=1 | |
2846 | fi | |
2847 | ||
2848 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2849 | ||
2850 | fi; | |
2851 | ||
2852 | eval "$ac_cv_use_libjpeg" | |
2853 | if test "$no_cache" != 1; then | |
2854 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2855 | fi | |
2856 | ||
2857 | if test "$wxUSE_LIBJPEG" = yes; then | |
2858 | echo "$as_me:$LINENO: result: yes" >&5 | |
2859 | echo "${ECHO_T}yes" >&6 | |
2860 | elif test "$wxUSE_LIBJPEG" = no; then | |
2861 | echo "$as_me:$LINENO: result: no" >&5 | |
2862 | echo "${ECHO_T}no" >&6 | |
2863 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2864 | echo "$as_me:$LINENO: result: system version" >&5 | |
2865 | echo "${ECHO_T}system version" >&6 | |
2866 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2867 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2868 | echo "${ECHO_T}builtin version" >&6 | |
2869 | else | |
2870 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2871 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2872 | { (exit 1); exit 1; }; } | |
2873 | fi | |
2874 | ||
2875 | ||
2876 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2877 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2878 | no_cache=0 | |
2879 | ||
2880 | # Check whether --with-libtiff or --without-libtiff was given. | |
2881 | if test "${with_libtiff+set}" = set; then | |
2882 | withval="$with_libtiff" | |
2883 | ||
2884 | if test "$withval" = yes; then | |
2885 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2886 | elif test "$withval" = no; then | |
2887 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2888 | elif test "$withval" = sys; then | |
2889 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2890 | elif test "$withval" = builtin; then | |
2891 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2892 | else | |
2893 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2894 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2895 | { (exit 1); exit 1; }; } | |
2896 | fi | |
2897 | ||
2898 | else | |
2899 | ||
2900 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2901 | if test "x$LINE" != x ; then | |
2902 | eval "DEFAULT_$LINE" | |
2903 | else | |
2904 | no_cache=1 | |
2905 | fi | |
2906 | ||
2907 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2908 | ||
2909 | fi; | |
2910 | ||
2911 | eval "$ac_cv_use_libtiff" | |
2912 | if test "$no_cache" != 1; then | |
2913 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2914 | fi | |
2915 | ||
2916 | if test "$wxUSE_LIBTIFF" = yes; then | |
2917 | echo "$as_me:$LINENO: result: yes" >&5 | |
2918 | echo "${ECHO_T}yes" >&6 | |
2919 | elif test "$wxUSE_LIBTIFF" = no; then | |
2920 | echo "$as_me:$LINENO: result: no" >&5 | |
2921 | echo "${ECHO_T}no" >&6 | |
2922 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2923 | echo "$as_me:$LINENO: result: system version" >&5 | |
2924 | echo "${ECHO_T}system version" >&6 | |
2925 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2926 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2927 | echo "${ECHO_T}builtin version" >&6 | |
2928 | else | |
2929 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2930 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2931 | { (exit 1); exit 1; }; } | |
2932 | fi | |
2933 | ||
2934 | ||
2935 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2936 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2937 | no_cache=0 | |
2938 | ||
2939 | # Check whether --with-libxpm or --without-libxpm was given. | |
2940 | if test "${with_libxpm+set}" = set; then | |
2941 | withval="$with_libxpm" | |
2942 | ||
2943 | if test "$withval" = yes; then | |
2944 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2945 | elif test "$withval" = no; then | |
2946 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2947 | elif test "$withval" = sys; then | |
2948 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2949 | elif test "$withval" = builtin; then | |
2950 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2951 | else | |
2952 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2953 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2954 | { (exit 1); exit 1; }; } | |
2955 | fi | |
2956 | ||
2957 | else | |
2958 | ||
2959 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2960 | if test "x$LINE" != x ; then | |
2961 | eval "DEFAULT_$LINE" | |
2962 | else | |
2963 | no_cache=1 | |
2964 | fi | |
2965 | ||
2966 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2967 | ||
2968 | fi; | |
2969 | ||
2970 | eval "$ac_cv_use_libxpm" | |
2971 | if test "$no_cache" != 1; then | |
2972 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2973 | fi | |
2974 | ||
2975 | if test "$wxUSE_LIBXPM" = yes; then | |
2976 | echo "$as_me:$LINENO: result: yes" >&5 | |
2977 | echo "${ECHO_T}yes" >&6 | |
2978 | elif test "$wxUSE_LIBXPM" = no; then | |
2979 | echo "$as_me:$LINENO: result: no" >&5 | |
2980 | echo "${ECHO_T}no" >&6 | |
2981 | elif test "$wxUSE_LIBXPM" = sys; then | |
2982 | echo "$as_me:$LINENO: result: system version" >&5 | |
2983 | echo "${ECHO_T}system version" >&6 | |
2984 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2985 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2986 | echo "${ECHO_T}builtin version" >&6 | |
2987 | else | |
2988 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2989 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2990 | { (exit 1); exit 1; }; } | |
2991 | fi | |
2992 | ||
2993 | ||
2994 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2995 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2996 | no_cache=0 | |
2997 | ||
2998 | # Check whether --with-libmspack or --without-libmspack was given. | |
2999 | if test "${with_libmspack+set}" = set; then | |
3000 | withval="$with_libmspack" | |
3001 | ||
3002 | if test "$withval" = yes; then | |
3003 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3004 | else | |
3005 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3006 | fi | |
3007 | ||
3008 | else | |
3009 | ||
3010 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3011 | if test "x$LINE" != x ; then | |
3012 | eval "DEFAULT_$LINE" | |
3013 | else | |
3014 | no_cache=1 | |
3015 | fi | |
3016 | ||
3017 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3018 | ||
3019 | fi; | |
3020 | ||
3021 | eval "$ac_cv_use_libmspack" | |
3022 | if test "$no_cache" != 1; then | |
3023 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3024 | fi | |
3025 | ||
3026 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3027 | echo "$as_me:$LINENO: result: yes" >&5 | |
3028 | echo "${ECHO_T}yes" >&6 | |
3029 | else | |
3030 | echo "$as_me:$LINENO: result: no" >&5 | |
3031 | echo "${ECHO_T}no" >&6 | |
3032 | fi | |
3033 | ||
3034 | ||
3035 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3036 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3037 | no_cache=0 | |
3038 | ||
3039 | # Check whether --with-sdl or --without-sdl was given. | |
3040 | if test "${with_sdl+set}" = set; then | |
3041 | withval="$with_sdl" | |
3042 | ||
3043 | if test "$withval" = yes; then | |
3044 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3045 | else | |
3046 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3047 | fi | |
3048 | ||
3049 | else | |
3050 | ||
3051 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3052 | if test "x$LINE" != x ; then | |
3053 | eval "DEFAULT_$LINE" | |
3054 | else | |
3055 | no_cache=1 | |
3056 | fi | |
3057 | ||
3058 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3059 | ||
3060 | fi; | |
3061 | ||
3062 | eval "$ac_cv_use_sdl" | |
3063 | if test "$no_cache" != 1; then | |
3064 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3065 | fi | |
3066 | ||
3067 | if test "$wxUSE_LIBSDL" = yes; then | |
3068 | echo "$as_me:$LINENO: result: yes" >&5 | |
3069 | echo "${ECHO_T}yes" >&6 | |
3070 | else | |
3071 | echo "$as_me:$LINENO: result: no" >&5 | |
3072 | echo "${ECHO_T}no" >&6 | |
3073 | fi | |
3074 | ||
3075 | ||
3076 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
3077 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3078 | no_cache=0 | |
3079 | ||
3080 | # Check whether --with-opengl or --without-opengl was given. | |
3081 | if test "${with_opengl+set}" = set; then | |
3082 | withval="$with_opengl" | |
3083 | ||
3084 | if test "$withval" = yes; then | |
3085 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3086 | else | |
3087 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3088 | fi | |
3089 | ||
3090 | else | |
3091 | ||
3092 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3093 | if test "x$LINE" != x ; then | |
3094 | eval "DEFAULT_$LINE" | |
3095 | else | |
3096 | no_cache=1 | |
3097 | fi | |
3098 | ||
3099 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3100 | ||
3101 | fi; | |
3102 | ||
3103 | eval "$ac_cv_use_opengl" | |
3104 | if test "$no_cache" != 1; then | |
3105 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3106 | fi | |
3107 | ||
3108 | if test "$wxUSE_OPENGL" = yes; then | |
3109 | echo "$as_me:$LINENO: result: yes" >&5 | |
3110 | echo "${ECHO_T}yes" >&6 | |
3111 | else | |
3112 | echo "$as_me:$LINENO: result: no" >&5 | |
3113 | echo "${ECHO_T}no" >&6 | |
3114 | fi | |
3115 | ||
3116 | ||
3117 | fi | |
3118 | ||
3119 | ||
3120 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3121 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3122 | no_cache=0 | |
3123 | ||
3124 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3125 | if test "${with_dmalloc+set}" = set; then | |
3126 | withval="$with_dmalloc" | |
3127 | ||
3128 | if test "$withval" = yes; then | |
3129 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3130 | else | |
3131 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3132 | fi | |
3133 | ||
3134 | else | |
3135 | ||
3136 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3137 | if test "x$LINE" != x ; then | |
3138 | eval "DEFAULT_$LINE" | |
3139 | else | |
3140 | no_cache=1 | |
3141 | fi | |
3142 | ||
3143 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3144 | ||
3145 | fi; | |
3146 | ||
3147 | eval "$ac_cv_use_dmalloc" | |
3148 | if test "$no_cache" != 1; then | |
3149 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3150 | fi | |
3151 | ||
3152 | if test "$wxUSE_DMALLOC" = yes; then | |
3153 | echo "$as_me:$LINENO: result: yes" >&5 | |
3154 | echo "${ECHO_T}yes" >&6 | |
3155 | else | |
3156 | echo "$as_me:$LINENO: result: no" >&5 | |
3157 | echo "${ECHO_T}no" >&6 | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3162 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3163 | no_cache=0 | |
3164 | ||
3165 | # Check whether --with-regex or --without-regex was given. | |
3166 | if test "${with_regex+set}" = set; then | |
3167 | withval="$with_regex" | |
3168 | ||
3169 | if test "$withval" = yes; then | |
3170 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3171 | elif test "$withval" = no; then | |
3172 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3173 | elif test "$withval" = sys; then | |
3174 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3175 | elif test "$withval" = builtin; then | |
3176 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3177 | else | |
3178 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3179 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3180 | { (exit 1); exit 1; }; } | |
3181 | fi | |
3182 | ||
3183 | else | |
3184 | ||
3185 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3186 | if test "x$LINE" != x ; then | |
3187 | eval "DEFAULT_$LINE" | |
3188 | else | |
3189 | no_cache=1 | |
3190 | fi | |
3191 | ||
3192 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3193 | ||
3194 | fi; | |
3195 | ||
3196 | eval "$ac_cv_use_regex" | |
3197 | if test "$no_cache" != 1; then | |
3198 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3199 | fi | |
3200 | ||
3201 | if test "$wxUSE_REGEX" = yes; then | |
3202 | echo "$as_me:$LINENO: result: yes" >&5 | |
3203 | echo "${ECHO_T}yes" >&6 | |
3204 | elif test "$wxUSE_REGEX" = no; then | |
3205 | echo "$as_me:$LINENO: result: no" >&5 | |
3206 | echo "${ECHO_T}no" >&6 | |
3207 | elif test "$wxUSE_REGEX" = sys; then | |
3208 | echo "$as_me:$LINENO: result: system version" >&5 | |
3209 | echo "${ECHO_T}system version" >&6 | |
3210 | elif test "$wxUSE_REGEX" = builtin; then | |
3211 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3212 | echo "${ECHO_T}builtin version" >&6 | |
3213 | else | |
3214 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3215 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3216 | { (exit 1); exit 1; }; } | |
3217 | fi | |
3218 | ||
3219 | ||
3220 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3221 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3222 | no_cache=0 | |
3223 | ||
3224 | # Check whether --with-zlib or --without-zlib was given. | |
3225 | if test "${with_zlib+set}" = set; then | |
3226 | withval="$with_zlib" | |
3227 | ||
3228 | if test "$withval" = yes; then | |
3229 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3230 | elif test "$withval" = no; then | |
3231 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3232 | elif test "$withval" = sys; then | |
3233 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3234 | elif test "$withval" = builtin; then | |
3235 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3236 | else | |
3237 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3238 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3239 | { (exit 1); exit 1; }; } | |
3240 | fi | |
3241 | ||
3242 | else | |
3243 | ||
3244 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3245 | if test "x$LINE" != x ; then | |
3246 | eval "DEFAULT_$LINE" | |
3247 | else | |
3248 | no_cache=1 | |
3249 | fi | |
3250 | ||
3251 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3252 | ||
3253 | fi; | |
3254 | ||
3255 | eval "$ac_cv_use_zlib" | |
3256 | if test "$no_cache" != 1; then | |
3257 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3258 | fi | |
3259 | ||
3260 | if test "$wxUSE_ZLIB" = yes; then | |
3261 | echo "$as_me:$LINENO: result: yes" >&5 | |
3262 | echo "${ECHO_T}yes" >&6 | |
3263 | elif test "$wxUSE_ZLIB" = no; then | |
3264 | echo "$as_me:$LINENO: result: no" >&5 | |
3265 | echo "${ECHO_T}no" >&6 | |
3266 | elif test "$wxUSE_ZLIB" = sys; then | |
3267 | echo "$as_me:$LINENO: result: system version" >&5 | |
3268 | echo "${ECHO_T}system version" >&6 | |
3269 | elif test "$wxUSE_ZLIB" = builtin; then | |
3270 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3271 | echo "${ECHO_T}builtin version" >&6 | |
3272 | else | |
3273 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3274 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3275 | { (exit 1); exit 1; }; } | |
3276 | fi | |
3277 | ||
3278 | ||
3279 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3280 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3281 | no_cache=0 | |
3282 | ||
3283 | # Check whether --with-odbc or --without-odbc was given. | |
3284 | if test "${with_odbc+set}" = set; then | |
3285 | withval="$with_odbc" | |
3286 | ||
3287 | if test "$withval" = yes; then | |
3288 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3289 | elif test "$withval" = no; then | |
3290 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3291 | elif test "$withval" = sys; then | |
3292 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3293 | elif test "$withval" = builtin; then | |
3294 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3295 | else | |
3296 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3297 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3298 | { (exit 1); exit 1; }; } | |
3299 | fi | |
3300 | ||
3301 | else | |
3302 | ||
3303 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3304 | if test "x$LINE" != x ; then | |
3305 | eval "DEFAULT_$LINE" | |
3306 | else | |
3307 | no_cache=1 | |
3308 | fi | |
3309 | ||
3310 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3311 | ||
3312 | fi; | |
3313 | ||
3314 | eval "$ac_cv_use_odbc" | |
3315 | if test "$no_cache" != 1; then | |
3316 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3317 | fi | |
3318 | ||
3319 | if test "$wxUSE_ODBC" = yes; then | |
3320 | echo "$as_me:$LINENO: result: yes" >&5 | |
3321 | echo "${ECHO_T}yes" >&6 | |
3322 | elif test "$wxUSE_ODBC" = no; then | |
3323 | echo "$as_me:$LINENO: result: no" >&5 | |
3324 | echo "${ECHO_T}no" >&6 | |
3325 | elif test "$wxUSE_ODBC" = sys; then | |
3326 | echo "$as_me:$LINENO: result: system version" >&5 | |
3327 | echo "${ECHO_T}system version" >&6 | |
3328 | elif test "$wxUSE_ODBC" = builtin; then | |
3329 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3330 | echo "${ECHO_T}builtin version" >&6 | |
3331 | else | |
3332 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3333 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3334 | { (exit 1); exit 1; }; } | |
3335 | fi | |
3336 | ||
3337 | ||
3338 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3339 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3340 | no_cache=0 | |
3341 | ||
3342 | # Check whether --with-expat or --without-expat was given. | |
3343 | if test "${with_expat+set}" = set; then | |
3344 | withval="$with_expat" | |
3345 | ||
3346 | if test "$withval" = yes; then | |
3347 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3348 | elif test "$withval" = no; then | |
3349 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3350 | elif test "$withval" = sys; then | |
3351 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3352 | elif test "$withval" = builtin; then | |
3353 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3354 | else | |
3355 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3356 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3357 | { (exit 1); exit 1; }; } | |
3358 | fi | |
3359 | ||
3360 | else | |
3361 | ||
3362 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3363 | if test "x$LINE" != x ; then | |
3364 | eval "DEFAULT_$LINE" | |
3365 | else | |
3366 | no_cache=1 | |
3367 | fi | |
3368 | ||
3369 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3370 | ||
3371 | fi; | |
3372 | ||
3373 | eval "$ac_cv_use_expat" | |
3374 | if test "$no_cache" != 1; then | |
3375 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3376 | fi | |
3377 | ||
3378 | if test "$wxUSE_EXPAT" = yes; then | |
3379 | echo "$as_me:$LINENO: result: yes" >&5 | |
3380 | echo "${ECHO_T}yes" >&6 | |
3381 | elif test "$wxUSE_EXPAT" = no; then | |
3382 | echo "$as_me:$LINENO: result: no" >&5 | |
3383 | echo "${ECHO_T}no" >&6 | |
3384 | elif test "$wxUSE_EXPAT" = sys; then | |
3385 | echo "$as_me:$LINENO: result: system version" >&5 | |
3386 | echo "${ECHO_T}system version" >&6 | |
3387 | elif test "$wxUSE_EXPAT" = builtin; then | |
3388 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3389 | echo "${ECHO_T}builtin version" >&6 | |
3390 | else | |
3391 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3392 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3393 | { (exit 1); exit 1; }; } | |
3394 | fi | |
3395 | ||
3396 | ||
3397 | ||
3398 | ||
3399 | enablestring= | |
3400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3401 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3402 | no_cache=0 | |
3403 | # Check whether --enable-shared or --disable-shared was given. | |
3404 | if test "${enable_shared+set}" = set; then | |
3405 | enableval="$enable_shared" | |
3406 | ||
3407 | if test "$enableval" = yes; then | |
3408 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3409 | else | |
3410 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3411 | fi | |
3412 | ||
3413 | else | |
3414 | ||
3415 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3416 | if test "x$LINE" != x ; then | |
3417 | eval "DEFAULT_$LINE" | |
3418 | else | |
3419 | no_cache=1 | |
3420 | fi | |
3421 | ||
3422 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3423 | ||
3424 | fi; | |
3425 | ||
3426 | eval "$ac_cv_use_shared" | |
3427 | if test "$no_cache" != 1; then | |
3428 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3429 | fi | |
3430 | ||
3431 | if test "$wxUSE_SHARED" = yes; then | |
3432 | echo "$as_me:$LINENO: result: yes" >&5 | |
3433 | echo "${ECHO_T}yes" >&6 | |
3434 | else | |
3435 | echo "$as_me:$LINENO: result: no" >&5 | |
3436 | echo "${ECHO_T}no" >&6 | |
3437 | fi | |
3438 | ||
3439 | ||
3440 | enablestring= | |
3441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3442 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3443 | no_cache=0 | |
3444 | # Check whether --enable-optimise or --disable-optimise was given. | |
3445 | if test "${enable_optimise+set}" = set; then | |
3446 | enableval="$enable_optimise" | |
3447 | ||
3448 | if test "$enableval" = yes; then | |
3449 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3450 | else | |
3451 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3452 | fi | |
3453 | ||
3454 | else | |
3455 | ||
3456 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3457 | if test "x$LINE" != x ; then | |
3458 | eval "DEFAULT_$LINE" | |
3459 | else | |
3460 | no_cache=1 | |
3461 | fi | |
3462 | ||
3463 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3464 | ||
3465 | fi; | |
3466 | ||
3467 | eval "$ac_cv_use_optimise" | |
3468 | if test "$no_cache" != 1; then | |
3469 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3470 | fi | |
3471 | ||
3472 | if test "$wxUSE_OPTIMISE" = yes; then | |
3473 | echo "$as_me:$LINENO: result: yes" >&5 | |
3474 | echo "${ECHO_T}yes" >&6 | |
3475 | else | |
3476 | echo "$as_me:$LINENO: result: no" >&5 | |
3477 | echo "${ECHO_T}no" >&6 | |
3478 | fi | |
3479 | ||
3480 | ||
3481 | enablestring= | |
3482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3483 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3484 | no_cache=0 | |
3485 | # Check whether --enable-debug or --disable-debug was given. | |
3486 | if test "${enable_debug+set}" = set; then | |
3487 | enableval="$enable_debug" | |
3488 | ||
3489 | if test "$enableval" = yes; then | |
3490 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3491 | else | |
3492 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3493 | fi | |
3494 | ||
3495 | else | |
3496 | ||
3497 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3498 | if test "x$LINE" != x ; then | |
3499 | eval "DEFAULT_$LINE" | |
3500 | else | |
3501 | no_cache=1 | |
3502 | fi | |
3503 | ||
3504 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3505 | ||
3506 | fi; | |
3507 | ||
3508 | eval "$ac_cv_use_debug" | |
3509 | if test "$no_cache" != 1; then | |
3510 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3511 | fi | |
3512 | ||
3513 | if test "$wxUSE_DEBUG" = yes; then | |
3514 | echo "$as_me:$LINENO: result: yes" >&5 | |
3515 | echo "${ECHO_T}yes" >&6 | |
3516 | else | |
3517 | echo "$as_me:$LINENO: result: no" >&5 | |
3518 | echo "${ECHO_T}no" >&6 | |
3519 | fi | |
3520 | ||
3521 | ||
3522 | enablestring= | |
3523 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3524 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3525 | no_cache=0 | |
3526 | # Check whether --enable-stl or --disable-stl was given. | |
3527 | if test "${enable_stl+set}" = set; then | |
3528 | enableval="$enable_stl" | |
3529 | ||
3530 | if test "$enableval" = yes; then | |
3531 | ac_cv_use_stl='wxUSE_STL=yes' | |
3532 | else | |
3533 | ac_cv_use_stl='wxUSE_STL=no' | |
3534 | fi | |
3535 | ||
3536 | else | |
3537 | ||
3538 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3539 | if test "x$LINE" != x ; then | |
3540 | eval "DEFAULT_$LINE" | |
3541 | else | |
3542 | no_cache=1 | |
3543 | fi | |
3544 | ||
3545 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3546 | ||
3547 | fi; | |
3548 | ||
3549 | eval "$ac_cv_use_stl" | |
3550 | if test "$no_cache" != 1; then | |
3551 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3552 | fi | |
3553 | ||
3554 | if test "$wxUSE_STL" = yes; then | |
3555 | echo "$as_me:$LINENO: result: yes" >&5 | |
3556 | echo "${ECHO_T}yes" >&6 | |
3557 | else | |
3558 | echo "$as_me:$LINENO: result: no" >&5 | |
3559 | echo "${ECHO_T}no" >&6 | |
3560 | fi | |
3561 | ||
3562 | if test "$USE_OS2" = "1"; then | |
3563 | ||
3564 | enablestring= | |
3565 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3566 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3567 | no_cache=0 | |
3568 | # Check whether --enable-omf or --disable-omf was given. | |
3569 | if test "${enable_omf+set}" = set; then | |
3570 | enableval="$enable_omf" | |
3571 | ||
3572 | if test "$enableval" = yes; then | |
3573 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3574 | else | |
3575 | ac_cv_use_omf='wxUSE_OMF=no' | |
3576 | fi | |
3577 | ||
3578 | else | |
3579 | ||
3580 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3581 | if test "x$LINE" != x ; then | |
3582 | eval "DEFAULT_$LINE" | |
3583 | else | |
3584 | no_cache=1 | |
3585 | fi | |
3586 | ||
3587 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3588 | ||
3589 | fi; | |
3590 | ||
3591 | eval "$ac_cv_use_omf" | |
3592 | if test "$no_cache" != 1; then | |
3593 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3594 | fi | |
3595 | ||
3596 | if test "$wxUSE_OMF" = yes; then | |
3597 | echo "$as_me:$LINENO: result: yes" >&5 | |
3598 | echo "${ECHO_T}yes" >&6 | |
3599 | else | |
3600 | echo "$as_me:$LINENO: result: no" >&5 | |
3601 | echo "${ECHO_T}no" >&6 | |
3602 | fi | |
3603 | ||
3604 | fi | |
3605 | ||
3606 | if test "$wxUSE_DEBUG" = "yes"; then | |
3607 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3608 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3609 | BUILD=debug | |
3610 | elif test "$wxUSE_DEBUG" = "no"; then | |
3611 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3612 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3613 | BUILD=release | |
3614 | fi | |
3615 | ||
3616 | ||
3617 | enablestring= | |
3618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3619 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3620 | no_cache=0 | |
3621 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3622 | if test "${enable_debug_flag+set}" = set; then | |
3623 | enableval="$enable_debug_flag" | |
3624 | ||
3625 | if test "$enableval" = yes; then | |
3626 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3627 | else | |
3628 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3629 | fi | |
3630 | ||
3631 | else | |
3632 | ||
3633 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3634 | if test "x$LINE" != x ; then | |
3635 | eval "DEFAULT_$LINE" | |
3636 | else | |
3637 | no_cache=1 | |
3638 | fi | |
3639 | ||
3640 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3641 | ||
3642 | fi; | |
3643 | ||
3644 | eval "$ac_cv_use_debug_flag" | |
3645 | if test "$no_cache" != 1; then | |
3646 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3647 | fi | |
3648 | ||
3649 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3650 | echo "$as_me:$LINENO: result: yes" >&5 | |
3651 | echo "${ECHO_T}yes" >&6 | |
3652 | else | |
3653 | echo "$as_me:$LINENO: result: no" >&5 | |
3654 | echo "${ECHO_T}no" >&6 | |
3655 | fi | |
3656 | ||
3657 | ||
3658 | enablestring= | |
3659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3660 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3661 | no_cache=0 | |
3662 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3663 | if test "${enable_debug_info+set}" = set; then | |
3664 | enableval="$enable_debug_info" | |
3665 | ||
3666 | if test "$enableval" = yes; then | |
3667 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3668 | else | |
3669 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3670 | fi | |
3671 | ||
3672 | else | |
3673 | ||
3674 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3675 | if test "x$LINE" != x ; then | |
3676 | eval "DEFAULT_$LINE" | |
3677 | else | |
3678 | no_cache=1 | |
3679 | fi | |
3680 | ||
3681 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3682 | ||
3683 | fi; | |
3684 | ||
3685 | eval "$ac_cv_use_debug_info" | |
3686 | if test "$no_cache" != 1; then | |
3687 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3688 | fi | |
3689 | ||
3690 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3691 | echo "$as_me:$LINENO: result: yes" >&5 | |
3692 | echo "${ECHO_T}yes" >&6 | |
3693 | else | |
3694 | echo "$as_me:$LINENO: result: no" >&5 | |
3695 | echo "${ECHO_T}no" >&6 | |
3696 | fi | |
3697 | ||
3698 | ||
3699 | enablestring= | |
3700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3701 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3702 | no_cache=0 | |
3703 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3704 | if test "${enable_debug_gdb+set}" = set; then | |
3705 | enableval="$enable_debug_gdb" | |
3706 | ||
3707 | if test "$enableval" = yes; then | |
3708 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3709 | else | |
3710 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3711 | fi | |
3712 | ||
3713 | else | |
3714 | ||
3715 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3716 | if test "x$LINE" != x ; then | |
3717 | eval "DEFAULT_$LINE" | |
3718 | else | |
3719 | no_cache=1 | |
3720 | fi | |
3721 | ||
3722 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3723 | ||
3724 | fi; | |
3725 | ||
3726 | eval "$ac_cv_use_debug_gdb" | |
3727 | if test "$no_cache" != 1; then | |
3728 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3729 | fi | |
3730 | ||
3731 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3732 | echo "$as_me:$LINENO: result: yes" >&5 | |
3733 | echo "${ECHO_T}yes" >&6 | |
3734 | else | |
3735 | echo "$as_me:$LINENO: result: no" >&5 | |
3736 | echo "${ECHO_T}no" >&6 | |
3737 | fi | |
3738 | ||
3739 | ||
3740 | enablestring= | |
3741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3742 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3743 | no_cache=0 | |
3744 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3745 | if test "${enable_debug_cntxt+set}" = set; then | |
3746 | enableval="$enable_debug_cntxt" | |
3747 | ||
3748 | if test "$enableval" = yes; then | |
3749 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3750 | else | |
3751 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3752 | fi | |
3753 | ||
3754 | else | |
3755 | ||
3756 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3757 | if test "x$LINE" != x ; then | |
3758 | eval "DEFAULT_$LINE" | |
3759 | else | |
3760 | no_cache=1 | |
3761 | fi | |
3762 | ||
3763 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3764 | ||
3765 | fi; | |
3766 | ||
3767 | eval "$ac_cv_use_debug_cntxt" | |
3768 | if test "$no_cache" != 1; then | |
3769 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3770 | fi | |
3771 | ||
3772 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3773 | echo "$as_me:$LINENO: result: yes" >&5 | |
3774 | echo "${ECHO_T}yes" >&6 | |
3775 | else | |
3776 | echo "$as_me:$LINENO: result: no" >&5 | |
3777 | echo "${ECHO_T}no" >&6 | |
3778 | fi | |
3779 | ||
3780 | ||
3781 | enablestring= | |
3782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3783 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3784 | no_cache=0 | |
3785 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3786 | if test "${enable_mem_tracing+set}" = set; then | |
3787 | enableval="$enable_mem_tracing" | |
3788 | ||
3789 | if test "$enableval" = yes; then | |
3790 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3791 | else | |
3792 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3793 | fi | |
3794 | ||
3795 | else | |
3796 | ||
3797 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3798 | if test "x$LINE" != x ; then | |
3799 | eval "DEFAULT_$LINE" | |
3800 | else | |
3801 | no_cache=1 | |
3802 | fi | |
3803 | ||
3804 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3805 | ||
3806 | fi; | |
3807 | ||
3808 | eval "$ac_cv_use_mem_tracing" | |
3809 | if test "$no_cache" != 1; then | |
3810 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3811 | fi | |
3812 | ||
3813 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3814 | echo "$as_me:$LINENO: result: yes" >&5 | |
3815 | echo "${ECHO_T}yes" >&6 | |
3816 | else | |
3817 | echo "$as_me:$LINENO: result: no" >&5 | |
3818 | echo "${ECHO_T}no" >&6 | |
3819 | fi | |
3820 | ||
3821 | ||
3822 | enablestring= | |
3823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3824 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3825 | no_cache=0 | |
3826 | # Check whether --enable-profile or --disable-profile was given. | |
3827 | if test "${enable_profile+set}" = set; then | |
3828 | enableval="$enable_profile" | |
3829 | ||
3830 | if test "$enableval" = yes; then | |
3831 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3832 | else | |
3833 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3834 | fi | |
3835 | ||
3836 | else | |
3837 | ||
3838 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3839 | if test "x$LINE" != x ; then | |
3840 | eval "DEFAULT_$LINE" | |
3841 | else | |
3842 | no_cache=1 | |
3843 | fi | |
3844 | ||
3845 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3846 | ||
3847 | fi; | |
3848 | ||
3849 | eval "$ac_cv_use_profile" | |
3850 | if test "$no_cache" != 1; then | |
3851 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3852 | fi | |
3853 | ||
3854 | if test "$wxUSE_PROFILE" = yes; then | |
3855 | echo "$as_me:$LINENO: result: yes" >&5 | |
3856 | echo "${ECHO_T}yes" >&6 | |
3857 | else | |
3858 | echo "$as_me:$LINENO: result: no" >&5 | |
3859 | echo "${ECHO_T}no" >&6 | |
3860 | fi | |
3861 | ||
3862 | ||
3863 | enablestring= | |
3864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3865 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3866 | no_cache=0 | |
3867 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3868 | if test "${enable_no_rtti+set}" = set; then | |
3869 | enableval="$enable_no_rtti" | |
3870 | ||
3871 | if test "$enableval" = yes; then | |
3872 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3873 | else | |
3874 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3875 | fi | |
3876 | ||
3877 | else | |
3878 | ||
3879 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3880 | if test "x$LINE" != x ; then | |
3881 | eval "DEFAULT_$LINE" | |
3882 | else | |
3883 | no_cache=1 | |
3884 | fi | |
3885 | ||
3886 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3887 | ||
3888 | fi; | |
3889 | ||
3890 | eval "$ac_cv_use_no_rtti" | |
3891 | if test "$no_cache" != 1; then | |
3892 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3893 | fi | |
3894 | ||
3895 | if test "$wxUSE_NO_RTTI" = yes; then | |
3896 | echo "$as_me:$LINENO: result: yes" >&5 | |
3897 | echo "${ECHO_T}yes" >&6 | |
3898 | else | |
3899 | echo "$as_me:$LINENO: result: no" >&5 | |
3900 | echo "${ECHO_T}no" >&6 | |
3901 | fi | |
3902 | ||
3903 | ||
3904 | enablestring= | |
3905 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3906 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3907 | no_cache=0 | |
3908 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3909 | if test "${enable_no_exceptions+set}" = set; then | |
3910 | enableval="$enable_no_exceptions" | |
3911 | ||
3912 | if test "$enableval" = yes; then | |
3913 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3914 | else | |
3915 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3916 | fi | |
3917 | ||
3918 | else | |
3919 | ||
3920 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3921 | if test "x$LINE" != x ; then | |
3922 | eval "DEFAULT_$LINE" | |
3923 | else | |
3924 | no_cache=1 | |
3925 | fi | |
3926 | ||
3927 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3928 | ||
3929 | fi; | |
3930 | ||
3931 | eval "$ac_cv_use_no_exceptions" | |
3932 | if test "$no_cache" != 1; then | |
3933 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3934 | fi | |
3935 | ||
3936 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3937 | echo "$as_me:$LINENO: result: yes" >&5 | |
3938 | echo "${ECHO_T}yes" >&6 | |
3939 | else | |
3940 | echo "$as_me:$LINENO: result: no" >&5 | |
3941 | echo "${ECHO_T}no" >&6 | |
3942 | fi | |
3943 | ||
3944 | ||
3945 | enablestring= | |
3946 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3947 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3948 | no_cache=0 | |
3949 | # Check whether --enable-permissive or --disable-permissive was given. | |
3950 | if test "${enable_permissive+set}" = set; then | |
3951 | enableval="$enable_permissive" | |
3952 | ||
3953 | if test "$enableval" = yes; then | |
3954 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3955 | else | |
3956 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3957 | fi | |
3958 | ||
3959 | else | |
3960 | ||
3961 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3962 | if test "x$LINE" != x ; then | |
3963 | eval "DEFAULT_$LINE" | |
3964 | else | |
3965 | no_cache=1 | |
3966 | fi | |
3967 | ||
3968 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3969 | ||
3970 | fi; | |
3971 | ||
3972 | eval "$ac_cv_use_permissive" | |
3973 | if test "$no_cache" != 1; then | |
3974 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3975 | fi | |
3976 | ||
3977 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3978 | echo "$as_me:$LINENO: result: yes" >&5 | |
3979 | echo "${ECHO_T}yes" >&6 | |
3980 | else | |
3981 | echo "$as_me:$LINENO: result: no" >&5 | |
3982 | echo "${ECHO_T}no" >&6 | |
3983 | fi | |
3984 | ||
3985 | ||
3986 | enablestring= | |
3987 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3988 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3989 | no_cache=0 | |
3990 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3991 | if test "${enable_no_deps+set}" = set; then | |
3992 | enableval="$enable_no_deps" | |
3993 | ||
3994 | if test "$enableval" = yes; then | |
3995 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3996 | else | |
3997 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3998 | fi | |
3999 | ||
4000 | else | |
4001 | ||
4002 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4003 | if test "x$LINE" != x ; then | |
4004 | eval "DEFAULT_$LINE" | |
4005 | else | |
4006 | no_cache=1 | |
4007 | fi | |
4008 | ||
4009 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4010 | ||
4011 | fi; | |
4012 | ||
4013 | eval "$ac_cv_use_no_deps" | |
4014 | if test "$no_cache" != 1; then | |
4015 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4016 | fi | |
4017 | ||
4018 | if test "$wxUSE_NO_DEPS" = yes; then | |
4019 | echo "$as_me:$LINENO: result: yes" >&5 | |
4020 | echo "${ECHO_T}yes" >&6 | |
4021 | else | |
4022 | echo "$as_me:$LINENO: result: no" >&5 | |
4023 | echo "${ECHO_T}no" >&6 | |
4024 | fi | |
4025 | ||
4026 | ||
4027 | ||
4028 | enablestring= | |
4029 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4030 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4031 | no_cache=0 | |
4032 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4033 | if test "${enable_compat22+set}" = set; then | |
4034 | enableval="$enable_compat22" | |
4035 | ||
4036 | if test "$enableval" = yes; then | |
4037 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4038 | else | |
4039 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4040 | fi | |
4041 | ||
4042 | else | |
4043 | ||
4044 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4045 | if test "x$LINE" != x ; then | |
4046 | eval "DEFAULT_$LINE" | |
4047 | else | |
4048 | no_cache=1 | |
4049 | fi | |
4050 | ||
4051 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4052 | ||
4053 | fi; | |
4054 | ||
4055 | eval "$ac_cv_use_compat22" | |
4056 | if test "$no_cache" != 1; then | |
4057 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4058 | fi | |
4059 | ||
4060 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4061 | echo "$as_me:$LINENO: result: yes" >&5 | |
4062 | echo "${ECHO_T}yes" >&6 | |
4063 | else | |
4064 | echo "$as_me:$LINENO: result: no" >&5 | |
4065 | echo "${ECHO_T}no" >&6 | |
4066 | fi | |
4067 | ||
4068 | ||
4069 | enablestring=disable | |
4070 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4071 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4072 | no_cache=0 | |
4073 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4074 | if test "${enable_compat24+set}" = set; then | |
4075 | enableval="$enable_compat24" | |
4076 | ||
4077 | if test "$enableval" = yes; then | |
4078 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4079 | else | |
4080 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4081 | fi | |
4082 | ||
4083 | else | |
4084 | ||
4085 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4086 | if test "x$LINE" != x ; then | |
4087 | eval "DEFAULT_$LINE" | |
4088 | else | |
4089 | no_cache=1 | |
4090 | fi | |
4091 | ||
4092 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4093 | ||
4094 | fi; | |
4095 | ||
4096 | eval "$ac_cv_use_compat24" | |
4097 | if test "$no_cache" != 1; then | |
4098 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4099 | fi | |
4100 | ||
4101 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4102 | echo "$as_me:$LINENO: result: yes" >&5 | |
4103 | echo "${ECHO_T}yes" >&6 | |
4104 | else | |
4105 | echo "$as_me:$LINENO: result: no" >&5 | |
4106 | echo "${ECHO_T}no" >&6 | |
4107 | fi | |
4108 | ||
4109 | ||
4110 | # Check whether --enable-rpath or --disable-rpath was given. | |
4111 | if test "${enable_rpath+set}" = set; then | |
4112 | enableval="$enable_rpath" | |
4113 | wxRPATH_DIR="$enableval" | |
4114 | fi; | |
4115 | ||
ac1cb8d3 | 4116 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then |
a848cd7e SC |
4117 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" |
4118 | fi | |
4119 | ||
4120 | ||
4121 | ||
4122 | ||
4123 | enablestring= | |
4124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4125 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4126 | no_cache=0 | |
4127 | # Check whether --enable-intl or --disable-intl was given. | |
4128 | if test "${enable_intl+set}" = set; then | |
4129 | enableval="$enable_intl" | |
4130 | ||
4131 | if test "$enableval" = yes; then | |
4132 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4133 | else | |
4134 | ac_cv_use_intl='wxUSE_INTL=no' | |
4135 | fi | |
4136 | ||
4137 | else | |
4138 | ||
4139 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4140 | if test "x$LINE" != x ; then | |
4141 | eval "DEFAULT_$LINE" | |
4142 | else | |
4143 | no_cache=1 | |
4144 | fi | |
4145 | ||
4146 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4147 | ||
4148 | fi; | |
4149 | ||
4150 | eval "$ac_cv_use_intl" | |
4151 | if test "$no_cache" != 1; then | |
4152 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4153 | fi | |
4154 | ||
4155 | if test "$wxUSE_INTL" = yes; then | |
4156 | echo "$as_me:$LINENO: result: yes" >&5 | |
4157 | echo "${ECHO_T}yes" >&6 | |
4158 | else | |
4159 | echo "$as_me:$LINENO: result: no" >&5 | |
4160 | echo "${ECHO_T}no" >&6 | |
4161 | fi | |
4162 | ||
4163 | ||
4164 | enablestring= | |
4165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4166 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4167 | no_cache=0 | |
4168 | # Check whether --enable-config or --disable-config was given. | |
4169 | if test "${enable_config+set}" = set; then | |
4170 | enableval="$enable_config" | |
4171 | ||
4172 | if test "$enableval" = yes; then | |
4173 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4174 | else | |
4175 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4176 | fi | |
4177 | ||
4178 | else | |
4179 | ||
4180 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4181 | if test "x$LINE" != x ; then | |
4182 | eval "DEFAULT_$LINE" | |
4183 | else | |
4184 | no_cache=1 | |
4185 | fi | |
4186 | ||
4187 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4188 | ||
4189 | fi; | |
4190 | ||
4191 | eval "$ac_cv_use_config" | |
4192 | if test "$no_cache" != 1; then | |
4193 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4194 | fi | |
4195 | ||
4196 | if test "$wxUSE_CONFIG" = yes; then | |
4197 | echo "$as_me:$LINENO: result: yes" >&5 | |
4198 | echo "${ECHO_T}yes" >&6 | |
4199 | else | |
4200 | echo "$as_me:$LINENO: result: no" >&5 | |
4201 | echo "${ECHO_T}no" >&6 | |
4202 | fi | |
4203 | ||
4204 | ||
4205 | ||
4206 | enablestring= | |
4207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4208 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4209 | no_cache=0 | |
4210 | # Check whether --enable-protocols or --disable-protocols was given. | |
4211 | if test "${enable_protocols+set}" = set; then | |
4212 | enableval="$enable_protocols" | |
4213 | ||
4214 | if test "$enableval" = yes; then | |
4215 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4216 | else | |
4217 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4218 | fi | |
4219 | ||
4220 | else | |
4221 | ||
4222 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4223 | if test "x$LINE" != x ; then | |
4224 | eval "DEFAULT_$LINE" | |
4225 | else | |
4226 | no_cache=1 | |
4227 | fi | |
4228 | ||
4229 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4230 | ||
4231 | fi; | |
4232 | ||
4233 | eval "$ac_cv_use_protocols" | |
4234 | if test "$no_cache" != 1; then | |
4235 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4236 | fi | |
4237 | ||
4238 | if test "$wxUSE_PROTOCOL" = yes; then | |
4239 | echo "$as_me:$LINENO: result: yes" >&5 | |
4240 | echo "${ECHO_T}yes" >&6 | |
4241 | else | |
4242 | echo "$as_me:$LINENO: result: no" >&5 | |
4243 | echo "${ECHO_T}no" >&6 | |
4244 | fi | |
4245 | ||
4246 | ||
4247 | enablestring= | |
4248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4249 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4250 | no_cache=0 | |
4251 | # Check whether --enable-ftp or --disable-ftp was given. | |
4252 | if test "${enable_ftp+set}" = set; then | |
4253 | enableval="$enable_ftp" | |
4254 | ||
4255 | if test "$enableval" = yes; then | |
4256 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4257 | else | |
4258 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4259 | fi | |
4260 | ||
4261 | else | |
4262 | ||
4263 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4264 | if test "x$LINE" != x ; then | |
4265 | eval "DEFAULT_$LINE" | |
4266 | else | |
4267 | no_cache=1 | |
4268 | fi | |
4269 | ||
4270 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4271 | ||
4272 | fi; | |
4273 | ||
4274 | eval "$ac_cv_use_ftp" | |
4275 | if test "$no_cache" != 1; then | |
4276 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4277 | fi | |
4278 | ||
4279 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4280 | echo "$as_me:$LINENO: result: yes" >&5 | |
4281 | echo "${ECHO_T}yes" >&6 | |
4282 | else | |
4283 | echo "$as_me:$LINENO: result: no" >&5 | |
4284 | echo "${ECHO_T}no" >&6 | |
4285 | fi | |
4286 | ||
4287 | ||
4288 | enablestring= | |
4289 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4290 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4291 | no_cache=0 | |
4292 | # Check whether --enable-http or --disable-http was given. | |
4293 | if test "${enable_http+set}" = set; then | |
4294 | enableval="$enable_http" | |
4295 | ||
4296 | if test "$enableval" = yes; then | |
4297 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4298 | else | |
4299 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4300 | fi | |
4301 | ||
4302 | else | |
4303 | ||
4304 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4305 | if test "x$LINE" != x ; then | |
4306 | eval "DEFAULT_$LINE" | |
4307 | else | |
4308 | no_cache=1 | |
4309 | fi | |
4310 | ||
4311 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4312 | ||
4313 | fi; | |
4314 | ||
4315 | eval "$ac_cv_use_http" | |
4316 | if test "$no_cache" != 1; then | |
4317 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4318 | fi | |
4319 | ||
4320 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4321 | echo "$as_me:$LINENO: result: yes" >&5 | |
4322 | echo "${ECHO_T}yes" >&6 | |
4323 | else | |
4324 | echo "$as_me:$LINENO: result: no" >&5 | |
4325 | echo "${ECHO_T}no" >&6 | |
4326 | fi | |
4327 | ||
4328 | ||
4329 | enablestring= | |
4330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4331 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4332 | no_cache=0 | |
4333 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4334 | if test "${enable_fileproto+set}" = set; then | |
4335 | enableval="$enable_fileproto" | |
4336 | ||
4337 | if test "$enableval" = yes; then | |
4338 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4339 | else | |
4340 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4341 | fi | |
4342 | ||
4343 | else | |
4344 | ||
4345 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4346 | if test "x$LINE" != x ; then | |
4347 | eval "DEFAULT_$LINE" | |
4348 | else | |
4349 | no_cache=1 | |
4350 | fi | |
4351 | ||
4352 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4353 | ||
4354 | fi; | |
4355 | ||
4356 | eval "$ac_cv_use_fileproto" | |
4357 | if test "$no_cache" != 1; then | |
4358 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4359 | fi | |
4360 | ||
4361 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4362 | echo "$as_me:$LINENO: result: yes" >&5 | |
4363 | echo "${ECHO_T}yes" >&6 | |
4364 | else | |
4365 | echo "$as_me:$LINENO: result: no" >&5 | |
4366 | echo "${ECHO_T}no" >&6 | |
4367 | fi | |
4368 | ||
4369 | ||
4370 | enablestring= | |
4371 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4372 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4373 | no_cache=0 | |
4374 | # Check whether --enable-sockets or --disable-sockets was given. | |
4375 | if test "${enable_sockets+set}" = set; then | |
4376 | enableval="$enable_sockets" | |
4377 | ||
4378 | if test "$enableval" = yes; then | |
4379 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4380 | else | |
4381 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4382 | fi | |
4383 | ||
4384 | else | |
4385 | ||
4386 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4387 | if test "x$LINE" != x ; then | |
4388 | eval "DEFAULT_$LINE" | |
4389 | else | |
4390 | no_cache=1 | |
4391 | fi | |
4392 | ||
4393 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4394 | ||
4395 | fi; | |
4396 | ||
4397 | eval "$ac_cv_use_sockets" | |
4398 | if test "$no_cache" != 1; then | |
4399 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4400 | fi | |
4401 | ||
4402 | if test "$wxUSE_SOCKETS" = yes; then | |
4403 | echo "$as_me:$LINENO: result: yes" >&5 | |
4404 | echo "${ECHO_T}yes" >&6 | |
4405 | else | |
4406 | echo "$as_me:$LINENO: result: no" >&5 | |
4407 | echo "${ECHO_T}no" >&6 | |
4408 | fi | |
4409 | ||
4410 | ||
4411 | enablestring= | |
4412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4413 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4414 | no_cache=0 | |
4415 | # Check whether --enable-ole or --disable-ole was given. | |
4416 | if test "${enable_ole+set}" = set; then | |
4417 | enableval="$enable_ole" | |
4418 | ||
4419 | if test "$enableval" = yes; then | |
4420 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4421 | else | |
4422 | ac_cv_use_ole='wxUSE_OLE=no' | |
4423 | fi | |
4424 | ||
4425 | else | |
4426 | ||
4427 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4428 | if test "x$LINE" != x ; then | |
4429 | eval "DEFAULT_$LINE" | |
4430 | else | |
4431 | no_cache=1 | |
4432 | fi | |
4433 | ||
4434 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4435 | ||
4436 | fi; | |
4437 | ||
4438 | eval "$ac_cv_use_ole" | |
4439 | if test "$no_cache" != 1; then | |
4440 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4441 | fi | |
4442 | ||
4443 | if test "$wxUSE_OLE" = yes; then | |
4444 | echo "$as_me:$LINENO: result: yes" >&5 | |
4445 | echo "${ECHO_T}yes" >&6 | |
4446 | else | |
4447 | echo "$as_me:$LINENO: result: no" >&5 | |
4448 | echo "${ECHO_T}no" >&6 | |
4449 | fi | |
4450 | ||
4451 | ||
4452 | enablestring= | |
4453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4454 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4455 | no_cache=0 | |
4456 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4457 | if test "${enable_dataobj+set}" = set; then | |
4458 | enableval="$enable_dataobj" | |
4459 | ||
4460 | if test "$enableval" = yes; then | |
4461 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4462 | else | |
4463 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4464 | fi | |
4465 | ||
4466 | else | |
4467 | ||
4468 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | else | |
4472 | no_cache=1 | |
4473 | fi | |
4474 | ||
4475 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4476 | ||
4477 | fi; | |
4478 | ||
4479 | eval "$ac_cv_use_dataobj" | |
4480 | if test "$no_cache" != 1; then | |
4481 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4482 | fi | |
4483 | ||
4484 | if test "$wxUSE_DATAOBJ" = yes; then | |
4485 | echo "$as_me:$LINENO: result: yes" >&5 | |
4486 | echo "${ECHO_T}yes" >&6 | |
4487 | else | |
4488 | echo "$as_me:$LINENO: result: no" >&5 | |
4489 | echo "${ECHO_T}no" >&6 | |
4490 | fi | |
4491 | ||
4492 | ||
4493 | ||
4494 | enablestring= | |
4495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4496 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4497 | no_cache=0 | |
4498 | # Check whether --enable-ipc or --disable-ipc was given. | |
4499 | if test "${enable_ipc+set}" = set; then | |
4500 | enableval="$enable_ipc" | |
4501 | ||
4502 | if test "$enableval" = yes; then | |
4503 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4504 | else | |
4505 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4506 | fi | |
4507 | ||
4508 | else | |
4509 | ||
4510 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4511 | if test "x$LINE" != x ; then | |
4512 | eval "DEFAULT_$LINE" | |
4513 | else | |
4514 | no_cache=1 | |
4515 | fi | |
4516 | ||
4517 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4518 | ||
4519 | fi; | |
4520 | ||
4521 | eval "$ac_cv_use_ipc" | |
4522 | if test "$no_cache" != 1; then | |
4523 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4524 | fi | |
4525 | ||
4526 | if test "$wxUSE_IPC" = yes; then | |
4527 | echo "$as_me:$LINENO: result: yes" >&5 | |
4528 | echo "${ECHO_T}yes" >&6 | |
4529 | else | |
4530 | echo "$as_me:$LINENO: result: no" >&5 | |
4531 | echo "${ECHO_T}no" >&6 | |
4532 | fi | |
4533 | ||
4534 | ||
4535 | ||
4536 | enablestring= | |
4537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4538 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4539 | no_cache=0 | |
4540 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4541 | if test "${enable_apple_ieee+set}" = set; then | |
4542 | enableval="$enable_apple_ieee" | |
4543 | ||
4544 | if test "$enableval" = yes; then | |
4545 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4546 | else | |
4547 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4548 | fi | |
4549 | ||
4550 | else | |
4551 | ||
4552 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4553 | if test "x$LINE" != x ; then | |
4554 | eval "DEFAULT_$LINE" | |
4555 | else | |
4556 | no_cache=1 | |
4557 | fi | |
4558 | ||
4559 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4560 | ||
4561 | fi; | |
4562 | ||
4563 | eval "$ac_cv_use_apple_ieee" | |
4564 | if test "$no_cache" != 1; then | |
4565 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4566 | fi | |
4567 | ||
4568 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4569 | echo "$as_me:$LINENO: result: yes" >&5 | |
4570 | echo "${ECHO_T}yes" >&6 | |
4571 | else | |
4572 | echo "$as_me:$LINENO: result: no" >&5 | |
4573 | echo "${ECHO_T}no" >&6 | |
4574 | fi | |
4575 | ||
4576 | ||
4577 | enablestring= | |
4578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4579 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4580 | no_cache=0 | |
4581 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4582 | if test "${enable_catch_segvs+set}" = set; then | |
4583 | enableval="$enable_catch_segvs" | |
4584 | ||
4585 | if test "$enableval" = yes; then | |
4586 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4587 | else | |
4588 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4589 | fi | |
4590 | ||
4591 | else | |
4592 | ||
4593 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4594 | if test "x$LINE" != x ; then | |
4595 | eval "DEFAULT_$LINE" | |
4596 | else | |
4597 | no_cache=1 | |
4598 | fi | |
4599 | ||
4600 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4601 | ||
4602 | fi; | |
4603 | ||
4604 | eval "$ac_cv_use_catch_segvs" | |
4605 | if test "$no_cache" != 1; then | |
4606 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4607 | fi | |
4608 | ||
4609 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4610 | echo "$as_me:$LINENO: result: yes" >&5 | |
4611 | echo "${ECHO_T}yes" >&6 | |
4612 | else | |
4613 | echo "$as_me:$LINENO: result: no" >&5 | |
4614 | echo "${ECHO_T}no" >&6 | |
4615 | fi | |
4616 | ||
4617 | ||
4618 | enablestring= | |
4619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4620 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4621 | no_cache=0 | |
4622 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4623 | if test "${enable_cmdline+set}" = set; then | |
4624 | enableval="$enable_cmdline" | |
4625 | ||
4626 | if test "$enableval" = yes; then | |
4627 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4628 | else | |
4629 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4630 | fi | |
4631 | ||
4632 | else | |
4633 | ||
4634 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4635 | if test "x$LINE" != x ; then | |
4636 | eval "DEFAULT_$LINE" | |
4637 | else | |
4638 | no_cache=1 | |
4639 | fi | |
4640 | ||
4641 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4642 | ||
4643 | fi; | |
4644 | ||
4645 | eval "$ac_cv_use_cmdline" | |
4646 | if test "$no_cache" != 1; then | |
4647 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4648 | fi | |
4649 | ||
4650 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4651 | echo "$as_me:$LINENO: result: yes" >&5 | |
4652 | echo "${ECHO_T}yes" >&6 | |
4653 | else | |
4654 | echo "$as_me:$LINENO: result: no" >&5 | |
4655 | echo "${ECHO_T}no" >&6 | |
4656 | fi | |
4657 | ||
4658 | ||
4659 | enablestring= | |
4660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4661 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4662 | no_cache=0 | |
4663 | # Check whether --enable-datetime or --disable-datetime was given. | |
4664 | if test "${enable_datetime+set}" = set; then | |
4665 | enableval="$enable_datetime" | |
4666 | ||
4667 | if test "$enableval" = yes; then | |
4668 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4669 | else | |
4670 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4671 | fi | |
4672 | ||
4673 | else | |
4674 | ||
4675 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4676 | if test "x$LINE" != x ; then | |
4677 | eval "DEFAULT_$LINE" | |
4678 | else | |
4679 | no_cache=1 | |
4680 | fi | |
4681 | ||
4682 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4683 | ||
4684 | fi; | |
4685 | ||
4686 | eval "$ac_cv_use_datetime" | |
4687 | if test "$no_cache" != 1; then | |
4688 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4689 | fi | |
4690 | ||
4691 | if test "$wxUSE_DATETIME" = yes; then | |
4692 | echo "$as_me:$LINENO: result: yes" >&5 | |
4693 | echo "${ECHO_T}yes" >&6 | |
4694 | else | |
4695 | echo "$as_me:$LINENO: result: no" >&5 | |
4696 | echo "${ECHO_T}no" >&6 | |
4697 | fi | |
4698 | ||
4699 | ||
4700 | enablestring= | |
4701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4702 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4703 | no_cache=0 | |
4704 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4705 | if test "${enable_dialupman+set}" = set; then | |
4706 | enableval="$enable_dialupman" | |
4707 | ||
4708 | if test "$enableval" = yes; then | |
4709 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4710 | else | |
4711 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4712 | fi | |
4713 | ||
4714 | else | |
4715 | ||
4716 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4717 | if test "x$LINE" != x ; then | |
4718 | eval "DEFAULT_$LINE" | |
4719 | else | |
4720 | no_cache=1 | |
4721 | fi | |
4722 | ||
4723 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4724 | ||
4725 | fi; | |
4726 | ||
4727 | eval "$ac_cv_use_dialupman" | |
4728 | if test "$no_cache" != 1; then | |
4729 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4730 | fi | |
4731 | ||
4732 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4733 | echo "$as_me:$LINENO: result: yes" >&5 | |
4734 | echo "${ECHO_T}yes" >&6 | |
4735 | else | |
4736 | echo "$as_me:$LINENO: result: no" >&5 | |
4737 | echo "${ECHO_T}no" >&6 | |
4738 | fi | |
4739 | ||
4740 | ||
4741 | enablestring= | |
4742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4743 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4744 | no_cache=0 | |
4745 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4746 | if test "${enable_dynlib+set}" = set; then | |
4747 | enableval="$enable_dynlib" | |
4748 | ||
4749 | if test "$enableval" = yes; then | |
4750 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4751 | else | |
4752 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4753 | fi | |
4754 | ||
4755 | else | |
4756 | ||
4757 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4758 | if test "x$LINE" != x ; then | |
4759 | eval "DEFAULT_$LINE" | |
4760 | else | |
4761 | no_cache=1 | |
4762 | fi | |
4763 | ||
4764 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4765 | ||
4766 | fi; | |
4767 | ||
4768 | eval "$ac_cv_use_dynlib" | |
4769 | if test "$no_cache" != 1; then | |
4770 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4771 | fi | |
4772 | ||
4773 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4774 | echo "$as_me:$LINENO: result: yes" >&5 | |
4775 | echo "${ECHO_T}yes" >&6 | |
4776 | else | |
4777 | echo "$as_me:$LINENO: result: no" >&5 | |
4778 | echo "${ECHO_T}no" >&6 | |
4779 | fi | |
4780 | ||
4781 | ||
4782 | enablestring= | |
4783 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4784 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4785 | no_cache=0 | |
4786 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4787 | if test "${enable_dynamicloader+set}" = set; then | |
4788 | enableval="$enable_dynamicloader" | |
4789 | ||
4790 | if test "$enableval" = yes; then | |
4791 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4792 | else | |
4793 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4794 | fi | |
4795 | ||
4796 | else | |
4797 | ||
4798 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4799 | if test "x$LINE" != x ; then | |
4800 | eval "DEFAULT_$LINE" | |
4801 | else | |
4802 | no_cache=1 | |
4803 | fi | |
4804 | ||
4805 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4806 | ||
4807 | fi; | |
4808 | ||
4809 | eval "$ac_cv_use_dynamicloader" | |
4810 | if test "$no_cache" != 1; then | |
4811 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4812 | fi | |
4813 | ||
4814 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4815 | echo "$as_me:$LINENO: result: yes" >&5 | |
4816 | echo "${ECHO_T}yes" >&6 | |
4817 | else | |
4818 | echo "$as_me:$LINENO: result: no" >&5 | |
4819 | echo "${ECHO_T}no" >&6 | |
4820 | fi | |
4821 | ||
4822 | ||
4823 | enablestring= | |
4824 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4825 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4826 | no_cache=0 | |
4827 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4828 | if test "${enable_exceptions+set}" = set; then | |
4829 | enableval="$enable_exceptions" | |
4830 | ||
4831 | if test "$enableval" = yes; then | |
4832 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4833 | else | |
4834 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4835 | fi | |
4836 | ||
4837 | else | |
4838 | ||
4839 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4840 | if test "x$LINE" != x ; then | |
4841 | eval "DEFAULT_$LINE" | |
4842 | else | |
4843 | no_cache=1 | |
4844 | fi | |
4845 | ||
4846 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4847 | ||
4848 | fi; | |
4849 | ||
4850 | eval "$ac_cv_use_exceptions" | |
4851 | if test "$no_cache" != 1; then | |
4852 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4853 | fi | |
4854 | ||
4855 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4856 | echo "$as_me:$LINENO: result: yes" >&5 | |
4857 | echo "${ECHO_T}yes" >&6 | |
4858 | else | |
4859 | echo "$as_me:$LINENO: result: no" >&5 | |
4860 | echo "${ECHO_T}no" >&6 | |
4861 | fi | |
4862 | ||
4863 | ||
4864 | enablestring= | |
4865 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4866 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4867 | no_cache=0 | |
4868 | # Check whether --enable-ffile or --disable-ffile was given. | |
4869 | if test "${enable_ffile+set}" = set; then | |
4870 | enableval="$enable_ffile" | |
4871 | ||
4872 | if test "$enableval" = yes; then | |
4873 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4874 | else | |
4875 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4876 | fi | |
4877 | ||
4878 | else | |
4879 | ||
4880 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4881 | if test "x$LINE" != x ; then | |
4882 | eval "DEFAULT_$LINE" | |
4883 | else | |
4884 | no_cache=1 | |
4885 | fi | |
4886 | ||
4887 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4888 | ||
4889 | fi; | |
4890 | ||
4891 | eval "$ac_cv_use_ffile" | |
4892 | if test "$no_cache" != 1; then | |
4893 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4894 | fi | |
4895 | ||
4896 | if test "$wxUSE_FFILE" = yes; then | |
4897 | echo "$as_me:$LINENO: result: yes" >&5 | |
4898 | echo "${ECHO_T}yes" >&6 | |
4899 | else | |
4900 | echo "$as_me:$LINENO: result: no" >&5 | |
4901 | echo "${ECHO_T}no" >&6 | |
4902 | fi | |
4903 | ||
4904 | ||
4905 | enablestring= | |
4906 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4907 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4908 | no_cache=0 | |
4909 | # Check whether --enable-file or --disable-file was given. | |
4910 | if test "${enable_file+set}" = set; then | |
4911 | enableval="$enable_file" | |
4912 | ||
4913 | if test "$enableval" = yes; then | |
4914 | ac_cv_use_file='wxUSE_FILE=yes' | |
4915 | else | |
4916 | ac_cv_use_file='wxUSE_FILE=no' | |
4917 | fi | |
4918 | ||
4919 | else | |
4920 | ||
4921 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4922 | if test "x$LINE" != x ; then | |
4923 | eval "DEFAULT_$LINE" | |
4924 | else | |
4925 | no_cache=1 | |
4926 | fi | |
4927 | ||
4928 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4929 | ||
4930 | fi; | |
4931 | ||
4932 | eval "$ac_cv_use_file" | |
4933 | if test "$no_cache" != 1; then | |
4934 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4935 | fi | |
4936 | ||
4937 | if test "$wxUSE_FILE" = yes; then | |
4938 | echo "$as_me:$LINENO: result: yes" >&5 | |
4939 | echo "${ECHO_T}yes" >&6 | |
4940 | else | |
4941 | echo "$as_me:$LINENO: result: no" >&5 | |
4942 | echo "${ECHO_T}no" >&6 | |
4943 | fi | |
4944 | ||
4945 | ||
4946 | enablestring= | |
4947 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
4948 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
4949 | no_cache=0 | |
4950 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4951 | if test "${enable_filesystem+set}" = set; then | |
4952 | enableval="$enable_filesystem" | |
4953 | ||
4954 | if test "$enableval" = yes; then | |
4955 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4956 | else | |
4957 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4958 | fi | |
4959 | ||
4960 | else | |
4961 | ||
4962 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4963 | if test "x$LINE" != x ; then | |
4964 | eval "DEFAULT_$LINE" | |
4965 | else | |
4966 | no_cache=1 | |
4967 | fi | |
4968 | ||
4969 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4970 | ||
4971 | fi; | |
4972 | ||
4973 | eval "$ac_cv_use_filesystem" | |
4974 | if test "$no_cache" != 1; then | |
4975 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4976 | fi | |
4977 | ||
4978 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4979 | echo "$as_me:$LINENO: result: yes" >&5 | |
4980 | echo "${ECHO_T}yes" >&6 | |
4981 | else | |
4982 | echo "$as_me:$LINENO: result: no" >&5 | |
4983 | echo "${ECHO_T}no" >&6 | |
4984 | fi | |
4985 | ||
4986 | ||
4987 | enablestring= | |
4988 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4989 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4990 | no_cache=0 | |
4991 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4992 | if test "${enable_fontmap+set}" = set; then | |
4993 | enableval="$enable_fontmap" | |
4994 | ||
4995 | if test "$enableval" = yes; then | |
4996 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4997 | else | |
4998 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4999 | fi | |
5000 | ||
5001 | else | |
5002 | ||
5003 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5004 | if test "x$LINE" != x ; then | |
5005 | eval "DEFAULT_$LINE" | |
5006 | else | |
5007 | no_cache=1 | |
5008 | fi | |
5009 | ||
5010 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5011 | ||
5012 | fi; | |
5013 | ||
5014 | eval "$ac_cv_use_fontmap" | |
5015 | if test "$no_cache" != 1; then | |
5016 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5017 | fi | |
5018 | ||
5019 | if test "$wxUSE_FONTMAP" = yes; then | |
5020 | echo "$as_me:$LINENO: result: yes" >&5 | |
5021 | echo "${ECHO_T}yes" >&6 | |
5022 | else | |
5023 | echo "$as_me:$LINENO: result: no" >&5 | |
5024 | echo "${ECHO_T}no" >&6 | |
5025 | fi | |
5026 | ||
5027 | ||
5028 | enablestring= | |
5029 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5030 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5031 | no_cache=0 | |
5032 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5033 | if test "${enable_fs_inet+set}" = set; then | |
5034 | enableval="$enable_fs_inet" | |
5035 | ||
5036 | if test "$enableval" = yes; then | |
5037 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5038 | else | |
5039 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5040 | fi | |
5041 | ||
5042 | else | |
5043 | ||
5044 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5045 | if test "x$LINE" != x ; then | |
5046 | eval "DEFAULT_$LINE" | |
5047 | else | |
5048 | no_cache=1 | |
5049 | fi | |
5050 | ||
5051 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5052 | ||
5053 | fi; | |
5054 | ||
5055 | eval "$ac_cv_use_fs_inet" | |
5056 | if test "$no_cache" != 1; then | |
5057 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5058 | fi | |
5059 | ||
5060 | if test "$wxUSE_FS_INET" = yes; then | |
5061 | echo "$as_me:$LINENO: result: yes" >&5 | |
5062 | echo "${ECHO_T}yes" >&6 | |
5063 | else | |
5064 | echo "$as_me:$LINENO: result: no" >&5 | |
5065 | echo "${ECHO_T}no" >&6 | |
5066 | fi | |
5067 | ||
5068 | ||
5069 | enablestring= | |
5070 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5071 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5072 | no_cache=0 | |
5073 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5074 | if test "${enable_fs_zip+set}" = set; then | |
5075 | enableval="$enable_fs_zip" | |
5076 | ||
5077 | if test "$enableval" = yes; then | |
5078 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5079 | else | |
5080 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5081 | fi | |
5082 | ||
5083 | else | |
5084 | ||
5085 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5086 | if test "x$LINE" != x ; then | |
5087 | eval "DEFAULT_$LINE" | |
5088 | else | |
5089 | no_cache=1 | |
5090 | fi | |
5091 | ||
5092 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5093 | ||
5094 | fi; | |
5095 | ||
5096 | eval "$ac_cv_use_fs_zip" | |
5097 | if test "$no_cache" != 1; then | |
5098 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5099 | fi | |
5100 | ||
5101 | if test "$wxUSE_FS_ZIP" = yes; then | |
5102 | echo "$as_me:$LINENO: result: yes" >&5 | |
5103 | echo "${ECHO_T}yes" >&6 | |
5104 | else | |
5105 | echo "$as_me:$LINENO: result: no" >&5 | |
5106 | echo "${ECHO_T}no" >&6 | |
5107 | fi | |
5108 | ||
5109 | ||
5110 | enablestring= | |
5111 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5112 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5113 | no_cache=0 | |
5114 | # Check whether --enable-geometry or --disable-geometry was given. | |
5115 | if test "${enable_geometry+set}" = set; then | |
5116 | enableval="$enable_geometry" | |
5117 | ||
5118 | if test "$enableval" = yes; then | |
5119 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5120 | else | |
5121 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5122 | fi | |
5123 | ||
5124 | else | |
5125 | ||
5126 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5127 | if test "x$LINE" != x ; then | |
5128 | eval "DEFAULT_$LINE" | |
5129 | else | |
5130 | no_cache=1 | |
5131 | fi | |
5132 | ||
5133 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5134 | ||
5135 | fi; | |
5136 | ||
5137 | eval "$ac_cv_use_geometry" | |
5138 | if test "$no_cache" != 1; then | |
5139 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5140 | fi | |
5141 | ||
5142 | if test "$wxUSE_GEOMETRY" = yes; then | |
5143 | echo "$as_me:$LINENO: result: yes" >&5 | |
5144 | echo "${ECHO_T}yes" >&6 | |
5145 | else | |
5146 | echo "$as_me:$LINENO: result: no" >&5 | |
5147 | echo "${ECHO_T}no" >&6 | |
5148 | fi | |
5149 | ||
5150 | ||
5151 | enablestring= | |
5152 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5153 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5154 | no_cache=0 | |
5155 | # Check whether --enable-log or --disable-log was given. | |
5156 | if test "${enable_log+set}" = set; then | |
5157 | enableval="$enable_log" | |
5158 | ||
5159 | if test "$enableval" = yes; then | |
5160 | ac_cv_use_log='wxUSE_LOG=yes' | |
5161 | else | |
5162 | ac_cv_use_log='wxUSE_LOG=no' | |
5163 | fi | |
5164 | ||
5165 | else | |
5166 | ||
5167 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5168 | if test "x$LINE" != x ; then | |
5169 | eval "DEFAULT_$LINE" | |
5170 | else | |
5171 | no_cache=1 | |
5172 | fi | |
5173 | ||
5174 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5175 | ||
5176 | fi; | |
5177 | ||
5178 | eval "$ac_cv_use_log" | |
5179 | if test "$no_cache" != 1; then | |
5180 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5181 | fi | |
5182 | ||
5183 | if test "$wxUSE_LOG" = yes; then | |
5184 | echo "$as_me:$LINENO: result: yes" >&5 | |
5185 | echo "${ECHO_T}yes" >&6 | |
5186 | else | |
5187 | echo "$as_me:$LINENO: result: no" >&5 | |
5188 | echo "${ECHO_T}no" >&6 | |
5189 | fi | |
5190 | ||
5191 | ||
5192 | enablestring= | |
5193 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5194 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5195 | no_cache=0 | |
5196 | # Check whether --enable-longlong or --disable-longlong was given. | |
5197 | if test "${enable_longlong+set}" = set; then | |
5198 | enableval="$enable_longlong" | |
5199 | ||
5200 | if test "$enableval" = yes; then | |
5201 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5202 | else | |
5203 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5204 | fi | |
5205 | ||
5206 | else | |
5207 | ||
5208 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5209 | if test "x$LINE" != x ; then | |
5210 | eval "DEFAULT_$LINE" | |
5211 | else | |
5212 | no_cache=1 | |
5213 | fi | |
5214 | ||
5215 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5216 | ||
5217 | fi; | |
5218 | ||
5219 | eval "$ac_cv_use_longlong" | |
5220 | if test "$no_cache" != 1; then | |
5221 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5222 | fi | |
5223 | ||
5224 | if test "$wxUSE_LONGLONG" = yes; then | |
5225 | echo "$as_me:$LINENO: result: yes" >&5 | |
5226 | echo "${ECHO_T}yes" >&6 | |
5227 | else | |
5228 | echo "$as_me:$LINENO: result: no" >&5 | |
5229 | echo "${ECHO_T}no" >&6 | |
5230 | fi | |
5231 | ||
5232 | ||
5233 | enablestring= | |
5234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5235 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5236 | no_cache=0 | |
5237 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5238 | if test "${enable_mimetype+set}" = set; then | |
5239 | enableval="$enable_mimetype" | |
5240 | ||
5241 | if test "$enableval" = yes; then | |
5242 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5243 | else | |
5244 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5245 | fi | |
5246 | ||
5247 | else | |
5248 | ||
5249 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5250 | if test "x$LINE" != x ; then | |
5251 | eval "DEFAULT_$LINE" | |
5252 | else | |
5253 | no_cache=1 | |
5254 | fi | |
5255 | ||
5256 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5257 | ||
5258 | fi; | |
5259 | ||
5260 | eval "$ac_cv_use_mimetype" | |
5261 | if test "$no_cache" != 1; then | |
5262 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5263 | fi | |
5264 | ||
5265 | if test "$wxUSE_MIMETYPE" = yes; then | |
5266 | echo "$as_me:$LINENO: result: yes" >&5 | |
5267 | echo "${ECHO_T}yes" >&6 | |
5268 | else | |
5269 | echo "$as_me:$LINENO: result: no" >&5 | |
5270 | echo "${ECHO_T}no" >&6 | |
5271 | fi | |
5272 | ||
5273 | ||
5274 | enablestring= | |
5275 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5276 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5277 | no_cache=0 | |
5278 | # Check whether --enable-mslu or --disable-mslu was given. | |
5279 | if test "${enable_mslu+set}" = set; then | |
5280 | enableval="$enable_mslu" | |
5281 | ||
5282 | if test "$enableval" = yes; then | |
5283 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5284 | else | |
5285 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5286 | fi | |
5287 | ||
5288 | else | |
5289 | ||
5290 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5291 | if test "x$LINE" != x ; then | |
5292 | eval "DEFAULT_$LINE" | |
5293 | else | |
5294 | no_cache=1 | |
5295 | fi | |
5296 | ||
5297 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5298 | ||
5299 | fi; | |
5300 | ||
5301 | eval "$ac_cv_use_mslu" | |
5302 | if test "$no_cache" != 1; then | |
5303 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5304 | fi | |
5305 | ||
5306 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5307 | echo "$as_me:$LINENO: result: yes" >&5 | |
5308 | echo "${ECHO_T}yes" >&6 | |
5309 | else | |
5310 | echo "$as_me:$LINENO: result: no" >&5 | |
5311 | echo "${ECHO_T}no" >&6 | |
5312 | fi | |
5313 | ||
5314 | ||
5315 | enablestring= | |
5316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5317 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5318 | no_cache=0 | |
5319 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5320 | if test "${enable_snglinst+set}" = set; then | |
5321 | enableval="$enable_snglinst" | |
5322 | ||
5323 | if test "$enableval" = yes; then | |
5324 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5325 | else | |
5326 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5327 | fi | |
5328 | ||
5329 | else | |
5330 | ||
5331 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5332 | if test "x$LINE" != x ; then | |
5333 | eval "DEFAULT_$LINE" | |
5334 | else | |
5335 | no_cache=1 | |
5336 | fi | |
5337 | ||
5338 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5339 | ||
5340 | fi; | |
5341 | ||
5342 | eval "$ac_cv_use_snglinst" | |
5343 | if test "$no_cache" != 1; then | |
5344 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5345 | fi | |
5346 | ||
5347 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5348 | echo "$as_me:$LINENO: result: yes" >&5 | |
5349 | echo "${ECHO_T}yes" >&6 | |
5350 | else | |
5351 | echo "$as_me:$LINENO: result: no" >&5 | |
5352 | echo "${ECHO_T}no" >&6 | |
5353 | fi | |
5354 | ||
5355 | ||
5356 | enablestring= | |
5357 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5358 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5359 | no_cache=0 | |
5360 | # Check whether --enable-streams or --disable-streams was given. | |
5361 | if test "${enable_streams+set}" = set; then | |
5362 | enableval="$enable_streams" | |
5363 | ||
5364 | if test "$enableval" = yes; then | |
5365 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5366 | else | |
5367 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5368 | fi | |
5369 | ||
5370 | else | |
5371 | ||
5372 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5373 | if test "x$LINE" != x ; then | |
5374 | eval "DEFAULT_$LINE" | |
5375 | else | |
5376 | no_cache=1 | |
5377 | fi | |
5378 | ||
5379 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5380 | ||
5381 | fi; | |
5382 | ||
5383 | eval "$ac_cv_use_streams" | |
5384 | if test "$no_cache" != 1; then | |
5385 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5386 | fi | |
5387 | ||
5388 | if test "$wxUSE_STREAMS" = yes; then | |
5389 | echo "$as_me:$LINENO: result: yes" >&5 | |
5390 | echo "${ECHO_T}yes" >&6 | |
5391 | else | |
5392 | echo "$as_me:$LINENO: result: no" >&5 | |
5393 | echo "${ECHO_T}no" >&6 | |
5394 | fi | |
5395 | ||
5396 | ||
5397 | enablestring= | |
5398 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5399 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5400 | no_cache=0 | |
5401 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5402 | if test "${enable_std_iostreams+set}" = set; then | |
5403 | enableval="$enable_std_iostreams" | |
5404 | ||
5405 | if test "$enableval" = yes; then | |
5406 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5407 | else | |
5408 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5409 | fi | |
5410 | ||
5411 | else | |
5412 | ||
5413 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5414 | if test "x$LINE" != x ; then | |
5415 | eval "DEFAULT_$LINE" | |
5416 | else | |
5417 | no_cache=1 | |
5418 | fi | |
5419 | ||
5420 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5421 | ||
5422 | fi; | |
5423 | ||
5424 | eval "$ac_cv_use_std_iostreams" | |
5425 | if test "$no_cache" != 1; then | |
5426 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5427 | fi | |
5428 | ||
5429 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5430 | echo "$as_me:$LINENO: result: yes" >&5 | |
5431 | echo "${ECHO_T}yes" >&6 | |
5432 | else | |
5433 | echo "$as_me:$LINENO: result: no" >&5 | |
5434 | echo "${ECHO_T}no" >&6 | |
5435 | fi | |
5436 | ||
5437 | ||
5438 | enablestring= | |
5439 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5440 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5441 | no_cache=0 | |
5442 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5443 | if test "${enable_stopwatch+set}" = set; then | |
5444 | enableval="$enable_stopwatch" | |
5445 | ||
5446 | if test "$enableval" = yes; then | |
5447 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5448 | else | |
5449 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5450 | fi | |
5451 | ||
5452 | else | |
5453 | ||
5454 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5455 | if test "x$LINE" != x ; then | |
5456 | eval "DEFAULT_$LINE" | |
5457 | else | |
5458 | no_cache=1 | |
5459 | fi | |
5460 | ||
5461 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5462 | ||
5463 | fi; | |
5464 | ||
5465 | eval "$ac_cv_use_stopwatch" | |
5466 | if test "$no_cache" != 1; then | |
5467 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5468 | fi | |
5469 | ||
5470 | if test "$wxUSE_STOPWATCH" = yes; then | |
5471 | echo "$as_me:$LINENO: result: yes" >&5 | |
5472 | echo "${ECHO_T}yes" >&6 | |
5473 | else | |
5474 | echo "$as_me:$LINENO: result: no" >&5 | |
5475 | echo "${ECHO_T}no" >&6 | |
5476 | fi | |
5477 | ||
5478 | ||
5479 | enablestring= | |
5480 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5481 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5482 | no_cache=0 | |
5483 | # Check whether --enable-system_options or --disable-system_options was given. | |
5484 | if test "${enable_system_options+set}" = set; then | |
5485 | enableval="$enable_system_options" | |
5486 | ||
5487 | if test "$enableval" = yes; then | |
5488 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5489 | else | |
5490 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5491 | fi | |
5492 | ||
5493 | else | |
5494 | ||
5495 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5496 | if test "x$LINE" != x ; then | |
5497 | eval "DEFAULT_$LINE" | |
5498 | else | |
5499 | no_cache=1 | |
5500 | fi | |
5501 | ||
5502 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5503 | ||
5504 | fi; | |
5505 | ||
5506 | eval "$ac_cv_use_system_options" | |
5507 | if test "$no_cache" != 1; then | |
5508 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5509 | fi | |
5510 | ||
5511 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5512 | echo "$as_me:$LINENO: result: yes" >&5 | |
5513 | echo "${ECHO_T}yes" >&6 | |
5514 | else | |
5515 | echo "$as_me:$LINENO: result: no" >&5 | |
5516 | echo "${ECHO_T}no" >&6 | |
5517 | fi | |
5518 | ||
5519 | ||
5520 | enablestring= | |
5521 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5522 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5523 | no_cache=0 | |
5524 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5525 | if test "${enable_textbuf+set}" = set; then | |
5526 | enableval="$enable_textbuf" | |
5527 | ||
5528 | if test "$enableval" = yes; then | |
5529 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5530 | else | |
5531 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5532 | fi | |
5533 | ||
5534 | else | |
5535 | ||
5536 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5537 | if test "x$LINE" != x ; then | |
5538 | eval "DEFAULT_$LINE" | |
5539 | else | |
5540 | no_cache=1 | |
5541 | fi | |
5542 | ||
5543 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5544 | ||
5545 | fi; | |
5546 | ||
5547 | eval "$ac_cv_use_textbuf" | |
5548 | if test "$no_cache" != 1; then | |
5549 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5550 | fi | |
5551 | ||
5552 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5553 | echo "$as_me:$LINENO: result: yes" >&5 | |
5554 | echo "${ECHO_T}yes" >&6 | |
5555 | else | |
5556 | echo "$as_me:$LINENO: result: no" >&5 | |
5557 | echo "${ECHO_T}no" >&6 | |
5558 | fi | |
5559 | ||
5560 | ||
5561 | enablestring= | |
5562 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5563 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5564 | no_cache=0 | |
5565 | # Check whether --enable-textfile or --disable-textfile was given. | |
5566 | if test "${enable_textfile+set}" = set; then | |
5567 | enableval="$enable_textfile" | |
5568 | ||
5569 | if test "$enableval" = yes; then | |
5570 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5571 | else | |
5572 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5573 | fi | |
5574 | ||
5575 | else | |
5576 | ||
5577 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5578 | if test "x$LINE" != x ; then | |
5579 | eval "DEFAULT_$LINE" | |
5580 | else | |
5581 | no_cache=1 | |
5582 | fi | |
5583 | ||
5584 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5585 | ||
5586 | fi; | |
5587 | ||
5588 | eval "$ac_cv_use_textfile" | |
5589 | if test "$no_cache" != 1; then | |
5590 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5591 | fi | |
5592 | ||
5593 | if test "$wxUSE_TEXTFILE" = yes; then | |
5594 | echo "$as_me:$LINENO: result: yes" >&5 | |
5595 | echo "${ECHO_T}yes" >&6 | |
5596 | else | |
5597 | echo "$as_me:$LINENO: result: no" >&5 | |
5598 | echo "${ECHO_T}no" >&6 | |
5599 | fi | |
5600 | ||
5601 | ||
5602 | enablestring= | |
5603 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5604 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5605 | no_cache=0 | |
5606 | # Check whether --enable-timer or --disable-timer was given. | |
5607 | if test "${enable_timer+set}" = set; then | |
5608 | enableval="$enable_timer" | |
5609 | ||
5610 | if test "$enableval" = yes; then | |
5611 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5612 | else | |
5613 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5614 | fi | |
5615 | ||
5616 | else | |
5617 | ||
5618 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5619 | if test "x$LINE" != x ; then | |
5620 | eval "DEFAULT_$LINE" | |
5621 | else | |
5622 | no_cache=1 | |
5623 | fi | |
5624 | ||
5625 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5626 | ||
5627 | fi; | |
5628 | ||
5629 | eval "$ac_cv_use_timer" | |
5630 | if test "$no_cache" != 1; then | |
5631 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5632 | fi | |
5633 | ||
5634 | if test "$wxUSE_TIMER" = yes; then | |
5635 | echo "$as_me:$LINENO: result: yes" >&5 | |
5636 | echo "${ECHO_T}yes" >&6 | |
5637 | else | |
5638 | echo "$as_me:$LINENO: result: no" >&5 | |
5639 | echo "${ECHO_T}no" >&6 | |
5640 | fi | |
5641 | ||
5642 | ||
5643 | enablestring= | |
5644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5645 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5646 | no_cache=0 | |
5647 | # Check whether --enable-unicode or --disable-unicode was given. | |
5648 | if test "${enable_unicode+set}" = set; then | |
5649 | enableval="$enable_unicode" | |
5650 | ||
5651 | if test "$enableval" = yes; then | |
5652 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5653 | else | |
5654 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5655 | fi | |
5656 | ||
5657 | else | |
5658 | ||
5659 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5660 | if test "x$LINE" != x ; then | |
5661 | eval "DEFAULT_$LINE" | |
5662 | else | |
5663 | no_cache=1 | |
5664 | fi | |
5665 | ||
5666 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5667 | ||
5668 | fi; | |
5669 | ||
5670 | eval "$ac_cv_use_unicode" | |
5671 | if test "$no_cache" != 1; then | |
5672 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5673 | fi | |
5674 | ||
5675 | if test "$wxUSE_UNICODE" = yes; then | |
5676 | echo "$as_me:$LINENO: result: yes" >&5 | |
5677 | echo "${ECHO_T}yes" >&6 | |
5678 | else | |
5679 | echo "$as_me:$LINENO: result: no" >&5 | |
5680 | echo "${ECHO_T}no" >&6 | |
5681 | fi | |
5682 | ||
5683 | ||
5684 | enablestring= | |
5685 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5686 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5687 | no_cache=0 | |
5688 | # Check whether --enable-sound or --disable-sound was given. | |
5689 | if test "${enable_sound+set}" = set; then | |
5690 | enableval="$enable_sound" | |
5691 | ||
5692 | if test "$enableval" = yes; then | |
5693 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5694 | else | |
5695 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5696 | fi | |
5697 | ||
5698 | else | |
5699 | ||
5700 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5701 | if test "x$LINE" != x ; then | |
5702 | eval "DEFAULT_$LINE" | |
5703 | else | |
5704 | no_cache=1 | |
5705 | fi | |
5706 | ||
5707 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5708 | ||
5709 | fi; | |
5710 | ||
5711 | eval "$ac_cv_use_sound" | |
5712 | if test "$no_cache" != 1; then | |
5713 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5714 | fi | |
5715 | ||
5716 | if test "$wxUSE_SOUND" = yes; then | |
5717 | echo "$as_me:$LINENO: result: yes" >&5 | |
5718 | echo "${ECHO_T}yes" >&6 | |
5719 | else | |
5720 | echo "$as_me:$LINENO: result: no" >&5 | |
5721 | echo "${ECHO_T}no" >&6 | |
5722 | fi | |
5723 | ||
5724 | ||
5725 | enablestring= | |
5726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5727 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5728 | no_cache=0 | |
5729 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5730 | if test "${enable_wxprintfv+set}" = set; then | |
5731 | enableval="$enable_wxprintfv" | |
5732 | ||
5733 | if test "$enableval" = yes; then | |
5734 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5735 | else | |
5736 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5737 | fi | |
5738 | ||
5739 | else | |
5740 | ||
5741 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5742 | if test "x$LINE" != x ; then | |
5743 | eval "DEFAULT_$LINE" | |
5744 | else | |
5745 | no_cache=1 | |
5746 | fi | |
5747 | ||
5748 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5749 | ||
5750 | fi; | |
5751 | ||
5752 | eval "$ac_cv_use_wxprintfv" | |
5753 | if test "$no_cache" != 1; then | |
5754 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5755 | fi | |
5756 | ||
5757 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5758 | echo "$as_me:$LINENO: result: yes" >&5 | |
5759 | echo "${ECHO_T}yes" >&6 | |
5760 | else | |
5761 | echo "$as_me:$LINENO: result: no" >&5 | |
5762 | echo "${ECHO_T}no" >&6 | |
5763 | fi | |
5764 | ||
5765 | ||
5766 | enablestring= | |
5767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5768 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5769 | no_cache=0 | |
5770 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5771 | if test "${enable_zipstream+set}" = set; then | |
5772 | enableval="$enable_zipstream" | |
5773 | ||
5774 | if test "$enableval" = yes; then | |
5775 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5776 | else | |
5777 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5778 | fi | |
5779 | ||
5780 | else | |
5781 | ||
5782 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5783 | if test "x$LINE" != x ; then | |
5784 | eval "DEFAULT_$LINE" | |
5785 | else | |
5786 | no_cache=1 | |
5787 | fi | |
5788 | ||
5789 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5790 | ||
5791 | fi; | |
5792 | ||
5793 | eval "$ac_cv_use_zipstream" | |
5794 | if test "$no_cache" != 1; then | |
5795 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5796 | fi | |
5797 | ||
5798 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5799 | echo "$as_me:$LINENO: result: yes" >&5 | |
5800 | echo "${ECHO_T}yes" >&6 | |
5801 | else | |
5802 | echo "$as_me:$LINENO: result: no" >&5 | |
5803 | echo "${ECHO_T}no" >&6 | |
5804 | fi | |
5805 | ||
5806 | ||
a848cd7e SC |
5807 | |
5808 | enablestring= | |
5809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5810 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5811 | no_cache=0 | |
5812 | # Check whether --enable-url or --disable-url was given. | |
5813 | if test "${enable_url+set}" = set; then | |
5814 | enableval="$enable_url" | |
5815 | ||
5816 | if test "$enableval" = yes; then | |
5817 | ac_cv_use_url='wxUSE_URL=yes' | |
5818 | else | |
5819 | ac_cv_use_url='wxUSE_URL=no' | |
5820 | fi | |
5821 | ||
5822 | else | |
5823 | ||
5824 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5825 | if test "x$LINE" != x ; then | |
5826 | eval "DEFAULT_$LINE" | |
5827 | else | |
5828 | no_cache=1 | |
5829 | fi | |
5830 | ||
5831 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5832 | ||
5833 | fi; | |
5834 | ||
5835 | eval "$ac_cv_use_url" | |
5836 | if test "$no_cache" != 1; then | |
5837 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5838 | fi | |
5839 | ||
5840 | if test "$wxUSE_URL" = yes; then | |
5841 | echo "$as_me:$LINENO: result: yes" >&5 | |
5842 | echo "${ECHO_T}yes" >&6 | |
5843 | else | |
5844 | echo "$as_me:$LINENO: result: no" >&5 | |
5845 | echo "${ECHO_T}no" >&6 | |
5846 | fi | |
5847 | ||
5848 | ||
5849 | enablestring= | |
5850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5851 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5852 | no_cache=0 | |
5853 | # Check whether --enable-protocol or --disable-protocol was given. | |
5854 | if test "${enable_protocol+set}" = set; then | |
5855 | enableval="$enable_protocol" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5859 | else | |
5860 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5873 | ||
5874 | fi; | |
5875 | ||
5876 | eval "$ac_cv_use_protocol" | |
5877 | if test "$no_cache" != 1; then | |
5878 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5879 | fi | |
5880 | ||
5881 | if test "$wxUSE_PROTOCOL" = yes; then | |
5882 | echo "$as_me:$LINENO: result: yes" >&5 | |
5883 | echo "${ECHO_T}yes" >&6 | |
5884 | else | |
5885 | echo "$as_me:$LINENO: result: no" >&5 | |
5886 | echo "${ECHO_T}no" >&6 | |
5887 | fi | |
5888 | ||
5889 | ||
5890 | enablestring= | |
5891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5892 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5893 | no_cache=0 | |
5894 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5895 | if test "${enable_protocol_http+set}" = set; then | |
5896 | enableval="$enable_protocol_http" | |
5897 | ||
5898 | if test "$enableval" = yes; then | |
5899 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5900 | else | |
5901 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5902 | fi | |
5903 | ||
5904 | else | |
5905 | ||
5906 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5907 | if test "x$LINE" != x ; then | |
5908 | eval "DEFAULT_$LINE" | |
5909 | else | |
5910 | no_cache=1 | |
5911 | fi | |
5912 | ||
5913 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5914 | ||
5915 | fi; | |
5916 | ||
5917 | eval "$ac_cv_use_protocol_http" | |
5918 | if test "$no_cache" != 1; then | |
5919 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5920 | fi | |
5921 | ||
5922 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5923 | echo "$as_me:$LINENO: result: yes" >&5 | |
5924 | echo "${ECHO_T}yes" >&6 | |
5925 | else | |
5926 | echo "$as_me:$LINENO: result: no" >&5 | |
5927 | echo "${ECHO_T}no" >&6 | |
5928 | fi | |
5929 | ||
5930 | ||
5931 | enablestring= | |
5932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5933 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5934 | no_cache=0 | |
5935 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5936 | if test "${enable_protocol_ftp+set}" = set; then | |
5937 | enableval="$enable_protocol_ftp" | |
5938 | ||
5939 | if test "$enableval" = yes; then | |
5940 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5941 | else | |
5942 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5943 | fi | |
5944 | ||
5945 | else | |
5946 | ||
5947 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5948 | if test "x$LINE" != x ; then | |
5949 | eval "DEFAULT_$LINE" | |
5950 | else | |
5951 | no_cache=1 | |
5952 | fi | |
5953 | ||
5954 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5955 | ||
5956 | fi; | |
5957 | ||
5958 | eval "$ac_cv_use_protocol_ftp" | |
5959 | if test "$no_cache" != 1; then | |
5960 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5961 | fi | |
5962 | ||
5963 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5964 | echo "$as_me:$LINENO: result: yes" >&5 | |
5965 | echo "${ECHO_T}yes" >&6 | |
5966 | else | |
5967 | echo "$as_me:$LINENO: result: no" >&5 | |
5968 | echo "${ECHO_T}no" >&6 | |
5969 | fi | |
5970 | ||
5971 | ||
5972 | enablestring= | |
5973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5974 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5975 | no_cache=0 | |
5976 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5977 | if test "${enable_protocol_file+set}" = set; then | |
5978 | enableval="$enable_protocol_file" | |
5979 | ||
5980 | if test "$enableval" = yes; then | |
5981 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5982 | else | |
5983 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5984 | fi | |
5985 | ||
5986 | else | |
5987 | ||
5988 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5989 | if test "x$LINE" != x ; then | |
5990 | eval "DEFAULT_$LINE" | |
5991 | else | |
5992 | no_cache=1 | |
5993 | fi | |
5994 | ||
5995 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5996 | ||
5997 | fi; | |
5998 | ||
5999 | eval "$ac_cv_use_protocol_file" | |
6000 | if test "$no_cache" != 1; then | |
6001 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6002 | fi | |
6003 | ||
6004 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6005 | echo "$as_me:$LINENO: result: yes" >&5 | |
6006 | echo "${ECHO_T}yes" >&6 | |
6007 | else | |
6008 | echo "$as_me:$LINENO: result: no" >&5 | |
6009 | echo "${ECHO_T}no" >&6 | |
6010 | fi | |
6011 | ||
6012 | ||
6013 | ||
6014 | ||
6015 | ||
6016 | enablestring= | |
6017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6018 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6019 | no_cache=0 | |
6020 | # Check whether --enable-threads or --disable-threads was given. | |
6021 | if test "${enable_threads+set}" = set; then | |
6022 | enableval="$enable_threads" | |
6023 | ||
6024 | if test "$enableval" = yes; then | |
6025 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6026 | else | |
6027 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6028 | fi | |
6029 | ||
6030 | else | |
6031 | ||
6032 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6033 | if test "x$LINE" != x ; then | |
6034 | eval "DEFAULT_$LINE" | |
6035 | else | |
6036 | no_cache=1 | |
6037 | fi | |
6038 | ||
6039 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6040 | ||
6041 | fi; | |
6042 | ||
6043 | eval "$ac_cv_use_threads" | |
6044 | if test "$no_cache" != 1; then | |
6045 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6046 | fi | |
6047 | ||
6048 | if test "$wxUSE_THREADS" = yes; then | |
6049 | echo "$as_me:$LINENO: result: yes" >&5 | |
6050 | echo "${ECHO_T}yes" >&6 | |
6051 | else | |
6052 | echo "$as_me:$LINENO: result: no" >&5 | |
6053 | echo "${ECHO_T}no" >&6 | |
6054 | fi | |
6055 | ||
6056 | ||
6057 | if test "$wxUSE_GUI" = "yes"; then | |
6058 | ||
6059 | ||
6060 | ||
6061 | enablestring= | |
6062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6063 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6064 | no_cache=0 | |
6065 | # Check whether --enable-docview or --disable-docview was given. | |
6066 | if test "${enable_docview+set}" = set; then | |
6067 | enableval="$enable_docview" | |
6068 | ||
6069 | if test "$enableval" = yes; then | |
6070 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6071 | else | |
6072 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6073 | fi | |
6074 | ||
6075 | else | |
6076 | ||
6077 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6078 | if test "x$LINE" != x ; then | |
6079 | eval "DEFAULT_$LINE" | |
6080 | else | |
6081 | no_cache=1 | |
6082 | fi | |
6083 | ||
6084 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6085 | ||
6086 | fi; | |
6087 | ||
6088 | eval "$ac_cv_use_docview" | |
6089 | if test "$no_cache" != 1; then | |
6090 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6091 | fi | |
6092 | ||
6093 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6094 | echo "$as_me:$LINENO: result: yes" >&5 | |
6095 | echo "${ECHO_T}yes" >&6 | |
6096 | else | |
6097 | echo "$as_me:$LINENO: result: no" >&5 | |
6098 | echo "${ECHO_T}no" >&6 | |
6099 | fi | |
6100 | ||
6101 | ||
6102 | enablestring= | |
6103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6104 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6105 | no_cache=0 | |
6106 | # Check whether --enable-help or --disable-help was given. | |
6107 | if test "${enable_help+set}" = set; then | |
6108 | enableval="$enable_help" | |
6109 | ||
6110 | if test "$enableval" = yes; then | |
6111 | ac_cv_use_help='wxUSE_HELP=yes' | |
6112 | else | |
6113 | ac_cv_use_help='wxUSE_HELP=no' | |
6114 | fi | |
6115 | ||
6116 | else | |
6117 | ||
6118 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6119 | if test "x$LINE" != x ; then | |
6120 | eval "DEFAULT_$LINE" | |
6121 | else | |
6122 | no_cache=1 | |
6123 | fi | |
6124 | ||
6125 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6126 | ||
6127 | fi; | |
6128 | ||
6129 | eval "$ac_cv_use_help" | |
6130 | if test "$no_cache" != 1; then | |
6131 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6132 | fi | |
6133 | ||
6134 | if test "$wxUSE_HELP" = yes; then | |
6135 | echo "$as_me:$LINENO: result: yes" >&5 | |
6136 | echo "${ECHO_T}yes" >&6 | |
6137 | else | |
6138 | echo "$as_me:$LINENO: result: no" >&5 | |
6139 | echo "${ECHO_T}no" >&6 | |
6140 | fi | |
6141 | ||
6142 | ||
6143 | enablestring= | |
6144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6145 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6146 | no_cache=0 | |
6147 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6148 | if test "${enable_mshtmlhelp+set}" = set; then | |
6149 | enableval="$enable_mshtmlhelp" | |
6150 | ||
6151 | if test "$enableval" = yes; then | |
6152 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6153 | else | |
6154 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6155 | fi | |
6156 | ||
6157 | else | |
6158 | ||
6159 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6160 | if test "x$LINE" != x ; then | |
6161 | eval "DEFAULT_$LINE" | |
6162 | else | |
6163 | no_cache=1 | |
6164 | fi | |
6165 | ||
6166 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6167 | ||
6168 | fi; | |
6169 | ||
6170 | eval "$ac_cv_use_mshtmlhelp" | |
6171 | if test "$no_cache" != 1; then | |
6172 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6173 | fi | |
6174 | ||
6175 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6176 | echo "$as_me:$LINENO: result: yes" >&5 | |
6177 | echo "${ECHO_T}yes" >&6 | |
6178 | else | |
6179 | echo "$as_me:$LINENO: result: no" >&5 | |
6180 | echo "${ECHO_T}no" >&6 | |
6181 | fi | |
6182 | ||
6183 | ||
6184 | enablestring= | |
6185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6186 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6187 | no_cache=0 | |
6188 | # Check whether --enable-html or --disable-html was given. | |
6189 | if test "${enable_html+set}" = set; then | |
6190 | enableval="$enable_html" | |
6191 | ||
6192 | if test "$enableval" = yes; then | |
6193 | ac_cv_use_html='wxUSE_HTML=yes' | |
6194 | else | |
6195 | ac_cv_use_html='wxUSE_HTML=no' | |
6196 | fi | |
6197 | ||
6198 | else | |
6199 | ||
6200 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6201 | if test "x$LINE" != x ; then | |
6202 | eval "DEFAULT_$LINE" | |
6203 | else | |
6204 | no_cache=1 | |
6205 | fi | |
6206 | ||
6207 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6208 | ||
6209 | fi; | |
6210 | ||
6211 | eval "$ac_cv_use_html" | |
6212 | if test "$no_cache" != 1; then | |
6213 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6214 | fi | |
6215 | ||
6216 | if test "$wxUSE_HTML" = yes; then | |
6217 | echo "$as_me:$LINENO: result: yes" >&5 | |
6218 | echo "${ECHO_T}yes" >&6 | |
6219 | else | |
6220 | echo "$as_me:$LINENO: result: no" >&5 | |
6221 | echo "${ECHO_T}no" >&6 | |
6222 | fi | |
6223 | ||
6224 | ||
6225 | enablestring= | |
6226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6227 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6228 | no_cache=0 | |
6229 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6230 | if test "${enable_htmlhelp+set}" = set; then | |
6231 | enableval="$enable_htmlhelp" | |
6232 | ||
6233 | if test "$enableval" = yes; then | |
6234 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6235 | else | |
6236 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6237 | fi | |
6238 | ||
6239 | else | |
6240 | ||
6241 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6242 | if test "x$LINE" != x ; then | |
6243 | eval "DEFAULT_$LINE" | |
6244 | else | |
6245 | no_cache=1 | |
6246 | fi | |
6247 | ||
6248 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6249 | ||
6250 | fi; | |
6251 | ||
6252 | eval "$ac_cv_use_htmlhelp" | |
6253 | if test "$no_cache" != 1; then | |
6254 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6255 | fi | |
6256 | ||
6257 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6258 | echo "$as_me:$LINENO: result: yes" >&5 | |
6259 | echo "${ECHO_T}yes" >&6 | |
6260 | else | |
6261 | echo "$as_me:$LINENO: result: no" >&5 | |
6262 | echo "${ECHO_T}no" >&6 | |
6263 | fi | |
6264 | ||
6265 | ||
9a8f0513 VS |
6266 | enablestring= |
6267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6268 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6269 | no_cache=0 | |
6270 | # Check whether --enable-xrc or --disable-xrc was given. | |
6271 | if test "${enable_xrc+set}" = set; then | |
6272 | enableval="$enable_xrc" | |
6273 | ||
6274 | if test "$enableval" = yes; then | |
6275 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6276 | else | |
6277 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6278 | fi | |
6279 | ||
6280 | else | |
6281 | ||
6282 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6283 | if test "x$LINE" != x ; then | |
6284 | eval "DEFAULT_$LINE" | |
6285 | else | |
6286 | no_cache=1 | |
6287 | fi | |
6288 | ||
6289 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6290 | ||
6291 | fi; | |
6292 | ||
6293 | eval "$ac_cv_use_xrc" | |
6294 | if test "$no_cache" != 1; then | |
6295 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6296 | fi | |
6297 | ||
6298 | if test "$wxUSE_XRC" = yes; then | |
6299 | echo "$as_me:$LINENO: result: yes" >&5 | |
6300 | echo "${ECHO_T}yes" >&6 | |
6301 | else | |
6302 | echo "$as_me:$LINENO: result: no" >&5 | |
6303 | echo "${ECHO_T}no" >&6 | |
6304 | fi | |
6305 | ||
6306 | ||
a848cd7e SC |
6307 | enablestring= |
6308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6309 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6310 | no_cache=0 | |
6311 | # Check whether --enable-constraints or --disable-constraints was given. | |
6312 | if test "${enable_constraints+set}" = set; then | |
6313 | enableval="$enable_constraints" | |
6314 | ||
6315 | if test "$enableval" = yes; then | |
6316 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6317 | else | |
6318 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6319 | fi | |
6320 | ||
6321 | else | |
6322 | ||
6323 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6324 | if test "x$LINE" != x ; then | |
6325 | eval "DEFAULT_$LINE" | |
6326 | else | |
6327 | no_cache=1 | |
6328 | fi | |
6329 | ||
6330 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6331 | ||
6332 | fi; | |
6333 | ||
6334 | eval "$ac_cv_use_constraints" | |
6335 | if test "$no_cache" != 1; then | |
6336 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6337 | fi | |
6338 | ||
6339 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6340 | echo "$as_me:$LINENO: result: yes" >&5 | |
6341 | echo "${ECHO_T}yes" >&6 | |
6342 | else | |
6343 | echo "$as_me:$LINENO: result: no" >&5 | |
6344 | echo "${ECHO_T}no" >&6 | |
6345 | fi | |
6346 | ||
6347 | ||
6348 | enablestring= | |
6349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6350 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6351 | no_cache=0 | |
6352 | # Check whether --enable-printarch or --disable-printarch was given. | |
6353 | if test "${enable_printarch+set}" = set; then | |
6354 | enableval="$enable_printarch" | |
6355 | ||
6356 | if test "$enableval" = yes; then | |
6357 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6358 | else | |
6359 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6360 | fi | |
6361 | ||
6362 | else | |
6363 | ||
6364 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6365 | if test "x$LINE" != x ; then | |
6366 | eval "DEFAULT_$LINE" | |
6367 | else | |
6368 | no_cache=1 | |
6369 | fi | |
6370 | ||
6371 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6372 | ||
6373 | fi; | |
6374 | ||
6375 | eval "$ac_cv_use_printarch" | |
6376 | if test "$no_cache" != 1; then | |
6377 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6378 | fi | |
6379 | ||
6380 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6381 | echo "$as_me:$LINENO: result: yes" >&5 | |
6382 | echo "${ECHO_T}yes" >&6 | |
6383 | else | |
6384 | echo "$as_me:$LINENO: result: no" >&5 | |
6385 | echo "${ECHO_T}no" >&6 | |
6386 | fi | |
6387 | ||
6388 | ||
6389 | enablestring= | |
6390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6391 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6392 | no_cache=0 | |
6393 | # Check whether --enable-mdi or --disable-mdi was given. | |
6394 | if test "${enable_mdi+set}" = set; then | |
6395 | enableval="$enable_mdi" | |
6396 | ||
6397 | if test "$enableval" = yes; then | |
8a7b1113 | 6398 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6399 | else |
8a7b1113 | 6400 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6401 | fi |
6402 | ||
6403 | else | |
6404 | ||
8a7b1113 | 6405 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6406 | if test "x$LINE" != x ; then |
6407 | eval "DEFAULT_$LINE" | |
6408 | else | |
6409 | no_cache=1 | |
6410 | fi | |
6411 | ||
8a7b1113 | 6412 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6413 | |
6414 | fi; | |
6415 | ||
6416 | eval "$ac_cv_use_mdi" | |
6417 | if test "$no_cache" != 1; then | |
6418 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6419 | fi | |
6420 | ||
8a7b1113 VZ |
6421 | if test "$wxUSE_MDI" = yes; then |
6422 | echo "$as_me:$LINENO: result: yes" >&5 | |
6423 | echo "${ECHO_T}yes" >&6 | |
6424 | else | |
6425 | echo "$as_me:$LINENO: result: no" >&5 | |
6426 | echo "${ECHO_T}no" >&6 | |
6427 | fi | |
6428 | ||
6429 | ||
6430 | enablestring= | |
6431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6432 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6433 | no_cache=0 | |
6434 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6435 | if test "${enable_mdidoc+set}" = set; then | |
6436 | enableval="$enable_mdidoc" | |
6437 | ||
6438 | if test "$enableval" = yes; then | |
6439 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6440 | else | |
6441 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6442 | fi | |
6443 | ||
6444 | else | |
6445 | ||
6446 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6447 | if test "x$LINE" != x ; then | |
6448 | eval "DEFAULT_$LINE" | |
6449 | else | |
6450 | no_cache=1 | |
6451 | fi | |
6452 | ||
6453 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6454 | ||
6455 | fi; | |
6456 | ||
6457 | eval "$ac_cv_use_mdidoc" | |
6458 | if test "$no_cache" != 1; then | |
6459 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6460 | fi | |
6461 | ||
a848cd7e SC |
6462 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6463 | echo "$as_me:$LINENO: result: yes" >&5 | |
6464 | echo "${ECHO_T}yes" >&6 | |
6465 | else | |
6466 | echo "$as_me:$LINENO: result: no" >&5 | |
6467 | echo "${ECHO_T}no" >&6 | |
6468 | fi | |
6469 | ||
6470 | ||
6471 | enablestring= | |
6472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6473 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6474 | no_cache=0 | |
6475 | # Check whether --enable-loggui or --disable-loggui was given. | |
6476 | if test "${enable_loggui+set}" = set; then | |
6477 | enableval="$enable_loggui" | |
6478 | ||
6479 | if test "$enableval" = yes; then | |
6480 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6481 | else | |
6482 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6483 | fi | |
6484 | ||
6485 | else | |
6486 | ||
6487 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6488 | if test "x$LINE" != x ; then | |
6489 | eval "DEFAULT_$LINE" | |
6490 | else | |
6491 | no_cache=1 | |
6492 | fi | |
6493 | ||
6494 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6495 | ||
6496 | fi; | |
6497 | ||
6498 | eval "$ac_cv_use_loggui" | |
6499 | if test "$no_cache" != 1; then | |
6500 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6501 | fi | |
6502 | ||
6503 | if test "$wxUSE_LOGGUI" = yes; then | |
6504 | echo "$as_me:$LINENO: result: yes" >&5 | |
6505 | echo "${ECHO_T}yes" >&6 | |
6506 | else | |
6507 | echo "$as_me:$LINENO: result: no" >&5 | |
6508 | echo "${ECHO_T}no" >&6 | |
6509 | fi | |
6510 | ||
6511 | ||
6512 | enablestring= | |
6513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6514 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6515 | no_cache=0 | |
6516 | # Check whether --enable-logwin or --disable-logwin was given. | |
6517 | if test "${enable_logwin+set}" = set; then | |
6518 | enableval="$enable_logwin" | |
6519 | ||
6520 | if test "$enableval" = yes; then | |
6521 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6522 | else | |
6523 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6524 | fi | |
6525 | ||
6526 | else | |
6527 | ||
6528 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6529 | if test "x$LINE" != x ; then | |
6530 | eval "DEFAULT_$LINE" | |
6531 | else | |
6532 | no_cache=1 | |
6533 | fi | |
6534 | ||
6535 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6536 | ||
6537 | fi; | |
6538 | ||
6539 | eval "$ac_cv_use_logwin" | |
6540 | if test "$no_cache" != 1; then | |
6541 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6542 | fi | |
6543 | ||
6544 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6545 | echo "$as_me:$LINENO: result: yes" >&5 | |
6546 | echo "${ECHO_T}yes" >&6 | |
6547 | else | |
6548 | echo "$as_me:$LINENO: result: no" >&5 | |
6549 | echo "${ECHO_T}no" >&6 | |
6550 | fi | |
6551 | ||
6552 | ||
6553 | enablestring= | |
6554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6555 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6556 | no_cache=0 | |
6557 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6558 | if test "${enable_logdialog+set}" = set; then | |
6559 | enableval="$enable_logdialog" | |
6560 | ||
6561 | if test "$enableval" = yes; then | |
6562 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6563 | else | |
6564 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6565 | fi | |
6566 | ||
6567 | else | |
6568 | ||
6569 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6570 | if test "x$LINE" != x ; then | |
6571 | eval "DEFAULT_$LINE" | |
6572 | else | |
6573 | no_cache=1 | |
6574 | fi | |
6575 | ||
6576 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6577 | ||
6578 | fi; | |
6579 | ||
6580 | eval "$ac_cv_use_logdialog" | |
6581 | if test "$no_cache" != 1; then | |
6582 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6583 | fi | |
6584 | ||
6585 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6586 | echo "$as_me:$LINENO: result: yes" >&5 | |
6587 | echo "${ECHO_T}yes" >&6 | |
6588 | else | |
6589 | echo "$as_me:$LINENO: result: no" >&5 | |
6590 | echo "${ECHO_T}no" >&6 | |
6591 | fi | |
6592 | ||
6593 | ||
646b6ec1 VS |
6594 | enablestring= |
6595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6596 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6597 | no_cache=0 | |
6598 | # Check whether --enable-webkit or --disable-webkit was given. | |
6599 | if test "${enable_webkit+set}" = set; then | |
6600 | enableval="$enable_webkit" | |
6601 | ||
6602 | if test "$enableval" = yes; then | |
6603 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6604 | else | |
6605 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6606 | fi | |
6607 | ||
6608 | else | |
6609 | ||
6610 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6611 | if test "x$LINE" != x ; then | |
6612 | eval "DEFAULT_$LINE" | |
6613 | else | |
6614 | no_cache=1 | |
6615 | fi | |
6616 | ||
6617 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6618 | ||
6619 | fi; | |
6620 | ||
6621 | eval "$ac_cv_use_webkit" | |
6622 | if test "$no_cache" != 1; then | |
6623 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6624 | fi | |
6625 | ||
6626 | if test "$wxUSE_WEBKIT" = yes; then | |
6627 | echo "$as_me:$LINENO: result: yes" >&5 | |
6628 | echo "${ECHO_T}yes" >&6 | |
6629 | else | |
6630 | echo "$as_me:$LINENO: result: no" >&5 | |
6631 | echo "${ECHO_T}no" >&6 | |
6632 | fi | |
6633 | ||
6634 | ||
a848cd7e SC |
6635 | |
6636 | enablestring= | |
6637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6638 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6639 | no_cache=0 | |
6640 | # Check whether --enable-postscript or --disable-postscript was given. | |
6641 | if test "${enable_postscript+set}" = set; then | |
6642 | enableval="$enable_postscript" | |
6643 | ||
6644 | if test "$enableval" = yes; then | |
6645 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6646 | else | |
6647 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6648 | fi | |
6649 | ||
6650 | else | |
6651 | ||
6652 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6653 | if test "x$LINE" != x ; then | |
6654 | eval "DEFAULT_$LINE" | |
6655 | else | |
6656 | no_cache=1 | |
6657 | fi | |
6658 | ||
6659 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6660 | ||
6661 | fi; | |
6662 | ||
6663 | eval "$ac_cv_use_postscript" | |
6664 | if test "$no_cache" != 1; then | |
6665 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6666 | fi | |
6667 | ||
6668 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6669 | echo "$as_me:$LINENO: result: yes" >&5 | |
6670 | echo "${ECHO_T}yes" >&6 | |
6671 | else | |
6672 | echo "$as_me:$LINENO: result: no" >&5 | |
6673 | echo "${ECHO_T}no" >&6 | |
6674 | fi | |
6675 | ||
6676 | ||
6677 | ||
6678 | ||
6679 | ||
6680 | enablestring= | |
6681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6682 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6683 | no_cache=0 | |
6684 | # Check whether --enable-prologio or --disable-prologio was given. | |
6685 | if test "${enable_prologio+set}" = set; then | |
6686 | enableval="$enable_prologio" | |
6687 | ||
6688 | if test "$enableval" = yes; then | |
6689 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6690 | else | |
6691 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6692 | fi | |
6693 | ||
6694 | else | |
6695 | ||
6696 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6697 | if test "x$LINE" != x ; then | |
6698 | eval "DEFAULT_$LINE" | |
6699 | else | |
6700 | no_cache=1 | |
6701 | fi | |
6702 | ||
6703 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6704 | ||
6705 | fi; | |
6706 | ||
6707 | eval "$ac_cv_use_prologio" | |
6708 | if test "$no_cache" != 1; then | |
6709 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6710 | fi | |
6711 | ||
6712 | if test "$wxUSE_PROLOGIO" = yes; then | |
6713 | echo "$as_me:$LINENO: result: yes" >&5 | |
6714 | echo "${ECHO_T}yes" >&6 | |
6715 | else | |
6716 | echo "$as_me:$LINENO: result: no" >&5 | |
6717 | echo "${ECHO_T}no" >&6 | |
6718 | fi | |
6719 | ||
6720 | ||
6721 | enablestring= | |
6722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6723 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6724 | no_cache=0 | |
6725 | # Check whether --enable-resources or --disable-resources was given. | |
6726 | if test "${enable_resources+set}" = set; then | |
6727 | enableval="$enable_resources" | |
6728 | ||
6729 | if test "$enableval" = yes; then | |
6730 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6731 | else | |
6732 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6733 | fi | |
6734 | ||
6735 | else | |
6736 | ||
6737 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6738 | if test "x$LINE" != x ; then | |
6739 | eval "DEFAULT_$LINE" | |
6740 | else | |
6741 | no_cache=1 | |
6742 | fi | |
6743 | ||
6744 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6745 | ||
6746 | fi; | |
6747 | ||
6748 | eval "$ac_cv_use_resources" | |
6749 | if test "$no_cache" != 1; then | |
6750 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6751 | fi | |
6752 | ||
6753 | if test "$wxUSE_RESOURCES" = yes; then | |
6754 | echo "$as_me:$LINENO: result: yes" >&5 | |
6755 | echo "${ECHO_T}yes" >&6 | |
6756 | else | |
6757 | echo "$as_me:$LINENO: result: no" >&5 | |
6758 | echo "${ECHO_T}no" >&6 | |
6759 | fi | |
6760 | ||
6761 | ||
6762 | ||
6763 | ||
6764 | enablestring= | |
6765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6766 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6767 | no_cache=0 | |
6768 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6769 | if test "${enable_clipboard+set}" = set; then | |
6770 | enableval="$enable_clipboard" | |
6771 | ||
6772 | if test "$enableval" = yes; then | |
6773 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6774 | else | |
6775 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6776 | fi | |
6777 | ||
6778 | else | |
6779 | ||
6780 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6781 | if test "x$LINE" != x ; then | |
6782 | eval "DEFAULT_$LINE" | |
6783 | else | |
6784 | no_cache=1 | |
6785 | fi | |
6786 | ||
6787 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6788 | ||
6789 | fi; | |
6790 | ||
6791 | eval "$ac_cv_use_clipboard" | |
6792 | if test "$no_cache" != 1; then | |
6793 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6794 | fi | |
6795 | ||
6796 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6797 | echo "$as_me:$LINENO: result: yes" >&5 | |
6798 | echo "${ECHO_T}yes" >&6 | |
6799 | else | |
6800 | echo "$as_me:$LINENO: result: no" >&5 | |
6801 | echo "${ECHO_T}no" >&6 | |
6802 | fi | |
6803 | ||
6804 | ||
6805 | enablestring= | |
6806 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6807 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6808 | no_cache=0 | |
6809 | # Check whether --enable-dnd or --disable-dnd was given. | |
6810 | if test "${enable_dnd+set}" = set; then | |
6811 | enableval="$enable_dnd" | |
6812 | ||
6813 | if test "$enableval" = yes; then | |
6814 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6815 | else | |
6816 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6817 | fi | |
6818 | ||
6819 | else | |
6820 | ||
6821 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6822 | if test "x$LINE" != x ; then | |
6823 | eval "DEFAULT_$LINE" | |
6824 | else | |
6825 | no_cache=1 | |
6826 | fi | |
6827 | ||
6828 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6829 | ||
6830 | fi; | |
6831 | ||
6832 | eval "$ac_cv_use_dnd" | |
6833 | if test "$no_cache" != 1; then | |
6834 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6835 | fi | |
6836 | ||
6837 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6838 | echo "$as_me:$LINENO: result: yes" >&5 | |
6839 | echo "${ECHO_T}yes" >&6 | |
6840 | else | |
6841 | echo "$as_me:$LINENO: result: no" >&5 | |
6842 | echo "${ECHO_T}no" >&6 | |
6843 | fi | |
6844 | ||
6845 | ||
6846 | enablestring= | |
6847 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6848 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6849 | no_cache=0 | |
6850 | # Check whether --enable-metafile or --disable-metafile was given. | |
6851 | if test "${enable_metafile+set}" = set; then | |
6852 | enableval="$enable_metafile" | |
6853 | ||
6854 | if test "$enableval" = yes; then | |
6855 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6856 | else | |
6857 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6858 | fi | |
6859 | ||
6860 | else | |
6861 | ||
6862 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6863 | if test "x$LINE" != x ; then | |
6864 | eval "DEFAULT_$LINE" | |
6865 | else | |
6866 | no_cache=1 | |
6867 | fi | |
6868 | ||
6869 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6870 | ||
6871 | fi; | |
6872 | ||
6873 | eval "$ac_cv_use_metafile" | |
6874 | if test "$no_cache" != 1; then | |
6875 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6876 | fi | |
6877 | ||
6878 | if test "$wxUSE_METAFILE" = yes; then | |
6879 | echo "$as_me:$LINENO: result: yes" >&5 | |
6880 | echo "${ECHO_T}yes" >&6 | |
6881 | else | |
6882 | echo "$as_me:$LINENO: result: no" >&5 | |
6883 | echo "${ECHO_T}no" >&6 | |
6884 | fi | |
6885 | ||
6886 | ||
6887 | ||
6888 | ||
6889 | ||
6890 | enablestring= | |
6891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6892 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6893 | no_cache=0 | |
6894 | # Check whether --enable-controls or --disable-controls was given. | |
6895 | if test "${enable_controls+set}" = set; then | |
6896 | enableval="$enable_controls" | |
6897 | ||
6898 | if test "$enableval" = yes; then | |
6899 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6900 | else | |
6901 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6902 | fi | |
6903 | ||
6904 | else | |
6905 | ||
6906 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6907 | if test "x$LINE" != x ; then | |
6908 | eval "DEFAULT_$LINE" | |
6909 | else | |
6910 | no_cache=1 | |
6911 | fi | |
6912 | ||
6913 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6914 | ||
6915 | fi; | |
6916 | ||
6917 | eval "$ac_cv_use_controls" | |
6918 | if test "$no_cache" != 1; then | |
6919 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6920 | fi | |
6921 | ||
6922 | if test "$wxUSE_CONTROLS" = yes; then | |
6923 | echo "$as_me:$LINENO: result: yes" >&5 | |
6924 | echo "${ECHO_T}yes" >&6 | |
6925 | else | |
6926 | echo "$as_me:$LINENO: result: no" >&5 | |
6927 | echo "${ECHO_T}no" >&6 | |
6928 | fi | |
6929 | ||
6930 | ||
6931 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6932 | DEFAULT_wxUSE_ACCEL=yes | |
6933 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6934 | DEFAULT_wxUSE_BUTTON=yes | |
6935 | DEFAULT_wxUSE_CALCTRL=no | |
6936 | DEFAULT_wxUSE_CARET=yes | |
6937 | DEFAULT_wxUSE_COMBOBOX=yes | |
6938 | DEFAULT_wxUSE_CHECKBOX=yes | |
6939 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6940 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 6941 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
6942 | DEFAULT_wxUSE_GAUGE=yes |
6943 | DEFAULT_wxUSE_GRID=yes | |
6944 | DEFAULT_wxUSE_IMAGLIST=yes | |
6945 | DEFAULT_wxUSE_LISTBOOK=yes | |
6946 | DEFAULT_wxUSE_LISTBOX=yes | |
6947 | DEFAULT_wxUSE_LISTCTRL=yes | |
6948 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6949 | DEFAULT_wxUSE_RADIOBOX=yes | |
6950 | DEFAULT_wxUSE_RADIOBTN=yes | |
6951 | DEFAULT_wxUSE_SASH=yes | |
6952 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6953 | DEFAULT_wxUSE_SLIDER=yes | |
6954 | DEFAULT_wxUSE_SPINBTN=yes | |
6955 | DEFAULT_wxUSE_SPINCTRL=yes | |
6956 | DEFAULT_wxUSE_SPLITTER=yes | |
6957 | DEFAULT_wxUSE_STATBMP=yes | |
6958 | DEFAULT_wxUSE_STATBOX=yes | |
6959 | DEFAULT_wxUSE_STATLINE=yes | |
6960 | DEFAULT_wxUSE_STATUSBAR=yes | |
6961 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6962 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6963 | DEFAULT_wxUSE_TOOLBAR=yes | |
6964 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6965 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6966 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6967 | DEFAULT_wxUSE_TREECTRL=yes | |
6968 | DEFAULT_wxUSE_POPUPWIN=yes | |
6969 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6970 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6971 | DEFAULT_wxUSE_ACCEL=no | |
6972 | DEFAULT_wxUSE_BMPBUTTON=no | |
6973 | DEFAULT_wxUSE_BUTTON=no | |
6974 | DEFAULT_wxUSE_CALCTRL=no | |
6975 | DEFAULT_wxUSE_CARET=no | |
6976 | DEFAULT_wxUSE_COMBOBOX=no | |
6977 | DEFAULT_wxUSE_CHECKBOX=no | |
6978 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6979 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 6980 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
6981 | DEFAULT_wxUSE_GAUGE=no |
6982 | DEFAULT_wxUSE_GRID=no | |
6983 | DEFAULT_wxUSE_IMAGLIST=no | |
6984 | DEFAULT_wxUSE_LISTBOOK=no | |
6985 | DEFAULT_wxUSE_LISTBOX=no | |
6986 | DEFAULT_wxUSE_LISTCTRL=no | |
6987 | DEFAULT_wxUSE_NOTEBOOK=no | |
6988 | DEFAULT_wxUSE_RADIOBOX=no | |
6989 | DEFAULT_wxUSE_RADIOBTN=no | |
6990 | DEFAULT_wxUSE_SASH=no | |
6991 | DEFAULT_wxUSE_SCROLLBAR=no | |
6992 | DEFAULT_wxUSE_SLIDER=no | |
6993 | DEFAULT_wxUSE_SPINBTN=no | |
6994 | DEFAULT_wxUSE_SPINCTRL=no | |
6995 | DEFAULT_wxUSE_SPLITTER=no | |
6996 | DEFAULT_wxUSE_STATBMP=no | |
6997 | DEFAULT_wxUSE_STATBOX=no | |
6998 | DEFAULT_wxUSE_STATLINE=no | |
6999 | DEFAULT_wxUSE_STATUSBAR=no | |
7000 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7001 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7002 | DEFAULT_wxUSE_TOOLBAR=no | |
7003 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7004 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7005 | DEFAULT_wxUSE_TOOLTIPS=no | |
7006 | DEFAULT_wxUSE_TREECTRL=no | |
7007 | DEFAULT_wxUSE_POPUPWIN=no | |
7008 | DEFAULT_wxUSE_TIPWINDOW=no | |
7009 | fi | |
7010 | ||
7011 | ## FIXME: This is a blatant hack | |
7012 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
7013 | wxUSE_PRINTING_ARCHITECTURE=no | |
7014 | wxUSE_DRAG_AND_DROP=no | |
a848cd7e SC |
7015 | DEFAULT_wxUSE_TOOLTIPS=no |
7016 | DEFAULT_wxUSE_DRAGIMAGE=no | |
7017 | fi | |
7018 | ||
7019 | ||
7020 | enablestring= | |
7021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7022 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7023 | no_cache=0 | |
7024 | # Check whether --enable-accel or --disable-accel was given. | |
7025 | if test "${enable_accel+set}" = set; then | |
7026 | enableval="$enable_accel" | |
7027 | ||
7028 | if test "$enableval" = yes; then | |
7029 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7030 | else | |
7031 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7032 | fi | |
7033 | ||
7034 | else | |
7035 | ||
7036 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7037 | if test "x$LINE" != x ; then | |
7038 | eval "DEFAULT_$LINE" | |
7039 | else | |
7040 | no_cache=1 | |
7041 | fi | |
7042 | ||
7043 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7044 | ||
7045 | fi; | |
7046 | ||
7047 | eval "$ac_cv_use_accel" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_ACCEL" = yes; then | |
7053 | echo "$as_me:$LINENO: result: yes" >&5 | |
7054 | echo "${ECHO_T}yes" >&6 | |
7055 | else | |
7056 | echo "$as_me:$LINENO: result: no" >&5 | |
7057 | echo "${ECHO_T}no" >&6 | |
7058 | fi | |
7059 | ||
7060 | ||
7061 | enablestring= | |
7062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7063 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7064 | no_cache=0 | |
7065 | # Check whether --enable-button or --disable-button was given. | |
7066 | if test "${enable_button+set}" = set; then | |
7067 | enableval="$enable_button" | |
7068 | ||
7069 | if test "$enableval" = yes; then | |
7070 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7071 | else | |
7072 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7073 | fi | |
7074 | ||
7075 | else | |
7076 | ||
7077 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7078 | if test "x$LINE" != x ; then | |
7079 | eval "DEFAULT_$LINE" | |
7080 | else | |
7081 | no_cache=1 | |
7082 | fi | |
7083 | ||
7084 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7085 | ||
7086 | fi; | |
7087 | ||
7088 | eval "$ac_cv_use_button" | |
7089 | if test "$no_cache" != 1; then | |
7090 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7091 | fi | |
7092 | ||
7093 | if test "$wxUSE_BUTTON" = yes; then | |
7094 | echo "$as_me:$LINENO: result: yes" >&5 | |
7095 | echo "${ECHO_T}yes" >&6 | |
7096 | else | |
7097 | echo "$as_me:$LINENO: result: no" >&5 | |
7098 | echo "${ECHO_T}no" >&6 | |
7099 | fi | |
7100 | ||
7101 | ||
7102 | enablestring= | |
7103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7104 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7105 | no_cache=0 | |
7106 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7107 | if test "${enable_bmpbutton+set}" = set; then | |
7108 | enableval="$enable_bmpbutton" | |
7109 | ||
7110 | if test "$enableval" = yes; then | |
7111 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7112 | else | |
7113 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7114 | fi | |
7115 | ||
7116 | else | |
7117 | ||
7118 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7119 | if test "x$LINE" != x ; then | |
7120 | eval "DEFAULT_$LINE" | |
7121 | else | |
7122 | no_cache=1 | |
7123 | fi | |
7124 | ||
7125 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7126 | ||
7127 | fi; | |
7128 | ||
7129 | eval "$ac_cv_use_bmpbutton" | |
7130 | if test "$no_cache" != 1; then | |
7131 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7132 | fi | |
7133 | ||
7134 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7135 | echo "$as_me:$LINENO: result: yes" >&5 | |
7136 | echo "${ECHO_T}yes" >&6 | |
7137 | else | |
7138 | echo "$as_me:$LINENO: result: no" >&5 | |
7139 | echo "${ECHO_T}no" >&6 | |
7140 | fi | |
7141 | ||
7142 | ||
7143 | enablestring= | |
7144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7145 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7146 | no_cache=0 | |
7147 | # Check whether --enable-calendar or --disable-calendar was given. | |
7148 | if test "${enable_calendar+set}" = set; then | |
7149 | enableval="$enable_calendar" | |
7150 | ||
7151 | if test "$enableval" = yes; then | |
7152 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7153 | else | |
7154 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7155 | fi | |
7156 | ||
7157 | else | |
7158 | ||
7159 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7160 | if test "x$LINE" != x ; then | |
7161 | eval "DEFAULT_$LINE" | |
7162 | else | |
7163 | no_cache=1 | |
7164 | fi | |
7165 | ||
7166 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7167 | ||
7168 | fi; | |
7169 | ||
7170 | eval "$ac_cv_use_calendar" | |
7171 | if test "$no_cache" != 1; then | |
7172 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7173 | fi | |
7174 | ||
7175 | if test "$wxUSE_CALCTRL" = yes; then | |
7176 | echo "$as_me:$LINENO: result: yes" >&5 | |
7177 | echo "${ECHO_T}yes" >&6 | |
7178 | else | |
7179 | echo "$as_me:$LINENO: result: no" >&5 | |
7180 | echo "${ECHO_T}no" >&6 | |
7181 | fi | |
7182 | ||
7183 | ||
7184 | enablestring= | |
7185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7186 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7187 | no_cache=0 | |
7188 | # Check whether --enable-caret or --disable-caret was given. | |
7189 | if test "${enable_caret+set}" = set; then | |
7190 | enableval="$enable_caret" | |
7191 | ||
7192 | if test "$enableval" = yes; then | |
7193 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7194 | else | |
7195 | ac_cv_use_caret='wxUSE_CARET=no' | |
7196 | fi | |
7197 | ||
7198 | else | |
7199 | ||
7200 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7201 | if test "x$LINE" != x ; then | |
7202 | eval "DEFAULT_$LINE" | |
7203 | else | |
7204 | no_cache=1 | |
7205 | fi | |
7206 | ||
7207 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7208 | ||
7209 | fi; | |
7210 | ||
7211 | eval "$ac_cv_use_caret" | |
7212 | if test "$no_cache" != 1; then | |
7213 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7214 | fi | |
7215 | ||
7216 | if test "$wxUSE_CARET" = yes; then | |
7217 | echo "$as_me:$LINENO: result: yes" >&5 | |
7218 | echo "${ECHO_T}yes" >&6 | |
7219 | else | |
7220 | echo "$as_me:$LINENO: result: no" >&5 | |
7221 | echo "${ECHO_T}no" >&6 | |
7222 | fi | |
7223 | ||
7224 | ||
7225 | enablestring= | |
7226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7227 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7228 | no_cache=0 | |
7229 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7230 | if test "${enable_checkbox+set}" = set; then | |
7231 | enableval="$enable_checkbox" | |
7232 | ||
7233 | if test "$enableval" = yes; then | |
7234 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7235 | else | |
7236 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7237 | fi | |
7238 | ||
7239 | else | |
7240 | ||
7241 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7242 | if test "x$LINE" != x ; then | |
7243 | eval "DEFAULT_$LINE" | |
7244 | else | |
7245 | no_cache=1 | |
7246 | fi | |
7247 | ||
7248 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7249 | ||
7250 | fi; | |
7251 | ||
7252 | eval "$ac_cv_use_checkbox" | |
7253 | if test "$no_cache" != 1; then | |
7254 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7255 | fi | |
7256 | ||
7257 | if test "$wxUSE_CHECKBOX" = yes; then | |
7258 | echo "$as_me:$LINENO: result: yes" >&5 | |
7259 | echo "${ECHO_T}yes" >&6 | |
7260 | else | |
7261 | echo "$as_me:$LINENO: result: no" >&5 | |
7262 | echo "${ECHO_T}no" >&6 | |
7263 | fi | |
7264 | ||
7265 | ||
7266 | enablestring= | |
7267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7268 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7269 | no_cache=0 | |
7270 | # Check whether --enable-checklst or --disable-checklst was given. | |
7271 | if test "${enable_checklst+set}" = set; then | |
7272 | enableval="$enable_checklst" | |
7273 | ||
7274 | if test "$enableval" = yes; then | |
7275 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7276 | else | |
7277 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7278 | fi | |
7279 | ||
7280 | else | |
7281 | ||
7282 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7283 | if test "x$LINE" != x ; then | |
7284 | eval "DEFAULT_$LINE" | |
7285 | else | |
7286 | no_cache=1 | |
7287 | fi | |
7288 | ||
7289 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7290 | ||
7291 | fi; | |
7292 | ||
7293 | eval "$ac_cv_use_checklst" | |
7294 | if test "$no_cache" != 1; then | |
7295 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7296 | fi | |
7297 | ||
7298 | if test "$wxUSE_CHECKLST" = yes; then | |
7299 | echo "$as_me:$LINENO: result: yes" >&5 | |
7300 | echo "${ECHO_T}yes" >&6 | |
7301 | else | |
7302 | echo "$as_me:$LINENO: result: no" >&5 | |
7303 | echo "${ECHO_T}no" >&6 | |
7304 | fi | |
7305 | ||
7306 | ||
7307 | enablestring= | |
7308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7309 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7310 | no_cache=0 | |
7311 | # Check whether --enable-choice or --disable-choice was given. | |
7312 | if test "${enable_choice+set}" = set; then | |
7313 | enableval="$enable_choice" | |
7314 | ||
7315 | if test "$enableval" = yes; then | |
7316 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7317 | else | |
7318 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7319 | fi | |
7320 | ||
7321 | else | |
7322 | ||
7323 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7324 | if test "x$LINE" != x ; then | |
7325 | eval "DEFAULT_$LINE" | |
7326 | else | |
7327 | no_cache=1 | |
7328 | fi | |
7329 | ||
7330 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7331 | ||
7332 | fi; | |
7333 | ||
7334 | eval "$ac_cv_use_choice" | |
7335 | if test "$no_cache" != 1; then | |
7336 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7337 | fi | |
7338 | ||
7339 | if test "$wxUSE_CHOICE" = yes; then | |
7340 | echo "$as_me:$LINENO: result: yes" >&5 | |
7341 | echo "${ECHO_T}yes" >&6 | |
7342 | else | |
7343 | echo "$as_me:$LINENO: result: no" >&5 | |
7344 | echo "${ECHO_T}no" >&6 | |
7345 | fi | |
7346 | ||
7347 | ||
92bbdbcd WS |
7348 | enablestring= |
7349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7350 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7351 | no_cache=0 | |
7352 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7353 | if test "${enable_choicebook+set}" = set; then | |
7354 | enableval="$enable_choicebook" | |
7355 | ||
7356 | if test "$enableval" = yes; then | |
7357 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7358 | else | |
7359 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7360 | fi | |
7361 | ||
7362 | else | |
7363 | ||
7364 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7365 | if test "x$LINE" != x ; then | |
7366 | eval "DEFAULT_$LINE" | |
7367 | else | |
7368 | no_cache=1 | |
7369 | fi | |
7370 | ||
7371 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7372 | ||
7373 | fi; | |
7374 | ||
7375 | eval "$ac_cv_use_choicebook" | |
7376 | if test "$no_cache" != 1; then | |
7377 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7378 | fi | |
7379 | ||
7380 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7381 | echo "$as_me:$LINENO: result: yes" >&5 | |
7382 | echo "${ECHO_T}yes" >&6 | |
7383 | else | |
7384 | echo "$as_me:$LINENO: result: no" >&5 | |
7385 | echo "${ECHO_T}no" >&6 | |
7386 | fi | |
7387 | ||
7388 | ||
a848cd7e SC |
7389 | enablestring= |
7390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7391 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7392 | no_cache=0 | |
7393 | # Check whether --enable-combobox or --disable-combobox was given. | |
7394 | if test "${enable_combobox+set}" = set; then | |
7395 | enableval="$enable_combobox" | |
7396 | ||
7397 | if test "$enableval" = yes; then | |
7398 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7399 | else | |
7400 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7401 | fi | |
7402 | ||
7403 | else | |
7404 | ||
7405 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7406 | if test "x$LINE" != x ; then | |
7407 | eval "DEFAULT_$LINE" | |
7408 | else | |
7409 | no_cache=1 | |
7410 | fi | |
7411 | ||
7412 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7413 | ||
7414 | fi; | |
7415 | ||
7416 | eval "$ac_cv_use_combobox" | |
7417 | if test "$no_cache" != 1; then | |
7418 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7419 | fi | |
7420 | ||
7421 | if test "$wxUSE_COMBOBOX" = yes; then | |
7422 | echo "$as_me:$LINENO: result: yes" >&5 | |
7423 | echo "${ECHO_T}yes" >&6 | |
7424 | else | |
7425 | echo "$as_me:$LINENO: result: no" >&5 | |
7426 | echo "${ECHO_T}no" >&6 | |
7427 | fi | |
7428 | ||
7429 | ||
7430 | enablestring= | |
7431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7432 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7433 | no_cache=0 | |
7434 | # Check whether --enable-display or --disable-display was given. | |
7435 | if test "${enable_display+set}" = set; then | |
7436 | enableval="$enable_display" | |
7437 | ||
7438 | if test "$enableval" = yes; then | |
7439 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7440 | else | |
7441 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7442 | fi | |
7443 | ||
7444 | else | |
7445 | ||
7446 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7447 | if test "x$LINE" != x ; then | |
7448 | eval "DEFAULT_$LINE" | |
7449 | else | |
7450 | no_cache=1 | |
7451 | fi | |
7452 | ||
7453 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7454 | ||
7455 | fi; | |
7456 | ||
7457 | eval "$ac_cv_use_display" | |
7458 | if test "$no_cache" != 1; then | |
7459 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7460 | fi | |
7461 | ||
7462 | if test "$wxUSE_DISPLAY" = yes; then | |
7463 | echo "$as_me:$LINENO: result: yes" >&5 | |
7464 | echo "${ECHO_T}yes" >&6 | |
7465 | else | |
7466 | echo "$as_me:$LINENO: result: no" >&5 | |
7467 | echo "${ECHO_T}no" >&6 | |
7468 | fi | |
7469 | ||
7470 | ||
7471 | enablestring= | |
7472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7473 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7474 | no_cache=0 | |
7475 | # Check whether --enable-gauge or --disable-gauge was given. | |
7476 | if test "${enable_gauge+set}" = set; then | |
7477 | enableval="$enable_gauge" | |
7478 | ||
7479 | if test "$enableval" = yes; then | |
7480 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7481 | else | |
7482 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7483 | fi | |
7484 | ||
7485 | else | |
7486 | ||
7487 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7488 | if test "x$LINE" != x ; then | |
7489 | eval "DEFAULT_$LINE" | |
7490 | else | |
7491 | no_cache=1 | |
7492 | fi | |
7493 | ||
7494 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7495 | ||
7496 | fi; | |
7497 | ||
7498 | eval "$ac_cv_use_gauge" | |
7499 | if test "$no_cache" != 1; then | |
7500 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7501 | fi | |
7502 | ||
7503 | if test "$wxUSE_GAUGE" = yes; then | |
7504 | echo "$as_me:$LINENO: result: yes" >&5 | |
7505 | echo "${ECHO_T}yes" >&6 | |
7506 | else | |
7507 | echo "$as_me:$LINENO: result: no" >&5 | |
7508 | echo "${ECHO_T}no" >&6 | |
7509 | fi | |
7510 | ||
7511 | ||
7512 | enablestring= | |
7513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7514 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7515 | no_cache=0 | |
7516 | # Check whether --enable-grid or --disable-grid was given. | |
7517 | if test "${enable_grid+set}" = set; then | |
7518 | enableval="$enable_grid" | |
7519 | ||
7520 | if test "$enableval" = yes; then | |
7521 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7522 | else | |
7523 | ac_cv_use_grid='wxUSE_GRID=no' | |
7524 | fi | |
7525 | ||
7526 | else | |
7527 | ||
7528 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7529 | if test "x$LINE" != x ; then | |
7530 | eval "DEFAULT_$LINE" | |
7531 | else | |
7532 | no_cache=1 | |
7533 | fi | |
7534 | ||
7535 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7536 | ||
7537 | fi; | |
7538 | ||
7539 | eval "$ac_cv_use_grid" | |
7540 | if test "$no_cache" != 1; then | |
7541 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7542 | fi | |
7543 | ||
7544 | if test "$wxUSE_GRID" = yes; then | |
7545 | echo "$as_me:$LINENO: result: yes" >&5 | |
7546 | echo "${ECHO_T}yes" >&6 | |
7547 | else | |
7548 | echo "$as_me:$LINENO: result: no" >&5 | |
7549 | echo "${ECHO_T}no" >&6 | |
7550 | fi | |
7551 | ||
7552 | ||
7553 | enablestring= | |
7554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7555 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7556 | no_cache=0 | |
7557 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7558 | if test "${enable_imaglist+set}" = set; then | |
7559 | enableval="$enable_imaglist" | |
7560 | ||
7561 | if test "$enableval" = yes; then | |
7562 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7563 | else | |
7564 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7565 | fi | |
7566 | ||
7567 | else | |
7568 | ||
7569 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7570 | if test "x$LINE" != x ; then | |
7571 | eval "DEFAULT_$LINE" | |
7572 | else | |
7573 | no_cache=1 | |
7574 | fi | |
7575 | ||
7576 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7577 | ||
7578 | fi; | |
7579 | ||
7580 | eval "$ac_cv_use_imaglist" | |
7581 | if test "$no_cache" != 1; then | |
7582 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7583 | fi | |
7584 | ||
7585 | if test "$wxUSE_IMAGLIST" = yes; then | |
7586 | echo "$as_me:$LINENO: result: yes" >&5 | |
7587 | echo "${ECHO_T}yes" >&6 | |
7588 | else | |
7589 | echo "$as_me:$LINENO: result: no" >&5 | |
7590 | echo "${ECHO_T}no" >&6 | |
7591 | fi | |
7592 | ||
7593 | ||
7594 | enablestring= | |
7595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7596 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7597 | no_cache=0 | |
7598 | # Check whether --enable-listbook or --disable-listbook was given. | |
7599 | if test "${enable_listbook+set}" = set; then | |
7600 | enableval="$enable_listbook" | |
7601 | ||
7602 | if test "$enableval" = yes; then | |
7603 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7604 | else | |
7605 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7606 | fi | |
7607 | ||
7608 | else | |
7609 | ||
7610 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7611 | if test "x$LINE" != x ; then | |
7612 | eval "DEFAULT_$LINE" | |
7613 | else | |
7614 | no_cache=1 | |
7615 | fi | |
7616 | ||
7617 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7618 | ||
7619 | fi; | |
7620 | ||
7621 | eval "$ac_cv_use_listbook" | |
7622 | if test "$no_cache" != 1; then | |
7623 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7624 | fi | |
7625 | ||
7626 | if test "$wxUSE_LISTBOOK" = yes; then | |
7627 | echo "$as_me:$LINENO: result: yes" >&5 | |
7628 | echo "${ECHO_T}yes" >&6 | |
7629 | else | |
7630 | echo "$as_me:$LINENO: result: no" >&5 | |
7631 | echo "${ECHO_T}no" >&6 | |
7632 | fi | |
7633 | ||
7634 | ||
7635 | enablestring= | |
7636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7637 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7638 | no_cache=0 | |
7639 | # Check whether --enable-listbox or --disable-listbox was given. | |
7640 | if test "${enable_listbox+set}" = set; then | |
7641 | enableval="$enable_listbox" | |
7642 | ||
7643 | if test "$enableval" = yes; then | |
7644 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7645 | else | |
7646 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7647 | fi | |
7648 | ||
7649 | else | |
7650 | ||
7651 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7652 | if test "x$LINE" != x ; then | |
7653 | eval "DEFAULT_$LINE" | |
7654 | else | |
7655 | no_cache=1 | |
7656 | fi | |
7657 | ||
7658 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7659 | ||
7660 | fi; | |
7661 | ||
7662 | eval "$ac_cv_use_listbox" | |
7663 | if test "$no_cache" != 1; then | |
7664 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7665 | fi | |
7666 | ||
7667 | if test "$wxUSE_LISTBOX" = yes; then | |
7668 | echo "$as_me:$LINENO: result: yes" >&5 | |
7669 | echo "${ECHO_T}yes" >&6 | |
7670 | else | |
7671 | echo "$as_me:$LINENO: result: no" >&5 | |
7672 | echo "${ECHO_T}no" >&6 | |
7673 | fi | |
7674 | ||
7675 | ||
7676 | enablestring= | |
7677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7678 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7679 | no_cache=0 | |
7680 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7681 | if test "${enable_listctrl+set}" = set; then | |
7682 | enableval="$enable_listctrl" | |
7683 | ||
7684 | if test "$enableval" = yes; then | |
7685 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7686 | else | |
7687 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7688 | fi | |
7689 | ||
7690 | else | |
7691 | ||
7692 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7693 | if test "x$LINE" != x ; then | |
7694 | eval "DEFAULT_$LINE" | |
7695 | else | |
7696 | no_cache=1 | |
7697 | fi | |
7698 | ||
7699 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7700 | ||
7701 | fi; | |
7702 | ||
7703 | eval "$ac_cv_use_listctrl" | |
7704 | if test "$no_cache" != 1; then | |
7705 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7706 | fi | |
7707 | ||
7708 | if test "$wxUSE_LISTCTRL" = yes; then | |
7709 | echo "$as_me:$LINENO: result: yes" >&5 | |
7710 | echo "${ECHO_T}yes" >&6 | |
7711 | else | |
7712 | echo "$as_me:$LINENO: result: no" >&5 | |
7713 | echo "${ECHO_T}no" >&6 | |
7714 | fi | |
7715 | ||
7716 | ||
7717 | enablestring= | |
7718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7719 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7720 | no_cache=0 | |
7721 | # Check whether --enable-notebook or --disable-notebook was given. | |
7722 | if test "${enable_notebook+set}" = set; then | |
7723 | enableval="$enable_notebook" | |
7724 | ||
7725 | if test "$enableval" = yes; then | |
7726 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7727 | else | |
7728 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7729 | fi | |
7730 | ||
7731 | else | |
7732 | ||
7733 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7734 | if test "x$LINE" != x ; then | |
7735 | eval "DEFAULT_$LINE" | |
7736 | else | |
7737 | no_cache=1 | |
7738 | fi | |
7739 | ||
7740 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7741 | ||
7742 | fi; | |
7743 | ||
7744 | eval "$ac_cv_use_notebook" | |
7745 | if test "$no_cache" != 1; then | |
7746 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7747 | fi | |
7748 | ||
7749 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7750 | echo "$as_me:$LINENO: result: yes" >&5 | |
7751 | echo "${ECHO_T}yes" >&6 | |
7752 | else | |
7753 | echo "$as_me:$LINENO: result: no" >&5 | |
7754 | echo "${ECHO_T}no" >&6 | |
7755 | fi | |
7756 | ||
7757 | ||
7758 | enablestring= | |
7759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7760 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7761 | no_cache=0 | |
7762 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7763 | if test "${enable_radiobox+set}" = set; then | |
7764 | enableval="$enable_radiobox" | |
7765 | ||
7766 | if test "$enableval" = yes; then | |
7767 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7768 | else | |
7769 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7770 | fi | |
7771 | ||
7772 | else | |
7773 | ||
7774 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7775 | if test "x$LINE" != x ; then | |
7776 | eval "DEFAULT_$LINE" | |
7777 | else | |
7778 | no_cache=1 | |
7779 | fi | |
7780 | ||
7781 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7782 | ||
7783 | fi; | |
7784 | ||
7785 | eval "$ac_cv_use_radiobox" | |
7786 | if test "$no_cache" != 1; then | |
7787 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7788 | fi | |
7789 | ||
7790 | if test "$wxUSE_RADIOBOX" = yes; then | |
7791 | echo "$as_me:$LINENO: result: yes" >&5 | |
7792 | echo "${ECHO_T}yes" >&6 | |
7793 | else | |
7794 | echo "$as_me:$LINENO: result: no" >&5 | |
7795 | echo "${ECHO_T}no" >&6 | |
7796 | fi | |
7797 | ||
7798 | ||
7799 | enablestring= | |
7800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7801 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7802 | no_cache=0 | |
7803 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7804 | if test "${enable_radiobtn+set}" = set; then | |
7805 | enableval="$enable_radiobtn" | |
7806 | ||
7807 | if test "$enableval" = yes; then | |
7808 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7809 | else | |
7810 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7811 | fi | |
7812 | ||
7813 | else | |
7814 | ||
7815 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7816 | if test "x$LINE" != x ; then | |
7817 | eval "DEFAULT_$LINE" | |
7818 | else | |
7819 | no_cache=1 | |
7820 | fi | |
7821 | ||
7822 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7823 | ||
7824 | fi; | |
7825 | ||
7826 | eval "$ac_cv_use_radiobtn" | |
7827 | if test "$no_cache" != 1; then | |
7828 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7829 | fi | |
7830 | ||
7831 | if test "$wxUSE_RADIOBTN" = yes; then | |
7832 | echo "$as_me:$LINENO: result: yes" >&5 | |
7833 | echo "${ECHO_T}yes" >&6 | |
7834 | else | |
7835 | echo "$as_me:$LINENO: result: no" >&5 | |
7836 | echo "${ECHO_T}no" >&6 | |
7837 | fi | |
7838 | ||
7839 | ||
7840 | enablestring= | |
7841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7842 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7843 | no_cache=0 | |
7844 | # Check whether --enable-sash or --disable-sash was given. | |
7845 | if test "${enable_sash+set}" = set; then | |
7846 | enableval="$enable_sash" | |
7847 | ||
7848 | if test "$enableval" = yes; then | |
7849 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7850 | else | |
7851 | ac_cv_use_sash='wxUSE_SASH=no' | |
7852 | fi | |
7853 | ||
7854 | else | |
7855 | ||
7856 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7857 | if test "x$LINE" != x ; then | |
7858 | eval "DEFAULT_$LINE" | |
7859 | else | |
7860 | no_cache=1 | |
7861 | fi | |
7862 | ||
7863 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7864 | ||
7865 | fi; | |
7866 | ||
7867 | eval "$ac_cv_use_sash" | |
7868 | if test "$no_cache" != 1; then | |
7869 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7870 | fi | |
7871 | ||
7872 | if test "$wxUSE_SASH" = yes; then | |
7873 | echo "$as_me:$LINENO: result: yes" >&5 | |
7874 | echo "${ECHO_T}yes" >&6 | |
7875 | else | |
7876 | echo "$as_me:$LINENO: result: no" >&5 | |
7877 | echo "${ECHO_T}no" >&6 | |
7878 | fi | |
7879 | ||
7880 | ||
7881 | enablestring= | |
7882 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7883 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7884 | no_cache=0 | |
7885 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7886 | if test "${enable_scrollbar+set}" = set; then | |
7887 | enableval="$enable_scrollbar" | |
7888 | ||
7889 | if test "$enableval" = yes; then | |
7890 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7891 | else | |
7892 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7893 | fi | |
7894 | ||
7895 | else | |
7896 | ||
7897 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7898 | if test "x$LINE" != x ; then | |
7899 | eval "DEFAULT_$LINE" | |
7900 | else | |
7901 | no_cache=1 | |
7902 | fi | |
7903 | ||
7904 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7905 | ||
7906 | fi; | |
7907 | ||
7908 | eval "$ac_cv_use_scrollbar" | |
7909 | if test "$no_cache" != 1; then | |
7910 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7911 | fi | |
7912 | ||
7913 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7914 | echo "$as_me:$LINENO: result: yes" >&5 | |
7915 | echo "${ECHO_T}yes" >&6 | |
7916 | else | |
7917 | echo "$as_me:$LINENO: result: no" >&5 | |
7918 | echo "${ECHO_T}no" >&6 | |
7919 | fi | |
7920 | ||
7921 | ||
7922 | enablestring= | |
7923 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7924 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7925 | no_cache=0 | |
7926 | # Check whether --enable-slider or --disable-slider was given. | |
7927 | if test "${enable_slider+set}" = set; then | |
7928 | enableval="$enable_slider" | |
7929 | ||
7930 | if test "$enableval" = yes; then | |
7931 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7932 | else | |
7933 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7934 | fi | |
7935 | ||
7936 | else | |
7937 | ||
7938 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
7939 | if test "x$LINE" != x ; then | |
7940 | eval "DEFAULT_$LINE" | |
7941 | else | |
7942 | no_cache=1 | |
7943 | fi | |
7944 | ||
7945 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7946 | ||
7947 | fi; | |
7948 | ||
7949 | eval "$ac_cv_use_slider" | |
7950 | if test "$no_cache" != 1; then | |
7951 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7952 | fi | |
7953 | ||
7954 | if test "$wxUSE_SLIDER" = yes; then | |
7955 | echo "$as_me:$LINENO: result: yes" >&5 | |
7956 | echo "${ECHO_T}yes" >&6 | |
7957 | else | |
7958 | echo "$as_me:$LINENO: result: no" >&5 | |
7959 | echo "${ECHO_T}no" >&6 | |
7960 | fi | |
7961 | ||
7962 | ||
7963 | enablestring= | |
7964 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
7965 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7966 | no_cache=0 | |
7967 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7968 | if test "${enable_spinbtn+set}" = set; then | |
7969 | enableval="$enable_spinbtn" | |
7970 | ||
7971 | if test "$enableval" = yes; then | |
7972 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7973 | else | |
7974 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7975 | fi | |
7976 | ||
7977 | else | |
7978 | ||
7979 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
7980 | if test "x$LINE" != x ; then | |
7981 | eval "DEFAULT_$LINE" | |
7982 | else | |
7983 | no_cache=1 | |
7984 | fi | |
7985 | ||
7986 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7987 | ||
7988 | fi; | |
7989 | ||
7990 | eval "$ac_cv_use_spinbtn" | |
7991 | if test "$no_cache" != 1; then | |
7992 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7993 | fi | |
7994 | ||
7995 | if test "$wxUSE_SPINBTN" = yes; then | |
7996 | echo "$as_me:$LINENO: result: yes" >&5 | |
7997 | echo "${ECHO_T}yes" >&6 | |
7998 | else | |
7999 | echo "$as_me:$LINENO: result: no" >&5 | |
8000 | echo "${ECHO_T}no" >&6 | |
8001 | fi | |
8002 | ||
8003 | ||
8004 | enablestring= | |
8005 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8006 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8007 | no_cache=0 | |
8008 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8009 | if test "${enable_spinctrl+set}" = set; then | |
8010 | enableval="$enable_spinctrl" | |
8011 | ||
8012 | if test "$enableval" = yes; then | |
8013 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8014 | else | |
8015 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8016 | fi | |
8017 | ||
8018 | else | |
8019 | ||
8020 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8021 | if test "x$LINE" != x ; then | |
8022 | eval "DEFAULT_$LINE" | |
8023 | else | |
8024 | no_cache=1 | |
8025 | fi | |
8026 | ||
8027 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8028 | ||
8029 | fi; | |
8030 | ||
8031 | eval "$ac_cv_use_spinctrl" | |
8032 | if test "$no_cache" != 1; then | |
8033 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8034 | fi | |
8035 | ||
8036 | if test "$wxUSE_SPINCTRL" = yes; then | |
8037 | echo "$as_me:$LINENO: result: yes" >&5 | |
8038 | echo "${ECHO_T}yes" >&6 | |
8039 | else | |
8040 | echo "$as_me:$LINENO: result: no" >&5 | |
8041 | echo "${ECHO_T}no" >&6 | |
8042 | fi | |
8043 | ||
8044 | ||
8045 | enablestring= | |
8046 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8047 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8048 | no_cache=0 | |
8049 | # Check whether --enable-splitter or --disable-splitter was given. | |
8050 | if test "${enable_splitter+set}" = set; then | |
8051 | enableval="$enable_splitter" | |
8052 | ||
8053 | if test "$enableval" = yes; then | |
8054 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8055 | else | |
8056 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8057 | fi | |
8058 | ||
8059 | else | |
8060 | ||
8061 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8062 | if test "x$LINE" != x ; then | |
8063 | eval "DEFAULT_$LINE" | |
8064 | else | |
8065 | no_cache=1 | |
8066 | fi | |
8067 | ||
8068 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8069 | ||
8070 | fi; | |
8071 | ||
8072 | eval "$ac_cv_use_splitter" | |
8073 | if test "$no_cache" != 1; then | |
8074 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8075 | fi | |
8076 | ||
8077 | if test "$wxUSE_SPLITTER" = yes; then | |
8078 | echo "$as_me:$LINENO: result: yes" >&5 | |
8079 | echo "${ECHO_T}yes" >&6 | |
8080 | else | |
8081 | echo "$as_me:$LINENO: result: no" >&5 | |
8082 | echo "${ECHO_T}no" >&6 | |
8083 | fi | |
8084 | ||
8085 | ||
8086 | enablestring= | |
8087 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8088 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8089 | no_cache=0 | |
8090 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8091 | if test "${enable_statbmp+set}" = set; then | |
8092 | enableval="$enable_statbmp" | |
8093 | ||
8094 | if test "$enableval" = yes; then | |
8095 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8096 | else | |
8097 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8098 | fi | |
8099 | ||
8100 | else | |
8101 | ||
8102 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8103 | if test "x$LINE" != x ; then | |
8104 | eval "DEFAULT_$LINE" | |
8105 | else | |
8106 | no_cache=1 | |
8107 | fi | |
8108 | ||
8109 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8110 | ||
8111 | fi; | |
8112 | ||
8113 | eval "$ac_cv_use_statbmp" | |
8114 | if test "$no_cache" != 1; then | |
8115 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8116 | fi | |
8117 | ||
8118 | if test "$wxUSE_STATBMP" = yes; then | |
8119 | echo "$as_me:$LINENO: result: yes" >&5 | |
8120 | echo "${ECHO_T}yes" >&6 | |
8121 | else | |
8122 | echo "$as_me:$LINENO: result: no" >&5 | |
8123 | echo "${ECHO_T}no" >&6 | |
8124 | fi | |
8125 | ||
8126 | ||
8127 | enablestring= | |
8128 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8129 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8130 | no_cache=0 | |
8131 | # Check whether --enable-statbox or --disable-statbox was given. | |
8132 | if test "${enable_statbox+set}" = set; then | |
8133 | enableval="$enable_statbox" | |
8134 | ||
8135 | if test "$enableval" = yes; then | |
8136 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8137 | else | |
8138 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8139 | fi | |
8140 | ||
8141 | else | |
8142 | ||
8143 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8144 | if test "x$LINE" != x ; then | |
8145 | eval "DEFAULT_$LINE" | |
8146 | else | |
8147 | no_cache=1 | |
8148 | fi | |
8149 | ||
8150 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8151 | ||
8152 | fi; | |
8153 | ||
8154 | eval "$ac_cv_use_statbox" | |
8155 | if test "$no_cache" != 1; then | |
8156 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8157 | fi | |
8158 | ||
8159 | if test "$wxUSE_STATBOX" = yes; then | |
8160 | echo "$as_me:$LINENO: result: yes" >&5 | |
8161 | echo "${ECHO_T}yes" >&6 | |
8162 | else | |
8163 | echo "$as_me:$LINENO: result: no" >&5 | |
8164 | echo "${ECHO_T}no" >&6 | |
8165 | fi | |
8166 | ||
8167 | ||
8168 | enablestring= | |
8169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8170 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8171 | no_cache=0 | |
8172 | # Check whether --enable-statline or --disable-statline was given. | |
8173 | if test "${enable_statline+set}" = set; then | |
8174 | enableval="$enable_statline" | |
8175 | ||
8176 | if test "$enableval" = yes; then | |
8177 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8178 | else | |
8179 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8180 | fi | |
8181 | ||
8182 | else | |
8183 | ||
8184 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8185 | if test "x$LINE" != x ; then | |
8186 | eval "DEFAULT_$LINE" | |
8187 | else | |
8188 | no_cache=1 | |
8189 | fi | |
8190 | ||
8191 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8192 | ||
8193 | fi; | |
8194 | ||
8195 | eval "$ac_cv_use_statline" | |
8196 | if test "$no_cache" != 1; then | |
8197 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8198 | fi | |
8199 | ||
8200 | if test "$wxUSE_STATLINE" = yes; then | |
8201 | echo "$as_me:$LINENO: result: yes" >&5 | |
8202 | echo "${ECHO_T}yes" >&6 | |
8203 | else | |
8204 | echo "$as_me:$LINENO: result: no" >&5 | |
8205 | echo "${ECHO_T}no" >&6 | |
8206 | fi | |
8207 | ||
8208 | ||
8209 | enablestring= | |
8210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8211 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8212 | no_cache=0 | |
8213 | # Check whether --enable-stattext or --disable-stattext was given. | |
8214 | if test "${enable_stattext+set}" = set; then | |
8215 | enableval="$enable_stattext" | |
8216 | ||
8217 | if test "$enableval" = yes; then | |
8218 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8219 | else | |
8220 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8221 | fi | |
8222 | ||
8223 | else | |
8224 | ||
8225 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8226 | if test "x$LINE" != x ; then | |
8227 | eval "DEFAULT_$LINE" | |
8228 | else | |
8229 | no_cache=1 | |
8230 | fi | |
8231 | ||
8232 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8233 | ||
8234 | fi; | |
8235 | ||
8236 | eval "$ac_cv_use_stattext" | |
8237 | if test "$no_cache" != 1; then | |
8238 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8239 | fi | |
8240 | ||
8241 | if test "$wxUSE_STATTEXT" = yes; then | |
8242 | echo "$as_me:$LINENO: result: yes" >&5 | |
8243 | echo "${ECHO_T}yes" >&6 | |
8244 | else | |
8245 | echo "$as_me:$LINENO: result: no" >&5 | |
8246 | echo "${ECHO_T}no" >&6 | |
8247 | fi | |
8248 | ||
8249 | ||
8250 | enablestring= | |
8251 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8252 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8253 | no_cache=0 | |
8254 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8255 | if test "${enable_statusbar+set}" = set; then | |
8256 | enableval="$enable_statusbar" | |
8257 | ||
8258 | if test "$enableval" = yes; then | |
8259 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8260 | else | |
8261 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8262 | fi | |
8263 | ||
8264 | else | |
8265 | ||
8266 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8267 | if test "x$LINE" != x ; then | |
8268 | eval "DEFAULT_$LINE" | |
8269 | else | |
8270 | no_cache=1 | |
8271 | fi | |
8272 | ||
8273 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8274 | ||
8275 | fi; | |
8276 | ||
8277 | eval "$ac_cv_use_statusbar" | |
8278 | if test "$no_cache" != 1; then | |
8279 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8280 | fi | |
8281 | ||
8282 | if test "$wxUSE_STATUSBAR" = yes; then | |
8283 | echo "$as_me:$LINENO: result: yes" >&5 | |
8284 | echo "${ECHO_T}yes" >&6 | |
8285 | else | |
8286 | echo "$as_me:$LINENO: result: no" >&5 | |
8287 | echo "${ECHO_T}no" >&6 | |
8288 | fi | |
8289 | ||
8290 | ||
8291 | enablestring= | |
8292 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8293 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8294 | no_cache=0 | |
8295 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8296 | if test "${enable_tabdialog+set}" = set; then | |
8297 | enableval="$enable_tabdialog" | |
8298 | ||
8299 | if test "$enableval" = yes; then | |
8300 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8301 | else | |
8302 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8303 | fi | |
8304 | ||
8305 | else | |
8306 | ||
8307 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8308 | if test "x$LINE" != x ; then | |
8309 | eval "DEFAULT_$LINE" | |
8310 | else | |
8311 | no_cache=1 | |
8312 | fi | |
8313 | ||
8314 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8315 | ||
8316 | fi; | |
8317 | ||
8318 | eval "$ac_cv_use_tabdialog" | |
8319 | if test "$no_cache" != 1; then | |
8320 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8321 | fi | |
8322 | ||
8323 | if test "$wxUSE_TABDIALOG" = yes; then | |
8324 | echo "$as_me:$LINENO: result: yes" >&5 | |
8325 | echo "${ECHO_T}yes" >&6 | |
8326 | else | |
8327 | echo "$as_me:$LINENO: result: no" >&5 | |
8328 | echo "${ECHO_T}no" >&6 | |
8329 | fi | |
8330 | ||
8331 | ||
8332 | enablestring= | |
8333 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8334 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8335 | no_cache=0 | |
8336 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8337 | if test "${enable_textctrl+set}" = set; then | |
8338 | enableval="$enable_textctrl" | |
8339 | ||
8340 | if test "$enableval" = yes; then | |
8341 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8342 | else | |
8343 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8344 | fi | |
8345 | ||
8346 | else | |
8347 | ||
8348 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8349 | if test "x$LINE" != x ; then | |
8350 | eval "DEFAULT_$LINE" | |
8351 | else | |
8352 | no_cache=1 | |
8353 | fi | |
8354 | ||
8355 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8356 | ||
8357 | fi; | |
8358 | ||
8359 | eval "$ac_cv_use_textctrl" | |
8360 | if test "$no_cache" != 1; then | |
8361 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8362 | fi | |
8363 | ||
8364 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8365 | echo "$as_me:$LINENO: result: yes" >&5 | |
8366 | echo "${ECHO_T}yes" >&6 | |
8367 | else | |
8368 | echo "$as_me:$LINENO: result: no" >&5 | |
8369 | echo "${ECHO_T}no" >&6 | |
8370 | fi | |
8371 | ||
8372 | ||
8373 | enablestring= | |
8374 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8375 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8376 | no_cache=0 | |
8377 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8378 | if test "${enable_togglebtn+set}" = set; then | |
8379 | enableval="$enable_togglebtn" | |
8380 | ||
8381 | if test "$enableval" = yes; then | |
8382 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8383 | else | |
8384 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8385 | fi | |
8386 | ||
8387 | else | |
8388 | ||
8389 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8390 | if test "x$LINE" != x ; then | |
8391 | eval "DEFAULT_$LINE" | |
8392 | else | |
8393 | no_cache=1 | |
8394 | fi | |
8395 | ||
8396 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8397 | ||
8398 | fi; | |
8399 | ||
8400 | eval "$ac_cv_use_togglebtn" | |
8401 | if test "$no_cache" != 1; then | |
8402 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8403 | fi | |
8404 | ||
8405 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8406 | echo "$as_me:$LINENO: result: yes" >&5 | |
8407 | echo "${ECHO_T}yes" >&6 | |
8408 | else | |
8409 | echo "$as_me:$LINENO: result: no" >&5 | |
8410 | echo "${ECHO_T}no" >&6 | |
8411 | fi | |
8412 | ||
8413 | ||
8414 | enablestring= | |
8415 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8416 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8417 | no_cache=0 | |
8418 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8419 | if test "${enable_toolbar+set}" = set; then | |
8420 | enableval="$enable_toolbar" | |
8421 | ||
8422 | if test "$enableval" = yes; then | |
8423 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8424 | else | |
8425 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8426 | fi | |
8427 | ||
8428 | else | |
8429 | ||
8430 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8431 | if test "x$LINE" != x ; then | |
8432 | eval "DEFAULT_$LINE" | |
8433 | else | |
8434 | no_cache=1 | |
8435 | fi | |
8436 | ||
8437 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8438 | ||
8439 | fi; | |
8440 | ||
8441 | eval "$ac_cv_use_toolbar" | |
8442 | if test "$no_cache" != 1; then | |
8443 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8444 | fi | |
8445 | ||
8446 | if test "$wxUSE_TOOLBAR" = yes; then | |
8447 | echo "$as_me:$LINENO: result: yes" >&5 | |
8448 | echo "${ECHO_T}yes" >&6 | |
8449 | else | |
8450 | echo "$as_me:$LINENO: result: no" >&5 | |
8451 | echo "${ECHO_T}no" >&6 | |
8452 | fi | |
8453 | ||
8454 | ||
8455 | enablestring= | |
8456 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8457 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8458 | no_cache=0 | |
8459 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8460 | if test "${enable_tbarnative+set}" = set; then | |
8461 | enableval="$enable_tbarnative" | |
8462 | ||
8463 | if test "$enableval" = yes; then | |
8464 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8465 | else | |
8466 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8467 | fi | |
8468 | ||
8469 | else | |
8470 | ||
8471 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8472 | if test "x$LINE" != x ; then | |
8473 | eval "DEFAULT_$LINE" | |
8474 | else | |
8475 | no_cache=1 | |
8476 | fi | |
8477 | ||
8478 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8479 | ||
8480 | fi; | |
8481 | ||
8482 | eval "$ac_cv_use_tbarnative" | |
8483 | if test "$no_cache" != 1; then | |
8484 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8485 | fi | |
8486 | ||
8487 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8488 | echo "$as_me:$LINENO: result: yes" >&5 | |
8489 | echo "${ECHO_T}yes" >&6 | |
8490 | else | |
8491 | echo "$as_me:$LINENO: result: no" >&5 | |
8492 | echo "${ECHO_T}no" >&6 | |
8493 | fi | |
8494 | ||
8495 | ||
8496 | enablestring= | |
8497 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8498 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8499 | no_cache=0 | |
8500 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8501 | if test "${enable_tbarsmpl+set}" = set; then | |
8502 | enableval="$enable_tbarsmpl" | |
8503 | ||
8504 | if test "$enableval" = yes; then | |
8505 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8506 | else | |
8507 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8508 | fi | |
8509 | ||
8510 | else | |
8511 | ||
8512 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8513 | if test "x$LINE" != x ; then | |
8514 | eval "DEFAULT_$LINE" | |
8515 | else | |
8516 | no_cache=1 | |
8517 | fi | |
8518 | ||
8519 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8520 | ||
8521 | fi; | |
8522 | ||
8523 | eval "$ac_cv_use_tbarsmpl" | |
8524 | if test "$no_cache" != 1; then | |
8525 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8526 | fi | |
8527 | ||
8528 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8529 | echo "$as_me:$LINENO: result: yes" >&5 | |
8530 | echo "${ECHO_T}yes" >&6 | |
8531 | else | |
8532 | echo "$as_me:$LINENO: result: no" >&5 | |
8533 | echo "${ECHO_T}no" >&6 | |
8534 | fi | |
8535 | ||
8536 | ||
8537 | enablestring= | |
8538 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8539 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8540 | no_cache=0 | |
8541 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8542 | if test "${enable_treectrl+set}" = set; then | |
8543 | enableval="$enable_treectrl" | |
8544 | ||
8545 | if test "$enableval" = yes; then | |
8546 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8547 | else | |
8548 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8549 | fi | |
8550 | ||
8551 | else | |
8552 | ||
8553 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8554 | if test "x$LINE" != x ; then | |
8555 | eval "DEFAULT_$LINE" | |
8556 | else | |
8557 | no_cache=1 | |
8558 | fi | |
8559 | ||
8560 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8561 | ||
8562 | fi; | |
8563 | ||
8564 | eval "$ac_cv_use_treectrl" | |
8565 | if test "$no_cache" != 1; then | |
8566 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8567 | fi | |
8568 | ||
8569 | if test "$wxUSE_TREECTRL" = yes; then | |
8570 | echo "$as_me:$LINENO: result: yes" >&5 | |
8571 | echo "${ECHO_T}yes" >&6 | |
8572 | else | |
8573 | echo "$as_me:$LINENO: result: no" >&5 | |
8574 | echo "${ECHO_T}no" >&6 | |
8575 | fi | |
8576 | ||
8577 | ||
8578 | enablestring= | |
8579 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8580 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8581 | no_cache=0 | |
8582 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8583 | if test "${enable_tipwindow+set}" = set; then | |
8584 | enableval="$enable_tipwindow" | |
8585 | ||
8586 | if test "$enableval" = yes; then | |
8587 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8588 | else | |
8589 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8590 | fi | |
8591 | ||
8592 | else | |
8593 | ||
8594 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8595 | if test "x$LINE" != x ; then | |
8596 | eval "DEFAULT_$LINE" | |
8597 | else | |
8598 | no_cache=1 | |
8599 | fi | |
8600 | ||
8601 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8602 | ||
8603 | fi; | |
8604 | ||
8605 | eval "$ac_cv_use_tipwindow" | |
8606 | if test "$no_cache" != 1; then | |
8607 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8608 | fi | |
8609 | ||
8610 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8611 | echo "$as_me:$LINENO: result: yes" >&5 | |
8612 | echo "${ECHO_T}yes" >&6 | |
8613 | else | |
8614 | echo "$as_me:$LINENO: result: no" >&5 | |
8615 | echo "${ECHO_T}no" >&6 | |
8616 | fi | |
8617 | ||
8618 | ||
8619 | enablestring= | |
8620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8621 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8622 | no_cache=0 | |
8623 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8624 | if test "${enable_popupwin+set}" = set; then | |
8625 | enableval="$enable_popupwin" | |
8626 | ||
8627 | if test "$enableval" = yes; then | |
8628 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8629 | else | |
8630 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8631 | fi | |
8632 | ||
8633 | else | |
8634 | ||
8635 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8636 | if test "x$LINE" != x ; then | |
8637 | eval "DEFAULT_$LINE" | |
8638 | else | |
8639 | no_cache=1 | |
8640 | fi | |
8641 | ||
8642 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8643 | ||
8644 | fi; | |
8645 | ||
8646 | eval "$ac_cv_use_popupwin" | |
8647 | if test "$no_cache" != 1; then | |
8648 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8649 | fi | |
8650 | ||
8651 | if test "$wxUSE_POPUPWIN" = yes; then | |
8652 | echo "$as_me:$LINENO: result: yes" >&5 | |
8653 | echo "${ECHO_T}yes" >&6 | |
8654 | else | |
8655 | echo "$as_me:$LINENO: result: no" >&5 | |
8656 | echo "${ECHO_T}no" >&6 | |
8657 | fi | |
8658 | ||
8659 | ||
8660 | ||
8661 | ||
8662 | enablestring= | |
8663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8664 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8665 | no_cache=0 | |
8666 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8667 | if test "${enable_commondlg+set}" = set; then | |
8668 | enableval="$enable_commondlg" | |
8669 | ||
8670 | if test "$enableval" = yes; then | |
8671 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8672 | else | |
8673 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8674 | fi | |
8675 | ||
8676 | else | |
8677 | ||
8678 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8679 | if test "x$LINE" != x ; then | |
8680 | eval "DEFAULT_$LINE" | |
8681 | else | |
8682 | no_cache=1 | |
8683 | fi | |
8684 | ||
8685 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8686 | ||
8687 | fi; | |
8688 | ||
8689 | eval "$ac_cv_use_commondlg" | |
8690 | if test "$no_cache" != 1; then | |
8691 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8692 | fi | |
8693 | ||
8694 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8695 | echo "$as_me:$LINENO: result: yes" >&5 | |
8696 | echo "${ECHO_T}yes" >&6 | |
8697 | else | |
8698 | echo "$as_me:$LINENO: result: no" >&5 | |
8699 | echo "${ECHO_T}no" >&6 | |
8700 | fi | |
8701 | ||
8702 | ||
8703 | enablestring= | |
8704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8705 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8706 | no_cache=0 | |
8707 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8708 | if test "${enable_choicedlg+set}" = set; then | |
8709 | enableval="$enable_choicedlg" | |
8710 | ||
8711 | if test "$enableval" = yes; then | |
8712 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8713 | else | |
8714 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8715 | fi | |
8716 | ||
8717 | else | |
8718 | ||
8719 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8720 | if test "x$LINE" != x ; then | |
8721 | eval "DEFAULT_$LINE" | |
8722 | else | |
8723 | no_cache=1 | |
8724 | fi | |
8725 | ||
8726 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8727 | ||
8728 | fi; | |
8729 | ||
8730 | eval "$ac_cv_use_choicedlg" | |
8731 | if test "$no_cache" != 1; then | |
8732 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8733 | fi | |
8734 | ||
8735 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8736 | echo "$as_me:$LINENO: result: yes" >&5 | |
8737 | echo "${ECHO_T}yes" >&6 | |
8738 | else | |
8739 | echo "$as_me:$LINENO: result: no" >&5 | |
8740 | echo "${ECHO_T}no" >&6 | |
8741 | fi | |
8742 | ||
8743 | ||
8744 | enablestring= | |
8745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8746 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8747 | no_cache=0 | |
8748 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8749 | if test "${enable_coldlg+set}" = set; then | |
8750 | enableval="$enable_coldlg" | |
8751 | ||
8752 | if test "$enableval" = yes; then | |
8753 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8754 | else | |
8755 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8756 | fi | |
8757 | ||
8758 | else | |
8759 | ||
8760 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8761 | if test "x$LINE" != x ; then | |
8762 | eval "DEFAULT_$LINE" | |
8763 | else | |
8764 | no_cache=1 | |
8765 | fi | |
8766 | ||
8767 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8768 | ||
8769 | fi; | |
8770 | ||
8771 | eval "$ac_cv_use_coldlg" | |
8772 | if test "$no_cache" != 1; then | |
8773 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8774 | fi | |
8775 | ||
8776 | if test "$wxUSE_COLOURDLG" = yes; then | |
8777 | echo "$as_me:$LINENO: result: yes" >&5 | |
8778 | echo "${ECHO_T}yes" >&6 | |
8779 | else | |
8780 | echo "$as_me:$LINENO: result: no" >&5 | |
8781 | echo "${ECHO_T}no" >&6 | |
8782 | fi | |
8783 | ||
8784 | ||
8785 | enablestring= | |
8786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8787 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8788 | no_cache=0 | |
8789 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8790 | if test "${enable_filedlg+set}" = set; then | |
8791 | enableval="$enable_filedlg" | |
8792 | ||
8793 | if test "$enableval" = yes; then | |
8794 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8795 | else | |
8796 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8797 | fi | |
8798 | ||
8799 | else | |
8800 | ||
8801 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8802 | if test "x$LINE" != x ; then | |
8803 | eval "DEFAULT_$LINE" | |
8804 | else | |
8805 | no_cache=1 | |
8806 | fi | |
8807 | ||
8808 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8809 | ||
8810 | fi; | |
8811 | ||
8812 | eval "$ac_cv_use_filedlg" | |
8813 | if test "$no_cache" != 1; then | |
8814 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8815 | fi | |
8816 | ||
8817 | if test "$wxUSE_FILEDLG" = yes; then | |
8818 | echo "$as_me:$LINENO: result: yes" >&5 | |
8819 | echo "${ECHO_T}yes" >&6 | |
8820 | else | |
8821 | echo "$as_me:$LINENO: result: no" >&5 | |
8822 | echo "${ECHO_T}no" >&6 | |
8823 | fi | |
8824 | ||
8825 | ||
8826 | enablestring= | |
8827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8828 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8829 | no_cache=0 | |
8830 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8831 | if test "${enable_finddlg+set}" = set; then | |
8832 | enableval="$enable_finddlg" | |
8833 | ||
8834 | if test "$enableval" = yes; then | |
8835 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8836 | else | |
8837 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8838 | fi | |
8839 | ||
8840 | else | |
8841 | ||
8842 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8843 | if test "x$LINE" != x ; then | |
8844 | eval "DEFAULT_$LINE" | |
8845 | else | |
8846 | no_cache=1 | |
8847 | fi | |
8848 | ||
8849 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8850 | ||
8851 | fi; | |
8852 | ||
8853 | eval "$ac_cv_use_finddlg" | |
8854 | if test "$no_cache" != 1; then | |
8855 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8856 | fi | |
8857 | ||
8858 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8859 | echo "$as_me:$LINENO: result: yes" >&5 | |
8860 | echo "${ECHO_T}yes" >&6 | |
8861 | else | |
8862 | echo "$as_me:$LINENO: result: no" >&5 | |
8863 | echo "${ECHO_T}no" >&6 | |
8864 | fi | |
8865 | ||
8866 | ||
8867 | enablestring= | |
8868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8869 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8870 | no_cache=0 | |
8871 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8872 | if test "${enable_fontdlg+set}" = set; then | |
8873 | enableval="$enable_fontdlg" | |
8874 | ||
8875 | if test "$enableval" = yes; then | |
8876 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8877 | else | |
8878 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8879 | fi | |
8880 | ||
8881 | else | |
8882 | ||
8883 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8884 | if test "x$LINE" != x ; then | |
8885 | eval "DEFAULT_$LINE" | |
8886 | else | |
8887 | no_cache=1 | |
8888 | fi | |
8889 | ||
8890 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8891 | ||
8892 | fi; | |
8893 | ||
8894 | eval "$ac_cv_use_fontdlg" | |
8895 | if test "$no_cache" != 1; then | |
8896 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8897 | fi | |
8898 | ||
8899 | if test "$wxUSE_FONTDLG" = yes; then | |
8900 | echo "$as_me:$LINENO: result: yes" >&5 | |
8901 | echo "${ECHO_T}yes" >&6 | |
8902 | else | |
8903 | echo "$as_me:$LINENO: result: no" >&5 | |
8904 | echo "${ECHO_T}no" >&6 | |
8905 | fi | |
8906 | ||
8907 | ||
8908 | enablestring= | |
8909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8910 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8911 | no_cache=0 | |
8912 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8913 | if test "${enable_dirdlg+set}" = set; then | |
8914 | enableval="$enable_dirdlg" | |
8915 | ||
8916 | if test "$enableval" = yes; then | |
8917 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8918 | else | |
8919 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8920 | fi | |
8921 | ||
8922 | else | |
8923 | ||
8924 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8925 | if test "x$LINE" != x ; then | |
8926 | eval "DEFAULT_$LINE" | |
8927 | else | |
8928 | no_cache=1 | |
8929 | fi | |
8930 | ||
8931 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8932 | ||
8933 | fi; | |
8934 | ||
8935 | eval "$ac_cv_use_dirdlg" | |
8936 | if test "$no_cache" != 1; then | |
8937 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8938 | fi | |
8939 | ||
8940 | if test "$wxUSE_DIRDLG" = yes; then | |
8941 | echo "$as_me:$LINENO: result: yes" >&5 | |
8942 | echo "${ECHO_T}yes" >&6 | |
8943 | else | |
8944 | echo "$as_me:$LINENO: result: no" >&5 | |
8945 | echo "${ECHO_T}no" >&6 | |
8946 | fi | |
8947 | ||
8948 | ||
8949 | enablestring= | |
8950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
8951 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8952 | no_cache=0 | |
8953 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8954 | if test "${enable_msgdlg+set}" = set; then | |
8955 | enableval="$enable_msgdlg" | |
8956 | ||
8957 | if test "$enableval" = yes; then | |
8958 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8959 | else | |
8960 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8961 | fi | |
8962 | ||
8963 | else | |
8964 | ||
8965 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
8966 | if test "x$LINE" != x ; then | |
8967 | eval "DEFAULT_$LINE" | |
8968 | else | |
8969 | no_cache=1 | |
8970 | fi | |
8971 | ||
8972 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8973 | ||
8974 | fi; | |
8975 | ||
8976 | eval "$ac_cv_use_msgdlg" | |
8977 | if test "$no_cache" != 1; then | |
8978 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8979 | fi | |
8980 | ||
8981 | if test "$wxUSE_MSGDLG" = yes; then | |
8982 | echo "$as_me:$LINENO: result: yes" >&5 | |
8983 | echo "${ECHO_T}yes" >&6 | |
8984 | else | |
8985 | echo "$as_me:$LINENO: result: no" >&5 | |
8986 | echo "${ECHO_T}no" >&6 | |
8987 | fi | |
8988 | ||
8989 | ||
8990 | enablestring= | |
8991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
8992 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8993 | no_cache=0 | |
8994 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8995 | if test "${enable_numberdlg+set}" = set; then | |
8996 | enableval="$enable_numberdlg" | |
8997 | ||
8998 | if test "$enableval" = yes; then | |
8999 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9000 | else | |
9001 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9002 | fi | |
9003 | ||
9004 | else | |
9005 | ||
9006 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9007 | if test "x$LINE" != x ; then | |
9008 | eval "DEFAULT_$LINE" | |
9009 | else | |
9010 | no_cache=1 | |
9011 | fi | |
9012 | ||
9013 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9014 | ||
9015 | fi; | |
9016 | ||
9017 | eval "$ac_cv_use_numberdlg" | |
9018 | if test "$no_cache" != 1; then | |
9019 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9020 | fi | |
9021 | ||
9022 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9023 | echo "$as_me:$LINENO: result: yes" >&5 | |
9024 | echo "${ECHO_T}yes" >&6 | |
9025 | else | |
9026 | echo "$as_me:$LINENO: result: no" >&5 | |
9027 | echo "${ECHO_T}no" >&6 | |
9028 | fi | |
9029 | ||
9030 | ||
9031 | enablestring= | |
9032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9033 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9034 | no_cache=0 | |
9035 | # Check whether --enable-splash or --disable-splash was given. | |
9036 | if test "${enable_splash+set}" = set; then | |
9037 | enableval="$enable_splash" | |
9038 | ||
9039 | if test "$enableval" = yes; then | |
9040 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9041 | else | |
9042 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9043 | fi | |
9044 | ||
9045 | else | |
9046 | ||
9047 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9048 | if test "x$LINE" != x ; then | |
9049 | eval "DEFAULT_$LINE" | |
9050 | else | |
9051 | no_cache=1 | |
9052 | fi | |
9053 | ||
9054 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9055 | ||
9056 | fi; | |
9057 | ||
9058 | eval "$ac_cv_use_splash" | |
9059 | if test "$no_cache" != 1; then | |
9060 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9061 | fi | |
9062 | ||
9063 | if test "$wxUSE_SPLASH" = yes; then | |
9064 | echo "$as_me:$LINENO: result: yes" >&5 | |
9065 | echo "${ECHO_T}yes" >&6 | |
9066 | else | |
9067 | echo "$as_me:$LINENO: result: no" >&5 | |
9068 | echo "${ECHO_T}no" >&6 | |
9069 | fi | |
9070 | ||
9071 | ||
9072 | enablestring= | |
9073 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9074 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9075 | no_cache=0 | |
9076 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9077 | if test "${enable_textdlg+set}" = set; then | |
9078 | enableval="$enable_textdlg" | |
9079 | ||
9080 | if test "$enableval" = yes; then | |
9081 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9082 | else | |
9083 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9084 | fi | |
9085 | ||
9086 | else | |
9087 | ||
9088 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9089 | if test "x$LINE" != x ; then | |
9090 | eval "DEFAULT_$LINE" | |
9091 | else | |
9092 | no_cache=1 | |
9093 | fi | |
9094 | ||
9095 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9096 | ||
9097 | fi; | |
9098 | ||
9099 | eval "$ac_cv_use_textdlg" | |
9100 | if test "$no_cache" != 1; then | |
9101 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9102 | fi | |
9103 | ||
9104 | if test "$wxUSE_TEXTDLG" = yes; then | |
9105 | echo "$as_me:$LINENO: result: yes" >&5 | |
9106 | echo "${ECHO_T}yes" >&6 | |
9107 | else | |
9108 | echo "$as_me:$LINENO: result: no" >&5 | |
9109 | echo "${ECHO_T}no" >&6 | |
9110 | fi | |
9111 | ||
9112 | ||
9113 | enablestring= | |
9114 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9115 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9116 | no_cache=0 | |
9117 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9118 | if test "${enable_tipdlg+set}" = set; then | |
9119 | enableval="$enable_tipdlg" | |
9120 | ||
9121 | if test "$enableval" = yes; then | |
9122 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9123 | else | |
9124 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9125 | fi | |
9126 | ||
9127 | else | |
9128 | ||
9129 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9130 | if test "x$LINE" != x ; then | |
9131 | eval "DEFAULT_$LINE" | |
9132 | else | |
9133 | no_cache=1 | |
9134 | fi | |
9135 | ||
9136 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9137 | ||
9138 | fi; | |
9139 | ||
9140 | eval "$ac_cv_use_tipdlg" | |
9141 | if test "$no_cache" != 1; then | |
9142 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9143 | fi | |
9144 | ||
9145 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9146 | echo "$as_me:$LINENO: result: yes" >&5 | |
9147 | echo "${ECHO_T}yes" >&6 | |
9148 | else | |
9149 | echo "$as_me:$LINENO: result: no" >&5 | |
9150 | echo "${ECHO_T}no" >&6 | |
9151 | fi | |
9152 | ||
9153 | ||
9154 | enablestring= | |
9155 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9156 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9157 | no_cache=0 | |
9158 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9159 | if test "${enable_progressdlg+set}" = set; then | |
9160 | enableval="$enable_progressdlg" | |
9161 | ||
9162 | if test "$enableval" = yes; then | |
9163 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9164 | else | |
9165 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9166 | fi | |
9167 | ||
9168 | else | |
9169 | ||
9170 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9171 | if test "x$LINE" != x ; then | |
9172 | eval "DEFAULT_$LINE" | |
9173 | else | |
9174 | no_cache=1 | |
9175 | fi | |
9176 | ||
9177 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9178 | ||
9179 | fi; | |
9180 | ||
9181 | eval "$ac_cv_use_progressdlg" | |
9182 | if test "$no_cache" != 1; then | |
9183 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9184 | fi | |
9185 | ||
9186 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9187 | echo "$as_me:$LINENO: result: yes" >&5 | |
9188 | echo "${ECHO_T}yes" >&6 | |
9189 | else | |
9190 | echo "$as_me:$LINENO: result: no" >&5 | |
9191 | echo "${ECHO_T}no" >&6 | |
9192 | fi | |
9193 | ||
9194 | ||
9195 | enablestring= | |
9196 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9197 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9198 | no_cache=0 | |
9199 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9200 | if test "${enable_wizarddlg+set}" = set; then | |
9201 | enableval="$enable_wizarddlg" | |
9202 | ||
9203 | if test "$enableval" = yes; then | |
9204 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9205 | else | |
9206 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9207 | fi | |
9208 | ||
9209 | else | |
9210 | ||
9211 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9212 | if test "x$LINE" != x ; then | |
9213 | eval "DEFAULT_$LINE" | |
9214 | else | |
9215 | no_cache=1 | |
9216 | fi | |
9217 | ||
9218 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9219 | ||
9220 | fi; | |
9221 | ||
9222 | eval "$ac_cv_use_wizarddlg" | |
9223 | if test "$no_cache" != 1; then | |
9224 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9225 | fi | |
9226 | ||
9227 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9228 | echo "$as_me:$LINENO: result: yes" >&5 | |
9229 | echo "${ECHO_T}yes" >&6 | |
9230 | else | |
9231 | echo "$as_me:$LINENO: result: no" >&5 | |
9232 | echo "${ECHO_T}no" >&6 | |
9233 | fi | |
9234 | ||
9235 | ||
9236 | ||
9237 | ||
9238 | enablestring= | |
9239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9240 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9241 | no_cache=0 | |
9242 | # Check whether --enable-menus or --disable-menus was given. | |
9243 | if test "${enable_menus+set}" = set; then | |
9244 | enableval="$enable_menus" | |
9245 | ||
9246 | if test "$enableval" = yes; then | |
9247 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9248 | else | |
9249 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9250 | fi | |
9251 | ||
9252 | else | |
9253 | ||
9254 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9255 | if test "x$LINE" != x ; then | |
9256 | eval "DEFAULT_$LINE" | |
9257 | else | |
9258 | no_cache=1 | |
9259 | fi | |
9260 | ||
9261 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9262 | ||
9263 | fi; | |
9264 | ||
9265 | eval "$ac_cv_use_menus" | |
9266 | if test "$no_cache" != 1; then | |
9267 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9268 | fi | |
9269 | ||
9270 | if test "$wxUSE_MENUS" = yes; then | |
9271 | echo "$as_me:$LINENO: result: yes" >&5 | |
9272 | echo "${ECHO_T}yes" >&6 | |
9273 | else | |
9274 | echo "$as_me:$LINENO: result: no" >&5 | |
9275 | echo "${ECHO_T}no" >&6 | |
9276 | fi | |
9277 | ||
9278 | ||
9279 | enablestring= | |
9280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9281 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9282 | no_cache=0 | |
9283 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9284 | if test "${enable_miniframe+set}" = set; then | |
9285 | enableval="$enable_miniframe" | |
9286 | ||
9287 | if test "$enableval" = yes; then | |
9288 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9289 | else | |
9290 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9291 | fi | |
9292 | ||
9293 | else | |
9294 | ||
9295 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9296 | if test "x$LINE" != x ; then | |
9297 | eval "DEFAULT_$LINE" | |
9298 | else | |
9299 | no_cache=1 | |
9300 | fi | |
9301 | ||
9302 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9303 | ||
9304 | fi; | |
9305 | ||
9306 | eval "$ac_cv_use_miniframe" | |
9307 | if test "$no_cache" != 1; then | |
9308 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9309 | fi | |
9310 | ||
9311 | if test "$wxUSE_MINIFRAME" = yes; then | |
9312 | echo "$as_me:$LINENO: result: yes" >&5 | |
9313 | echo "${ECHO_T}yes" >&6 | |
9314 | else | |
9315 | echo "$as_me:$LINENO: result: no" >&5 | |
9316 | echo "${ECHO_T}no" >&6 | |
9317 | fi | |
9318 | ||
9319 | ||
9320 | enablestring= | |
9321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9322 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9323 | no_cache=0 | |
9324 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9325 | if test "${enable_tooltips+set}" = set; then | |
9326 | enableval="$enable_tooltips" | |
9327 | ||
9328 | if test "$enableval" = yes; then | |
9329 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9330 | else | |
9331 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9332 | fi | |
9333 | ||
9334 | else | |
9335 | ||
9336 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9337 | if test "x$LINE" != x ; then | |
9338 | eval "DEFAULT_$LINE" | |
9339 | else | |
9340 | no_cache=1 | |
9341 | fi | |
9342 | ||
9343 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9344 | ||
9345 | fi; | |
9346 | ||
9347 | eval "$ac_cv_use_tooltips" | |
9348 | if test "$no_cache" != 1; then | |
9349 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9350 | fi | |
9351 | ||
9352 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9353 | echo "$as_me:$LINENO: result: yes" >&5 | |
9354 | echo "${ECHO_T}yes" >&6 | |
9355 | else | |
9356 | echo "$as_me:$LINENO: result: no" >&5 | |
9357 | echo "${ECHO_T}no" >&6 | |
9358 | fi | |
9359 | ||
9360 | ||
9361 | enablestring= | |
9362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9363 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9364 | no_cache=0 | |
9365 | # Check whether --enable-splines or --disable-splines was given. | |
9366 | if test "${enable_splines+set}" = set; then | |
9367 | enableval="$enable_splines" | |
9368 | ||
9369 | if test "$enableval" = yes; then | |
9370 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9371 | else | |
9372 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9373 | fi | |
9374 | ||
9375 | else | |
9376 | ||
9377 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9378 | if test "x$LINE" != x ; then | |
9379 | eval "DEFAULT_$LINE" | |
9380 | else | |
9381 | no_cache=1 | |
9382 | fi | |
9383 | ||
9384 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9385 | ||
9386 | fi; | |
9387 | ||
9388 | eval "$ac_cv_use_splines" | |
9389 | if test "$no_cache" != 1; then | |
9390 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9391 | fi | |
9392 | ||
9393 | if test "$wxUSE_SPLINES" = yes; then | |
9394 | echo "$as_me:$LINENO: result: yes" >&5 | |
9395 | echo "${ECHO_T}yes" >&6 | |
9396 | else | |
9397 | echo "$as_me:$LINENO: result: no" >&5 | |
9398 | echo "${ECHO_T}no" >&6 | |
9399 | fi | |
9400 | ||
9401 | ||
9402 | enablestring= | |
9403 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9404 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9405 | no_cache=0 | |
9406 | # Check whether --enable-validators or --disable-validators was given. | |
9407 | if test "${enable_validators+set}" = set; then | |
9408 | enableval="$enable_validators" | |
9409 | ||
9410 | if test "$enableval" = yes; then | |
9411 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9412 | else | |
9413 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9414 | fi | |
9415 | ||
9416 | else | |
9417 | ||
9418 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9419 | if test "x$LINE" != x ; then | |
9420 | eval "DEFAULT_$LINE" | |
9421 | else | |
9422 | no_cache=1 | |
9423 | fi | |
9424 | ||
9425 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9426 | ||
9427 | fi; | |
9428 | ||
9429 | eval "$ac_cv_use_validators" | |
9430 | if test "$no_cache" != 1; then | |
9431 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9432 | fi | |
9433 | ||
9434 | if test "$wxUSE_VALIDATORS" = yes; then | |
9435 | echo "$as_me:$LINENO: result: yes" >&5 | |
9436 | echo "${ECHO_T}yes" >&6 | |
9437 | else | |
9438 | echo "$as_me:$LINENO: result: no" >&5 | |
9439 | echo "${ECHO_T}no" >&6 | |
9440 | fi | |
9441 | ||
9442 | ||
9443 | enablestring= | |
9444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9445 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9446 | no_cache=0 | |
9447 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9448 | if test "${enable_busyinfo+set}" = set; then | |
9449 | enableval="$enable_busyinfo" | |
9450 | ||
9451 | if test "$enableval" = yes; then | |
9452 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9453 | else | |
9454 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9455 | fi | |
9456 | ||
9457 | else | |
9458 | ||
9459 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9460 | if test "x$LINE" != x ; then | |
9461 | eval "DEFAULT_$LINE" | |
9462 | else | |
9463 | no_cache=1 | |
9464 | fi | |
9465 | ||
9466 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9467 | ||
9468 | fi; | |
9469 | ||
9470 | eval "$ac_cv_use_busyinfo" | |
9471 | if test "$no_cache" != 1; then | |
9472 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9473 | fi | |
9474 | ||
9475 | if test "$wxUSE_BUSYINFO" = yes; then | |
9476 | echo "$as_me:$LINENO: result: yes" >&5 | |
9477 | echo "${ECHO_T}yes" >&6 | |
9478 | else | |
9479 | echo "$as_me:$LINENO: result: no" >&5 | |
9480 | echo "${ECHO_T}no" >&6 | |
9481 | fi | |
9482 | ||
9483 | ||
9484 | enablestring= | |
9485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9486 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9487 | no_cache=0 | |
9488 | # Check whether --enable-joystick or --disable-joystick was given. | |
9489 | if test "${enable_joystick+set}" = set; then | |
9490 | enableval="$enable_joystick" | |
9491 | ||
9492 | if test "$enableval" = yes; then | |
9493 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9494 | else | |
9495 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9496 | fi | |
9497 | ||
9498 | else | |
9499 | ||
9500 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9501 | if test "x$LINE" != x ; then | |
9502 | eval "DEFAULT_$LINE" | |
9503 | else | |
9504 | no_cache=1 | |
9505 | fi | |
9506 | ||
9507 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9508 | ||
9509 | fi; | |
9510 | ||
9511 | eval "$ac_cv_use_joystick" | |
9512 | if test "$no_cache" != 1; then | |
9513 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9514 | fi | |
9515 | ||
9516 | if test "$wxUSE_JOYSTICK" = yes; then | |
9517 | echo "$as_me:$LINENO: result: yes" >&5 | |
9518 | echo "${ECHO_T}yes" >&6 | |
9519 | else | |
9520 | echo "$as_me:$LINENO: result: no" >&5 | |
9521 | echo "${ECHO_T}no" >&6 | |
9522 | fi | |
9523 | ||
9524 | ||
9525 | enablestring= | |
9526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9527 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9528 | no_cache=0 | |
9529 | # Check whether --enable-metafile or --disable-metafile was given. | |
9530 | if test "${enable_metafile+set}" = set; then | |
9531 | enableval="$enable_metafile" | |
9532 | ||
9533 | if test "$enableval" = yes; then | |
9534 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9535 | else | |
9536 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9537 | fi | |
9538 | ||
9539 | else | |
9540 | ||
9541 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9542 | if test "x$LINE" != x ; then | |
9543 | eval "DEFAULT_$LINE" | |
9544 | else | |
9545 | no_cache=1 | |
9546 | fi | |
9547 | ||
9548 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9549 | ||
9550 | fi; | |
9551 | ||
9552 | eval "$ac_cv_use_metafile" | |
9553 | if test "$no_cache" != 1; then | |
9554 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9555 | fi | |
9556 | ||
9557 | if test "$wxUSE_METAFILE" = yes; then | |
9558 | echo "$as_me:$LINENO: result: yes" >&5 | |
9559 | echo "${ECHO_T}yes" >&6 | |
9560 | else | |
9561 | echo "$as_me:$LINENO: result: no" >&5 | |
9562 | echo "${ECHO_T}no" >&6 | |
9563 | fi | |
9564 | ||
9565 | ||
9566 | enablestring= | |
9567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9568 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9569 | no_cache=0 | |
9570 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9571 | if test "${enable_dragimage+set}" = set; then | |
9572 | enableval="$enable_dragimage" | |
9573 | ||
9574 | if test "$enableval" = yes; then | |
9575 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9576 | else | |
9577 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9578 | fi | |
9579 | ||
9580 | else | |
9581 | ||
9582 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9583 | if test "x$LINE" != x ; then | |
9584 | eval "DEFAULT_$LINE" | |
9585 | else | |
9586 | no_cache=1 | |
9587 | fi | |
9588 | ||
9589 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9590 | ||
9591 | fi; | |
9592 | ||
9593 | eval "$ac_cv_use_dragimage" | |
9594 | if test "$no_cache" != 1; then | |
9595 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9596 | fi | |
9597 | ||
9598 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9599 | echo "$as_me:$LINENO: result: yes" >&5 | |
9600 | echo "${ECHO_T}yes" >&6 | |
9601 | else | |
9602 | echo "$as_me:$LINENO: result: no" >&5 | |
9603 | echo "${ECHO_T}no" >&6 | |
9604 | fi | |
9605 | ||
9606 | ||
9607 | enablestring= | |
9608 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9609 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9610 | no_cache=0 | |
9611 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9612 | if test "${enable_accessibility+set}" = set; then | |
9613 | enableval="$enable_accessibility" | |
9614 | ||
9615 | if test "$enableval" = yes; then | |
9616 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9617 | else | |
9618 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9619 | fi | |
9620 | ||
9621 | else | |
9622 | ||
9623 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9624 | if test "x$LINE" != x ; then | |
9625 | eval "DEFAULT_$LINE" | |
9626 | else | |
9627 | no_cache=1 | |
9628 | fi | |
9629 | ||
9630 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9631 | ||
9632 | fi; | |
9633 | ||
9634 | eval "$ac_cv_use_accessibility" | |
9635 | if test "$no_cache" != 1; then | |
9636 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9637 | fi | |
9638 | ||
9639 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9640 | echo "$as_me:$LINENO: result: yes" >&5 | |
9641 | echo "${ECHO_T}yes" >&6 | |
9642 | else | |
9643 | echo "$as_me:$LINENO: result: no" >&5 | |
9644 | echo "${ECHO_T}no" >&6 | |
9645 | fi | |
9646 | ||
9647 | ||
9648 | ||
9649 | ||
9650 | enablestring= | |
9651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9652 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9653 | no_cache=0 | |
9654 | # Check whether --enable-palette or --disable-palette was given. | |
9655 | if test "${enable_palette+set}" = set; then | |
9656 | enableval="$enable_palette" | |
9657 | ||
9658 | if test "$enableval" = yes; then | |
9659 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9660 | else | |
9661 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9662 | fi | |
9663 | ||
9664 | else | |
9665 | ||
9666 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9667 | if test "x$LINE" != x ; then | |
9668 | eval "DEFAULT_$LINE" | |
9669 | else | |
9670 | no_cache=1 | |
9671 | fi | |
9672 | ||
9673 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9674 | ||
9675 | fi; | |
9676 | ||
9677 | eval "$ac_cv_use_palette" | |
9678 | if test "$no_cache" != 1; then | |
9679 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9680 | fi | |
9681 | ||
9682 | if test "$wxUSE_PALETTE" = yes; then | |
9683 | echo "$as_me:$LINENO: result: yes" >&5 | |
9684 | echo "${ECHO_T}yes" >&6 | |
9685 | else | |
9686 | echo "$as_me:$LINENO: result: no" >&5 | |
9687 | echo "${ECHO_T}no" >&6 | |
9688 | fi | |
9689 | ||
9690 | ||
9691 | enablestring= | |
9692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9693 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9694 | no_cache=0 | |
9695 | # Check whether --enable-image or --disable-image was given. | |
9696 | if test "${enable_image+set}" = set; then | |
9697 | enableval="$enable_image" | |
9698 | ||
9699 | if test "$enableval" = yes; then | |
9700 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9701 | else | |
9702 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9703 | fi | |
9704 | ||
9705 | else | |
9706 | ||
9707 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9708 | if test "x$LINE" != x ; then | |
9709 | eval "DEFAULT_$LINE" | |
9710 | else | |
9711 | no_cache=1 | |
9712 | fi | |
9713 | ||
9714 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9715 | ||
9716 | fi; | |
9717 | ||
9718 | eval "$ac_cv_use_image" | |
9719 | if test "$no_cache" != 1; then | |
9720 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9721 | fi | |
9722 | ||
9723 | if test "$wxUSE_IMAGE" = yes; then | |
9724 | echo "$as_me:$LINENO: result: yes" >&5 | |
9725 | echo "${ECHO_T}yes" >&6 | |
9726 | else | |
9727 | echo "$as_me:$LINENO: result: no" >&5 | |
9728 | echo "${ECHO_T}no" >&6 | |
9729 | fi | |
9730 | ||
9731 | ||
9732 | enablestring= | |
9733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9734 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9735 | no_cache=0 | |
9736 | # Check whether --enable-gif or --disable-gif was given. | |
9737 | if test "${enable_gif+set}" = set; then | |
9738 | enableval="$enable_gif" | |
9739 | ||
9740 | if test "$enableval" = yes; then | |
9741 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9742 | else | |
9743 | ac_cv_use_gif='wxUSE_GIF=no' | |
9744 | fi | |
9745 | ||
9746 | else | |
9747 | ||
9748 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9749 | if test "x$LINE" != x ; then | |
9750 | eval "DEFAULT_$LINE" | |
9751 | else | |
9752 | no_cache=1 | |
9753 | fi | |
9754 | ||
9755 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9756 | ||
9757 | fi; | |
9758 | ||
9759 | eval "$ac_cv_use_gif" | |
9760 | if test "$no_cache" != 1; then | |
9761 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9762 | fi | |
9763 | ||
9764 | if test "$wxUSE_GIF" = yes; then | |
9765 | echo "$as_me:$LINENO: result: yes" >&5 | |
9766 | echo "${ECHO_T}yes" >&6 | |
9767 | else | |
9768 | echo "$as_me:$LINENO: result: no" >&5 | |
9769 | echo "${ECHO_T}no" >&6 | |
9770 | fi | |
9771 | ||
9772 | ||
9773 | enablestring= | |
9774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9775 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9776 | no_cache=0 | |
9777 | # Check whether --enable-pcx or --disable-pcx was given. | |
9778 | if test "${enable_pcx+set}" = set; then | |
9779 | enableval="$enable_pcx" | |
9780 | ||
9781 | if test "$enableval" = yes; then | |
9782 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9783 | else | |
9784 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9785 | fi | |
9786 | ||
9787 | else | |
9788 | ||
9789 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9790 | if test "x$LINE" != x ; then | |
9791 | eval "DEFAULT_$LINE" | |
9792 | else | |
9793 | no_cache=1 | |
9794 | fi | |
9795 | ||
9796 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9797 | ||
9798 | fi; | |
9799 | ||
9800 | eval "$ac_cv_use_pcx" | |
9801 | if test "$no_cache" != 1; then | |
9802 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9803 | fi | |
9804 | ||
9805 | if test "$wxUSE_PCX" = yes; then | |
9806 | echo "$as_me:$LINENO: result: yes" >&5 | |
9807 | echo "${ECHO_T}yes" >&6 | |
9808 | else | |
9809 | echo "$as_me:$LINENO: result: no" >&5 | |
9810 | echo "${ECHO_T}no" >&6 | |
9811 | fi | |
9812 | ||
9813 | ||
9814 | enablestring= | |
9815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9816 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9817 | no_cache=0 | |
9818 | # Check whether --enable-iff or --disable-iff was given. | |
9819 | if test "${enable_iff+set}" = set; then | |
9820 | enableval="$enable_iff" | |
9821 | ||
9822 | if test "$enableval" = yes; then | |
9823 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9824 | else | |
9825 | ac_cv_use_iff='wxUSE_IFF=no' | |
9826 | fi | |
9827 | ||
9828 | else | |
9829 | ||
9830 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9831 | if test "x$LINE" != x ; then | |
9832 | eval "DEFAULT_$LINE" | |
9833 | else | |
9834 | no_cache=1 | |
9835 | fi | |
9836 | ||
9837 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9838 | ||
9839 | fi; | |
9840 | ||
9841 | eval "$ac_cv_use_iff" | |
9842 | if test "$no_cache" != 1; then | |
9843 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9844 | fi | |
9845 | ||
9846 | if test "$wxUSE_IFF" = yes; then | |
9847 | echo "$as_me:$LINENO: result: yes" >&5 | |
9848 | echo "${ECHO_T}yes" >&6 | |
9849 | else | |
9850 | echo "$as_me:$LINENO: result: no" >&5 | |
9851 | echo "${ECHO_T}no" >&6 | |
9852 | fi | |
9853 | ||
9854 | ||
9855 | enablestring= | |
9856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9857 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9858 | no_cache=0 | |
9859 | # Check whether --enable-pnm or --disable-pnm was given. | |
9860 | if test "${enable_pnm+set}" = set; then | |
9861 | enableval="$enable_pnm" | |
9862 | ||
9863 | if test "$enableval" = yes; then | |
9864 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9865 | else | |
9866 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9867 | fi | |
9868 | ||
9869 | else | |
9870 | ||
9871 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9872 | if test "x$LINE" != x ; then | |
9873 | eval "DEFAULT_$LINE" | |
9874 | else | |
9875 | no_cache=1 | |
9876 | fi | |
9877 | ||
9878 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9879 | ||
9880 | fi; | |
9881 | ||
9882 | eval "$ac_cv_use_pnm" | |
9883 | if test "$no_cache" != 1; then | |
9884 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9885 | fi | |
9886 | ||
9887 | if test "$wxUSE_PNM" = yes; then | |
9888 | echo "$as_me:$LINENO: result: yes" >&5 | |
9889 | echo "${ECHO_T}yes" >&6 | |
9890 | else | |
9891 | echo "$as_me:$LINENO: result: no" >&5 | |
9892 | echo "${ECHO_T}no" >&6 | |
9893 | fi | |
9894 | ||
9895 | ||
9896 | enablestring= | |
9897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9898 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9899 | no_cache=0 | |
9900 | # Check whether --enable-xpm or --disable-xpm was given. | |
9901 | if test "${enable_xpm+set}" = set; then | |
9902 | enableval="$enable_xpm" | |
9903 | ||
9904 | if test "$enableval" = yes; then | |
9905 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9906 | else | |
9907 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9908 | fi | |
9909 | ||
9910 | else | |
9911 | ||
9912 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9913 | if test "x$LINE" != x ; then | |
9914 | eval "DEFAULT_$LINE" | |
9915 | else | |
9916 | no_cache=1 | |
9917 | fi | |
9918 | ||
9919 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9920 | ||
9921 | fi; | |
9922 | ||
9923 | eval "$ac_cv_use_xpm" | |
9924 | if test "$no_cache" != 1; then | |
9925 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9926 | fi | |
9927 | ||
9928 | if test "$wxUSE_XPM" = yes; then | |
9929 | echo "$as_me:$LINENO: result: yes" >&5 | |
9930 | echo "${ECHO_T}yes" >&6 | |
9931 | else | |
9932 | echo "$as_me:$LINENO: result: no" >&5 | |
9933 | echo "${ECHO_T}no" >&6 | |
9934 | fi | |
9935 | ||
9936 | ||
9937 | enablestring= | |
9938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
9939 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9940 | no_cache=0 | |
9941 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9942 | if test "${enable_ico_cur+set}" = set; then | |
9943 | enableval="$enable_ico_cur" | |
9944 | ||
9945 | if test "$enableval" = yes; then | |
9946 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9947 | else | |
9948 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9949 | fi | |
9950 | ||
9951 | else | |
9952 | ||
9953 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
9954 | if test "x$LINE" != x ; then | |
9955 | eval "DEFAULT_$LINE" | |
9956 | else | |
9957 | no_cache=1 | |
9958 | fi | |
9959 | ||
9960 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9961 | ||
9962 | fi; | |
9963 | ||
9964 | eval "$ac_cv_use_ico_cur" | |
9965 | if test "$no_cache" != 1; then | |
9966 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9967 | fi | |
9968 | ||
9969 | if test "$wxUSE_ICO_CUR" = yes; then | |
9970 | echo "$as_me:$LINENO: result: yes" >&5 | |
9971 | echo "${ECHO_T}yes" >&6 | |
9972 | else | |
9973 | echo "$as_me:$LINENO: result: no" >&5 | |
9974 | echo "${ECHO_T}no" >&6 | |
9975 | fi | |
9976 | ||
9977 | ||
9978 | fi | |
9979 | ||
9980 | ||
9981 | ||
ceec2216 RL |
9982 | # Check whether --with-flavour or --without-flavour was given. |
9983 | if test "${with_flavour+set}" = set; then | |
9984 | withval="$with_flavour" | |
9985 | WX_FLAVOUR="$withval" | |
9986 | fi; | |
9987 | ||
9988 | ||
9989 | ||
a848cd7e SC |
9990 | enablestring= |
9991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9992 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9993 | no_cache=0 | |
9994 | # Check whether --enable-official_build or --disable-official_build was given. | |
9995 | if test "${enable_official_build+set}" = set; then | |
9996 | enableval="$enable_official_build" | |
9997 | ||
9998 | if test "$enableval" = yes; then | |
9999 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10000 | else | |
10001 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10002 | fi | |
10003 | ||
10004 | else | |
10005 | ||
10006 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10007 | if test "x$LINE" != x ; then | |
10008 | eval "DEFAULT_$LINE" | |
10009 | else | |
10010 | no_cache=1 | |
10011 | fi | |
10012 | ||
10013 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10014 | ||
10015 | fi; | |
10016 | ||
10017 | eval "$ac_cv_use_official_build" | |
10018 | if test "$no_cache" != 1; then | |
10019 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10020 | fi | |
10021 | ||
10022 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10023 | echo "$as_me:$LINENO: result: yes" >&5 | |
10024 | echo "${ECHO_T}yes" >&6 | |
10025 | else | |
10026 | echo "$as_me:$LINENO: result: no" >&5 | |
10027 | echo "${ECHO_T}no" >&6 | |
10028 | fi | |
10029 | ||
10030 | # Check whether --enable-vendor or --disable-vendor was given. | |
10031 | if test "${enable_vendor+set}" = set; then | |
10032 | enableval="$enable_vendor" | |
10033 | VENDOR="$enableval" | |
10034 | fi; | |
10035 | if test "x$VENDOR" = "x"; then | |
10036 | VENDOR="custom" | |
10037 | fi | |
10038 | ||
a848cd7e SC |
10039 | |
10040 | ||
10041 | ||
10042 | echo "saving argument cache $wx_arg_cache_file" | |
10043 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10044 | ||
10045 | ||
10046 | ||
10047 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10048 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10049 | ||
10050 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10051 | if test "$wxUSE_WINE" = "yes"; then | |
10052 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10053 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10054 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10055 | wxUSE_SHARED=no | |
10056 | fi | |
10057 | ||
10058 | if test "$wxUSE_GUI" = "yes"; then | |
10059 | ||
10060 | if test "$USE_BEOS" = 1; then | |
10061 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10062 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10063 | { (exit 1); exit 1; }; } | |
10064 | fi | |
10065 | ||
10066 | if test "$TOOLKIT_GIVEN" = 1; then | |
10067 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10068 | var=wxUSE_$toolkit | |
10069 | eval "value=\$${var}" | |
10070 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10071 | done | |
10072 | else | |
10073 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10074 | if test "$has_toolkit_in_cache" != 1; then | |
10075 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10076 | else | |
10077 | var=DEFAULT_wxUSE_$toolkit | |
10078 | fi | |
10079 | eval "wxUSE_$toolkit=\$${var}" | |
10080 | done | |
10081 | fi | |
10082 | ||
10083 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10084 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10085 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10086 | ||
10087 | case "${host}" in | |
10088 | *-pc-os2_emx | *-pc-os2-emx ) | |
10089 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10090 | esac | |
10091 | ||
10092 | case "$NUM_TOOLKITS" in | |
10093 | 1) | |
10094 | ;; | |
10095 | 0) | |
10096 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10097 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10098 | { (exit 1); exit 1; }; } | |
10099 | ;; | |
10100 | *) | |
10101 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10102 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10103 | { (exit 1); exit 1; }; } | |
10104 | esac | |
10105 | ||
10106 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10107 | var=wxUSE_$toolkit | |
10108 | eval "value=\$${var}" | |
10109 | if test "x$value" != x; then | |
10110 | cache_var=CACHE_$toolkit | |
10111 | eval "cache=\$${cache_var}" | |
10112 | if test "$cache" = 1; then | |
10113 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10114 | fi | |
10115 | if test "$value" = 1; then | |
10116 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10117 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10118 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10119 | fi | |
10120 | fi | |
10121 | done | |
10122 | else | |
10123 | if test "x$host_alias" != "x"; then | |
10124 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10125 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10126 | else | |
10127 | echo "$as_me:$LINENO: result: base only" >&5 | |
10128 | echo "${ECHO_T}base only" >&6 | |
10129 | fi | |
10130 | fi | |
10131 | ||
10132 | wants_win32=0 | |
10133 | doesnt_want_win32=0 | |
10134 | case "${host}" in | |
10135 | *-*-cygwin*) | |
10136 | if test "$wxUSE_MSW" = 1 ; then | |
10137 | wants_win32=1 | |
10138 | else | |
10139 | doesnt_want_win32=1 | |
10140 | fi | |
10141 | ;; | |
10142 | *-*-mingw*) | |
10143 | wants_win32=1 | |
10144 | ;; | |
10145 | esac | |
10146 | ||
10147 | if test "$wxUSE_WINE" = "yes"; then | |
10148 | wants_win32=1 | |
10149 | CC=winegcc | |
10150 | CXX=wineg++ | |
10151 | RESCOMP=wrc | |
10152 | LDFLAGS_GUI="-mwindows" | |
10153 | fi | |
10154 | ||
10155 | if test "$wants_win32" = 1 ; then | |
10156 | USE_UNIX=0 | |
10157 | USE_WIN32=1 | |
10158 | cat >>confdefs.h <<\_ACEOF | |
10159 | #define __WIN32__ 1 | |
10160 | _ACEOF | |
10161 | ||
10162 | cat >>confdefs.h <<\_ACEOF | |
10163 | #define __WIN95__ 1 | |
10164 | _ACEOF | |
10165 | ||
10166 | cat >>confdefs.h <<\_ACEOF | |
10167 | #define __WINDOWS__ 1 | |
10168 | _ACEOF | |
10169 | ||
10170 | cat >>confdefs.h <<\_ACEOF | |
10171 | #define __GNUWIN32__ 1 | |
10172 | _ACEOF | |
10173 | ||
10174 | cat >>confdefs.h <<\_ACEOF | |
10175 | #define STRICT 1 | |
10176 | _ACEOF | |
10177 | ||
10178 | cat >>confdefs.h <<\_ACEOF | |
10179 | #define WINVER 0x0400 | |
10180 | _ACEOF | |
10181 | ||
10182 | fi | |
10183 | if test "$doesnt_want_win32" = 1 ; then | |
10184 | USE_UNIX=1 | |
10185 | USE_WIN32=0 | |
10186 | fi | |
10187 | ||
10188 | if test "$USE_UNIX" = 1 ; then | |
10189 | wxUSE_UNIX=yes | |
10190 | cat >>confdefs.h <<\_ACEOF | |
10191 | #define __UNIX__ 1 | |
10192 | _ACEOF | |
10193 | ||
10194 | fi | |
10195 | ||
10196 | ||
10197 | cat >confcache <<\_ACEOF | |
10198 | # This file is a shell script that caches the results of configure | |
10199 | # tests run on this system so they can be shared between configure | |
10200 | # scripts and configure runs, see configure's option --config-cache. | |
10201 | # It is not useful on other systems. If it contains results you don't | |
10202 | # want to keep, you may remove or edit it. | |
10203 | # | |
10204 | # config.status only pays attention to the cache file if you give it | |
10205 | # the --recheck option to rerun configure. | |
10206 | # | |
10207 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10208 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10209 | # following values. | |
10210 | ||
10211 | _ACEOF | |
10212 | ||
10213 | # The following way of writing the cache mishandles newlines in values, | |
10214 | # but we know of no workaround that is simple, portable, and efficient. | |
10215 | # So, don't put newlines in cache variables' values. | |
10216 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10217 | # and sets the high bit in the cache file unless we assign to the vars. | |
10218 | { | |
10219 | (set) 2>&1 | | |
10220 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10221 | *ac_space=\ *) | |
10222 | # `set' does not quote correctly, so add quotes (double-quote | |
10223 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10224 | sed -n \ | |
ac1cb8d3 VS |
10225 | "s/'/'\\\\''/g; |
10226 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10227 | ;; |
10228 | *) | |
10229 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10230 | sed -n \ | |
ac1cb8d3 | 10231 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10232 | ;; |
10233 | esac; | |
10234 | } | | |
10235 | sed ' | |
10236 | t clear | |
10237 | : clear | |
10238 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10239 | t end | |
10240 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10241 | : end' >>confcache | |
10242 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10243 | if test -w $cache_file; then | |
10244 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10245 | cat confcache >$cache_file | |
10246 | else | |
10247 | echo "not updating unwritable cache $cache_file" | |
10248 | fi | |
10249 | fi | |
10250 | rm -f confcache | |
10251 | ||
10252 | if test "$build" != "$host" ; then | |
10253 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10254 | CC=$host_alias-gcc | |
10255 | CXX=$host_alias-c++ | |
10256 | AR=$host_alias-ar | |
10257 | RANLIB=$host_alias-ranlib | |
10258 | DLLTOOL=$host_alias-dlltool | |
10259 | RESCOMP=$host_alias-windres | |
a848cd7e SC |
10260 | STRIP=$host_alias-strip |
10261 | else | |
10262 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10263 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10264 | { (exit 1); exit 1; }; } | |
10265 | fi | |
10266 | fi | |
10267 | ||
10268 | CFLAGS=${CFLAGS:=} | |
10269 | ac_ext=c | |
10270 | ac_cpp='$CPP $CPPFLAGS' | |
10271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10274 | if test -n "$ac_tool_prefix"; then | |
10275 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10276 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10277 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10279 | if test "${ac_cv_prog_CC+set}" = set; then | |
10280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10281 | else | |
10282 | if test -n "$CC"; then | |
10283 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10284 | else | |
10285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10286 | for as_dir in $PATH | |
10287 | do | |
10288 | IFS=$as_save_IFS | |
10289 | test -z "$as_dir" && as_dir=. | |
10290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10291 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10292 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10293 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10294 | break 2 | |
10295 | fi | |
10296 | done | |
10297 | done | |
10298 | ||
10299 | fi | |
10300 | fi | |
10301 | CC=$ac_cv_prog_CC | |
10302 | if test -n "$CC"; then | |
10303 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10304 | echo "${ECHO_T}$CC" >&6 | |
10305 | else | |
10306 | echo "$as_me:$LINENO: result: no" >&5 | |
10307 | echo "${ECHO_T}no" >&6 | |
10308 | fi | |
10309 | ||
10310 | fi | |
10311 | if test -z "$ac_cv_prog_CC"; then | |
10312 | ac_ct_CC=$CC | |
10313 | # Extract the first word of "gcc", so it can be a program name with args. | |
10314 | set dummy gcc; ac_word=$2 | |
10315 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10317 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10319 | else | |
10320 | if test -n "$ac_ct_CC"; then | |
10321 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10322 | else | |
10323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10324 | for as_dir in $PATH | |
10325 | do | |
10326 | IFS=$as_save_IFS | |
10327 | test -z "$as_dir" && as_dir=. | |
10328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10329 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10330 | ac_cv_prog_ac_ct_CC="gcc" | |
10331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10332 | break 2 | |
10333 | fi | |
10334 | done | |
10335 | done | |
10336 | ||
10337 | fi | |
10338 | fi | |
10339 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10340 | if test -n "$ac_ct_CC"; then | |
10341 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10342 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10343 | else | |
10344 | echo "$as_me:$LINENO: result: no" >&5 | |
10345 | echo "${ECHO_T}no" >&6 | |
10346 | fi | |
10347 | ||
10348 | CC=$ac_ct_CC | |
10349 | else | |
10350 | CC="$ac_cv_prog_CC" | |
10351 | fi | |
10352 | ||
10353 | if test -z "$CC"; then | |
10354 | if test -n "$ac_tool_prefix"; then | |
10355 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10356 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10359 | if test "${ac_cv_prog_CC+set}" = set; then | |
10360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10361 | else | |
10362 | if test -n "$CC"; then | |
10363 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10364 | else | |
10365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10366 | for as_dir in $PATH | |
10367 | do | |
10368 | IFS=$as_save_IFS | |
10369 | test -z "$as_dir" && as_dir=. | |
10370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10372 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10374 | break 2 | |
10375 | fi | |
10376 | done | |
10377 | done | |
10378 | ||
10379 | fi | |
10380 | fi | |
10381 | CC=$ac_cv_prog_CC | |
10382 | if test -n "$CC"; then | |
10383 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10384 | echo "${ECHO_T}$CC" >&6 | |
10385 | else | |
10386 | echo "$as_me:$LINENO: result: no" >&5 | |
10387 | echo "${ECHO_T}no" >&6 | |
10388 | fi | |
10389 | ||
10390 | fi | |
10391 | if test -z "$ac_cv_prog_CC"; then | |
10392 | ac_ct_CC=$CC | |
10393 | # Extract the first word of "cc", so it can be a program name with args. | |
10394 | set dummy cc; ac_word=$2 | |
10395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10397 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10399 | else | |
10400 | if test -n "$ac_ct_CC"; then | |
10401 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10402 | else | |
10403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10404 | for as_dir in $PATH | |
10405 | do | |
10406 | IFS=$as_save_IFS | |
10407 | test -z "$as_dir" && as_dir=. | |
10408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10410 | ac_cv_prog_ac_ct_CC="cc" | |
10411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10412 | break 2 | |
10413 | fi | |
10414 | done | |
10415 | done | |
10416 | ||
10417 | fi | |
10418 | fi | |
10419 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10420 | if test -n "$ac_ct_CC"; then | |
10421 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10422 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10423 | else | |
10424 | echo "$as_me:$LINENO: result: no" >&5 | |
10425 | echo "${ECHO_T}no" >&6 | |
10426 | fi | |
10427 | ||
10428 | CC=$ac_ct_CC | |
10429 | else | |
10430 | CC="$ac_cv_prog_CC" | |
10431 | fi | |
10432 | ||
10433 | fi | |
10434 | if test -z "$CC"; then | |
10435 | # Extract the first word of "cc", so it can be a program name with args. | |
10436 | set dummy cc; ac_word=$2 | |
10437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10439 | if test "${ac_cv_prog_CC+set}" = set; then | |
10440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10441 | else | |
10442 | if test -n "$CC"; then | |
10443 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10444 | else | |
10445 | ac_prog_rejected=no | |
10446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10447 | for as_dir in $PATH | |
10448 | do | |
10449 | IFS=$as_save_IFS | |
10450 | test -z "$as_dir" && as_dir=. | |
10451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10452 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10453 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10454 | ac_prog_rejected=yes | |
10455 | continue | |
10456 | fi | |
10457 | ac_cv_prog_CC="cc" | |
10458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10459 | break 2 | |
10460 | fi | |
10461 | done | |
10462 | done | |
10463 | ||
10464 | if test $ac_prog_rejected = yes; then | |
10465 | # We found a bogon in the path, so make sure we never use it. | |
10466 | set dummy $ac_cv_prog_CC | |
10467 | shift | |
10468 | if test $# != 0; then | |
10469 | # We chose a different compiler from the bogus one. | |
10470 | # However, it has the same basename, so the bogon will be chosen | |
10471 | # first if we set CC to just the basename; use the full file name. | |
10472 | shift | |
10473 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10474 | fi | |
10475 | fi | |
10476 | fi | |
10477 | fi | |
10478 | CC=$ac_cv_prog_CC | |
10479 | if test -n "$CC"; then | |
10480 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10481 | echo "${ECHO_T}$CC" >&6 | |
10482 | else | |
10483 | echo "$as_me:$LINENO: result: no" >&5 | |
10484 | echo "${ECHO_T}no" >&6 | |
10485 | fi | |
10486 | ||
10487 | fi | |
10488 | if test -z "$CC"; then | |
10489 | if test -n "$ac_tool_prefix"; then | |
10490 | for ac_prog in cl | |
10491 | do | |
10492 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10493 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10496 | if test "${ac_cv_prog_CC+set}" = set; then | |
10497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10498 | else | |
10499 | if test -n "$CC"; then | |
10500 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10501 | else | |
10502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10503 | for as_dir in $PATH | |
10504 | do | |
10505 | IFS=$as_save_IFS | |
10506 | test -z "$as_dir" && as_dir=. | |
10507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10509 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10511 | break 2 | |
10512 | fi | |
10513 | done | |
10514 | done | |
10515 | ||
10516 | fi | |
10517 | fi | |
10518 | CC=$ac_cv_prog_CC | |
10519 | if test -n "$CC"; then | |
10520 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10521 | echo "${ECHO_T}$CC" >&6 | |
10522 | else | |
10523 | echo "$as_me:$LINENO: result: no" >&5 | |
10524 | echo "${ECHO_T}no" >&6 | |
10525 | fi | |
10526 | ||
10527 | test -n "$CC" && break | |
10528 | done | |
10529 | fi | |
10530 | if test -z "$CC"; then | |
10531 | ac_ct_CC=$CC | |
10532 | for ac_prog in cl | |
10533 | do | |
10534 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10535 | set dummy $ac_prog; ac_word=$2 | |
10536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10538 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10540 | else | |
10541 | if test -n "$ac_ct_CC"; then | |
10542 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10543 | else | |
10544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10545 | for as_dir in $PATH | |
10546 | do | |
10547 | IFS=$as_save_IFS | |
10548 | test -z "$as_dir" && as_dir=. | |
10549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10551 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10553 | break 2 | |
10554 | fi | |
10555 | done | |
10556 | done | |
10557 | ||
10558 | fi | |
10559 | fi | |
10560 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10561 | if test -n "$ac_ct_CC"; then | |
10562 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10563 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10564 | else | |
10565 | echo "$as_me:$LINENO: result: no" >&5 | |
10566 | echo "${ECHO_T}no" >&6 | |
10567 | fi | |
10568 | ||
10569 | test -n "$ac_ct_CC" && break | |
10570 | done | |
10571 | ||
10572 | CC=$ac_ct_CC | |
10573 | fi | |
10574 | ||
10575 | fi | |
10576 | ||
10577 | ||
10578 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10579 | See \`config.log' for more details." >&5 | |
10580 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10581 | See \`config.log' for more details." >&2;} | |
10582 | { (exit 1); exit 1; }; } | |
10583 | ||
10584 | # Provide some information about the compiler. | |
10585 | echo "$as_me:$LINENO:" \ | |
10586 | "checking for C compiler version" >&5 | |
10587 | ac_compiler=`set X $ac_compile; echo $2` | |
10588 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10589 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10590 | ac_status=$? | |
10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10592 | (exit $ac_status); } | |
10593 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10594 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10595 | ac_status=$? | |
10596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10597 | (exit $ac_status); } | |
10598 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10599 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10600 | ac_status=$? | |
10601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10602 | (exit $ac_status); } | |
10603 | ||
10604 | cat >conftest.$ac_ext <<_ACEOF | |
10605 | /* confdefs.h. */ | |
10606 | _ACEOF | |
10607 | cat confdefs.h >>conftest.$ac_ext | |
10608 | cat >>conftest.$ac_ext <<_ACEOF | |
10609 | /* end confdefs.h. */ | |
10610 | ||
10611 | int | |
10612 | main () | |
10613 | { | |
10614 | ||
10615 | ; | |
10616 | return 0; | |
10617 | } | |
10618 | _ACEOF | |
10619 | ac_clean_files_save=$ac_clean_files | |
10620 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10621 | # Try to create an executable without -o first, disregard a.out. | |
10622 | # It will help us diagnose broken compilers, and finding out an intuition | |
10623 | # of exeext. | |
ac1cb8d3 VS |
10624 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10625 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10626 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10627 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10628 | (eval $ac_link_default) 2>&5 | |
10629 | ac_status=$? | |
10630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10631 | (exit $ac_status); }; then | |
10632 | # Find the output, starting from the most likely. This scheme is | |
10633 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10634 | # resort. | |
10635 | ||
10636 | # Be careful to initialize this variable, since it used to be cached. | |
10637 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10638 | ac_cv_exeext= | |
10639 | # b.out is created by i960 compilers. | |
10640 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10641 | do | |
10642 | test -f "$ac_file" || continue | |
10643 | case $ac_file in | |
10644 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10645 | ;; |
a848cd7e | 10646 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10647 | # This is the source file. |
10648 | ;; | |
a848cd7e | 10649 | [ab].out ) |
ac1cb8d3 VS |
10650 | # We found the default executable, but exeext='' is most |
10651 | # certainly right. | |
10652 | break;; | |
a848cd7e | 10653 | *.* ) |
ac1cb8d3 VS |
10654 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10655 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10656 | # but it would be cool to find out if it's true. Does anybody | |
10657 | # maintain Libtool? --akim. | |
10658 | export ac_cv_exeext | |
10659 | break;; | |
a848cd7e | 10660 | * ) |
ac1cb8d3 | 10661 | break;; |
a848cd7e SC |
10662 | esac |
10663 | done | |
10664 | else | |
10665 | echo "$as_me: failed program was:" >&5 | |
10666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10667 | ||
10668 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10669 | See \`config.log' for more details." >&5 | |
10670 | echo "$as_me: error: C compiler cannot create executables | |
10671 | See \`config.log' for more details." >&2;} | |
10672 | { (exit 77); exit 77; }; } | |
10673 | fi | |
10674 | ||
10675 | ac_exeext=$ac_cv_exeext | |
10676 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10677 | echo "${ECHO_T}$ac_file" >&6 | |
10678 | ||
10679 | # Check the compiler produces executables we can run. If not, either | |
10680 | # the compiler is broken, or we cross compile. | |
10681 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10682 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10683 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10684 | # If not cross compiling, check that we can run a simple program. | |
10685 | if test "$cross_compiling" != yes; then | |
10686 | if { ac_try='./$ac_file' | |
10687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10688 | (eval $ac_try) 2>&5 | |
10689 | ac_status=$? | |
10690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10691 | (exit $ac_status); }; }; then | |
10692 | cross_compiling=no | |
10693 | else | |
10694 | if test "$cross_compiling" = maybe; then | |
10695 | cross_compiling=yes | |
10696 | else | |
10697 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10698 | If you meant to cross compile, use \`--host'. | |
10699 | See \`config.log' for more details." >&5 | |
10700 | echo "$as_me: error: cannot run C compiled programs. | |
10701 | If you meant to cross compile, use \`--host'. | |
10702 | See \`config.log' for more details." >&2;} | |
10703 | { (exit 1); exit 1; }; } | |
10704 | fi | |
10705 | fi | |
10706 | fi | |
10707 | echo "$as_me:$LINENO: result: yes" >&5 | |
10708 | echo "${ECHO_T}yes" >&6 | |
10709 | ||
10710 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10711 | ac_clean_files=$ac_clean_files_save | |
10712 | # Check the compiler produces executables we can run. If not, either | |
10713 | # the compiler is broken, or we cross compile. | |
10714 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10715 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10716 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10717 | echo "${ECHO_T}$cross_compiling" >&6 | |
10718 | ||
10719 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10720 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10722 | (eval $ac_link) 2>&5 | |
10723 | ac_status=$? | |
10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10725 | (exit $ac_status); }; then | |
10726 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10727 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10728 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10729 | # `rm'. | |
10730 | for ac_file in conftest.exe conftest conftest.*; do | |
10731 | test -f "$ac_file" || continue | |
10732 | case $ac_file in | |
10733 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10734 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10735 | export ac_cv_exeext |
10736 | break;; | |
a848cd7e SC |
10737 | * ) break;; |
10738 | esac | |
10739 | done | |
10740 | else | |
10741 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10742 | See \`config.log' for more details." >&5 | |
10743 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10744 | See \`config.log' for more details." >&2;} | |
10745 | { (exit 1); exit 1; }; } | |
10746 | fi | |
10747 | ||
10748 | rm -f conftest$ac_cv_exeext | |
10749 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10750 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10751 | ||
10752 | rm -f conftest.$ac_ext | |
10753 | EXEEXT=$ac_cv_exeext | |
10754 | ac_exeext=$EXEEXT | |
10755 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10756 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10757 | if test "${ac_cv_objext+set}" = set; then | |
10758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10759 | else | |
10760 | cat >conftest.$ac_ext <<_ACEOF | |
10761 | /* confdefs.h. */ | |
10762 | _ACEOF | |
10763 | cat confdefs.h >>conftest.$ac_ext | |
10764 | cat >>conftest.$ac_ext <<_ACEOF | |
10765 | /* end confdefs.h. */ | |
10766 | ||
10767 | int | |
10768 | main () | |
10769 | { | |
10770 | ||
10771 | ; | |
10772 | return 0; | |
10773 | } | |
10774 | _ACEOF | |
10775 | rm -f conftest.o conftest.obj | |
10776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10777 | (eval $ac_compile) 2>&5 | |
10778 | ac_status=$? | |
10779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10780 | (exit $ac_status); }; then | |
10781 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10782 | case $ac_file in | |
10783 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10784 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10785 | break;; | |
10786 | esac | |
10787 | done | |
10788 | else | |
10789 | echo "$as_me: failed program was:" >&5 | |
10790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10791 | ||
10792 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10793 | See \`config.log' for more details." >&5 | |
10794 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10795 | See \`config.log' for more details." >&2;} | |
10796 | { (exit 1); exit 1; }; } | |
10797 | fi | |
10798 | ||
10799 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10800 | fi | |
10801 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10802 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10803 | OBJEXT=$ac_cv_objext | |
10804 | ac_objext=$OBJEXT | |
10805 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10806 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10807 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10809 | else | |
10810 | cat >conftest.$ac_ext <<_ACEOF | |
10811 | /* confdefs.h. */ | |
10812 | _ACEOF | |
10813 | cat confdefs.h >>conftest.$ac_ext | |
10814 | cat >>conftest.$ac_ext <<_ACEOF | |
10815 | /* end confdefs.h. */ | |
10816 | ||
10817 | int | |
10818 | main () | |
10819 | { | |
10820 | #ifndef __GNUC__ | |
10821 | choke me | |
10822 | #endif | |
10823 | ||
10824 | ; | |
10825 | return 0; | |
10826 | } | |
10827 | _ACEOF | |
10828 | rm -f conftest.$ac_objext | |
10829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10830 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10831 | ac_status=$? |
ac1cb8d3 VS |
10832 | grep -v '^ *+' conftest.er1 >conftest.err |
10833 | rm -f conftest.er1 | |
10834 | cat conftest.err >&5 | |
a848cd7e SC |
10835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10836 | (exit $ac_status); } && | |
5dcf30a0 RN |
10837 | { ac_try='test -z "$ac_c_werror_flag" |
10838 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10840 | (eval $ac_try) 2>&5 | |
10841 | ac_status=$? | |
10842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10843 | (exit $ac_status); }; } && | |
10844 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10846 | (eval $ac_try) 2>&5 | |
10847 | ac_status=$? | |
10848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10849 | (exit $ac_status); }; }; then | |
10850 | ac_compiler_gnu=yes | |
10851 | else | |
10852 | echo "$as_me: failed program was:" >&5 | |
10853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10854 | ||
10855 | ac_compiler_gnu=no | |
10856 | fi | |
ac1cb8d3 | 10857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10858 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10859 | ||
10860 | fi | |
10861 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10862 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10863 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10864 | ac_test_CFLAGS=${CFLAGS+set} | |
10865 | ac_save_CFLAGS=$CFLAGS | |
10866 | CFLAGS="-g" | |
10867 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10868 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10869 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10871 | else | |
10872 | cat >conftest.$ac_ext <<_ACEOF | |
10873 | /* confdefs.h. */ | |
10874 | _ACEOF | |
10875 | cat confdefs.h >>conftest.$ac_ext | |
10876 | cat >>conftest.$ac_ext <<_ACEOF | |
10877 | /* end confdefs.h. */ | |
10878 | ||
10879 | int | |
10880 | main () | |
10881 | { | |
10882 | ||
10883 | ; | |
10884 | return 0; | |
10885 | } | |
10886 | _ACEOF | |
10887 | rm -f conftest.$ac_objext | |
10888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10889 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10890 | ac_status=$? |
ac1cb8d3 VS |
10891 | grep -v '^ *+' conftest.er1 >conftest.err |
10892 | rm -f conftest.er1 | |
10893 | cat conftest.err >&5 | |
a848cd7e SC |
10894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10895 | (exit $ac_status); } && | |
5dcf30a0 RN |
10896 | { ac_try='test -z "$ac_c_werror_flag" |
10897 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
10898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10899 | (eval $ac_try) 2>&5 | |
10900 | ac_status=$? | |
10901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10902 | (exit $ac_status); }; } && | |
10903 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10905 | (eval $ac_try) 2>&5 | |
10906 | ac_status=$? | |
10907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10908 | (exit $ac_status); }; }; then | |
10909 | ac_cv_prog_cc_g=yes | |
10910 | else | |
10911 | echo "$as_me: failed program was:" >&5 | |
10912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10913 | ||
10914 | ac_cv_prog_cc_g=no | |
10915 | fi | |
ac1cb8d3 | 10916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10917 | fi |
10918 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10919 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10920 | if test "$ac_test_CFLAGS" = set; then | |
10921 | CFLAGS=$ac_save_CFLAGS | |
10922 | elif test $ac_cv_prog_cc_g = yes; then | |
10923 | if test "$GCC" = yes; then | |
10924 | CFLAGS="-g -O2" | |
10925 | else | |
10926 | CFLAGS="-g" | |
10927 | fi | |
10928 | else | |
10929 | if test "$GCC" = yes; then | |
10930 | CFLAGS="-O2" | |
10931 | else | |
10932 | CFLAGS= | |
10933 | fi | |
10934 | fi | |
10935 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10936 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10937 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10939 | else | |
10940 | ac_cv_prog_cc_stdc=no | |
10941 | ac_save_CC=$CC | |
10942 | cat >conftest.$ac_ext <<_ACEOF | |
10943 | /* confdefs.h. */ | |
10944 | _ACEOF | |
10945 | cat confdefs.h >>conftest.$ac_ext | |
10946 | cat >>conftest.$ac_ext <<_ACEOF | |
10947 | /* end confdefs.h. */ | |
10948 | #include <stdarg.h> | |
10949 | #include <stdio.h> | |
10950 | #include <sys/types.h> | |
10951 | #include <sys/stat.h> | |
10952 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10953 | struct buf { int x; }; | |
10954 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10955 | static char *e (p, i) | |
10956 | char **p; | |
10957 | int i; | |
10958 | { | |
10959 | return p[i]; | |
10960 | } | |
10961 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10962 | { | |
10963 | char *s; | |
10964 | va_list v; | |
10965 | va_start (v,p); | |
10966 | s = g (p, va_arg (v,int)); | |
10967 | va_end (v); | |
10968 | return s; | |
10969 | } | |
ac1cb8d3 VS |
10970 | |
10971 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10972 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10973 | These don't provoke an error unfortunately, instead are silently treated | |
10974 | as 'x'. The following induces an error, until -std1 is added to get | |
10975 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10976 | array size at least. It's necessary to write '\x00'==0 to get something | |
10977 | that's true only with -std1. */ | |
10978 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10979 | ||
a848cd7e SC |
10980 | int test (int i, double x); |
10981 | struct s1 {int (*f) (int a);}; | |
10982 | struct s2 {int (*f) (double a);}; | |
10983 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10984 | int argc; | |
10985 | char **argv; | |
10986 | int | |
10987 | main () | |
10988 | { | |
10989 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10990 | ; | |
10991 | return 0; | |
10992 | } | |
10993 | _ACEOF | |
10994 | # Don't try gcc -ansi; that turns off useful extensions and | |
10995 | # breaks some systems' header files. | |
10996 | # AIX -qlanglvl=ansi | |
10997 | # Ultrix and OSF/1 -std1 | |
10998 | # HP-UX 10.20 and later -Ae | |
10999 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11000 | # SVR4 -Xc -D__EXTENSIONS__ | |
11001 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11002 | do | |
11003 | CC="$ac_save_CC $ac_arg" | |
11004 | rm -f conftest.$ac_objext | |
11005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11007 | ac_status=$? |
ac1cb8d3 VS |
11008 | grep -v '^ *+' conftest.er1 >conftest.err |
11009 | rm -f conftest.er1 | |
11010 | cat conftest.err >&5 | |
a848cd7e SC |
11011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11012 | (exit $ac_status); } && | |
5dcf30a0 RN |
11013 | { ac_try='test -z "$ac_c_werror_flag" |
11014 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11016 | (eval $ac_try) 2>&5 | |
11017 | ac_status=$? | |
11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11019 | (exit $ac_status); }; } && | |
11020 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11022 | (eval $ac_try) 2>&5 | |
11023 | ac_status=$? | |
11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11025 | (exit $ac_status); }; }; then | |
11026 | ac_cv_prog_cc_stdc=$ac_arg | |
11027 | break | |
11028 | else | |
11029 | echo "$as_me: failed program was:" >&5 | |
11030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11031 | ||
11032 | fi | |
ac1cb8d3 | 11033 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11034 | done |
11035 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11036 | CC=$ac_save_CC | |
11037 | ||
11038 | fi | |
11039 | ||
11040 | case "x$ac_cv_prog_cc_stdc" in | |
11041 | x|xno) | |
11042 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11043 | echo "${ECHO_T}none needed" >&6 ;; | |
11044 | *) | |
11045 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11046 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11047 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11048 | esac | |
11049 | ||
11050 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11051 | # in C++ we need to declare it. In case someone uses the same compiler | |
11052 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11053 | # the declaration of exit, since it's the most demanding environment. | |
11054 | cat >conftest.$ac_ext <<_ACEOF | |
11055 | #ifndef __cplusplus | |
11056 | choke me | |
11057 | #endif | |
11058 | _ACEOF | |
11059 | rm -f conftest.$ac_objext | |
11060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11061 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11062 | ac_status=$? |
ac1cb8d3 VS |
11063 | grep -v '^ *+' conftest.er1 >conftest.err |
11064 | rm -f conftest.er1 | |
11065 | cat conftest.err >&5 | |
a848cd7e SC |
11066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11067 | (exit $ac_status); } && | |
5dcf30a0 RN |
11068 | { ac_try='test -z "$ac_c_werror_flag" |
11069 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11071 | (eval $ac_try) 2>&5 | |
11072 | ac_status=$? | |
11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11074 | (exit $ac_status); }; } && | |
11075 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11077 | (eval $ac_try) 2>&5 | |
11078 | ac_status=$? | |
11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11080 | (exit $ac_status); }; }; then | |
11081 | for ac_declaration in \ | |
ac1cb8d3 | 11082 | '' \ |
a848cd7e SC |
11083 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11084 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11085 | 'extern "C" void exit (int) throw ();' \ | |
11086 | 'extern "C" void exit (int);' \ | |
11087 | 'void exit (int);' | |
11088 | do | |
11089 | cat >conftest.$ac_ext <<_ACEOF | |
11090 | /* confdefs.h. */ | |
11091 | _ACEOF | |
11092 | cat confdefs.h >>conftest.$ac_ext | |
11093 | cat >>conftest.$ac_ext <<_ACEOF | |
11094 | /* end confdefs.h. */ | |
de59c161 | 11095 | $ac_declaration |
ac1cb8d3 | 11096 | #include <stdlib.h> |
a848cd7e SC |
11097 | int |
11098 | main () | |
11099 | { | |
11100 | exit (42); | |
11101 | ; | |
11102 | return 0; | |
11103 | } | |
11104 | _ACEOF | |
11105 | rm -f conftest.$ac_objext | |
11106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11107 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11108 | ac_status=$? |
ac1cb8d3 VS |
11109 | grep -v '^ *+' conftest.er1 >conftest.err |
11110 | rm -f conftest.er1 | |
11111 | cat conftest.err >&5 | |
a848cd7e SC |
11112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11113 | (exit $ac_status); } && | |
5dcf30a0 RN |
11114 | { ac_try='test -z "$ac_c_werror_flag" |
11115 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11117 | (eval $ac_try) 2>&5 | |
11118 | ac_status=$? | |
11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11120 | (exit $ac_status); }; } && | |
11121 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11123 | (eval $ac_try) 2>&5 | |
11124 | ac_status=$? | |
11125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11126 | (exit $ac_status); }; }; then | |
11127 | : | |
11128 | else | |
11129 | echo "$as_me: failed program was:" >&5 | |
11130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11131 | ||
11132 | continue | |
11133 | fi | |
ac1cb8d3 | 11134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11135 | cat >conftest.$ac_ext <<_ACEOF |
11136 | /* confdefs.h. */ | |
11137 | _ACEOF | |
11138 | cat confdefs.h >>conftest.$ac_ext | |
11139 | cat >>conftest.$ac_ext <<_ACEOF | |
11140 | /* end confdefs.h. */ | |
11141 | $ac_declaration | |
11142 | int | |
11143 | main () | |
11144 | { | |
11145 | exit (42); | |
11146 | ; | |
11147 | return 0; | |
11148 | } | |
11149 | _ACEOF | |
11150 | rm -f conftest.$ac_objext | |
11151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11152 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11153 | ac_status=$? |
ac1cb8d3 VS |
11154 | grep -v '^ *+' conftest.er1 >conftest.err |
11155 | rm -f conftest.er1 | |
11156 | cat conftest.err >&5 | |
a848cd7e SC |
11157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11158 | (exit $ac_status); } && | |
5dcf30a0 RN |
11159 | { ac_try='test -z "$ac_c_werror_flag" |
11160 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11162 | (eval $ac_try) 2>&5 | |
11163 | ac_status=$? | |
11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11165 | (exit $ac_status); }; } && | |
11166 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11168 | (eval $ac_try) 2>&5 | |
11169 | ac_status=$? | |
11170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11171 | (exit $ac_status); }; }; then | |
11172 | break | |
11173 | else | |
11174 | echo "$as_me: failed program was:" >&5 | |
11175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11176 | ||
11177 | fi | |
ac1cb8d3 | 11178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11179 | done |
11180 | rm -f conftest* | |
11181 | if test -n "$ac_declaration"; then | |
11182 | echo '#ifdef __cplusplus' >>confdefs.h | |
11183 | echo $ac_declaration >>confdefs.h | |
11184 | echo '#endif' >>confdefs.h | |
11185 | fi | |
11186 | ||
11187 | else | |
11188 | echo "$as_me: failed program was:" >&5 | |
11189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11190 | ||
11191 | fi | |
ac1cb8d3 | 11192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11193 | ac_ext=c |
11194 | ac_cpp='$CPP $CPPFLAGS' | |
11195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11198 | ||
11199 | ||
11200 | ||
11201 | ac_ext=c | |
11202 | ac_cpp='$CPP $CPPFLAGS' | |
11203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11206 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11207 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11208 | # On Suns, sometimes $CPP names a directory. | |
11209 | if test -n "$CPP" && test -d "$CPP"; then | |
11210 | CPP= | |
11211 | fi | |
11212 | if test -z "$CPP"; then | |
11213 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11215 | else | |
11216 | # Double quotes because CPP needs to be expanded | |
11217 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11218 | do | |
11219 | ac_preproc_ok=false | |
11220 | for ac_c_preproc_warn_flag in '' yes | |
11221 | do | |
11222 | # Use a header file that comes with gcc, so configuring glibc | |
11223 | # with a fresh cross-compiler works. | |
11224 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11225 | # <limits.h> exists even on freestanding compilers. | |
11226 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11227 | # not just through cpp. "Syntax error" is here to catch this case. | |
11228 | cat >conftest.$ac_ext <<_ACEOF | |
11229 | /* confdefs.h. */ | |
11230 | _ACEOF | |
11231 | cat confdefs.h >>conftest.$ac_ext | |
11232 | cat >>conftest.$ac_ext <<_ACEOF | |
11233 | /* end confdefs.h. */ | |
11234 | #ifdef __STDC__ | |
11235 | # include <limits.h> | |
11236 | #else | |
11237 | # include <assert.h> | |
11238 | #endif | |
ac1cb8d3 | 11239 | Syntax error |
a848cd7e SC |
11240 | _ACEOF |
11241 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11242 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11243 | ac_status=$? | |
11244 | grep -v '^ *+' conftest.er1 >conftest.err | |
11245 | rm -f conftest.er1 | |
11246 | cat conftest.err >&5 | |
11247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11248 | (exit $ac_status); } >/dev/null; then | |
11249 | if test -s conftest.err; then | |
11250 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11251 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11252 | else |
11253 | ac_cpp_err= | |
11254 | fi | |
11255 | else | |
11256 | ac_cpp_err=yes | |
11257 | fi | |
11258 | if test -z "$ac_cpp_err"; then | |
11259 | : | |
11260 | else | |
11261 | echo "$as_me: failed program was:" >&5 | |
11262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11263 | ||
11264 | # Broken: fails on valid input. | |
11265 | continue | |
11266 | fi | |
11267 | rm -f conftest.err conftest.$ac_ext | |
11268 | ||
11269 | # OK, works on sane cases. Now check whether non-existent headers | |
11270 | # can be detected and how. | |
11271 | cat >conftest.$ac_ext <<_ACEOF | |
11272 | /* confdefs.h. */ | |
11273 | _ACEOF | |
11274 | cat confdefs.h >>conftest.$ac_ext | |
11275 | cat >>conftest.$ac_ext <<_ACEOF | |
11276 | /* end confdefs.h. */ | |
11277 | #include <ac_nonexistent.h> | |
11278 | _ACEOF | |
11279 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11280 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11281 | ac_status=$? | |
11282 | grep -v '^ *+' conftest.er1 >conftest.err | |
11283 | rm -f conftest.er1 | |
11284 | cat conftest.err >&5 | |
11285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11286 | (exit $ac_status); } >/dev/null; then | |
11287 | if test -s conftest.err; then | |
11288 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11289 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11290 | else |
11291 | ac_cpp_err= | |
11292 | fi | |
11293 | else | |
11294 | ac_cpp_err=yes | |
11295 | fi | |
11296 | if test -z "$ac_cpp_err"; then | |
11297 | # Broken: success on invalid input. | |
11298 | continue | |
11299 | else | |
11300 | echo "$as_me: failed program was:" >&5 | |
11301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11302 | ||
11303 | # Passes both tests. | |
11304 | ac_preproc_ok=: | |
11305 | break | |
11306 | fi | |
11307 | rm -f conftest.err conftest.$ac_ext | |
11308 | ||
11309 | done | |
11310 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11311 | rm -f conftest.err conftest.$ac_ext | |
11312 | if $ac_preproc_ok; then | |
11313 | break | |
11314 | fi | |
11315 | ||
11316 | done | |
11317 | ac_cv_prog_CPP=$CPP | |
11318 | ||
11319 | fi | |
11320 | CPP=$ac_cv_prog_CPP | |
11321 | else | |
11322 | ac_cv_prog_CPP=$CPP | |
11323 | fi | |
11324 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11325 | echo "${ECHO_T}$CPP" >&6 | |
11326 | ac_preproc_ok=false | |
11327 | for ac_c_preproc_warn_flag in '' yes | |
11328 | do | |
11329 | # Use a header file that comes with gcc, so configuring glibc | |
11330 | # with a fresh cross-compiler works. | |
11331 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11332 | # <limits.h> exists even on freestanding compilers. | |
11333 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11334 | # not just through cpp. "Syntax error" is here to catch this case. | |
11335 | cat >conftest.$ac_ext <<_ACEOF | |
11336 | /* confdefs.h. */ | |
11337 | _ACEOF | |
11338 | cat confdefs.h >>conftest.$ac_ext | |
11339 | cat >>conftest.$ac_ext <<_ACEOF | |
11340 | /* end confdefs.h. */ | |
11341 | #ifdef __STDC__ | |
11342 | # include <limits.h> | |
11343 | #else | |
11344 | # include <assert.h> | |
11345 | #endif | |
ac1cb8d3 | 11346 | Syntax error |
a848cd7e SC |
11347 | _ACEOF |
11348 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11349 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11350 | ac_status=$? | |
11351 | grep -v '^ *+' conftest.er1 >conftest.err | |
11352 | rm -f conftest.er1 | |
11353 | cat conftest.err >&5 | |
11354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11355 | (exit $ac_status); } >/dev/null; then | |
11356 | if test -s conftest.err; then | |
11357 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11358 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11359 | else |
11360 | ac_cpp_err= | |
11361 | fi | |
11362 | else | |
11363 | ac_cpp_err=yes | |
11364 | fi | |
11365 | if test -z "$ac_cpp_err"; then | |
11366 | : | |
11367 | else | |
11368 | echo "$as_me: failed program was:" >&5 | |
11369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11370 | ||
11371 | # Broken: fails on valid input. | |
11372 | continue | |
11373 | fi | |
11374 | rm -f conftest.err conftest.$ac_ext | |
11375 | ||
11376 | # OK, works on sane cases. Now check whether non-existent headers | |
11377 | # can be detected and how. | |
11378 | cat >conftest.$ac_ext <<_ACEOF | |
11379 | /* confdefs.h. */ | |
11380 | _ACEOF | |
11381 | cat confdefs.h >>conftest.$ac_ext | |
11382 | cat >>conftest.$ac_ext <<_ACEOF | |
11383 | /* end confdefs.h. */ | |
11384 | #include <ac_nonexistent.h> | |
11385 | _ACEOF | |
11386 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11387 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11388 | ac_status=$? | |
11389 | grep -v '^ *+' conftest.er1 >conftest.err | |
11390 | rm -f conftest.er1 | |
11391 | cat conftest.err >&5 | |
11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11393 | (exit $ac_status); } >/dev/null; then | |
11394 | if test -s conftest.err; then | |
11395 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11396 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11397 | else |
11398 | ac_cpp_err= | |
11399 | fi | |
11400 | else | |
11401 | ac_cpp_err=yes | |
11402 | fi | |
11403 | if test -z "$ac_cpp_err"; then | |
11404 | # Broken: success on invalid input. | |
11405 | continue | |
11406 | else | |
11407 | echo "$as_me: failed program was:" >&5 | |
11408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11409 | ||
11410 | # Passes both tests. | |
11411 | ac_preproc_ok=: | |
11412 | break | |
11413 | fi | |
11414 | rm -f conftest.err conftest.$ac_ext | |
11415 | ||
11416 | done | |
11417 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11418 | rm -f conftest.err conftest.$ac_ext | |
11419 | if $ac_preproc_ok; then | |
11420 | : | |
11421 | else | |
11422 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11423 | See \`config.log' for more details." >&5 | |
11424 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11425 | See \`config.log' for more details." >&2;} | |
11426 | { (exit 1); exit 1; }; } | |
11427 | fi | |
11428 | ||
11429 | ac_ext=c | |
11430 | ac_cpp='$CPP $CPPFLAGS' | |
11431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11434 | ||
11435 | ||
11436 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11437 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11438 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11440 | else | |
11441 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11442 | then ac_cv_prog_egrep='grep -E' | |
11443 | else ac_cv_prog_egrep='egrep' | |
11444 | fi | |
11445 | fi | |
11446 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11447 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11448 | EGREP=$ac_cv_prog_egrep | |
11449 | ||
11450 | ||
11451 | if test $ac_cv_c_compiler_gnu = yes; then | |
11452 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11453 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11454 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11456 | else | |
11457 | ac_pattern="Autoconf.*'x'" | |
11458 | cat >conftest.$ac_ext <<_ACEOF | |
11459 | /* confdefs.h. */ | |
11460 | _ACEOF | |
11461 | cat confdefs.h >>conftest.$ac_ext | |
11462 | cat >>conftest.$ac_ext <<_ACEOF | |
11463 | /* end confdefs.h. */ | |
11464 | #include <sgtty.h> | |
11465 | Autoconf TIOCGETP | |
11466 | _ACEOF | |
11467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11468 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11469 | ac_cv_prog_gcc_traditional=yes | |
11470 | else | |
11471 | ac_cv_prog_gcc_traditional=no | |
11472 | fi | |
11473 | rm -f conftest* | |
11474 | ||
11475 | ||
11476 | if test $ac_cv_prog_gcc_traditional = no; then | |
11477 | cat >conftest.$ac_ext <<_ACEOF | |
11478 | /* confdefs.h. */ | |
11479 | _ACEOF | |
11480 | cat confdefs.h >>conftest.$ac_ext | |
11481 | cat >>conftest.$ac_ext <<_ACEOF | |
11482 | /* end confdefs.h. */ | |
11483 | #include <termio.h> | |
11484 | Autoconf TCGETA | |
11485 | _ACEOF | |
11486 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11487 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11488 | ac_cv_prog_gcc_traditional=yes | |
11489 | fi | |
11490 | rm -f conftest* | |
11491 | ||
11492 | fi | |
11493 | fi | |
11494 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11495 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11496 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11497 | CC="$CC -traditional" | |
11498 | fi | |
11499 | fi | |
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ac_ext=cc | |
11505 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11506 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11507 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11508 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11509 | ||
11510 | ||
11511 | CXXFLAGS=${CXXFLAGS:=} | |
11512 | ac_ext=cc | |
11513 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11514 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11515 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11516 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11517 | if test -n "$ac_tool_prefix"; then | |
11518 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11519 | do | |
11520 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11521 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11524 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11526 | else | |
11527 | if test -n "$CXX"; then | |
11528 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11529 | else | |
11530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11531 | for as_dir in $PATH | |
11532 | do | |
11533 | IFS=$as_save_IFS | |
11534 | test -z "$as_dir" && as_dir=. | |
11535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11537 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11539 | break 2 | |
11540 | fi | |
11541 | done | |
11542 | done | |
11543 | ||
11544 | fi | |
11545 | fi | |
11546 | CXX=$ac_cv_prog_CXX | |
11547 | if test -n "$CXX"; then | |
11548 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11549 | echo "${ECHO_T}$CXX" >&6 | |
11550 | else | |
11551 | echo "$as_me:$LINENO: result: no" >&5 | |
11552 | echo "${ECHO_T}no" >&6 | |
11553 | fi | |
11554 | ||
11555 | test -n "$CXX" && break | |
11556 | done | |
11557 | fi | |
11558 | if test -z "$CXX"; then | |
11559 | ac_ct_CXX=$CXX | |
11560 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11561 | do | |
11562 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11563 | set dummy $ac_prog; ac_word=$2 | |
11564 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11565 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11566 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11568 | else | |
11569 | if test -n "$ac_ct_CXX"; then | |
11570 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11571 | else | |
11572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11573 | for as_dir in $PATH | |
11574 | do | |
11575 | IFS=$as_save_IFS | |
11576 | test -z "$as_dir" && as_dir=. | |
11577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11578 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11579 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11580 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11581 | break 2 | |
11582 | fi | |
11583 | done | |
11584 | done | |
11585 | ||
11586 | fi | |
11587 | fi | |
11588 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11589 | if test -n "$ac_ct_CXX"; then | |
11590 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11591 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11592 | else | |
11593 | echo "$as_me:$LINENO: result: no" >&5 | |
11594 | echo "${ECHO_T}no" >&6 | |
11595 | fi | |
11596 | ||
11597 | test -n "$ac_ct_CXX" && break | |
11598 | done | |
11599 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11600 | ||
11601 | CXX=$ac_ct_CXX | |
11602 | fi | |
11603 | ||
11604 | ||
11605 | # Provide some information about the compiler. | |
11606 | echo "$as_me:$LINENO:" \ | |
11607 | "checking for C++ compiler version" >&5 | |
11608 | ac_compiler=`set X $ac_compile; echo $2` | |
11609 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11610 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11611 | ac_status=$? | |
11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11613 | (exit $ac_status); } | |
11614 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11615 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11616 | ac_status=$? | |
11617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11618 | (exit $ac_status); } | |
11619 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11620 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11621 | ac_status=$? | |
11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11623 | (exit $ac_status); } | |
11624 | ||
11625 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11626 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11627 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11629 | else | |
11630 | cat >conftest.$ac_ext <<_ACEOF | |
11631 | /* confdefs.h. */ | |
11632 | _ACEOF | |
11633 | cat confdefs.h >>conftest.$ac_ext | |
11634 | cat >>conftest.$ac_ext <<_ACEOF | |
11635 | /* end confdefs.h. */ | |
11636 | ||
11637 | int | |
11638 | main () | |
11639 | { | |
11640 | #ifndef __GNUC__ | |
11641 | choke me | |
11642 | #endif | |
11643 | ||
11644 | ; | |
11645 | return 0; | |
11646 | } | |
11647 | _ACEOF | |
11648 | rm -f conftest.$ac_objext | |
11649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11650 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11651 | ac_status=$? |
ac1cb8d3 VS |
11652 | grep -v '^ *+' conftest.er1 >conftest.err |
11653 | rm -f conftest.er1 | |
11654 | cat conftest.err >&5 | |
a848cd7e SC |
11655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11656 | (exit $ac_status); } && | |
5dcf30a0 RN |
11657 | { ac_try='test -z "$ac_cxx_werror_flag" |
11658 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11660 | (eval $ac_try) 2>&5 | |
11661 | ac_status=$? | |
11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11663 | (exit $ac_status); }; } && | |
11664 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11666 | (eval $ac_try) 2>&5 | |
11667 | ac_status=$? | |
11668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11669 | (exit $ac_status); }; }; then | |
11670 | ac_compiler_gnu=yes | |
11671 | else | |
11672 | echo "$as_me: failed program was:" >&5 | |
11673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11674 | ||
11675 | ac_compiler_gnu=no | |
11676 | fi | |
ac1cb8d3 | 11677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11678 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11679 | ||
11680 | fi | |
11681 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11682 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11683 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11684 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11685 | ac_save_CXXFLAGS=$CXXFLAGS | |
11686 | CXXFLAGS="-g" | |
11687 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11688 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11689 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11691 | else | |
11692 | cat >conftest.$ac_ext <<_ACEOF | |
11693 | /* confdefs.h. */ | |
11694 | _ACEOF | |
11695 | cat confdefs.h >>conftest.$ac_ext | |
11696 | cat >>conftest.$ac_ext <<_ACEOF | |
11697 | /* end confdefs.h. */ | |
11698 | ||
11699 | int | |
11700 | main () | |
11701 | { | |
11702 | ||
11703 | ; | |
11704 | return 0; | |
11705 | } | |
11706 | _ACEOF | |
11707 | rm -f conftest.$ac_objext | |
11708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11709 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11710 | ac_status=$? |
ac1cb8d3 VS |
11711 | grep -v '^ *+' conftest.er1 >conftest.err |
11712 | rm -f conftest.er1 | |
11713 | cat conftest.err >&5 | |
a848cd7e SC |
11714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11715 | (exit $ac_status); } && | |
5dcf30a0 RN |
11716 | { ac_try='test -z "$ac_cxx_werror_flag" |
11717 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11719 | (eval $ac_try) 2>&5 | |
11720 | ac_status=$? | |
11721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11722 | (exit $ac_status); }; } && | |
11723 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11725 | (eval $ac_try) 2>&5 | |
11726 | ac_status=$? | |
11727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11728 | (exit $ac_status); }; }; then | |
11729 | ac_cv_prog_cxx_g=yes | |
11730 | else | |
11731 | echo "$as_me: failed program was:" >&5 | |
11732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11733 | ||
11734 | ac_cv_prog_cxx_g=no | |
11735 | fi | |
ac1cb8d3 | 11736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11737 | fi |
11738 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11739 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11740 | if test "$ac_test_CXXFLAGS" = set; then | |
11741 | CXXFLAGS=$ac_save_CXXFLAGS | |
11742 | elif test $ac_cv_prog_cxx_g = yes; then | |
11743 | if test "$GXX" = yes; then | |
11744 | CXXFLAGS="-g -O2" | |
11745 | else | |
11746 | CXXFLAGS="-g" | |
11747 | fi | |
11748 | else | |
11749 | if test "$GXX" = yes; then | |
11750 | CXXFLAGS="-O2" | |
11751 | else | |
11752 | CXXFLAGS= | |
11753 | fi | |
11754 | fi | |
11755 | for ac_declaration in \ | |
ac1cb8d3 | 11756 | '' \ |
a848cd7e SC |
11757 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11758 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11759 | 'extern "C" void exit (int) throw ();' \ | |
11760 | 'extern "C" void exit (int);' \ | |
11761 | 'void exit (int);' | |
11762 | do | |
11763 | cat >conftest.$ac_ext <<_ACEOF | |
11764 | /* confdefs.h. */ | |
11765 | _ACEOF | |
11766 | cat confdefs.h >>conftest.$ac_ext | |
11767 | cat >>conftest.$ac_ext <<_ACEOF | |
11768 | /* end confdefs.h. */ | |
de59c161 | 11769 | $ac_declaration |
ac1cb8d3 | 11770 | #include <stdlib.h> |
a848cd7e SC |
11771 | int |
11772 | main () | |
11773 | { | |
11774 | exit (42); | |
11775 | ; | |
11776 | return 0; | |
11777 | } | |
11778 | _ACEOF | |
11779 | rm -f conftest.$ac_objext | |
11780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11781 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11782 | ac_status=$? |
ac1cb8d3 VS |
11783 | grep -v '^ *+' conftest.er1 >conftest.err |
11784 | rm -f conftest.er1 | |
11785 | cat conftest.err >&5 | |
a848cd7e SC |
11786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11787 | (exit $ac_status); } && | |
5dcf30a0 RN |
11788 | { ac_try='test -z "$ac_cxx_werror_flag" |
11789 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11791 | (eval $ac_try) 2>&5 | |
11792 | ac_status=$? | |
11793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11794 | (exit $ac_status); }; } && | |
11795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11797 | (eval $ac_try) 2>&5 | |
11798 | ac_status=$? | |
11799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11800 | (exit $ac_status); }; }; then | |
11801 | : | |
11802 | else | |
11803 | echo "$as_me: failed program was:" >&5 | |
11804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11805 | ||
11806 | continue | |
11807 | fi | |
ac1cb8d3 | 11808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11809 | cat >conftest.$ac_ext <<_ACEOF |
11810 | /* confdefs.h. */ | |
11811 | _ACEOF | |
11812 | cat confdefs.h >>conftest.$ac_ext | |
11813 | cat >>conftest.$ac_ext <<_ACEOF | |
11814 | /* end confdefs.h. */ | |
11815 | $ac_declaration | |
11816 | int | |
11817 | main () | |
11818 | { | |
11819 | exit (42); | |
11820 | ; | |
11821 | return 0; | |
11822 | } | |
11823 | _ACEOF | |
11824 | rm -f conftest.$ac_objext | |
11825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11826 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11827 | ac_status=$? |
ac1cb8d3 VS |
11828 | grep -v '^ *+' conftest.er1 >conftest.err |
11829 | rm -f conftest.er1 | |
11830 | cat conftest.err >&5 | |
a848cd7e SC |
11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11832 | (exit $ac_status); } && | |
5dcf30a0 RN |
11833 | { ac_try='test -z "$ac_cxx_werror_flag" |
11834 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11836 | (eval $ac_try) 2>&5 | |
11837 | ac_status=$? | |
11838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11839 | (exit $ac_status); }; } && | |
11840 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11842 | (eval $ac_try) 2>&5 | |
11843 | ac_status=$? | |
11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11845 | (exit $ac_status); }; }; then | |
11846 | break | |
11847 | else | |
11848 | echo "$as_me: failed program was:" >&5 | |
11849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11850 | ||
11851 | fi | |
ac1cb8d3 | 11852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11853 | done |
11854 | rm -f conftest* | |
11855 | if test -n "$ac_declaration"; then | |
11856 | echo '#ifdef __cplusplus' >>confdefs.h | |
11857 | echo $ac_declaration >>confdefs.h | |
11858 | echo '#endif' >>confdefs.h | |
11859 | fi | |
11860 | ||
11861 | ac_ext=cc | |
11862 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11866 | ||
11867 | ||
11868 | ac_ext=c | |
11869 | ac_cpp='$CPP $CPPFLAGS' | |
11870 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11871 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11872 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11873 | ||
11874 | ||
a848cd7e SC |
11875 | if test -n "$ac_tool_prefix"; then |
11876 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11877 | set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then | |
11881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11882 | else | |
11883 | if test -n "$RANLIB"; then | |
11884 | ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib" | |
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 | RANLIB=$ac_cv_prog_RANLIB | |
11903 | if test -n "$RANLIB"; then | |
11904 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11905 | echo "${ECHO_T}$RANLIB" >&6 | |
11906 | else | |
11907 | echo "$as_me:$LINENO: result: no" >&5 | |
11908 | echo "${ECHO_T}no" >&6 | |
11909 | fi | |
11910 | ||
11911 | fi | |
11912 | if test -z "$ac_cv_prog_RANLIB"; then | |
11913 | ac_ct_RANLIB=$RANLIB | |
11914 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11915 | set dummy ranlib; ac_word=$2 | |
11916 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11918 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11920 | else | |
11921 | if test -n "$ac_ct_RANLIB"; then | |
11922 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11923 | else | |
11924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11925 | for as_dir in $PATH | |
11926 | do | |
11927 | IFS=$as_save_IFS | |
11928 | test -z "$as_dir" && as_dir=. | |
11929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11931 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11933 | break 2 | |
11934 | fi | |
11935 | done | |
11936 | done | |
11937 | ||
11938 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11939 | fi | |
11940 | fi | |
11941 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11942 | if test -n "$ac_ct_RANLIB"; then | |
11943 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11944 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11945 | else | |
11946 | echo "$as_me:$LINENO: result: no" >&5 | |
11947 | echo "${ECHO_T}no" >&6 | |
11948 | fi | |
11949 | ||
11950 | RANLIB=$ac_ct_RANLIB | |
11951 | else | |
11952 | RANLIB="$ac_cv_prog_RANLIB" | |
11953 | fi | |
11954 | ||
11955 | ||
11956 | # Extract the first word of "ar", so it can be a program name with args. | |
11957 | set dummy ar; ac_word=$2 | |
11958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11960 | if test "${ac_cv_prog_AR+set}" = set; then | |
11961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11962 | else | |
11963 | if test -n "$AR"; then | |
11964 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11965 | else | |
11966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11967 | for as_dir in $PATH | |
11968 | do | |
11969 | IFS=$as_save_IFS | |
11970 | test -z "$as_dir" && as_dir=. | |
11971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11973 | ac_cv_prog_AR="ar" | |
11974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11975 | break 2 | |
11976 | fi | |
11977 | done | |
11978 | done | |
11979 | ||
11980 | fi | |
11981 | fi | |
11982 | AR=$ac_cv_prog_AR | |
11983 | if test -n "$AR"; then | |
11984 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11985 | echo "${ECHO_T}$AR" >&6 | |
11986 | else | |
11987 | echo "$as_me:$LINENO: result: no" >&5 | |
11988 | echo "${ECHO_T}no" >&6 | |
11989 | fi | |
11990 | ||
11991 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
11992 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
11993 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
11994 | { (exit 1); exit 1; }; } |
11995 | fi | |
11996 | ||
11997 | # Find a good install program. We prefer a C program (faster), | |
11998 | # so one script is as good as another. But avoid the broken or | |
11999 | # incompatible versions: | |
12000 | # SysV /etc/install, /usr/sbin/install | |
12001 | # SunOS /usr/etc/install | |
12002 | # IRIX /sbin/install | |
12003 | # AIX /bin/install | |
12004 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12005 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12006 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12007 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12008 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12009 | # ./install, which can be erroneously created by make from ./install.sh. |
12010 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12011 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12012 | if test -z "$INSTALL"; then | |
12013 | if test "${ac_cv_path_install+set}" = set; then | |
12014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12015 | else | |
12016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12017 | for as_dir in $PATH | |
12018 | do | |
12019 | IFS=$as_save_IFS | |
12020 | test -z "$as_dir" && as_dir=. | |
12021 | # Account for people who put trailing slashes in PATH elements. | |
12022 | case $as_dir/ in | |
12023 | ./ | .// | /cC/* | \ | |
12024 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12025 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12026 | /usr/ucb/* ) ;; |
12027 | *) | |
12028 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12029 | # Don't use installbsd from OSF since it installs stuff as root | |
12030 | # by default. | |
12031 | for ac_prog in ginstall scoinst install; do | |
12032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12033 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12034 | if test $ac_prog = install && | |
12035 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12036 | # AIX install. It has an incompatible calling convention. | |
12037 | : | |
12038 | elif test $ac_prog = install && | |
12039 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12040 | # program-specific install script used by HP pwplus--don't use. | |
12041 | : | |
12042 | else | |
12043 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12044 | break 3 | |
12045 | fi | |
12046 | fi | |
a848cd7e SC |
12047 | done |
12048 | done | |
12049 | ;; | |
12050 | esac | |
12051 | done | |
12052 | ||
12053 | ||
12054 | fi | |
12055 | if test "${ac_cv_path_install+set}" = set; then | |
12056 | INSTALL=$ac_cv_path_install | |
12057 | else | |
12058 | # As a last resort, use the slow shell script. We don't cache a | |
12059 | # path for INSTALL within a source directory, because that will | |
12060 | # break other packages using the cache if that directory is | |
12061 | # removed, or if the path is relative. | |
12062 | INSTALL=$ac_install_sh | |
12063 | fi | |
12064 | fi | |
12065 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12066 | echo "${ECHO_T}$INSTALL" >&6 | |
12067 | ||
12068 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12069 | # It thinks the first close brace ends the variable substitution. | |
12070 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12071 | ||
12072 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12073 | ||
12074 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12075 | ||
12076 | ||
12077 | case ${INSTALL} in | |
12078 | /* ) # Absolute | |
12079 | ;; | |
12080 | ?:* ) # Drive letter, considered as absolute. | |
12081 | ;; | |
12082 | *) | |
12083 | INSTALL=`pwd`/${INSTALL} ;; | |
12084 | esac | |
12085 | ||
a848cd7e SC |
12086 | |
12087 | case "${host}" in | |
12088 | ||
12089 | powerpc-*-darwin* ) | |
12090 | INSTALL_PROGRAM="cp -fp" | |
12091 | INSTALL_DATA="cp -fp" | |
12092 | ;; | |
12093 | *) | |
12094 | ;; | |
12095 | esac | |
12096 | ||
12097 | # Extract the first word of "strip", so it can be a program name with args. | |
12098 | set dummy strip; ac_word=$2 | |
12099 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12101 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12103 | else | |
12104 | if test -n "$STRIP"; then | |
12105 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12106 | else | |
12107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12108 | for as_dir in $PATH | |
12109 | do | |
12110 | IFS=$as_save_IFS | |
12111 | test -z "$as_dir" && as_dir=. | |
12112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12114 | ac_cv_prog_STRIP="strip" | |
12115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12116 | break 2 | |
12117 | fi | |
12118 | done | |
12119 | done | |
12120 | ||
12121 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12122 | fi | |
12123 | fi | |
12124 | STRIP=$ac_cv_prog_STRIP | |
12125 | if test -n "$STRIP"; then | |
12126 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12127 | echo "${ECHO_T}$STRIP" >&6 | |
12128 | else | |
12129 | echo "$as_me:$LINENO: result: no" >&5 | |
12130 | echo "${ECHO_T}no" >&6 | |
12131 | fi | |
12132 | ||
12133 | ||
12134 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12135 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12136 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12138 | else | |
12139 | ||
12140 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12141 | egrep -s GNU > /dev/null); then | |
12142 | wx_cv_prog_makeisgnu="yes" | |
12143 | else | |
12144 | wx_cv_prog_makeisgnu="no" | |
12145 | fi | |
12146 | ||
12147 | fi | |
12148 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12149 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12150 | ||
12151 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12152 | IF_GNU_MAKE="" | |
12153 | else | |
12154 | IF_GNU_MAKE="#" | |
12155 | fi | |
12156 | ||
12157 | ||
12158 | ||
12159 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12160 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12161 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12162 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12164 | else | |
12165 | ||
12166 | cat - << EOF > confMake | |
12167 | check : file | |
12168 | cp \$? \$@ | |
12169 | cp \$? final_file | |
12170 | EOF | |
12171 | ||
12172 | if test ! -d sub ; then | |
12173 | mkdir sub | |
12174 | fi | |
12175 | echo dummy > sub/file | |
12176 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12177 | RESULT=$? | |
12178 | rm -f sub/file check final_file confMake | |
12179 | rmdir sub | |
12180 | if test "$RESULT" = 0; then | |
12181 | wx_cv_prog_makevpath="yes" | |
12182 | else | |
12183 | wx_cv_prog_makevpath="no" | |
12184 | fi | |
12185 | ||
12186 | fi | |
12187 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12188 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12189 | ||
12190 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12191 | { { echo "$as_me:$LINENO: error: | |
12192 | You need a make-utility that is able to use the variable | |
12193 | VPATH correctly. | |
12194 | If your version of make does not support VPATH correctly, | |
12195 | please install GNU-make (possibly as gmake), and start | |
12196 | configure with the following command: | |
12197 | export MAKE=gmake; ./configure for sh-type shells | |
12198 | setenv MAKE gmake; ./configure for csh-type shells | |
12199 | Also please do remember to use gmake in this case every time | |
12200 | you are trying to compile. | |
12201 | " >&5 | |
12202 | echo "$as_me: error: | |
12203 | You need a make-utility that is able to use the variable | |
12204 | VPATH correctly. | |
12205 | If your version of make does not support VPATH correctly, | |
12206 | please install GNU-make (possibly as gmake), and start | |
12207 | configure with the following command: | |
12208 | export MAKE=gmake; ./configure for sh-type shells | |
12209 | setenv MAKE gmake; ./configure for csh-type shells | |
12210 | Also please do remember to use gmake in this case every time | |
12211 | you are trying to compile. | |
12212 | " >&2;} | |
12213 | { (exit 1); exit 1; }; } | |
12214 | fi fi | |
12215 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12216 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12217 | LN_S=$as_ln_s | |
12218 | if test "$LN_S" = "ln -s"; then | |
12219 | echo "$as_me:$LINENO: result: yes" >&5 | |
12220 | echo "${ECHO_T}yes" >&6 | |
12221 | else | |
12222 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12223 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12224 | fi | |
12225 | ||
12226 | ||
12227 | ||
12228 | case "${host}" in | |
12229 | *-pc-os2_emx | *-pc-os2-emx ) | |
12230 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12231 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12232 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12233 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12235 | else | |
12236 | ac_check_lib_save_LIBS=$LIBS | |
12237 | LIBS="-lcExt $LIBS" | |
12238 | cat >conftest.$ac_ext <<_ACEOF | |
12239 | /* confdefs.h. */ | |
12240 | _ACEOF | |
12241 | cat confdefs.h >>conftest.$ac_ext | |
12242 | cat >>conftest.$ac_ext <<_ACEOF | |
12243 | /* end confdefs.h. */ | |
12244 | ||
12245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12246 | #ifdef __cplusplus | |
12247 | extern "C" | |
12248 | #endif | |
12249 | /* We use char because int might match the return type of a gcc2 | |
12250 | builtin and then its argument prototype would still apply. */ | |
12251 | char drand48 (); | |
12252 | int | |
12253 | main () | |
12254 | { | |
12255 | drand48 (); | |
12256 | ; | |
12257 | return 0; | |
12258 | } | |
12259 | _ACEOF | |
12260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12262 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12263 | ac_status=$? |
ac1cb8d3 VS |
12264 | grep -v '^ *+' conftest.er1 >conftest.err |
12265 | rm -f conftest.er1 | |
12266 | cat conftest.err >&5 | |
a848cd7e SC |
12267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12268 | (exit $ac_status); } && | |
5dcf30a0 RN |
12269 | { ac_try='test -z "$ac_c_werror_flag" |
12270 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12272 | (eval $ac_try) 2>&5 | |
12273 | ac_status=$? | |
12274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12275 | (exit $ac_status); }; } && | |
12276 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12278 | (eval $ac_try) 2>&5 | |
12279 | ac_status=$? | |
12280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12281 | (exit $ac_status); }; }; then | |
12282 | ac_cv_lib_cExt_drand48=yes | |
12283 | else | |
12284 | echo "$as_me: failed program was:" >&5 | |
12285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12286 | ||
12287 | ac_cv_lib_cExt_drand48=no | |
12288 | fi | |
ac1cb8d3 VS |
12289 | rm -f conftest.err conftest.$ac_objext \ |
12290 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12291 | LIBS=$ac_check_lib_save_LIBS |
12292 | fi | |
12293 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12294 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12295 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12296 | LIBS="$LIBS -lcExt" | |
12297 | fi | |
12298 | ||
12299 | else | |
12300 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12301 | fi | |
12302 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12303 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12304 | if test "${wx_cv_gccversion+set}" = set; then | |
12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12306 | else | |
12307 | ||
12308 | cat >conftest.$ac_ext <<_ACEOF | |
12309 | /* confdefs.h. */ | |
12310 | _ACEOF | |
12311 | cat confdefs.h >>conftest.$ac_ext | |
12312 | cat >>conftest.$ac_ext <<_ACEOF | |
12313 | /* end confdefs.h. */ | |
12314 | ||
12315 | int | |
12316 | main () | |
12317 | { | |
12318 | ||
12319 | #if (__GNUC__ < 3) | |
12320 | #error old gcc | |
12321 | #endif | |
12322 | ||
12323 | ; | |
12324 | return 0; | |
12325 | } | |
12326 | _ACEOF | |
12327 | rm -f conftest.$ac_objext | |
12328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12329 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12330 | ac_status=$? |
ac1cb8d3 VS |
12331 | grep -v '^ *+' conftest.er1 >conftest.err |
12332 | rm -f conftest.er1 | |
12333 | cat conftest.err >&5 | |
a848cd7e SC |
12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12335 | (exit $ac_status); } && | |
5dcf30a0 RN |
12336 | { ac_try='test -z "$ac_c_werror_flag" |
12337 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12339 | (eval $ac_try) 2>&5 | |
12340 | ac_status=$? | |
12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12342 | (exit $ac_status); }; } && | |
12343 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12345 | (eval $ac_try) 2>&5 | |
12346 | ac_status=$? | |
12347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12348 | (exit $ac_status); }; }; then | |
12349 | ||
12350 | cat >conftest.$ac_ext <<_ACEOF | |
12351 | /* confdefs.h. */ | |
12352 | _ACEOF | |
12353 | cat confdefs.h >>conftest.$ac_ext | |
12354 | cat >>conftest.$ac_ext <<_ACEOF | |
12355 | /* end confdefs.h. */ | |
12356 | ||
12357 | int | |
12358 | main () | |
12359 | { | |
12360 | ||
12361 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12362 | #error intermediate gcc | |
12363 | #endif | |
12364 | ||
12365 | ; | |
12366 | return 0; | |
12367 | } | |
12368 | _ACEOF | |
12369 | rm -f conftest.$ac_objext | |
12370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12371 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12372 | ac_status=$? |
ac1cb8d3 VS |
12373 | grep -v '^ *+' conftest.er1 >conftest.err |
12374 | rm -f conftest.er1 | |
12375 | cat conftest.err >&5 | |
a848cd7e SC |
12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12377 | (exit $ac_status); } && | |
5dcf30a0 RN |
12378 | { ac_try='test -z "$ac_c_werror_flag" |
12379 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12381 | (eval $ac_try) 2>&5 | |
12382 | ac_status=$? | |
12383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12384 | (exit $ac_status); }; } && | |
12385 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12387 | (eval $ac_try) 2>&5 | |
12388 | ac_status=$? | |
12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12390 | (exit $ac_status); }; }; then | |
12391 | ||
12392 | wx_cv_gccversion=Innotek | |
12393 | ||
12394 | else | |
12395 | echo "$as_me: failed program was:" >&5 | |
12396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12397 | ||
12398 | ||
12399 | wx_cv_gccversion=3 | |
12400 | ||
12401 | ||
12402 | fi | |
ac1cb8d3 | 12403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12404 | |
12405 | else | |
12406 | echo "$as_me: failed program was:" >&5 | |
12407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12408 | ||
12409 | ||
12410 | wx_cv_gccversion=2 | |
12411 | ||
12412 | ||
12413 | fi | |
ac1cb8d3 | 12414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12415 | |
12416 | fi | |
12417 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12418 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12419 | if test "$wx_cv_gccversion" = "2"; then | |
12420 | LIBS="$LIBS -lstdcpp" | |
12421 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12422 | else | |
12423 | if test "$wx_cv_gccversion" = "3"; then | |
12424 | LIBS="$LIBS -lstdcxx" | |
12425 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12426 | else | |
12427 | LIBS="$LIBS -lstdc++" | |
12428 | fi | |
12429 | fi | |
12430 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12431 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12432 | fi |
12433 | ;; | |
12434 | *) | |
12435 | ||
12436 | ||
12437 | ||
12438 | ac_ext=cc | |
12439 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12440 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12441 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12442 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12443 | ||
12444 | ||
12445 | ||
12446 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12447 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12448 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12450 | else | |
12451 | ||
12452 | cat >conftest.$ac_ext <<_ACEOF | |
12453 | /* confdefs.h. */ | |
12454 | _ACEOF | |
12455 | cat confdefs.h >>conftest.$ac_ext | |
12456 | cat >>conftest.$ac_ext <<_ACEOF | |
12457 | /* end confdefs.h. */ | |
12458 | ||
12459 | #include <string.h> | |
12460 | ||
12461 | int | |
12462 | main () | |
12463 | { | |
12464 | ||
12465 | strcasecmp("foo", "bar"); | |
12466 | ||
12467 | ; | |
12468 | return 0; | |
12469 | } | |
12470 | _ACEOF | |
12471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12473 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12474 | ac_status=$? |
ac1cb8d3 VS |
12475 | grep -v '^ *+' conftest.er1 >conftest.err |
12476 | rm -f conftest.er1 | |
12477 | cat conftest.err >&5 | |
a848cd7e SC |
12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12479 | (exit $ac_status); } && | |
5dcf30a0 RN |
12480 | { ac_try='test -z "$ac_cxx_werror_flag" |
12481 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12483 | (eval $ac_try) 2>&5 | |
12484 | ac_status=$? | |
12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12486 | (exit $ac_status); }; } && | |
12487 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12489 | (eval $ac_try) 2>&5 | |
12490 | ac_status=$? | |
12491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12492 | (exit $ac_status); }; }; then | |
12493 | ac_cv_string_strcasecmp=yes | |
12494 | else | |
12495 | echo "$as_me: failed program was:" >&5 | |
12496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12497 | ||
12498 | ac_cv_string_strcasecmp=no | |
12499 | ||
12500 | fi | |
ac1cb8d3 VS |
12501 | rm -f conftest.err conftest.$ac_objext \ |
12502 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12503 | |
12504 | fi | |
12505 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12506 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12507 | ||
12508 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12509 | cat >>confdefs.h <<\_ACEOF | |
12510 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12511 | _ACEOF | |
12512 | ||
12513 | else | |
12514 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12515 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12516 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12518 | else | |
12519 | ||
12520 | cat >conftest.$ac_ext <<_ACEOF | |
12521 | /* confdefs.h. */ | |
12522 | _ACEOF | |
12523 | cat confdefs.h >>conftest.$ac_ext | |
12524 | cat >>conftest.$ac_ext <<_ACEOF | |
12525 | /* end confdefs.h. */ | |
12526 | ||
12527 | #include <strings.h> | |
12528 | ||
12529 | int | |
12530 | main () | |
12531 | { | |
12532 | ||
12533 | strcasecmp("foo", "bar"); | |
12534 | ||
12535 | ; | |
12536 | return 0; | |
12537 | } | |
12538 | _ACEOF | |
12539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12541 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12542 | ac_status=$? |
ac1cb8d3 VS |
12543 | grep -v '^ *+' conftest.er1 >conftest.err |
12544 | rm -f conftest.er1 | |
12545 | cat conftest.err >&5 | |
a848cd7e SC |
12546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12547 | (exit $ac_status); } && | |
5dcf30a0 RN |
12548 | { ac_try='test -z "$ac_cxx_werror_flag" |
12549 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12551 | (eval $ac_try) 2>&5 | |
12552 | ac_status=$? | |
12553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12554 | (exit $ac_status); }; } && | |
12555 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12557 | (eval $ac_try) 2>&5 | |
12558 | ac_status=$? | |
12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12560 | (exit $ac_status); }; }; then | |
12561 | ac_cv_strings_strcasecmp=yes | |
12562 | else | |
12563 | echo "$as_me: failed program was:" >&5 | |
12564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12565 | ||
12566 | ac_cv_strings_strcasecmp=no | |
12567 | ||
12568 | fi | |
ac1cb8d3 VS |
12569 | rm -f conftest.err conftest.$ac_objext \ |
12570 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12571 | |
12572 | fi | |
12573 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12574 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12575 | ||
0c3c69fc | 12576 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12577 | cat >>confdefs.h <<\_ACEOF |
12578 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12579 | _ACEOF | |
12580 | ||
12581 | else | |
12582 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12583 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12584 | { (exit 1); exit 1; }; } | |
12585 | fi | |
12586 | fi | |
12587 | ||
12588 | ac_ext=c | |
12589 | ac_cpp='$CPP $CPPFLAGS' | |
12590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12593 | ||
12594 | ;; | |
12595 | esac | |
12596 | ||
12597 | ||
12598 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12599 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12600 | if test "${ac_cv_header_stdc+set}" = set; then | |
12601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12602 | else | |
12603 | cat >conftest.$ac_ext <<_ACEOF | |
12604 | /* confdefs.h. */ | |
12605 | _ACEOF | |
12606 | cat confdefs.h >>conftest.$ac_ext | |
12607 | cat >>conftest.$ac_ext <<_ACEOF | |
12608 | /* end confdefs.h. */ | |
12609 | #include <stdlib.h> | |
12610 | #include <stdarg.h> | |
12611 | #include <string.h> | |
12612 | #include <float.h> | |
12613 | ||
12614 | int | |
12615 | main () | |
12616 | { | |
12617 | ||
12618 | ; | |
12619 | return 0; | |
12620 | } | |
12621 | _ACEOF | |
12622 | rm -f conftest.$ac_objext | |
12623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12624 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12625 | ac_status=$? |
ac1cb8d3 VS |
12626 | grep -v '^ *+' conftest.er1 >conftest.err |
12627 | rm -f conftest.er1 | |
12628 | cat conftest.err >&5 | |
a848cd7e SC |
12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12630 | (exit $ac_status); } && | |
5dcf30a0 RN |
12631 | { ac_try='test -z "$ac_c_werror_flag" |
12632 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12634 | (eval $ac_try) 2>&5 | |
12635 | ac_status=$? | |
12636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12637 | (exit $ac_status); }; } && | |
12638 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12640 | (eval $ac_try) 2>&5 | |
12641 | ac_status=$? | |
12642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12643 | (exit $ac_status); }; }; then | |
12644 | ac_cv_header_stdc=yes | |
12645 | else | |
12646 | echo "$as_me: failed program was:" >&5 | |
12647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12648 | ||
12649 | ac_cv_header_stdc=no | |
12650 | fi | |
ac1cb8d3 | 12651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12652 | |
12653 | if test $ac_cv_header_stdc = yes; then | |
12654 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12655 | cat >conftest.$ac_ext <<_ACEOF | |
12656 | /* confdefs.h. */ | |
12657 | _ACEOF | |
12658 | cat confdefs.h >>conftest.$ac_ext | |
12659 | cat >>conftest.$ac_ext <<_ACEOF | |
12660 | /* end confdefs.h. */ | |
12661 | #include <string.h> | |
12662 | ||
12663 | _ACEOF | |
12664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12665 | $EGREP "memchr" >/dev/null 2>&1; then | |
12666 | : | |
12667 | else | |
12668 | ac_cv_header_stdc=no | |
12669 | fi | |
12670 | rm -f conftest* | |
12671 | ||
12672 | fi | |
12673 | ||
12674 | if test $ac_cv_header_stdc = yes; then | |
12675 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12676 | cat >conftest.$ac_ext <<_ACEOF | |
12677 | /* confdefs.h. */ | |
12678 | _ACEOF | |
12679 | cat confdefs.h >>conftest.$ac_ext | |
12680 | cat >>conftest.$ac_ext <<_ACEOF | |
12681 | /* end confdefs.h. */ | |
12682 | #include <stdlib.h> | |
12683 | ||
12684 | _ACEOF | |
12685 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12686 | $EGREP "free" >/dev/null 2>&1; then | |
12687 | : | |
12688 | else | |
12689 | ac_cv_header_stdc=no | |
12690 | fi | |
12691 | rm -f conftest* | |
12692 | ||
12693 | fi | |
12694 | ||
12695 | if test $ac_cv_header_stdc = yes; then | |
12696 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12697 | if test "$cross_compiling" = yes; then | |
12698 | : | |
12699 | else | |
12700 | cat >conftest.$ac_ext <<_ACEOF | |
12701 | /* confdefs.h. */ | |
12702 | _ACEOF | |
12703 | cat confdefs.h >>conftest.$ac_ext | |
12704 | cat >>conftest.$ac_ext <<_ACEOF | |
12705 | /* end confdefs.h. */ | |
12706 | #include <ctype.h> | |
12707 | #if ((' ' & 0x0FF) == 0x020) | |
12708 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12709 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12710 | #else | |
12711 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12712 | (('a' <= (c) && (c) <= 'i') \ |
12713 | || ('j' <= (c) && (c) <= 'r') \ | |
12714 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12715 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12716 | #endif | |
12717 | ||
12718 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12719 | int | |
12720 | main () | |
12721 | { | |
12722 | int i; | |
12723 | for (i = 0; i < 256; i++) | |
12724 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12725 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12726 | exit(2); |
12727 | exit (0); | |
12728 | } | |
12729 | _ACEOF | |
12730 | rm -f conftest$ac_exeext | |
12731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12732 | (eval $ac_link) 2>&5 | |
12733 | ac_status=$? | |
12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12735 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12737 | (eval $ac_try) 2>&5 | |
12738 | ac_status=$? | |
12739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12740 | (exit $ac_status); }; }; then | |
12741 | : | |
12742 | else | |
12743 | echo "$as_me: program exited with status $ac_status" >&5 | |
12744 | echo "$as_me: failed program was:" >&5 | |
12745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12746 | ||
12747 | ( exit $ac_status ) | |
12748 | ac_cv_header_stdc=no | |
12749 | fi | |
ac1cb8d3 | 12750 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12751 | fi |
12752 | fi | |
12753 | fi | |
12754 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12755 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12756 | if test $ac_cv_header_stdc = yes; then | |
12757 | ||
12758 | cat >>confdefs.h <<\_ACEOF | |
12759 | #define STDC_HEADERS 1 | |
12760 | _ACEOF | |
12761 | ||
12762 | fi | |
12763 | ||
12764 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12765 | ||
12766 | ||
12767 | ||
12768 | ||
12769 | ||
12770 | ||
12771 | ||
12772 | ||
12773 | ||
12774 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12775 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12776 | do |
12777 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12782 | else | |
12783 | cat >conftest.$ac_ext <<_ACEOF | |
12784 | /* confdefs.h. */ | |
12785 | _ACEOF | |
12786 | cat confdefs.h >>conftest.$ac_ext | |
12787 | cat >>conftest.$ac_ext <<_ACEOF | |
12788 | /* end confdefs.h. */ | |
12789 | $ac_includes_default | |
12790 | ||
12791 | #include <$ac_header> | |
12792 | _ACEOF | |
12793 | rm -f conftest.$ac_objext | |
12794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12796 | ac_status=$? |
ac1cb8d3 VS |
12797 | grep -v '^ *+' conftest.er1 >conftest.err |
12798 | rm -f conftest.er1 | |
12799 | cat conftest.err >&5 | |
a848cd7e SC |
12800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12801 | (exit $ac_status); } && | |
5dcf30a0 RN |
12802 | { ac_try='test -z "$ac_c_werror_flag" |
12803 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12805 | (eval $ac_try) 2>&5 | |
12806 | ac_status=$? | |
12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12808 | (exit $ac_status); }; } && | |
12809 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12811 | (eval $ac_try) 2>&5 | |
12812 | ac_status=$? | |
12813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12814 | (exit $ac_status); }; }; then | |
12815 | eval "$as_ac_Header=yes" | |
12816 | else | |
12817 | echo "$as_me: failed program was:" >&5 | |
12818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12819 | ||
12820 | eval "$as_ac_Header=no" | |
12821 | fi | |
ac1cb8d3 | 12822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12823 | fi |
12824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12825 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12827 | cat >>confdefs.h <<_ACEOF | |
12828 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12829 | _ACEOF | |
12830 | ||
12831 | fi | |
12832 | ||
12833 | done | |
12834 | ||
12835 | ||
12836 | ||
12837 | for ac_header in stdlib.h | |
12838 | do | |
12839 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12840 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12841 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12842 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12845 | fi | |
12846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12847 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12848 | else | |
12849 | # Is the header compilable? | |
12850 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12851 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12852 | cat >conftest.$ac_ext <<_ACEOF | |
12853 | /* confdefs.h. */ | |
12854 | _ACEOF | |
12855 | cat confdefs.h >>conftest.$ac_ext | |
12856 | cat >>conftest.$ac_ext <<_ACEOF | |
12857 | /* end confdefs.h. */ | |
12858 | $ac_includes_default | |
12859 | #include <$ac_header> | |
12860 | _ACEOF | |
12861 | rm -f conftest.$ac_objext | |
12862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12863 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12864 | ac_status=$? |
ac1cb8d3 VS |
12865 | grep -v '^ *+' conftest.er1 >conftest.err |
12866 | rm -f conftest.er1 | |
12867 | cat conftest.err >&5 | |
a848cd7e SC |
12868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12869 | (exit $ac_status); } && | |
5dcf30a0 RN |
12870 | { ac_try='test -z "$ac_c_werror_flag" |
12871 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12873 | (eval $ac_try) 2>&5 | |
12874 | ac_status=$? | |
12875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12876 | (exit $ac_status); }; } && | |
12877 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12879 | (eval $ac_try) 2>&5 | |
12880 | ac_status=$? | |
12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12882 | (exit $ac_status); }; }; then | |
12883 | ac_header_compiler=yes | |
12884 | else | |
12885 | echo "$as_me: failed program was:" >&5 | |
12886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12887 | ||
12888 | ac_header_compiler=no | |
12889 | fi | |
ac1cb8d3 | 12890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12891 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12892 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12893 | ||
12894 | # Is the header present? | |
12895 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12896 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12897 | cat >conftest.$ac_ext <<_ACEOF | |
12898 | /* confdefs.h. */ | |
12899 | _ACEOF | |
12900 | cat confdefs.h >>conftest.$ac_ext | |
12901 | cat >>conftest.$ac_ext <<_ACEOF | |
12902 | /* end confdefs.h. */ | |
12903 | #include <$ac_header> | |
12904 | _ACEOF | |
12905 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12906 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12907 | ac_status=$? | |
12908 | grep -v '^ *+' conftest.er1 >conftest.err | |
12909 | rm -f conftest.er1 | |
12910 | cat conftest.err >&5 | |
12911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12912 | (exit $ac_status); } >/dev/null; then | |
12913 | if test -s conftest.err; then | |
12914 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12915 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12916 | else |
12917 | ac_cpp_err= | |
12918 | fi | |
12919 | else | |
12920 | ac_cpp_err=yes | |
12921 | fi | |
12922 | if test -z "$ac_cpp_err"; then | |
12923 | ac_header_preproc=yes | |
12924 | else | |
12925 | echo "$as_me: failed program was:" >&5 | |
12926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12927 | ||
12928 | ac_header_preproc=no | |
12929 | fi | |
12930 | rm -f conftest.err conftest.$ac_ext | |
12931 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12932 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12933 | ||
12934 | # So? What about this header? | |
ac1cb8d3 VS |
12935 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12936 | yes:no: ) | |
a848cd7e SC |
12937 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12938 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12939 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12940 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12941 | ac_header_preproc=yes | |
a848cd7e | 12942 | ;; |
ac1cb8d3 | 12943 | no:yes:* ) |
a848cd7e SC |
12944 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12945 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12946 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12947 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12948 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12949 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12950 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12951 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
12952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12953 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
12954 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12955 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
12956 | ( |
12957 | cat <<\_ASBOX | |
ac1cb8d3 VS |
12958 | ## ----------------------------------------- ## |
12959 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
12960 | ## ----------------------------------------- ## | |
a848cd7e SC |
12961 | _ASBOX |
12962 | ) | | |
12963 | sed "s/^/$as_me: WARNING: /" >&2 | |
12964 | ;; | |
12965 | esac | |
12966 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12970 | else | |
ac1cb8d3 | 12971 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
12972 | fi |
12973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12974 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12975 | ||
12976 | fi | |
12977 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12978 | cat >>confdefs.h <<_ACEOF | |
12979 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12980 | _ACEOF | |
12981 | ||
12982 | fi | |
12983 | ||
12984 | done | |
12985 | ||
12986 | ||
12987 | for ac_header in malloc.h | |
12988 | do | |
12989 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12990 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12991 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12995 | fi | |
12996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12997 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12998 | else | |
12999 | # Is the header compilable? | |
13000 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13001 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13002 | cat >conftest.$ac_ext <<_ACEOF | |
13003 | /* confdefs.h. */ | |
13004 | _ACEOF | |
13005 | cat confdefs.h >>conftest.$ac_ext | |
13006 | cat >>conftest.$ac_ext <<_ACEOF | |
13007 | /* end confdefs.h. */ | |
13008 | $ac_includes_default | |
13009 | #include <$ac_header> | |
13010 | _ACEOF | |
13011 | rm -f conftest.$ac_objext | |
13012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13013 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13014 | ac_status=$? |
ac1cb8d3 VS |
13015 | grep -v '^ *+' conftest.er1 >conftest.err |
13016 | rm -f conftest.er1 | |
13017 | cat conftest.err >&5 | |
a848cd7e SC |
13018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13019 | (exit $ac_status); } && | |
5dcf30a0 RN |
13020 | { ac_try='test -z "$ac_c_werror_flag" |
13021 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13023 | (eval $ac_try) 2>&5 | |
13024 | ac_status=$? | |
13025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13026 | (exit $ac_status); }; } && | |
13027 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13029 | (eval $ac_try) 2>&5 | |
13030 | ac_status=$? | |
13031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13032 | (exit $ac_status); }; }; then | |
13033 | ac_header_compiler=yes | |
13034 | else | |
13035 | echo "$as_me: failed program was:" >&5 | |
13036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13037 | ||
13038 | ac_header_compiler=no | |
13039 | fi | |
ac1cb8d3 | 13040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13041 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13042 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13043 | ||
13044 | # Is the header present? | |
13045 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13046 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13047 | cat >conftest.$ac_ext <<_ACEOF | |
13048 | /* confdefs.h. */ | |
13049 | _ACEOF | |
13050 | cat confdefs.h >>conftest.$ac_ext | |
13051 | cat >>conftest.$ac_ext <<_ACEOF | |
13052 | /* end confdefs.h. */ | |
13053 | #include <$ac_header> | |
13054 | _ACEOF | |
13055 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13056 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13057 | ac_status=$? | |
13058 | grep -v '^ *+' conftest.er1 >conftest.err | |
13059 | rm -f conftest.er1 | |
13060 | cat conftest.err >&5 | |
13061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13062 | (exit $ac_status); } >/dev/null; then | |
13063 | if test -s conftest.err; then | |
13064 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13065 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13066 | else |
13067 | ac_cpp_err= | |
13068 | fi | |
13069 | else | |
13070 | ac_cpp_err=yes | |
13071 | fi | |
13072 | if test -z "$ac_cpp_err"; then | |
13073 | ac_header_preproc=yes | |
13074 | else | |
13075 | echo "$as_me: failed program was:" >&5 | |
13076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13077 | ||
13078 | ac_header_preproc=no | |
13079 | fi | |
13080 | rm -f conftest.err conftest.$ac_ext | |
13081 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13082 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13083 | ||
13084 | # So? What about this header? | |
ac1cb8d3 VS |
13085 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13086 | yes:no: ) | |
a848cd7e SC |
13087 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13088 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13089 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13090 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13091 | ac_header_preproc=yes | |
a848cd7e | 13092 | ;; |
ac1cb8d3 | 13093 | no:yes:* ) |
a848cd7e SC |
13094 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13095 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13096 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13097 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13098 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13099 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13100 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13101 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13102 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13103 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13104 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13105 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13106 | ( |
13107 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13108 | ## ----------------------------------------- ## |
13109 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13110 | ## ----------------------------------------- ## | |
a848cd7e SC |
13111 | _ASBOX |
13112 | ) | | |
13113 | sed "s/^/$as_me: WARNING: /" >&2 | |
13114 | ;; | |
13115 | esac | |
13116 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13118 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13120 | else | |
ac1cb8d3 | 13121 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13122 | fi |
13123 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13124 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13125 | ||
13126 | fi | |
13127 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13128 | cat >>confdefs.h <<_ACEOF | |
13129 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13130 | _ACEOF | |
13131 | ||
13132 | fi | |
13133 | ||
13134 | done | |
13135 | ||
13136 | ||
13137 | for ac_header in unistd.h | |
13138 | do | |
13139 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13140 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13141 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13142 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13143 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13145 | fi | |
13146 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13147 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13148 | else | |
13149 | # Is the header compilable? | |
13150 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13151 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13152 | cat >conftest.$ac_ext <<_ACEOF | |
13153 | /* confdefs.h. */ | |
13154 | _ACEOF | |
13155 | cat confdefs.h >>conftest.$ac_ext | |
13156 | cat >>conftest.$ac_ext <<_ACEOF | |
13157 | /* end confdefs.h. */ | |
13158 | $ac_includes_default | |
13159 | #include <$ac_header> | |
13160 | _ACEOF | |
13161 | rm -f conftest.$ac_objext | |
13162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13163 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13164 | ac_status=$? |
ac1cb8d3 VS |
13165 | grep -v '^ *+' conftest.er1 >conftest.err |
13166 | rm -f conftest.er1 | |
13167 | cat conftest.err >&5 | |
a848cd7e SC |
13168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13169 | (exit $ac_status); } && | |
5dcf30a0 RN |
13170 | { ac_try='test -z "$ac_c_werror_flag" |
13171 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13173 | (eval $ac_try) 2>&5 | |
13174 | ac_status=$? | |
13175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13176 | (exit $ac_status); }; } && | |
13177 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13179 | (eval $ac_try) 2>&5 | |
13180 | ac_status=$? | |
13181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13182 | (exit $ac_status); }; }; then | |
13183 | ac_header_compiler=yes | |
13184 | else | |
13185 | echo "$as_me: failed program was:" >&5 | |
13186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13187 | ||
13188 | ac_header_compiler=no | |
13189 | fi | |
ac1cb8d3 | 13190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13191 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13192 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13193 | ||
13194 | # Is the header present? | |
13195 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13196 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13197 | cat >conftest.$ac_ext <<_ACEOF | |
13198 | /* confdefs.h. */ | |
13199 | _ACEOF | |
13200 | cat confdefs.h >>conftest.$ac_ext | |
13201 | cat >>conftest.$ac_ext <<_ACEOF | |
13202 | /* end confdefs.h. */ | |
13203 | #include <$ac_header> | |
13204 | _ACEOF | |
13205 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13206 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13207 | ac_status=$? | |
13208 | grep -v '^ *+' conftest.er1 >conftest.err | |
13209 | rm -f conftest.er1 | |
13210 | cat conftest.err >&5 | |
13211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13212 | (exit $ac_status); } >/dev/null; then | |
13213 | if test -s conftest.err; then | |
13214 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13215 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13216 | else |
13217 | ac_cpp_err= | |
13218 | fi | |
13219 | else | |
13220 | ac_cpp_err=yes | |
13221 | fi | |
13222 | if test -z "$ac_cpp_err"; then | |
13223 | ac_header_preproc=yes | |
13224 | else | |
13225 | echo "$as_me: failed program was:" >&5 | |
13226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13227 | ||
13228 | ac_header_preproc=no | |
13229 | fi | |
13230 | rm -f conftest.err conftest.$ac_ext | |
13231 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13232 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13233 | ||
13234 | # So? What about this header? | |
ac1cb8d3 VS |
13235 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13236 | yes:no: ) | |
a848cd7e SC |
13237 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13238 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13240 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13241 | ac_header_preproc=yes | |
a848cd7e | 13242 | ;; |
ac1cb8d3 | 13243 | no:yes:* ) |
a848cd7e SC |
13244 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13245 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13246 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13247 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13248 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13249 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13250 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13251 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13252 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13253 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13254 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13255 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13256 | ( |
13257 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13258 | ## ----------------------------------------- ## |
13259 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13260 | ## ----------------------------------------- ## | |
a848cd7e SC |
13261 | _ASBOX |
13262 | ) | | |
13263 | sed "s/^/$as_me: WARNING: /" >&2 | |
13264 | ;; | |
13265 | esac | |
13266 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13268 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13270 | else | |
ac1cb8d3 | 13271 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13272 | fi |
13273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13274 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13275 | ||
13276 | fi | |
13277 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13278 | cat >>confdefs.h <<_ACEOF | |
13279 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13280 | _ACEOF | |
13281 | ||
13282 | fi | |
13283 | ||
13284 | done | |
13285 | ||
13286 | ||
13287 | for ac_header in wchar.h | |
13288 | do | |
13289 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13290 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13291 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13292 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13295 | fi | |
13296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13298 | else | |
13299 | # Is the header compilable? | |
13300 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13301 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13302 | cat >conftest.$ac_ext <<_ACEOF | |
13303 | /* confdefs.h. */ | |
13304 | _ACEOF | |
13305 | cat confdefs.h >>conftest.$ac_ext | |
13306 | cat >>conftest.$ac_ext <<_ACEOF | |
13307 | /* end confdefs.h. */ | |
13308 | $ac_includes_default | |
13309 | #include <$ac_header> | |
13310 | _ACEOF | |
13311 | rm -f conftest.$ac_objext | |
13312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13313 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13314 | ac_status=$? |
ac1cb8d3 VS |
13315 | grep -v '^ *+' conftest.er1 >conftest.err |
13316 | rm -f conftest.er1 | |
13317 | cat conftest.err >&5 | |
a848cd7e SC |
13318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13319 | (exit $ac_status); } && | |
5dcf30a0 RN |
13320 | { ac_try='test -z "$ac_c_werror_flag" |
13321 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13323 | (eval $ac_try) 2>&5 | |
13324 | ac_status=$? | |
13325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13326 | (exit $ac_status); }; } && | |
13327 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13329 | (eval $ac_try) 2>&5 | |
13330 | ac_status=$? | |
13331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13332 | (exit $ac_status); }; }; then | |
13333 | ac_header_compiler=yes | |
13334 | else | |
13335 | echo "$as_me: failed program was:" >&5 | |
13336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13337 | ||
13338 | ac_header_compiler=no | |
13339 | fi | |
ac1cb8d3 | 13340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13341 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13342 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13343 | ||
13344 | # Is the header present? | |
13345 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13346 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13347 | cat >conftest.$ac_ext <<_ACEOF | |
13348 | /* confdefs.h. */ | |
13349 | _ACEOF | |
13350 | cat confdefs.h >>conftest.$ac_ext | |
13351 | cat >>conftest.$ac_ext <<_ACEOF | |
13352 | /* end confdefs.h. */ | |
13353 | #include <$ac_header> | |
13354 | _ACEOF | |
13355 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13356 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13357 | ac_status=$? | |
13358 | grep -v '^ *+' conftest.er1 >conftest.err | |
13359 | rm -f conftest.er1 | |
13360 | cat conftest.err >&5 | |
13361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13362 | (exit $ac_status); } >/dev/null; then | |
13363 | if test -s conftest.err; then | |
13364 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13365 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13366 | else |
13367 | ac_cpp_err= | |
13368 | fi | |
13369 | else | |
13370 | ac_cpp_err=yes | |
13371 | fi | |
13372 | if test -z "$ac_cpp_err"; then | |
13373 | ac_header_preproc=yes | |
13374 | else | |
13375 | echo "$as_me: failed program was:" >&5 | |
13376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13377 | ||
13378 | ac_header_preproc=no | |
13379 | fi | |
13380 | rm -f conftest.err conftest.$ac_ext | |
13381 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13382 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13383 | ||
13384 | # So? What about this header? | |
ac1cb8d3 VS |
13385 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13386 | yes:no: ) | |
a848cd7e SC |
13387 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13388 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13389 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13390 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13391 | ac_header_preproc=yes | |
a848cd7e | 13392 | ;; |
ac1cb8d3 | 13393 | no:yes:* ) |
a848cd7e SC |
13394 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13395 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13396 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13397 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13398 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13399 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13400 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13401 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13403 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13404 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13405 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13406 | ( |
13407 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13408 | ## ----------------------------------------- ## |
13409 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13410 | ## ----------------------------------------- ## | |
a848cd7e SC |
13411 | _ASBOX |
13412 | ) | | |
13413 | sed "s/^/$as_me: WARNING: /" >&2 | |
13414 | ;; | |
13415 | esac | |
13416 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13420 | else | |
ac1cb8d3 | 13421 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13422 | fi |
13423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13424 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13425 | ||
13426 | fi | |
13427 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13428 | cat >>confdefs.h <<_ACEOF | |
13429 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13430 | _ACEOF | |
13431 | ||
13432 | fi | |
13433 | ||
13434 | done | |
13435 | ||
13436 | ||
13437 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13438 | ||
13439 | for ac_header in wcstr.h | |
13440 | do | |
13441 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13442 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13443 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13444 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13447 | fi | |
13448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13449 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13450 | else | |
13451 | # Is the header compilable? | |
13452 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13453 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13454 | cat >conftest.$ac_ext <<_ACEOF | |
13455 | /* confdefs.h. */ | |
13456 | _ACEOF | |
13457 | cat confdefs.h >>conftest.$ac_ext | |
13458 | cat >>conftest.$ac_ext <<_ACEOF | |
13459 | /* end confdefs.h. */ | |
13460 | $ac_includes_default | |
13461 | #include <$ac_header> | |
13462 | _ACEOF | |
13463 | rm -f conftest.$ac_objext | |
13464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13465 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13466 | ac_status=$? |
ac1cb8d3 VS |
13467 | grep -v '^ *+' conftest.er1 >conftest.err |
13468 | rm -f conftest.er1 | |
13469 | cat conftest.err >&5 | |
a848cd7e SC |
13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13471 | (exit $ac_status); } && | |
5dcf30a0 RN |
13472 | { ac_try='test -z "$ac_c_werror_flag" |
13473 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13475 | (eval $ac_try) 2>&5 | |
13476 | ac_status=$? | |
13477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13478 | (exit $ac_status); }; } && | |
13479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13481 | (eval $ac_try) 2>&5 | |
13482 | ac_status=$? | |
13483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13484 | (exit $ac_status); }; }; then | |
13485 | ac_header_compiler=yes | |
13486 | else | |
13487 | echo "$as_me: failed program was:" >&5 | |
13488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13489 | ||
13490 | ac_header_compiler=no | |
13491 | fi | |
ac1cb8d3 | 13492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13493 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13494 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13495 | ||
13496 | # Is the header present? | |
13497 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13498 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13499 | cat >conftest.$ac_ext <<_ACEOF | |
13500 | /* confdefs.h. */ | |
13501 | _ACEOF | |
13502 | cat confdefs.h >>conftest.$ac_ext | |
13503 | cat >>conftest.$ac_ext <<_ACEOF | |
13504 | /* end confdefs.h. */ | |
13505 | #include <$ac_header> | |
13506 | _ACEOF | |
13507 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13508 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13509 | ac_status=$? | |
13510 | grep -v '^ *+' conftest.er1 >conftest.err | |
13511 | rm -f conftest.er1 | |
13512 | cat conftest.err >&5 | |
13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13514 | (exit $ac_status); } >/dev/null; then | |
13515 | if test -s conftest.err; then | |
13516 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13517 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13518 | else |
13519 | ac_cpp_err= | |
13520 | fi | |
13521 | else | |
13522 | ac_cpp_err=yes | |
13523 | fi | |
13524 | if test -z "$ac_cpp_err"; then | |
13525 | ac_header_preproc=yes | |
13526 | else | |
13527 | echo "$as_me: failed program was:" >&5 | |
13528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13529 | ||
13530 | ac_header_preproc=no | |
13531 | fi | |
13532 | rm -f conftest.err conftest.$ac_ext | |
13533 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13534 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13535 | ||
13536 | # So? What about this header? | |
ac1cb8d3 VS |
13537 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13538 | yes:no: ) | |
a848cd7e SC |
13539 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13540 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13541 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13542 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13543 | ac_header_preproc=yes | |
a848cd7e | 13544 | ;; |
ac1cb8d3 | 13545 | no:yes:* ) |
a848cd7e SC |
13546 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13547 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13548 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13549 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13550 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13551 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13552 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13553 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13554 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13555 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13556 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13557 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13558 | ( |
13559 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13560 | ## ----------------------------------------- ## |
13561 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13562 | ## ----------------------------------------- ## | |
a848cd7e SC |
13563 | _ASBOX |
13564 | ) | | |
13565 | sed "s/^/$as_me: WARNING: /" >&2 | |
13566 | ;; | |
13567 | esac | |
13568 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13569 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13570 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13572 | else | |
ac1cb8d3 | 13573 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13574 | fi |
13575 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13576 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13577 | ||
13578 | fi | |
13579 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13580 | cat >>confdefs.h <<_ACEOF | |
13581 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13582 | _ACEOF | |
13583 | ||
13584 | fi | |
13585 | ||
13586 | done | |
13587 | ||
13588 | fi | |
13589 | ||
13590 | ||
13591 | for ac_header in fnmatch.h | |
13592 | do | |
13593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13599 | fi | |
13600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13602 | else | |
13603 | # Is the header compilable? | |
13604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13606 | cat >conftest.$ac_ext <<_ACEOF | |
13607 | /* confdefs.h. */ | |
13608 | _ACEOF | |
13609 | cat confdefs.h >>conftest.$ac_ext | |
13610 | cat >>conftest.$ac_ext <<_ACEOF | |
13611 | /* end confdefs.h. */ | |
13612 | $ac_includes_default | |
13613 | #include <$ac_header> | |
13614 | _ACEOF | |
13615 | rm -f conftest.$ac_objext | |
13616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13617 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13618 | ac_status=$? |
ac1cb8d3 VS |
13619 | grep -v '^ *+' conftest.er1 >conftest.err |
13620 | rm -f conftest.er1 | |
13621 | cat conftest.err >&5 | |
a848cd7e SC |
13622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13623 | (exit $ac_status); } && | |
5dcf30a0 RN |
13624 | { ac_try='test -z "$ac_c_werror_flag" |
13625 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13627 | (eval $ac_try) 2>&5 | |
13628 | ac_status=$? | |
13629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13630 | (exit $ac_status); }; } && | |
13631 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13633 | (eval $ac_try) 2>&5 | |
13634 | ac_status=$? | |
13635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13636 | (exit $ac_status); }; }; then | |
13637 | ac_header_compiler=yes | |
13638 | else | |
13639 | echo "$as_me: failed program was:" >&5 | |
13640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13641 | ||
13642 | ac_header_compiler=no | |
13643 | fi | |
ac1cb8d3 | 13644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13645 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13646 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13647 | ||
13648 | # Is the header present? | |
13649 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13650 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13651 | cat >conftest.$ac_ext <<_ACEOF | |
13652 | /* confdefs.h. */ | |
13653 | _ACEOF | |
13654 | cat confdefs.h >>conftest.$ac_ext | |
13655 | cat >>conftest.$ac_ext <<_ACEOF | |
13656 | /* end confdefs.h. */ | |
13657 | #include <$ac_header> | |
13658 | _ACEOF | |
13659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13661 | ac_status=$? | |
13662 | grep -v '^ *+' conftest.er1 >conftest.err | |
13663 | rm -f conftest.er1 | |
13664 | cat conftest.err >&5 | |
13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13666 | (exit $ac_status); } >/dev/null; then | |
13667 | if test -s conftest.err; then | |
13668 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13670 | else |
13671 | ac_cpp_err= | |
13672 | fi | |
13673 | else | |
13674 | ac_cpp_err=yes | |
13675 | fi | |
13676 | if test -z "$ac_cpp_err"; then | |
13677 | ac_header_preproc=yes | |
13678 | else | |
13679 | echo "$as_me: failed program was:" >&5 | |
13680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13681 | ||
13682 | ac_header_preproc=no | |
13683 | fi | |
13684 | rm -f conftest.err conftest.$ac_ext | |
13685 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13686 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13687 | ||
13688 | # So? What about this header? | |
ac1cb8d3 VS |
13689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13690 | yes:no: ) | |
a848cd7e SC |
13691 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13692 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13694 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13695 | ac_header_preproc=yes | |
a848cd7e | 13696 | ;; |
ac1cb8d3 | 13697 | no:yes:* ) |
a848cd7e SC |
13698 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13699 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13700 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13701 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13702 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13703 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13704 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13705 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13707 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13708 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13709 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13710 | ( |
13711 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13712 | ## ----------------------------------------- ## |
13713 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13714 | ## ----------------------------------------- ## | |
a848cd7e SC |
13715 | _ASBOX |
13716 | ) | | |
13717 | sed "s/^/$as_me: WARNING: /" >&2 | |
13718 | ;; | |
13719 | esac | |
13720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13724 | else | |
ac1cb8d3 | 13725 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13726 | fi |
13727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13729 | ||
13730 | fi | |
13731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13732 | cat >>confdefs.h <<_ACEOF | |
13733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13734 | _ACEOF | |
13735 | ||
13736 | fi | |
13737 | ||
13738 | done | |
13739 | ||
13740 | ||
13741 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13742 | ||
13743 | for ac_func in fnmatch | |
13744 | do | |
13745 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13746 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13748 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13750 | else | |
13751 | cat >conftest.$ac_ext <<_ACEOF | |
13752 | /* confdefs.h. */ | |
13753 | _ACEOF | |
13754 | cat confdefs.h >>conftest.$ac_ext | |
13755 | cat >>conftest.$ac_ext <<_ACEOF | |
13756 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13757 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13759 | #define $ac_func innocuous_$ac_func | |
13760 | ||
a848cd7e SC |
13761 | /* System header to define __stub macros and hopefully few prototypes, |
13762 | which can conflict with char $ac_func (); below. | |
13763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13764 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13765 | |
a848cd7e SC |
13766 | #ifdef __STDC__ |
13767 | # include <limits.h> | |
13768 | #else | |
13769 | # include <assert.h> | |
13770 | #endif | |
ac1cb8d3 VS |
13771 | |
13772 | #undef $ac_func | |
13773 | ||
a848cd7e SC |
13774 | /* Override any gcc2 internal prototype to avoid an error. */ |
13775 | #ifdef __cplusplus | |
13776 | extern "C" | |
13777 | { | |
13778 | #endif | |
13779 | /* We use char because int might match the return type of a gcc2 | |
13780 | builtin and then its argument prototype would still apply. */ | |
13781 | char $ac_func (); | |
13782 | /* The GNU C library defines this for functions which it implements | |
13783 | to always fail with ENOSYS. Some functions are actually named | |
13784 | something starting with __ and the normal name is an alias. */ | |
13785 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13786 | choke me | |
13787 | #else | |
13788 | char (*f) () = $ac_func; | |
13789 | #endif | |
13790 | #ifdef __cplusplus | |
13791 | } | |
13792 | #endif | |
13793 | ||
13794 | int | |
13795 | main () | |
13796 | { | |
13797 | return f != $ac_func; | |
13798 | ; | |
13799 | return 0; | |
13800 | } | |
13801 | _ACEOF | |
13802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13804 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13805 | ac_status=$? |
ac1cb8d3 VS |
13806 | grep -v '^ *+' conftest.er1 >conftest.err |
13807 | rm -f conftest.er1 | |
13808 | cat conftest.err >&5 | |
a848cd7e SC |
13809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13810 | (exit $ac_status); } && | |
5dcf30a0 RN |
13811 | { ac_try='test -z "$ac_c_werror_flag" |
13812 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13814 | (eval $ac_try) 2>&5 | |
13815 | ac_status=$? | |
13816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13817 | (exit $ac_status); }; } && | |
13818 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13820 | (eval $ac_try) 2>&5 | |
13821 | ac_status=$? | |
13822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13823 | (exit $ac_status); }; }; then | |
13824 | eval "$as_ac_var=yes" | |
13825 | else | |
13826 | echo "$as_me: failed program was:" >&5 | |
13827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13828 | ||
13829 | eval "$as_ac_var=no" | |
13830 | fi | |
ac1cb8d3 VS |
13831 | rm -f conftest.err conftest.$ac_objext \ |
13832 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13833 | fi |
13834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13835 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13836 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13837 | cat >>confdefs.h <<_ACEOF | |
13838 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13839 | _ACEOF | |
13840 | ||
13841 | fi | |
13842 | done | |
13843 | ||
13844 | fi | |
13845 | ||
13846 | ||
13847 | for ac_header in langinfo.h | |
13848 | do | |
13849 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13851 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13853 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13855 | fi | |
13856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13857 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13858 | else | |
13859 | # Is the header compilable? | |
13860 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13861 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13862 | cat >conftest.$ac_ext <<_ACEOF | |
13863 | /* confdefs.h. */ | |
13864 | _ACEOF | |
13865 | cat confdefs.h >>conftest.$ac_ext | |
13866 | cat >>conftest.$ac_ext <<_ACEOF | |
13867 | /* end confdefs.h. */ | |
13868 | $ac_includes_default | |
13869 | #include <$ac_header> | |
13870 | _ACEOF | |
13871 | rm -f conftest.$ac_objext | |
13872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13873 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13874 | ac_status=$? |
ac1cb8d3 VS |
13875 | grep -v '^ *+' conftest.er1 >conftest.err |
13876 | rm -f conftest.er1 | |
13877 | cat conftest.err >&5 | |
a848cd7e SC |
13878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13879 | (exit $ac_status); } && | |
5dcf30a0 RN |
13880 | { ac_try='test -z "$ac_c_werror_flag" |
13881 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13883 | (eval $ac_try) 2>&5 | |
13884 | ac_status=$? | |
13885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13886 | (exit $ac_status); }; } && | |
13887 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13889 | (eval $ac_try) 2>&5 | |
13890 | ac_status=$? | |
13891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13892 | (exit $ac_status); }; }; then | |
13893 | ac_header_compiler=yes | |
13894 | else | |
13895 | echo "$as_me: failed program was:" >&5 | |
13896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13897 | ||
13898 | ac_header_compiler=no | |
13899 | fi | |
ac1cb8d3 | 13900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13901 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13902 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13903 | ||
13904 | # Is the header present? | |
13905 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13906 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13907 | cat >conftest.$ac_ext <<_ACEOF | |
13908 | /* confdefs.h. */ | |
13909 | _ACEOF | |
13910 | cat confdefs.h >>conftest.$ac_ext | |
13911 | cat >>conftest.$ac_ext <<_ACEOF | |
13912 | /* end confdefs.h. */ | |
13913 | #include <$ac_header> | |
13914 | _ACEOF | |
13915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13917 | ac_status=$? | |
13918 | grep -v '^ *+' conftest.er1 >conftest.err | |
13919 | rm -f conftest.er1 | |
13920 | cat conftest.err >&5 | |
13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13922 | (exit $ac_status); } >/dev/null; then | |
13923 | if test -s conftest.err; then | |
13924 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13925 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13926 | else |
13927 | ac_cpp_err= | |
13928 | fi | |
13929 | else | |
13930 | ac_cpp_err=yes | |
13931 | fi | |
13932 | if test -z "$ac_cpp_err"; then | |
13933 | ac_header_preproc=yes | |
13934 | else | |
13935 | echo "$as_me: failed program was:" >&5 | |
13936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13937 | ||
13938 | ac_header_preproc=no | |
13939 | fi | |
13940 | rm -f conftest.err conftest.$ac_ext | |
13941 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13942 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13943 | ||
13944 | # So? What about this header? | |
ac1cb8d3 VS |
13945 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13946 | yes:no: ) | |
a848cd7e SC |
13947 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13948 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13950 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13951 | ac_header_preproc=yes | |
a848cd7e | 13952 | ;; |
ac1cb8d3 | 13953 | no:yes:* ) |
a848cd7e SC |
13954 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13955 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13956 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13957 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13958 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13959 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13960 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13961 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13963 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13964 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13965 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13966 | ( |
13967 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13968 | ## ----------------------------------------- ## |
13969 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13970 | ## ----------------------------------------- ## | |
a848cd7e SC |
13971 | _ASBOX |
13972 | ) | | |
13973 | sed "s/^/$as_me: WARNING: /" >&2 | |
13974 | ;; | |
13975 | esac | |
13976 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13980 | else | |
ac1cb8d3 | 13981 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13982 | fi |
13983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13984 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13985 | ||
13986 | fi | |
13987 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13988 | cat >>confdefs.h <<_ACEOF | |
13989 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13990 | _ACEOF | |
13991 | ||
13992 | fi | |
13993 | ||
13994 | done | |
13995 | ||
13996 | ||
13997 | case "${host}" in | |
13998 | *-pc-os2_emx | *-pc-os2-emx ) | |
13999 | if test $ac_cv_header_langinfo_h = "yes"; then | |
14000 | LIBS="$LIBS -lintl" | |
14001 | fi | |
14002 | ;; | |
14003 | esac | |
14004 | ||
14005 | if test "$wxUSE_GUI" = "yes"; then | |
14006 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14007 | ||
14008 | for ac_header in X11/Xlib.h | |
14009 | do | |
14010 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14012 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14016 | fi | |
14017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14018 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14019 | else | |
14020 | # Is the header compilable? | |
14021 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14022 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14023 | cat >conftest.$ac_ext <<_ACEOF | |
14024 | /* confdefs.h. */ | |
14025 | _ACEOF | |
14026 | cat confdefs.h >>conftest.$ac_ext | |
14027 | cat >>conftest.$ac_ext <<_ACEOF | |
14028 | /* end confdefs.h. */ | |
14029 | $ac_includes_default | |
14030 | #include <$ac_header> | |
14031 | _ACEOF | |
14032 | rm -f conftest.$ac_objext | |
14033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14034 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14035 | ac_status=$? |
ac1cb8d3 VS |
14036 | grep -v '^ *+' conftest.er1 >conftest.err |
14037 | rm -f conftest.er1 | |
14038 | cat conftest.err >&5 | |
a848cd7e SC |
14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14040 | (exit $ac_status); } && | |
5dcf30a0 RN |
14041 | { ac_try='test -z "$ac_c_werror_flag" |
14042 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14044 | (eval $ac_try) 2>&5 | |
14045 | ac_status=$? | |
14046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14047 | (exit $ac_status); }; } && | |
14048 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14050 | (eval $ac_try) 2>&5 | |
14051 | ac_status=$? | |
14052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14053 | (exit $ac_status); }; }; then | |
14054 | ac_header_compiler=yes | |
14055 | else | |
14056 | echo "$as_me: failed program was:" >&5 | |
14057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14058 | ||
14059 | ac_header_compiler=no | |
14060 | fi | |
ac1cb8d3 | 14061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14062 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14063 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14064 | ||
14065 | # Is the header present? | |
14066 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14067 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14068 | cat >conftest.$ac_ext <<_ACEOF | |
14069 | /* confdefs.h. */ | |
14070 | _ACEOF | |
14071 | cat confdefs.h >>conftest.$ac_ext | |
14072 | cat >>conftest.$ac_ext <<_ACEOF | |
14073 | /* end confdefs.h. */ | |
14074 | #include <$ac_header> | |
14075 | _ACEOF | |
14076 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14077 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14078 | ac_status=$? | |
14079 | grep -v '^ *+' conftest.er1 >conftest.err | |
14080 | rm -f conftest.er1 | |
14081 | cat conftest.err >&5 | |
14082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14083 | (exit $ac_status); } >/dev/null; then | |
14084 | if test -s conftest.err; then | |
14085 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14086 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14087 | else |
14088 | ac_cpp_err= | |
14089 | fi | |
14090 | else | |
14091 | ac_cpp_err=yes | |
14092 | fi | |
14093 | if test -z "$ac_cpp_err"; then | |
14094 | ac_header_preproc=yes | |
14095 | else | |
14096 | echo "$as_me: failed program was:" >&5 | |
14097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14098 | ||
14099 | ac_header_preproc=no | |
14100 | fi | |
14101 | rm -f conftest.err conftest.$ac_ext | |
14102 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14103 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14104 | ||
14105 | # So? What about this header? | |
ac1cb8d3 VS |
14106 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14107 | yes:no: ) | |
a848cd7e SC |
14108 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14109 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14111 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14112 | ac_header_preproc=yes | |
a848cd7e | 14113 | ;; |
ac1cb8d3 | 14114 | no:yes:* ) |
a848cd7e SC |
14115 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14116 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14117 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14118 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14119 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14120 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14121 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14122 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14124 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14125 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14126 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14127 | ( |
14128 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14129 | ## ----------------------------------------- ## |
14130 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14131 | ## ----------------------------------------- ## | |
a848cd7e SC |
14132 | _ASBOX |
14133 | ) | | |
14134 | sed "s/^/$as_me: WARNING: /" >&2 | |
14135 | ;; | |
14136 | esac | |
14137 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14141 | else | |
ac1cb8d3 | 14142 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14143 | fi |
14144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14145 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14146 | ||
14147 | fi | |
14148 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14149 | cat >>confdefs.h <<_ACEOF | |
14150 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14151 | _ACEOF | |
14152 | ||
14153 | fi | |
14154 | ||
14155 | done | |
14156 | ||
14157 | ||
14158 | for ac_header in X11/XKBlib.h | |
14159 | do | |
14160 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14161 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14165 | else | |
14166 | cat >conftest.$ac_ext <<_ACEOF | |
14167 | /* confdefs.h. */ | |
14168 | _ACEOF | |
14169 | cat confdefs.h >>conftest.$ac_ext | |
14170 | cat >>conftest.$ac_ext <<_ACEOF | |
14171 | /* end confdefs.h. */ | |
14172 | ||
14173 | #if HAVE_X11_XLIB_H | |
14174 | #include <X11/Xlib.h> | |
14175 | #endif | |
14176 | ||
14177 | ||
14178 | #include <$ac_header> | |
14179 | _ACEOF | |
14180 | rm -f conftest.$ac_objext | |
14181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14183 | ac_status=$? |
ac1cb8d3 VS |
14184 | grep -v '^ *+' conftest.er1 >conftest.err |
14185 | rm -f conftest.er1 | |
14186 | cat conftest.err >&5 | |
a848cd7e SC |
14187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14188 | (exit $ac_status); } && | |
5dcf30a0 RN |
14189 | { ac_try='test -z "$ac_c_werror_flag" |
14190 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14192 | (eval $ac_try) 2>&5 | |
14193 | ac_status=$? | |
14194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14195 | (exit $ac_status); }; } && | |
14196 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14198 | (eval $ac_try) 2>&5 | |
14199 | ac_status=$? | |
14200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14201 | (exit $ac_status); }; }; then | |
14202 | eval "$as_ac_Header=yes" | |
14203 | else | |
14204 | echo "$as_me: failed program was:" >&5 | |
14205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14206 | ||
14207 | eval "$as_ac_Header=no" | |
14208 | fi | |
ac1cb8d3 | 14209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14210 | fi |
14211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14212 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14213 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14214 | cat >>confdefs.h <<_ACEOF | |
14215 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14216 | _ACEOF | |
14217 | ||
14218 | fi | |
14219 | ||
14220 | done | |
14221 | ||
14222 | fi | |
14223 | fi | |
14224 | ||
14225 | ||
14226 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14227 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14228 | if test "${ac_cv_c_const+set}" = set; then | |
14229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14230 | else | |
14231 | cat >conftest.$ac_ext <<_ACEOF | |
14232 | /* confdefs.h. */ | |
14233 | _ACEOF | |
14234 | cat confdefs.h >>conftest.$ac_ext | |
14235 | cat >>conftest.$ac_ext <<_ACEOF | |
14236 | /* end confdefs.h. */ | |
14237 | ||
14238 | int | |
14239 | main () | |
14240 | { | |
14241 | /* FIXME: Include the comments suggested by Paul. */ | |
14242 | #ifndef __cplusplus | |
14243 | /* Ultrix mips cc rejects this. */ | |
14244 | typedef int charset[2]; | |
14245 | const charset x; | |
14246 | /* SunOS 4.1.1 cc rejects this. */ | |
14247 | char const *const *ccp; | |
14248 | char **p; | |
14249 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14250 | struct point {int x, y;}; | |
14251 | static struct point const zero = {0,0}; | |
14252 | /* AIX XL C 1.02.0.0 rejects this. | |
14253 | It does not let you subtract one const X* pointer from another in | |
14254 | an arm of an if-expression whose if-part is not a constant | |
14255 | expression */ | |
14256 | const char *g = "string"; | |
14257 | ccp = &g + (g ? g-g : 0); | |
14258 | /* HPUX 7.0 cc rejects these. */ | |
14259 | ++ccp; | |
14260 | p = (char**) ccp; | |
14261 | ccp = (char const *const *) p; | |
14262 | { /* SCO 3.2v4 cc rejects this. */ | |
14263 | char *t; | |
14264 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14265 | ||
14266 | *t++ = 0; | |
14267 | } | |
14268 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14269 | int x[] = {25, 17}; | |
14270 | const int *foo = &x[0]; | |
14271 | ++foo; | |
14272 | } | |
14273 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14274 | typedef const int *iptr; | |
14275 | iptr p = 0; | |
14276 | ++p; | |
14277 | } | |
14278 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14279 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14280 | struct s { int j; const int *ap[3]; }; | |
14281 | struct s *b; b->j = 5; | |
14282 | } | |
14283 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14284 | const int foo = 10; | |
14285 | } | |
14286 | #endif | |
14287 | ||
14288 | ; | |
14289 | return 0; | |
14290 | } | |
14291 | _ACEOF | |
14292 | rm -f conftest.$ac_objext | |
14293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14294 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14295 | ac_status=$? |
ac1cb8d3 VS |
14296 | grep -v '^ *+' conftest.er1 >conftest.err |
14297 | rm -f conftest.er1 | |
14298 | cat conftest.err >&5 | |
a848cd7e SC |
14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14300 | (exit $ac_status); } && | |
5dcf30a0 RN |
14301 | { ac_try='test -z "$ac_c_werror_flag" |
14302 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14304 | (eval $ac_try) 2>&5 | |
14305 | ac_status=$? | |
14306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14307 | (exit $ac_status); }; } && | |
14308 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14310 | (eval $ac_try) 2>&5 | |
14311 | ac_status=$? | |
14312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14313 | (exit $ac_status); }; }; then | |
14314 | ac_cv_c_const=yes | |
14315 | else | |
14316 | echo "$as_me: failed program was:" >&5 | |
14317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14318 | ||
14319 | ac_cv_c_const=no | |
14320 | fi | |
ac1cb8d3 | 14321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14322 | fi |
14323 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14324 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14325 | if test $ac_cv_c_const = no; then | |
14326 | ||
14327 | cat >>confdefs.h <<\_ACEOF | |
14328 | #define const | |
14329 | _ACEOF | |
14330 | ||
14331 | fi | |
14332 | ||
14333 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14334 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14335 | if test "${ac_cv_c_inline+set}" = set; then | |
14336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14337 | else | |
14338 | ac_cv_c_inline=no | |
14339 | for ac_kw in inline __inline__ __inline; do | |
14340 | cat >conftest.$ac_ext <<_ACEOF | |
14341 | /* confdefs.h. */ | |
14342 | _ACEOF | |
14343 | cat confdefs.h >>conftest.$ac_ext | |
14344 | cat >>conftest.$ac_ext <<_ACEOF | |
14345 | /* end confdefs.h. */ | |
14346 | #ifndef __cplusplus | |
14347 | typedef int foo_t; | |
14348 | static $ac_kw foo_t static_foo () {return 0; } | |
14349 | $ac_kw foo_t foo () {return 0; } | |
14350 | #endif | |
14351 | ||
14352 | _ACEOF | |
14353 | rm -f conftest.$ac_objext | |
14354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14355 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14356 | ac_status=$? |
ac1cb8d3 VS |
14357 | grep -v '^ *+' conftest.er1 >conftest.err |
14358 | rm -f conftest.er1 | |
14359 | cat conftest.err >&5 | |
a848cd7e SC |
14360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14361 | (exit $ac_status); } && | |
5dcf30a0 RN |
14362 | { ac_try='test -z "$ac_c_werror_flag" |
14363 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14365 | (eval $ac_try) 2>&5 | |
14366 | ac_status=$? | |
14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14368 | (exit $ac_status); }; } && | |
14369 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14371 | (eval $ac_try) 2>&5 | |
14372 | ac_status=$? | |
14373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14374 | (exit $ac_status); }; }; then | |
14375 | ac_cv_c_inline=$ac_kw; break | |
14376 | else | |
14377 | echo "$as_me: failed program was:" >&5 | |
14378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14379 | ||
14380 | fi | |
ac1cb8d3 | 14381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14382 | done |
14383 | ||
14384 | fi | |
14385 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14386 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14387 | |
14388 | ||
a848cd7e SC |
14389 | case $ac_cv_c_inline in |
14390 | inline | yes) ;; | |
ac1cb8d3 VS |
14391 | *) |
14392 | case $ac_cv_c_inline in | |
14393 | no) ac_val=;; | |
14394 | *) ac_val=$ac_cv_c_inline;; | |
14395 | esac | |
14396 | cat >>confdefs.h <<_ACEOF | |
14397 | #ifndef __cplusplus | |
14398 | #define inline $ac_val | |
14399 | #endif | |
de59c161 | 14400 | _ACEOF |
ac1cb8d3 | 14401 | ;; |
a848cd7e SC |
14402 | esac |
14403 | ||
14404 | ||
14405 | echo "$as_me:$LINENO: checking for char" >&5 | |
14406 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14407 | if test "${ac_cv_type_char+set}" = set; then | |
14408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14409 | else | |
14410 | cat >conftest.$ac_ext <<_ACEOF | |
14411 | /* confdefs.h. */ | |
14412 | _ACEOF | |
14413 | cat confdefs.h >>conftest.$ac_ext | |
14414 | cat >>conftest.$ac_ext <<_ACEOF | |
14415 | /* end confdefs.h. */ | |
14416 | $ac_includes_default | |
14417 | int | |
14418 | main () | |
14419 | { | |
14420 | if ((char *) 0) | |
14421 | return 0; | |
14422 | if (sizeof (char)) | |
14423 | return 0; | |
14424 | ; | |
14425 | return 0; | |
14426 | } | |
14427 | _ACEOF | |
14428 | rm -f conftest.$ac_objext | |
14429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14430 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14431 | ac_status=$? |
ac1cb8d3 VS |
14432 | grep -v '^ *+' conftest.er1 >conftest.err |
14433 | rm -f conftest.er1 | |
14434 | cat conftest.err >&5 | |
a848cd7e SC |
14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14436 | (exit $ac_status); } && | |
5dcf30a0 RN |
14437 | { ac_try='test -z "$ac_c_werror_flag" |
14438 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14440 | (eval $ac_try) 2>&5 | |
14441 | ac_status=$? | |
14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14443 | (exit $ac_status); }; } && | |
14444 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14446 | (eval $ac_try) 2>&5 | |
14447 | ac_status=$? | |
14448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14449 | (exit $ac_status); }; }; then | |
14450 | ac_cv_type_char=yes | |
14451 | else | |
14452 | echo "$as_me: failed program was:" >&5 | |
14453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14454 | ||
14455 | ac_cv_type_char=no | |
14456 | fi | |
ac1cb8d3 | 14457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14458 | fi |
14459 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14460 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14461 | ||
14462 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14463 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14464 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14466 | else | |
14467 | if test "$ac_cv_type_char" = yes; then | |
14468 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14469 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14470 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14471 | # This bug is HP SR number 8606223364. | |
14472 | if test "$cross_compiling" = yes; then | |
14473 | # Depending upon the size, compute the lo and hi bounds. | |
14474 | cat >conftest.$ac_ext <<_ACEOF | |
14475 | /* confdefs.h. */ | |
14476 | _ACEOF | |
14477 | cat confdefs.h >>conftest.$ac_ext | |
14478 | cat >>conftest.$ac_ext <<_ACEOF | |
14479 | /* end confdefs.h. */ | |
14480 | $ac_includes_default | |
14481 | int | |
14482 | main () | |
14483 | { | |
14484 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14485 | test_array [0] = 0 | |
14486 | ||
14487 | ; | |
14488 | return 0; | |
14489 | } | |
14490 | _ACEOF | |
14491 | rm -f conftest.$ac_objext | |
14492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14493 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14494 | ac_status=$? |
ac1cb8d3 VS |
14495 | grep -v '^ *+' conftest.er1 >conftest.err |
14496 | rm -f conftest.er1 | |
14497 | cat conftest.err >&5 | |
a848cd7e SC |
14498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14499 | (exit $ac_status); } && | |
5dcf30a0 RN |
14500 | { ac_try='test -z "$ac_c_werror_flag" |
14501 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14503 | (eval $ac_try) 2>&5 | |
14504 | ac_status=$? | |
14505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14506 | (exit $ac_status); }; } && | |
14507 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14509 | (eval $ac_try) 2>&5 | |
14510 | ac_status=$? | |
14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14512 | (exit $ac_status); }; }; then | |
14513 | ac_lo=0 ac_mid=0 | |
14514 | while :; do | |
14515 | cat >conftest.$ac_ext <<_ACEOF | |
14516 | /* confdefs.h. */ | |
14517 | _ACEOF | |
14518 | cat confdefs.h >>conftest.$ac_ext | |
14519 | cat >>conftest.$ac_ext <<_ACEOF | |
14520 | /* end confdefs.h. */ | |
14521 | $ac_includes_default | |
14522 | int | |
14523 | main () | |
14524 | { | |
14525 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14526 | test_array [0] = 0 | |
14527 | ||
14528 | ; | |
14529 | return 0; | |
14530 | } | |
14531 | _ACEOF | |
14532 | rm -f conftest.$ac_objext | |
14533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14534 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14535 | ac_status=$? |
ac1cb8d3 VS |
14536 | grep -v '^ *+' conftest.er1 >conftest.err |
14537 | rm -f conftest.er1 | |
14538 | cat conftest.err >&5 | |
a848cd7e SC |
14539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14540 | (exit $ac_status); } && | |
5dcf30a0 RN |
14541 | { ac_try='test -z "$ac_c_werror_flag" |
14542 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14544 | (eval $ac_try) 2>&5 | |
14545 | ac_status=$? | |
14546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14547 | (exit $ac_status); }; } && | |
14548 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14550 | (eval $ac_try) 2>&5 | |
14551 | ac_status=$? | |
14552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14553 | (exit $ac_status); }; }; then | |
14554 | ac_hi=$ac_mid; break | |
14555 | else | |
14556 | echo "$as_me: failed program was:" >&5 | |
14557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14558 | ||
14559 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14560 | if test $ac_lo -le $ac_mid; then |
14561 | ac_lo= ac_hi= | |
14562 | break | |
14563 | fi | |
14564 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14565 | fi |
ac1cb8d3 | 14566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14567 | done |
14568 | else | |
14569 | echo "$as_me: failed program was:" >&5 | |
14570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14571 | ||
14572 | cat >conftest.$ac_ext <<_ACEOF | |
14573 | /* confdefs.h. */ | |
14574 | _ACEOF | |
14575 | cat confdefs.h >>conftest.$ac_ext | |
14576 | cat >>conftest.$ac_ext <<_ACEOF | |
14577 | /* end confdefs.h. */ | |
14578 | $ac_includes_default | |
14579 | int | |
14580 | main () | |
14581 | { | |
14582 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14583 | test_array [0] = 0 | |
14584 | ||
14585 | ; | |
14586 | return 0; | |
14587 | } | |
14588 | _ACEOF | |
14589 | rm -f conftest.$ac_objext | |
14590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14591 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14592 | ac_status=$? |
ac1cb8d3 VS |
14593 | grep -v '^ *+' conftest.er1 >conftest.err |
14594 | rm -f conftest.er1 | |
14595 | cat conftest.err >&5 | |
a848cd7e SC |
14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14597 | (exit $ac_status); } && | |
5dcf30a0 RN |
14598 | { ac_try='test -z "$ac_c_werror_flag" |
14599 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14601 | (eval $ac_try) 2>&5 | |
14602 | ac_status=$? | |
14603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14604 | (exit $ac_status); }; } && | |
14605 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14607 | (eval $ac_try) 2>&5 | |
14608 | ac_status=$? | |
14609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14610 | (exit $ac_status); }; }; then | |
14611 | ac_hi=-1 ac_mid=-1 | |
14612 | while :; do | |
14613 | cat >conftest.$ac_ext <<_ACEOF | |
14614 | /* confdefs.h. */ | |
14615 | _ACEOF | |
14616 | cat confdefs.h >>conftest.$ac_ext | |
14617 | cat >>conftest.$ac_ext <<_ACEOF | |
14618 | /* end confdefs.h. */ | |
14619 | $ac_includes_default | |
14620 | int | |
14621 | main () | |
14622 | { | |
14623 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14624 | test_array [0] = 0 | |
14625 | ||
14626 | ; | |
14627 | return 0; | |
14628 | } | |
14629 | _ACEOF | |
14630 | rm -f conftest.$ac_objext | |
14631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14632 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14633 | ac_status=$? |
ac1cb8d3 VS |
14634 | grep -v '^ *+' conftest.er1 >conftest.err |
14635 | rm -f conftest.er1 | |
14636 | cat conftest.err >&5 | |
a848cd7e SC |
14637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14638 | (exit $ac_status); } && | |
5dcf30a0 RN |
14639 | { ac_try='test -z "$ac_c_werror_flag" |
14640 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
14646 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14648 | (eval $ac_try) 2>&5 | |
14649 | ac_status=$? | |
14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14651 | (exit $ac_status); }; }; then | |
14652 | ac_lo=$ac_mid; break | |
14653 | else | |
14654 | echo "$as_me: failed program was:" >&5 | |
14655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14656 | ||
14657 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14658 | if test $ac_mid -le $ac_hi; then |
14659 | ac_lo= ac_hi= | |
14660 | break | |
14661 | fi | |
14662 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14663 | fi |
ac1cb8d3 | 14664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14665 | done |
14666 | else | |
14667 | echo "$as_me: failed program was:" >&5 | |
14668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14669 | ||
14670 | ac_lo= ac_hi= | |
14671 | fi | |
ac1cb8d3 | 14672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14673 | fi |
ac1cb8d3 | 14674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14675 | # Binary search between lo and hi bounds. |
14676 | while test "x$ac_lo" != "x$ac_hi"; do | |
14677 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14678 | cat >conftest.$ac_ext <<_ACEOF | |
14679 | /* confdefs.h. */ | |
14680 | _ACEOF | |
14681 | cat confdefs.h >>conftest.$ac_ext | |
14682 | cat >>conftest.$ac_ext <<_ACEOF | |
14683 | /* end confdefs.h. */ | |
14684 | $ac_includes_default | |
14685 | int | |
14686 | main () | |
14687 | { | |
14688 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14689 | test_array [0] = 0 | |
14690 | ||
14691 | ; | |
14692 | return 0; | |
14693 | } | |
14694 | _ACEOF | |
14695 | rm -f conftest.$ac_objext | |
14696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14697 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14698 | ac_status=$? |
ac1cb8d3 VS |
14699 | grep -v '^ *+' conftest.er1 >conftest.err |
14700 | rm -f conftest.er1 | |
14701 | cat conftest.err >&5 | |
a848cd7e SC |
14702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14703 | (exit $ac_status); } && | |
5dcf30a0 RN |
14704 | { ac_try='test -z "$ac_c_werror_flag" |
14705 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14707 | (eval $ac_try) 2>&5 | |
14708 | ac_status=$? | |
14709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14710 | (exit $ac_status); }; } && | |
14711 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14713 | (eval $ac_try) 2>&5 | |
14714 | ac_status=$? | |
14715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14716 | (exit $ac_status); }; }; then | |
14717 | ac_hi=$ac_mid | |
14718 | else | |
14719 | echo "$as_me: failed program was:" >&5 | |
14720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14721 | ||
14722 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14723 | fi | |
ac1cb8d3 | 14724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14725 | done |
14726 | case $ac_lo in | |
14727 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14728 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14729 | See \`config.log' for more details." >&5 | |
14730 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14731 | See \`config.log' for more details." >&2;} | |
14732 | { (exit 1); exit 1; }; } ;; | |
14733 | esac | |
14734 | else | |
14735 | if test "$cross_compiling" = yes; then | |
5dcf30a0 RN |
14736 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
14737 | See \`config.log' for more details." >&5 | |
14738 | echo "$as_me: error: cannot run test program while cross compiling | |
14739 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
14740 | { (exit 1); exit 1; }; } |
14741 | else | |
14742 | cat >conftest.$ac_ext <<_ACEOF | |
14743 | /* confdefs.h. */ | |
14744 | _ACEOF | |
14745 | cat confdefs.h >>conftest.$ac_ext | |
14746 | cat >>conftest.$ac_ext <<_ACEOF | |
14747 | /* end confdefs.h. */ | |
14748 | $ac_includes_default | |
14749 | long longval () { return (long) (sizeof (char)); } | |
14750 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14751 | #include <stdio.h> | |
14752 | #include <stdlib.h> | |
14753 | int | |
14754 | main () | |
14755 | { | |
14756 | ||
14757 | FILE *f = fopen ("conftest.val", "w"); | |
14758 | if (! f) | |
14759 | exit (1); | |
14760 | if (((long) (sizeof (char))) < 0) | |
14761 | { | |
14762 | long i = longval (); | |
14763 | if (i != ((long) (sizeof (char)))) | |
14764 | exit (1); | |
14765 | fprintf (f, "%ld\n", i); | |
14766 | } | |
14767 | else | |
14768 | { | |
14769 | unsigned long i = ulongval (); | |
14770 | if (i != ((long) (sizeof (char)))) | |
14771 | exit (1); | |
14772 | fprintf (f, "%lu\n", i); | |
14773 | } | |
14774 | exit (ferror (f) || fclose (f) != 0); | |
14775 | ||
14776 | ; | |
14777 | return 0; | |
14778 | } | |
14779 | _ACEOF | |
14780 | rm -f conftest$ac_exeext | |
14781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14782 | (eval $ac_link) 2>&5 | |
14783 | ac_status=$? | |
14784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14785 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14787 | (eval $ac_try) 2>&5 | |
14788 | ac_status=$? | |
14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14790 | (exit $ac_status); }; }; then | |
14791 | ac_cv_sizeof_char=`cat conftest.val` | |
14792 | else | |
14793 | echo "$as_me: program exited with status $ac_status" >&5 | |
14794 | echo "$as_me: failed program was:" >&5 | |
14795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14796 | ||
14797 | ( exit $ac_status ) | |
14798 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14799 | See \`config.log' for more details." >&5 | |
14800 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14801 | See \`config.log' for more details." >&2;} | |
14802 | { (exit 1); exit 1; }; } | |
14803 | fi | |
ac1cb8d3 | 14804 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14805 | fi |
14806 | fi | |
14807 | rm -f conftest.val | |
14808 | else | |
14809 | ac_cv_sizeof_char=0 | |
14810 | fi | |
14811 | fi | |
14812 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14813 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14814 | cat >>confdefs.h <<_ACEOF | |
14815 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14816 | _ACEOF | |
14817 | ||
14818 | ||
14819 | echo "$as_me:$LINENO: checking for short" >&5 | |
14820 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14821 | if test "${ac_cv_type_short+set}" = set; then | |
14822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14823 | else | |
14824 | cat >conftest.$ac_ext <<_ACEOF | |
14825 | /* confdefs.h. */ | |
14826 | _ACEOF | |
14827 | cat confdefs.h >>conftest.$ac_ext | |
14828 | cat >>conftest.$ac_ext <<_ACEOF | |
14829 | /* end confdefs.h. */ | |
14830 | $ac_includes_default | |
14831 | int | |
14832 | main () | |
14833 | { | |
14834 | if ((short *) 0) | |
14835 | return 0; | |
14836 | if (sizeof (short)) | |
14837 | return 0; | |
14838 | ; | |
14839 | return 0; | |
14840 | } | |
14841 | _ACEOF | |
14842 | rm -f conftest.$ac_objext | |
14843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14844 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14845 | ac_status=$? |
ac1cb8d3 VS |
14846 | grep -v '^ *+' conftest.er1 >conftest.err |
14847 | rm -f conftest.er1 | |
14848 | cat conftest.err >&5 | |
a848cd7e SC |
14849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14850 | (exit $ac_status); } && | |
5dcf30a0 RN |
14851 | { ac_try='test -z "$ac_c_werror_flag" |
14852 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14854 | (eval $ac_try) 2>&5 | |
14855 | ac_status=$? | |
14856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14857 | (exit $ac_status); }; } && | |
14858 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14860 | (eval $ac_try) 2>&5 | |
14861 | ac_status=$? | |
14862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14863 | (exit $ac_status); }; }; then | |
14864 | ac_cv_type_short=yes | |
14865 | else | |
14866 | echo "$as_me: failed program was:" >&5 | |
14867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14868 | ||
14869 | ac_cv_type_short=no | |
14870 | fi | |
ac1cb8d3 | 14871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14872 | fi |
14873 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14874 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14875 | ||
14876 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14877 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14878 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14880 | else | |
14881 | if test "$ac_cv_type_short" = yes; then | |
14882 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14883 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14884 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14885 | # This bug is HP SR number 8606223364. | |
14886 | if test "$cross_compiling" = yes; then | |
14887 | # Depending upon the size, compute the lo and hi bounds. | |
14888 | cat >conftest.$ac_ext <<_ACEOF | |
14889 | /* confdefs.h. */ | |
14890 | _ACEOF | |
14891 | cat confdefs.h >>conftest.$ac_ext | |
14892 | cat >>conftest.$ac_ext <<_ACEOF | |
14893 | /* end confdefs.h. */ | |
14894 | $ac_includes_default | |
14895 | int | |
14896 | main () | |
14897 | { | |
14898 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14899 | test_array [0] = 0 | |
14900 | ||
14901 | ; | |
14902 | return 0; | |
14903 | } | |
14904 | _ACEOF | |
14905 | rm -f conftest.$ac_objext | |
14906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14907 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14908 | ac_status=$? |
ac1cb8d3 VS |
14909 | grep -v '^ *+' conftest.er1 >conftest.err |
14910 | rm -f conftest.er1 | |
14911 | cat conftest.err >&5 | |
a848cd7e SC |
14912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14913 | (exit $ac_status); } && | |
5dcf30a0 RN |
14914 | { ac_try='test -z "$ac_c_werror_flag" |
14915 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14917 | (eval $ac_try) 2>&5 | |
14918 | ac_status=$? | |
14919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14920 | (exit $ac_status); }; } && | |
14921 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14923 | (eval $ac_try) 2>&5 | |
14924 | ac_status=$? | |
14925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14926 | (exit $ac_status); }; }; then | |
14927 | ac_lo=0 ac_mid=0 | |
14928 | while :; do | |
14929 | cat >conftest.$ac_ext <<_ACEOF | |
14930 | /* confdefs.h. */ | |
14931 | _ACEOF | |
14932 | cat confdefs.h >>conftest.$ac_ext | |
14933 | cat >>conftest.$ac_ext <<_ACEOF | |
14934 | /* end confdefs.h. */ | |
14935 | $ac_includes_default | |
14936 | int | |
14937 | main () | |
14938 | { | |
14939 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14940 | test_array [0] = 0 | |
14941 | ||
14942 | ; | |
14943 | return 0; | |
14944 | } | |
14945 | _ACEOF | |
14946 | rm -f conftest.$ac_objext | |
14947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14948 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14949 | ac_status=$? |
ac1cb8d3 VS |
14950 | grep -v '^ *+' conftest.er1 >conftest.err |
14951 | rm -f conftest.er1 | |
14952 | cat conftest.err >&5 | |
a848cd7e SC |
14953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14954 | (exit $ac_status); } && | |
5dcf30a0 RN |
14955 | { ac_try='test -z "$ac_c_werror_flag" |
14956 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14958 | (eval $ac_try) 2>&5 | |
14959 | ac_status=$? | |
14960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14961 | (exit $ac_status); }; } && | |
14962 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14964 | (eval $ac_try) 2>&5 | |
14965 | ac_status=$? | |
14966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14967 | (exit $ac_status); }; }; then | |
14968 | ac_hi=$ac_mid; break | |
14969 | else | |
14970 | echo "$as_me: failed program was:" >&5 | |
14971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14972 | ||
14973 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14974 | if test $ac_lo -le $ac_mid; then |
14975 | ac_lo= ac_hi= | |
14976 | break | |
14977 | fi | |
14978 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14979 | fi |
ac1cb8d3 | 14980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14981 | done |
14982 | else | |
14983 | echo "$as_me: failed program was:" >&5 | |
14984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14985 | ||
14986 | cat >conftest.$ac_ext <<_ACEOF | |
14987 | /* confdefs.h. */ | |
14988 | _ACEOF | |
14989 | cat confdefs.h >>conftest.$ac_ext | |
14990 | cat >>conftest.$ac_ext <<_ACEOF | |
14991 | /* end confdefs.h. */ | |
14992 | $ac_includes_default | |
14993 | int | |
14994 | main () | |
14995 | { | |
14996 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14997 | test_array [0] = 0 | |
14998 | ||
14999 | ; | |
15000 | return 0; | |
15001 | } | |
15002 | _ACEOF | |
15003 | rm -f conftest.$ac_objext | |
15004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15005 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15006 | ac_status=$? |
ac1cb8d3 VS |
15007 | grep -v '^ *+' conftest.er1 >conftest.err |
15008 | rm -f conftest.er1 | |
15009 | cat conftest.err >&5 | |
a848cd7e SC |
15010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15011 | (exit $ac_status); } && | |
5dcf30a0 RN |
15012 | { ac_try='test -z "$ac_c_werror_flag" |
15013 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15015 | (eval $ac_try) 2>&5 | |
15016 | ac_status=$? | |
15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15018 | (exit $ac_status); }; } && | |
15019 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15021 | (eval $ac_try) 2>&5 | |
15022 | ac_status=$? | |
15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15024 | (exit $ac_status); }; }; then | |
15025 | ac_hi=-1 ac_mid=-1 | |
15026 | while :; do | |
15027 | cat >conftest.$ac_ext <<_ACEOF | |
15028 | /* confdefs.h. */ | |
15029 | _ACEOF | |
15030 | cat confdefs.h >>conftest.$ac_ext | |
15031 | cat >>conftest.$ac_ext <<_ACEOF | |
15032 | /* end confdefs.h. */ | |
15033 | $ac_includes_default | |
15034 | int | |
15035 | main () | |
15036 | { | |
15037 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15038 | test_array [0] = 0 | |
15039 | ||
15040 | ; | |
15041 | return 0; | |
15042 | } | |
15043 | _ACEOF | |
15044 | rm -f conftest.$ac_objext | |
15045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15046 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15047 | ac_status=$? |
ac1cb8d3 VS |
15048 | grep -v '^ *+' conftest.er1 >conftest.err |
15049 | rm -f conftest.er1 | |
15050 | cat conftest.err >&5 | |
a848cd7e SC |
15051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15052 | (exit $ac_status); } && | |
5dcf30a0 RN |
15053 | { ac_try='test -z "$ac_c_werror_flag" |
15054 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
15060 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15062 | (eval $ac_try) 2>&5 | |
15063 | ac_status=$? | |
15064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15065 | (exit $ac_status); }; }; then | |
15066 | ac_lo=$ac_mid; break | |
15067 | else | |
15068 | echo "$as_me: failed program was:" >&5 | |
15069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15070 | ||
15071 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15072 | if test $ac_mid -le $ac_hi; then |
15073 | ac_lo= ac_hi= | |
15074 | break | |
15075 | fi | |
15076 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15077 | fi |
ac1cb8d3 | 15078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15079 | done |
15080 | else | |
15081 | echo "$as_me: failed program was:" >&5 | |
15082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15083 | ||
15084 | ac_lo= ac_hi= | |
15085 | fi | |
ac1cb8d3 | 15086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15087 | fi |
ac1cb8d3 | 15088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15089 | # Binary search between lo and hi bounds. |
15090 | while test "x$ac_lo" != "x$ac_hi"; do | |
15091 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15092 | cat >conftest.$ac_ext <<_ACEOF | |
15093 | /* confdefs.h. */ | |
15094 | _ACEOF | |
15095 | cat confdefs.h >>conftest.$ac_ext | |
15096 | cat >>conftest.$ac_ext <<_ACEOF | |
15097 | /* end confdefs.h. */ | |
15098 | $ac_includes_default | |
15099 | int | |
15100 | main () | |
15101 | { | |
15102 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15103 | test_array [0] = 0 | |
15104 | ||
15105 | ; | |
15106 | return 0; | |
15107 | } | |
15108 | _ACEOF | |
15109 | rm -f conftest.$ac_objext | |
15110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15112 | ac_status=$? |
ac1cb8d3 VS |
15113 | grep -v '^ *+' conftest.er1 >conftest.err |
15114 | rm -f conftest.er1 | |
15115 | cat conftest.err >&5 | |
a848cd7e SC |
15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15117 | (exit $ac_status); } && | |
5dcf30a0 RN |
15118 | { ac_try='test -z "$ac_c_werror_flag" |
15119 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15121 | (eval $ac_try) 2>&5 | |
15122 | ac_status=$? | |
15123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15124 | (exit $ac_status); }; } && | |
15125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15127 | (eval $ac_try) 2>&5 | |
15128 | ac_status=$? | |
15129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15130 | (exit $ac_status); }; }; then | |
15131 | ac_hi=$ac_mid | |
15132 | else | |
15133 | echo "$as_me: failed program was:" >&5 | |
15134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15135 | ||
15136 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15137 | fi | |
ac1cb8d3 | 15138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15139 | done |
15140 | case $ac_lo in | |
15141 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15142 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15143 | See \`config.log' for more details." >&5 | |
15144 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15145 | See \`config.log' for more details." >&2;} | |
15146 | { (exit 1); exit 1; }; } ;; | |
15147 | esac | |
15148 | else | |
15149 | if test "$cross_compiling" = yes; then | |
5dcf30a0 RN |
15150 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15151 | See \`config.log' for more details." >&5 | |
15152 | echo "$as_me: error: cannot run test program while cross compiling | |
15153 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15154 | { (exit 1); exit 1; }; } |
15155 | else | |
15156 | cat >conftest.$ac_ext <<_ACEOF | |
15157 | /* confdefs.h. */ | |
15158 | _ACEOF | |
15159 | cat confdefs.h >>conftest.$ac_ext | |
15160 | cat >>conftest.$ac_ext <<_ACEOF | |
15161 | /* end confdefs.h. */ | |
15162 | $ac_includes_default | |
15163 | long longval () { return (long) (sizeof (short)); } | |
15164 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15165 | #include <stdio.h> | |
15166 | #include <stdlib.h> | |
15167 | int | |
15168 | main () | |
15169 | { | |
15170 | ||
15171 | FILE *f = fopen ("conftest.val", "w"); | |
15172 | if (! f) | |
15173 | exit (1); | |
15174 | if (((long) (sizeof (short))) < 0) | |
15175 | { | |
15176 | long i = longval (); | |
15177 | if (i != ((long) (sizeof (short)))) | |
15178 | exit (1); | |
15179 | fprintf (f, "%ld\n", i); | |
15180 | } | |
15181 | else | |
15182 | { | |
15183 | unsigned long i = ulongval (); | |
15184 | if (i != ((long) (sizeof (short)))) | |
15185 | exit (1); | |
15186 | fprintf (f, "%lu\n", i); | |
15187 | } | |
15188 | exit (ferror (f) || fclose (f) != 0); | |
15189 | ||
15190 | ; | |
15191 | return 0; | |
15192 | } | |
15193 | _ACEOF | |
15194 | rm -f conftest$ac_exeext | |
15195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15196 | (eval $ac_link) 2>&5 | |
15197 | ac_status=$? | |
15198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15199 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15201 | (eval $ac_try) 2>&5 | |
15202 | ac_status=$? | |
15203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15204 | (exit $ac_status); }; }; then | |
15205 | ac_cv_sizeof_short=`cat conftest.val` | |
15206 | else | |
15207 | echo "$as_me: program exited with status $ac_status" >&5 | |
15208 | echo "$as_me: failed program was:" >&5 | |
15209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15210 | ||
15211 | ( exit $ac_status ) | |
15212 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15213 | See \`config.log' for more details." >&5 | |
15214 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15215 | See \`config.log' for more details." >&2;} | |
15216 | { (exit 1); exit 1; }; } | |
15217 | fi | |
ac1cb8d3 | 15218 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15219 | fi |
15220 | fi | |
15221 | rm -f conftest.val | |
15222 | else | |
15223 | ac_cv_sizeof_short=0 | |
15224 | fi | |
15225 | fi | |
15226 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15227 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15228 | cat >>confdefs.h <<_ACEOF | |
15229 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15230 | _ACEOF | |
15231 | ||
15232 | ||
15233 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15234 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15235 | if test "${ac_cv_type_void_p+set}" = set; then | |
15236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15237 | else | |
15238 | cat >conftest.$ac_ext <<_ACEOF | |
15239 | /* confdefs.h. */ | |
15240 | _ACEOF | |
15241 | cat confdefs.h >>conftest.$ac_ext | |
15242 | cat >>conftest.$ac_ext <<_ACEOF | |
15243 | /* end confdefs.h. */ | |
15244 | $ac_includes_default | |
15245 | int | |
15246 | main () | |
15247 | { | |
15248 | if ((void * *) 0) | |
15249 | return 0; | |
15250 | if (sizeof (void *)) | |
15251 | return 0; | |
15252 | ; | |
15253 | return 0; | |
15254 | } | |
15255 | _ACEOF | |
15256 | rm -f conftest.$ac_objext | |
15257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15258 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15259 | ac_status=$? |
ac1cb8d3 VS |
15260 | grep -v '^ *+' conftest.er1 >conftest.err |
15261 | rm -f conftest.er1 | |
15262 | cat conftest.err >&5 | |
a848cd7e SC |
15263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15264 | (exit $ac_status); } && | |
5dcf30a0 RN |
15265 | { ac_try='test -z "$ac_c_werror_flag" |
15266 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15268 | (eval $ac_try) 2>&5 | |
15269 | ac_status=$? | |
15270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15271 | (exit $ac_status); }; } && | |
15272 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15274 | (eval $ac_try) 2>&5 | |
15275 | ac_status=$? | |
15276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15277 | (exit $ac_status); }; }; then | |
15278 | ac_cv_type_void_p=yes | |
15279 | else | |
15280 | echo "$as_me: failed program was:" >&5 | |
15281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15282 | ||
15283 | ac_cv_type_void_p=no | |
15284 | fi | |
ac1cb8d3 | 15285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15286 | fi |
15287 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15288 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15289 | ||
15290 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15291 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15292 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15294 | else | |
15295 | if test "$ac_cv_type_void_p" = yes; then | |
15296 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15297 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15298 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15299 | # This bug is HP SR number 8606223364. | |
15300 | if test "$cross_compiling" = yes; then | |
15301 | # Depending upon the size, compute the lo and hi bounds. | |
15302 | cat >conftest.$ac_ext <<_ACEOF | |
15303 | /* confdefs.h. */ | |
15304 | _ACEOF | |
15305 | cat confdefs.h >>conftest.$ac_ext | |
15306 | cat >>conftest.$ac_ext <<_ACEOF | |
15307 | /* end confdefs.h. */ | |
15308 | $ac_includes_default | |
15309 | int | |
15310 | main () | |
15311 | { | |
15312 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15313 | test_array [0] = 0 | |
15314 | ||
15315 | ; | |
15316 | return 0; | |
15317 | } | |
15318 | _ACEOF | |
15319 | rm -f conftest.$ac_objext | |
15320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15321 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15322 | ac_status=$? |
ac1cb8d3 VS |
15323 | grep -v '^ *+' conftest.er1 >conftest.err |
15324 | rm -f conftest.er1 | |
15325 | cat conftest.err >&5 | |
a848cd7e SC |
15326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15327 | (exit $ac_status); } && | |
5dcf30a0 RN |
15328 | { ac_try='test -z "$ac_c_werror_flag" |
15329 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15331 | (eval $ac_try) 2>&5 | |
15332 | ac_status=$? | |
15333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15334 | (exit $ac_status); }; } && | |
15335 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15337 | (eval $ac_try) 2>&5 | |
15338 | ac_status=$? | |
15339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15340 | (exit $ac_status); }; }; then | |
15341 | ac_lo=0 ac_mid=0 | |
15342 | while :; do | |
15343 | cat >conftest.$ac_ext <<_ACEOF | |
15344 | /* confdefs.h. */ | |
15345 | _ACEOF | |
15346 | cat confdefs.h >>conftest.$ac_ext | |
15347 | cat >>conftest.$ac_ext <<_ACEOF | |
15348 | /* end confdefs.h. */ | |
15349 | $ac_includes_default | |
15350 | int | |
15351 | main () | |
15352 | { | |
15353 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15354 | test_array [0] = 0 | |
15355 | ||
15356 | ; | |
15357 | return 0; | |
15358 | } | |
15359 | _ACEOF | |
15360 | rm -f conftest.$ac_objext | |
15361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15362 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15363 | ac_status=$? |
ac1cb8d3 VS |
15364 | grep -v '^ *+' conftest.er1 >conftest.err |
15365 | rm -f conftest.er1 | |
15366 | cat conftest.err >&5 | |
a848cd7e SC |
15367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15368 | (exit $ac_status); } && | |
5dcf30a0 RN |
15369 | { ac_try='test -z "$ac_c_werror_flag" |
15370 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15372 | (eval $ac_try) 2>&5 | |
15373 | ac_status=$? | |
15374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15375 | (exit $ac_status); }; } && | |
15376 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15378 | (eval $ac_try) 2>&5 | |
15379 | ac_status=$? | |
15380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15381 | (exit $ac_status); }; }; then | |
15382 | ac_hi=$ac_mid; break | |
15383 | else | |
15384 | echo "$as_me: failed program was:" >&5 | |
15385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15386 | ||
15387 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15388 | if test $ac_lo -le $ac_mid; then |
15389 | ac_lo= ac_hi= | |
15390 | break | |
15391 | fi | |
15392 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15393 | fi |
ac1cb8d3 | 15394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15395 | done |
15396 | else | |
15397 | echo "$as_me: failed program was:" >&5 | |
15398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15399 | ||
15400 | cat >conftest.$ac_ext <<_ACEOF | |
15401 | /* confdefs.h. */ | |
15402 | _ACEOF | |
15403 | cat confdefs.h >>conftest.$ac_ext | |
15404 | cat >>conftest.$ac_ext <<_ACEOF | |
15405 | /* end confdefs.h. */ | |
15406 | $ac_includes_default | |
15407 | int | |
15408 | main () | |
15409 | { | |
15410 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15411 | test_array [0] = 0 | |
15412 | ||
15413 | ; | |
15414 | return 0; | |
15415 | } | |
15416 | _ACEOF | |
15417 | rm -f conftest.$ac_objext | |
15418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15419 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15420 | ac_status=$? |
ac1cb8d3 VS |
15421 | grep -v '^ *+' conftest.er1 >conftest.err |
15422 | rm -f conftest.er1 | |
15423 | cat conftest.err >&5 | |
a848cd7e SC |
15424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15425 | (exit $ac_status); } && | |
5dcf30a0 RN |
15426 | { ac_try='test -z "$ac_c_werror_flag" |
15427 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15429 | (eval $ac_try) 2>&5 | |
15430 | ac_status=$? | |
15431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15432 | (exit $ac_status); }; } && | |
15433 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15435 | (eval $ac_try) 2>&5 | |
15436 | ac_status=$? | |
15437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15438 | (exit $ac_status); }; }; then | |
15439 | ac_hi=-1 ac_mid=-1 | |
15440 | while :; do | |
15441 | cat >conftest.$ac_ext <<_ACEOF | |
15442 | /* confdefs.h. */ | |
15443 | _ACEOF | |
15444 | cat confdefs.h >>conftest.$ac_ext | |
15445 | cat >>conftest.$ac_ext <<_ACEOF | |
15446 | /* end confdefs.h. */ | |
15447 | $ac_includes_default | |
15448 | int | |
15449 | main () | |
15450 | { | |
15451 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15452 | test_array [0] = 0 | |
15453 | ||
15454 | ; | |
15455 | return 0; | |
15456 | } | |
15457 | _ACEOF | |
15458 | rm -f conftest.$ac_objext | |
15459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15460 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15461 | ac_status=$? |
ac1cb8d3 VS |
15462 | grep -v '^ *+' conftest.er1 >conftest.err |
15463 | rm -f conftest.er1 | |
15464 | cat conftest.err >&5 | |
a848cd7e SC |
15465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15466 | (exit $ac_status); } && | |
5dcf30a0 RN |
15467 | { ac_try='test -z "$ac_c_werror_flag" |
15468 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
15474 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15476 | (eval $ac_try) 2>&5 | |
15477 | ac_status=$? | |
15478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15479 | (exit $ac_status); }; }; then | |
15480 | ac_lo=$ac_mid; break | |
15481 | else | |
15482 | echo "$as_me: failed program was:" >&5 | |
15483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15484 | ||
15485 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15486 | if test $ac_mid -le $ac_hi; then |
15487 | ac_lo= ac_hi= | |
15488 | break | |
15489 | fi | |
15490 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15491 | fi |
ac1cb8d3 | 15492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15493 | done |
15494 | else | |
15495 | echo "$as_me: failed program was:" >&5 | |
15496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15497 | ||
15498 | ac_lo= ac_hi= | |
15499 | fi | |
ac1cb8d3 | 15500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15501 | fi |
ac1cb8d3 | 15502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15503 | # Binary search between lo and hi bounds. |
15504 | while test "x$ac_lo" != "x$ac_hi"; do | |
15505 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15506 | cat >conftest.$ac_ext <<_ACEOF | |
15507 | /* confdefs.h. */ | |
15508 | _ACEOF | |
15509 | cat confdefs.h >>conftest.$ac_ext | |
15510 | cat >>conftest.$ac_ext <<_ACEOF | |
15511 | /* end confdefs.h. */ | |
15512 | $ac_includes_default | |
15513 | int | |
15514 | main () | |
15515 | { | |
15516 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15517 | test_array [0] = 0 | |
15518 | ||
15519 | ; | |
15520 | return 0; | |
15521 | } | |
15522 | _ACEOF | |
15523 | rm -f conftest.$ac_objext | |
15524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15525 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15526 | ac_status=$? |
ac1cb8d3 VS |
15527 | grep -v '^ *+' conftest.er1 >conftest.err |
15528 | rm -f conftest.er1 | |
15529 | cat conftest.err >&5 | |
a848cd7e SC |
15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15531 | (exit $ac_status); } && | |
5dcf30a0 RN |
15532 | { ac_try='test -z "$ac_c_werror_flag" |
15533 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15535 | (eval $ac_try) 2>&5 | |
15536 | ac_status=$? | |
15537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15538 | (exit $ac_status); }; } && | |
15539 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15541 | (eval $ac_try) 2>&5 | |
15542 | ac_status=$? | |
15543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15544 | (exit $ac_status); }; }; then | |
15545 | ac_hi=$ac_mid | |
15546 | else | |
15547 | echo "$as_me: failed program was:" >&5 | |
15548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15549 | ||
15550 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15551 | fi | |
ac1cb8d3 | 15552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15553 | done |
15554 | case $ac_lo in | |
15555 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15556 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15557 | See \`config.log' for more details." >&5 | |
15558 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15559 | See \`config.log' for more details." >&2;} | |
15560 | { (exit 1); exit 1; }; } ;; | |
15561 | esac | |
15562 | else | |
15563 | if test "$cross_compiling" = yes; then | |
5dcf30a0 RN |
15564 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15565 | See \`config.log' for more details." >&5 | |
15566 | echo "$as_me: error: cannot run test program while cross compiling | |
15567 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15568 | { (exit 1); exit 1; }; } |
15569 | else | |
15570 | cat >conftest.$ac_ext <<_ACEOF | |
15571 | /* confdefs.h. */ | |
15572 | _ACEOF | |
15573 | cat confdefs.h >>conftest.$ac_ext | |
15574 | cat >>conftest.$ac_ext <<_ACEOF | |
15575 | /* end confdefs.h. */ | |
15576 | $ac_includes_default | |
15577 | long longval () { return (long) (sizeof (void *)); } | |
15578 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15579 | #include <stdio.h> | |
15580 | #include <stdlib.h> | |
15581 | int | |
15582 | main () | |
15583 | { | |
15584 | ||
15585 | FILE *f = fopen ("conftest.val", "w"); | |
15586 | if (! f) | |
15587 | exit (1); | |
15588 | if (((long) (sizeof (void *))) < 0) | |
15589 | { | |
15590 | long i = longval (); | |
15591 | if (i != ((long) (sizeof (void *)))) | |
15592 | exit (1); | |
15593 | fprintf (f, "%ld\n", i); | |
15594 | } | |
15595 | else | |
15596 | { | |
15597 | unsigned long i = ulongval (); | |
15598 | if (i != ((long) (sizeof (void *)))) | |
15599 | exit (1); | |
15600 | fprintf (f, "%lu\n", i); | |
15601 | } | |
15602 | exit (ferror (f) || fclose (f) != 0); | |
15603 | ||
15604 | ; | |
15605 | return 0; | |
15606 | } | |
15607 | _ACEOF | |
15608 | rm -f conftest$ac_exeext | |
15609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15610 | (eval $ac_link) 2>&5 | |
15611 | ac_status=$? | |
15612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15615 | (eval $ac_try) 2>&5 | |
15616 | ac_status=$? | |
15617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15618 | (exit $ac_status); }; }; then | |
15619 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15620 | else | |
15621 | echo "$as_me: program exited with status $ac_status" >&5 | |
15622 | echo "$as_me: failed program was:" >&5 | |
15623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15624 | ||
15625 | ( exit $ac_status ) | |
15626 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15627 | See \`config.log' for more details." >&5 | |
15628 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15629 | See \`config.log' for more details." >&2;} | |
15630 | { (exit 1); exit 1; }; } | |
15631 | fi | |
ac1cb8d3 | 15632 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15633 | fi |
15634 | fi | |
15635 | rm -f conftest.val | |
15636 | else | |
15637 | ac_cv_sizeof_void_p=0 | |
15638 | fi | |
15639 | fi | |
15640 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15641 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15642 | cat >>confdefs.h <<_ACEOF | |
15643 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15644 | _ACEOF | |
15645 | ||
15646 | ||
15647 | echo "$as_me:$LINENO: checking for int" >&5 | |
15648 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15649 | if test "${ac_cv_type_int+set}" = set; then | |
15650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15651 | else | |
15652 | cat >conftest.$ac_ext <<_ACEOF | |
15653 | /* confdefs.h. */ | |
15654 | _ACEOF | |
15655 | cat confdefs.h >>conftest.$ac_ext | |
15656 | cat >>conftest.$ac_ext <<_ACEOF | |
15657 | /* end confdefs.h. */ | |
15658 | $ac_includes_default | |
15659 | int | |
15660 | main () | |
15661 | { | |
15662 | if ((int *) 0) | |
15663 | return 0; | |
15664 | if (sizeof (int)) | |
15665 | return 0; | |
15666 | ; | |
15667 | return 0; | |
15668 | } | |
15669 | _ACEOF | |
15670 | rm -f conftest.$ac_objext | |
15671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15672 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15673 | ac_status=$? |
ac1cb8d3 VS |
15674 | grep -v '^ *+' conftest.er1 >conftest.err |
15675 | rm -f conftest.er1 | |
15676 | cat conftest.err >&5 | |
a848cd7e SC |
15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15678 | (exit $ac_status); } && | |
5dcf30a0 RN |
15679 | { ac_try='test -z "$ac_c_werror_flag" |
15680 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15682 | (eval $ac_try) 2>&5 | |
15683 | ac_status=$? | |
15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15685 | (exit $ac_status); }; } && | |
15686 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15688 | (eval $ac_try) 2>&5 | |
15689 | ac_status=$? | |
15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15691 | (exit $ac_status); }; }; then | |
15692 | ac_cv_type_int=yes | |
15693 | else | |
15694 | echo "$as_me: failed program was:" >&5 | |
15695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15696 | ||
15697 | ac_cv_type_int=no | |
15698 | fi | |
ac1cb8d3 | 15699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15700 | fi |
15701 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15702 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15703 | ||
15704 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15705 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15706 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15708 | else | |
15709 | if test "$ac_cv_type_int" = yes; then | |
15710 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15711 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15712 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15713 | # This bug is HP SR number 8606223364. | |
15714 | if test "$cross_compiling" = yes; then | |
15715 | # Depending upon the size, compute the lo and hi bounds. | |
15716 | cat >conftest.$ac_ext <<_ACEOF | |
15717 | /* confdefs.h. */ | |
15718 | _ACEOF | |
15719 | cat confdefs.h >>conftest.$ac_ext | |
15720 | cat >>conftest.$ac_ext <<_ACEOF | |
15721 | /* end confdefs.h. */ | |
15722 | $ac_includes_default | |
15723 | int | |
15724 | main () | |
15725 | { | |
15726 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15727 | test_array [0] = 0 | |
15728 | ||
15729 | ; | |
15730 | return 0; | |
15731 | } | |
15732 | _ACEOF | |
15733 | rm -f conftest.$ac_objext | |
15734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15735 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15736 | ac_status=$? |
ac1cb8d3 VS |
15737 | grep -v '^ *+' conftest.er1 >conftest.err |
15738 | rm -f conftest.er1 | |
15739 | cat conftest.err >&5 | |
a848cd7e SC |
15740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15741 | (exit $ac_status); } && | |
5dcf30a0 RN |
15742 | { ac_try='test -z "$ac_c_werror_flag" |
15743 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15745 | (eval $ac_try) 2>&5 | |
15746 | ac_status=$? | |
15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15748 | (exit $ac_status); }; } && | |
15749 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15751 | (eval $ac_try) 2>&5 | |
15752 | ac_status=$? | |
15753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15754 | (exit $ac_status); }; }; then | |
15755 | ac_lo=0 ac_mid=0 | |
15756 | while :; do | |
15757 | cat >conftest.$ac_ext <<_ACEOF | |
15758 | /* confdefs.h. */ | |
15759 | _ACEOF | |
15760 | cat confdefs.h >>conftest.$ac_ext | |
15761 | cat >>conftest.$ac_ext <<_ACEOF | |
15762 | /* end confdefs.h. */ | |
15763 | $ac_includes_default | |
15764 | int | |
15765 | main () | |
15766 | { | |
15767 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15768 | test_array [0] = 0 | |
15769 | ||
15770 | ; | |
15771 | return 0; | |
15772 | } | |
15773 | _ACEOF | |
15774 | rm -f conftest.$ac_objext | |
15775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15776 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15777 | ac_status=$? |
ac1cb8d3 VS |
15778 | grep -v '^ *+' conftest.er1 >conftest.err |
15779 | rm -f conftest.er1 | |
15780 | cat conftest.err >&5 | |
a848cd7e SC |
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15782 | (exit $ac_status); } && | |
5dcf30a0 RN |
15783 | { ac_try='test -z "$ac_c_werror_flag" |
15784 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15786 | (eval $ac_try) 2>&5 | |
15787 | ac_status=$? | |
15788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15789 | (exit $ac_status); }; } && | |
15790 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15792 | (eval $ac_try) 2>&5 | |
15793 | ac_status=$? | |
15794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15795 | (exit $ac_status); }; }; then | |
15796 | ac_hi=$ac_mid; break | |
15797 | else | |
15798 | echo "$as_me: failed program was:" >&5 | |
15799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15800 | ||
15801 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15802 | if test $ac_lo -le $ac_mid; then |
15803 | ac_lo= ac_hi= | |
15804 | break | |
15805 | fi | |
15806 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15807 | fi |
ac1cb8d3 | 15808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15809 | done |
15810 | else | |
15811 | echo "$as_me: failed program was:" >&5 | |
15812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15813 | ||
15814 | cat >conftest.$ac_ext <<_ACEOF | |
15815 | /* confdefs.h. */ | |
15816 | _ACEOF | |
15817 | cat confdefs.h >>conftest.$ac_ext | |
15818 | cat >>conftest.$ac_ext <<_ACEOF | |
15819 | /* end confdefs.h. */ | |
15820 | $ac_includes_default | |
15821 | int | |
15822 | main () | |
15823 | { | |
15824 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15825 | test_array [0] = 0 | |
15826 | ||
15827 | ; | |
15828 | return 0; | |
15829 | } | |
15830 | _ACEOF | |
15831 | rm -f conftest.$ac_objext | |
15832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15833 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15834 | ac_status=$? |
ac1cb8d3 VS |
15835 | grep -v '^ *+' conftest.er1 >conftest.err |
15836 | rm -f conftest.er1 | |
15837 | cat conftest.err >&5 | |
a848cd7e SC |
15838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15839 | (exit $ac_status); } && | |
5dcf30a0 RN |
15840 | { ac_try='test -z "$ac_c_werror_flag" |
15841 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15843 | (eval $ac_try) 2>&5 | |
15844 | ac_status=$? | |
15845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15846 | (exit $ac_status); }; } && | |
15847 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15849 | (eval $ac_try) 2>&5 | |
15850 | ac_status=$? | |
15851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15852 | (exit $ac_status); }; }; then | |
15853 | ac_hi=-1 ac_mid=-1 | |
15854 | while :; do | |
15855 | cat >conftest.$ac_ext <<_ACEOF | |
15856 | /* confdefs.h. */ | |
15857 | _ACEOF | |
15858 | cat confdefs.h >>conftest.$ac_ext | |
15859 | cat >>conftest.$ac_ext <<_ACEOF | |
15860 | /* end confdefs.h. */ | |
15861 | $ac_includes_default | |
15862 | int | |
15863 | main () | |
15864 | { | |
15865 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15866 | test_array [0] = 0 | |
15867 | ||
15868 | ; | |
15869 | return 0; | |
15870 | } | |
15871 | _ACEOF | |
15872 | rm -f conftest.$ac_objext | |
15873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15874 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15875 | ac_status=$? |
ac1cb8d3 VS |
15876 | grep -v '^ *+' conftest.er1 >conftest.err |
15877 | rm -f conftest.er1 | |
15878 | cat conftest.err >&5 | |
a848cd7e SC |
15879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15880 | (exit $ac_status); } && | |
5dcf30a0 RN |
15881 | { ac_try='test -z "$ac_c_werror_flag" |
15882 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
15888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15890 | (eval $ac_try) 2>&5 | |
15891 | ac_status=$? | |
15892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15893 | (exit $ac_status); }; }; then | |
15894 | ac_lo=$ac_mid; break | |
15895 | else | |
15896 | echo "$as_me: failed program was:" >&5 | |
15897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15898 | ||
15899 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15900 | if test $ac_mid -le $ac_hi; then |
15901 | ac_lo= ac_hi= | |
15902 | break | |
15903 | fi | |
15904 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15905 | fi |
ac1cb8d3 | 15906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15907 | done |
15908 | else | |
15909 | echo "$as_me: failed program was:" >&5 | |
15910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15911 | ||
15912 | ac_lo= ac_hi= | |
15913 | fi | |
ac1cb8d3 | 15914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15915 | fi |
ac1cb8d3 | 15916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15917 | # Binary search between lo and hi bounds. |
15918 | while test "x$ac_lo" != "x$ac_hi"; do | |
15919 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15920 | cat >conftest.$ac_ext <<_ACEOF | |
15921 | /* confdefs.h. */ | |
15922 | _ACEOF | |
15923 | cat confdefs.h >>conftest.$ac_ext | |
15924 | cat >>conftest.$ac_ext <<_ACEOF | |
15925 | /* end confdefs.h. */ | |
15926 | $ac_includes_default | |
15927 | int | |
15928 | main () | |
15929 | { | |
15930 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15931 | test_array [0] = 0 | |
15932 | ||
15933 | ; | |
15934 | return 0; | |
15935 | } | |
15936 | _ACEOF | |
15937 | rm -f conftest.$ac_objext | |
15938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15939 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15940 | ac_status=$? |
ac1cb8d3 VS |
15941 | grep -v '^ *+' conftest.er1 >conftest.err |
15942 | rm -f conftest.er1 | |
15943 | cat conftest.err >&5 | |
a848cd7e SC |
15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15945 | (exit $ac_status); } && | |
5dcf30a0 RN |
15946 | { ac_try='test -z "$ac_c_werror_flag" |
15947 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15949 | (eval $ac_try) 2>&5 | |
15950 | ac_status=$? | |
15951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15952 | (exit $ac_status); }; } && | |
15953 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15955 | (eval $ac_try) 2>&5 | |
15956 | ac_status=$? | |
15957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15958 | (exit $ac_status); }; }; then | |
15959 | ac_hi=$ac_mid | |
15960 | else | |
15961 | echo "$as_me: failed program was:" >&5 | |
15962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15963 | ||
15964 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15965 | fi | |
ac1cb8d3 | 15966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15967 | done |
15968 | case $ac_lo in | |
15969 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15970 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15971 | See \`config.log' for more details." >&5 | |
15972 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15973 | See \`config.log' for more details." >&2;} | |
15974 | { (exit 1); exit 1; }; } ;; | |
15975 | esac | |
15976 | else | |
15977 | if test "$cross_compiling" = yes; then | |
5dcf30a0 RN |
15978 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15979 | See \`config.log' for more details." >&5 | |
15980 | echo "$as_me: error: cannot run test program while cross compiling | |
15981 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15982 | { (exit 1); exit 1; }; } |
15983 | else | |
15984 | cat >conftest.$ac_ext <<_ACEOF | |
15985 | /* confdefs.h. */ | |
15986 | _ACEOF | |
15987 | cat confdefs.h >>conftest.$ac_ext | |
15988 | cat >>conftest.$ac_ext <<_ACEOF | |
15989 | /* end confdefs.h. */ | |
15990 | $ac_includes_default | |
15991 | long longval () { return (long) (sizeof (int)); } | |
15992 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15993 | #include <stdio.h> | |
15994 | #include <stdlib.h> | |
15995 | int | |
15996 | main () | |
15997 | { | |
15998 | ||
15999 | FILE *f = fopen ("conftest.val", "w"); | |
16000 | if (! f) | |
16001 | exit (1); | |
16002 | if (((long) (sizeof (int))) < 0) | |
16003 | { | |
16004 | long i = longval (); | |
16005 | if (i != ((long) (sizeof (int)))) | |
16006 | exit (1); | |
16007 | fprintf (f, "%ld\n", i); | |
16008 | } | |
16009 | else | |
16010 | { | |
16011 | unsigned long i = ulongval (); | |
16012 | if (i != ((long) (sizeof (int)))) | |
16013 | exit (1); | |
16014 | fprintf (f, "%lu\n", i); | |
16015 | } | |
16016 | exit (ferror (f) || fclose (f) != 0); | |
16017 | ||
16018 | ; | |
16019 | return 0; | |
16020 | } | |
16021 | _ACEOF | |
16022 | rm -f conftest$ac_exeext | |
16023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16024 | (eval $ac_link) 2>&5 | |
16025 | ac_status=$? | |
16026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16027 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16029 | (eval $ac_try) 2>&5 | |
16030 | ac_status=$? | |
16031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16032 | (exit $ac_status); }; }; then | |
16033 | ac_cv_sizeof_int=`cat conftest.val` | |
16034 | else | |
16035 | echo "$as_me: program exited with status $ac_status" >&5 | |
16036 | echo "$as_me: failed program was:" >&5 | |
16037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16038 | ||
16039 | ( exit $ac_status ) | |
16040 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16041 | See \`config.log' for more details." >&5 | |
16042 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16043 | See \`config.log' for more details." >&2;} | |
16044 | { (exit 1); exit 1; }; } | |
16045 | fi | |
ac1cb8d3 | 16046 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16047 | fi |
16048 | fi | |
16049 | rm -f conftest.val | |
16050 | else | |
16051 | ac_cv_sizeof_int=0 | |
16052 | fi | |
16053 | fi | |
16054 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16055 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16056 | cat >>confdefs.h <<_ACEOF | |
16057 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16058 | _ACEOF | |
16059 | ||
16060 | ||
16061 | echo "$as_me:$LINENO: checking for long" >&5 | |
16062 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16063 | if test "${ac_cv_type_long+set}" = set; then | |
16064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16065 | else | |
16066 | cat >conftest.$ac_ext <<_ACEOF | |
16067 | /* confdefs.h. */ | |
16068 | _ACEOF | |
16069 | cat confdefs.h >>conftest.$ac_ext | |
16070 | cat >>conftest.$ac_ext <<_ACEOF | |
16071 | /* end confdefs.h. */ | |
16072 | $ac_includes_default | |
16073 | int | |
16074 | main () | |
16075 | { | |
16076 | if ((long *) 0) | |
16077 | return 0; | |
16078 | if (sizeof (long)) | |
16079 | return 0; | |
16080 | ; | |
16081 | return 0; | |
16082 | } | |
16083 | _ACEOF | |
16084 | rm -f conftest.$ac_objext | |
16085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16086 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16087 | ac_status=$? |
ac1cb8d3 VS |
16088 | grep -v '^ *+' conftest.er1 >conftest.err |
16089 | rm -f conftest.er1 | |
16090 | cat conftest.err >&5 | |
a848cd7e SC |
16091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16092 | (exit $ac_status); } && | |
5dcf30a0 RN |
16093 | { ac_try='test -z "$ac_c_werror_flag" |
16094 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16096 | (eval $ac_try) 2>&5 | |
16097 | ac_status=$? | |
16098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16099 | (exit $ac_status); }; } && | |
16100 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16102 | (eval $ac_try) 2>&5 | |
16103 | ac_status=$? | |
16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16105 | (exit $ac_status); }; }; then | |
16106 | ac_cv_type_long=yes | |
16107 | else | |
16108 | echo "$as_me: failed program was:" >&5 | |
16109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16110 | ||
16111 | ac_cv_type_long=no | |
16112 | fi | |
ac1cb8d3 | 16113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16114 | fi |
16115 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16116 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16117 | ||
16118 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16119 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16120 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16122 | else | |
16123 | if test "$ac_cv_type_long" = yes; then | |
16124 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16125 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16126 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16127 | # This bug is HP SR number 8606223364. | |
16128 | if test "$cross_compiling" = yes; then | |
16129 | # Depending upon the size, compute the lo and hi bounds. | |
16130 | cat >conftest.$ac_ext <<_ACEOF | |
16131 | /* confdefs.h. */ | |
16132 | _ACEOF | |
16133 | cat confdefs.h >>conftest.$ac_ext | |
16134 | cat >>conftest.$ac_ext <<_ACEOF | |
16135 | /* end confdefs.h. */ | |
16136 | $ac_includes_default | |
16137 | int | |
16138 | main () | |
16139 | { | |
16140 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16141 | test_array [0] = 0 | |
16142 | ||
16143 | ; | |
16144 | return 0; | |
16145 | } | |
16146 | _ACEOF | |
16147 | rm -f conftest.$ac_objext | |
16148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16149 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16150 | ac_status=$? |
ac1cb8d3 VS |
16151 | grep -v '^ *+' conftest.er1 >conftest.err |
16152 | rm -f conftest.er1 | |
16153 | cat conftest.err >&5 | |
a848cd7e SC |
16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16155 | (exit $ac_status); } && | |
5dcf30a0 RN |
16156 | { ac_try='test -z "$ac_c_werror_flag" |
16157 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16159 | (eval $ac_try) 2>&5 | |
16160 | ac_status=$? | |
16161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16162 | (exit $ac_status); }; } && | |
16163 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16165 | (eval $ac_try) 2>&5 | |
16166 | ac_status=$? | |
16167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16168 | (exit $ac_status); }; }; then | |
16169 | ac_lo=0 ac_mid=0 | |
16170 | while :; do | |
16171 | cat >conftest.$ac_ext <<_ACEOF | |
16172 | /* confdefs.h. */ | |
16173 | _ACEOF | |
16174 | cat confdefs.h >>conftest.$ac_ext | |
16175 | cat >>conftest.$ac_ext <<_ACEOF | |
16176 | /* end confdefs.h. */ | |
16177 | $ac_includes_default | |
16178 | int | |
16179 | main () | |
16180 | { | |
16181 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16182 | test_array [0] = 0 | |
16183 | ||
16184 | ; | |
16185 | return 0; | |
16186 | } | |
16187 | _ACEOF | |
16188 | rm -f conftest.$ac_objext | |
16189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16191 | ac_status=$? |
ac1cb8d3 VS |
16192 | grep -v '^ *+' conftest.er1 >conftest.err |
16193 | rm -f conftest.er1 | |
16194 | cat conftest.err >&5 | |
a848cd7e SC |
16195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16196 | (exit $ac_status); } && | |
5dcf30a0 RN |
16197 | { ac_try='test -z "$ac_c_werror_flag" |
16198 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16200 | (eval $ac_try) 2>&5 | |
16201 | ac_status=$? | |
16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16203 | (exit $ac_status); }; } && | |
16204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16206 | (eval $ac_try) 2>&5 | |
16207 | ac_status=$? | |
16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16209 | (exit $ac_status); }; }; then | |
16210 | ac_hi=$ac_mid; break | |
16211 | else | |
16212 | echo "$as_me: failed program was:" >&5 | |
16213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16214 | ||
16215 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16216 | if test $ac_lo -le $ac_mid; then |
16217 | ac_lo= ac_hi= | |
16218 | break | |
16219 | fi | |
16220 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16221 | fi |
ac1cb8d3 | 16222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16223 | done |
16224 | else | |
16225 | echo "$as_me: failed program was:" >&5 | |
16226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16227 | ||
16228 | cat >conftest.$ac_ext <<_ACEOF | |
16229 | /* confdefs.h. */ | |
16230 | _ACEOF | |
16231 | cat confdefs.h >>conftest.$ac_ext | |
16232 | cat >>conftest.$ac_ext <<_ACEOF | |
16233 | /* end confdefs.h. */ | |
16234 | $ac_includes_default | |
16235 | int | |
16236 | main () | |
16237 | { | |
16238 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16239 | test_array [0] = 0 | |
16240 | ||
16241 | ; | |
16242 | return 0; | |
16243 | } | |
16244 | _ACEOF | |
16245 | rm -f conftest.$ac_objext | |
16246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16247 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16248 | ac_status=$? |
ac1cb8d3 VS |
16249 | grep -v '^ *+' conftest.er1 >conftest.err |
16250 | rm -f conftest.er1 | |
16251 | cat conftest.err >&5 | |
a848cd7e SC |
16252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16253 | (exit $ac_status); } && | |
5dcf30a0 RN |
16254 | { ac_try='test -z "$ac_c_werror_flag" |
16255 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16257 | (eval $ac_try) 2>&5 | |
16258 | ac_status=$? | |
16259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16260 | (exit $ac_status); }; } && | |
16261 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16263 | (eval $ac_try) 2>&5 | |
16264 | ac_status=$? | |
16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16266 | (exit $ac_status); }; }; then | |
16267 | ac_hi=-1 ac_mid=-1 | |
16268 | while :; do | |
16269 | cat >conftest.$ac_ext <<_ACEOF | |
16270 | /* confdefs.h. */ | |
16271 | _ACEOF | |
16272 | cat confdefs.h >>conftest.$ac_ext | |
16273 | cat >>conftest.$ac_ext <<_ACEOF | |
16274 | /* end confdefs.h. */ | |
16275 | $ac_includes_default | |
16276 | int | |
16277 | main () | |
16278 | { | |
16279 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16280 | test_array [0] = 0 | |
16281 | ||
16282 | ; | |
16283 | return 0; | |
16284 | } | |
16285 | _ACEOF | |
16286 | rm -f conftest.$ac_objext | |
16287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16288 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16289 | ac_status=$? |
ac1cb8d3 VS |
16290 | grep -v '^ *+' conftest.er1 >conftest.err |
16291 | rm -f conftest.er1 | |
16292 | cat conftest.err >&5 | |
a848cd7e SC |
16293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16294 | (exit $ac_status); } && | |
5dcf30a0 RN |
16295 | { ac_try='test -z "$ac_c_werror_flag" |
16296 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
16302 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16304 | (eval $ac_try) 2>&5 | |
16305 | ac_status=$? | |
16306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16307 | (exit $ac_status); }; }; then | |
16308 | ac_lo=$ac_mid; break | |
16309 | else | |
16310 | echo "$as_me: failed program was:" >&5 | |
16311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16312 | ||
16313 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16314 | if test $ac_mid -le $ac_hi; then |
16315 | ac_lo= ac_hi= | |
16316 | break | |
16317 | fi | |
16318 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16319 | fi |
ac1cb8d3 | 16320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16321 | done |
16322 | else | |
16323 | echo "$as_me: failed program was:" >&5 | |
16324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16325 | ||
16326 | ac_lo= ac_hi= | |
16327 | fi | |
ac1cb8d3 | 16328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16329 | fi |
ac1cb8d3 | 16330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16331 | # Binary search between lo and hi bounds. |
16332 | while test "x$ac_lo" != "x$ac_hi"; do | |
16333 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16334 | cat >conftest.$ac_ext <<_ACEOF | |
16335 | /* confdefs.h. */ | |
16336 | _ACEOF | |
16337 | cat confdefs.h >>conftest.$ac_ext | |
16338 | cat >>conftest.$ac_ext <<_ACEOF | |
16339 | /* end confdefs.h. */ | |
16340 | $ac_includes_default | |
16341 | int | |
16342 | main () | |
16343 | { | |
16344 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16345 | test_array [0] = 0 | |
16346 | ||
16347 | ; | |
16348 | return 0; | |
16349 | } | |
16350 | _ACEOF | |
16351 | rm -f conftest.$ac_objext | |
16352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16354 | ac_status=$? |
ac1cb8d3 VS |
16355 | grep -v '^ *+' conftest.er1 >conftest.err |
16356 | rm -f conftest.er1 | |
16357 | cat conftest.err >&5 | |
a848cd7e SC |
16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16359 | (exit $ac_status); } && | |
5dcf30a0 RN |
16360 | { ac_try='test -z "$ac_c_werror_flag" |
16361 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16363 | (eval $ac_try) 2>&5 | |
16364 | ac_status=$? | |
16365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16366 | (exit $ac_status); }; } && | |
16367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16369 | (eval $ac_try) 2>&5 | |
16370 | ac_status=$? | |
16371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16372 | (exit $ac_status); }; }; then | |
16373 | ac_hi=$ac_mid | |
16374 | else | |
16375 | echo "$as_me: failed program was:" >&5 | |
16376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16377 | ||
16378 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16379 | fi | |
ac1cb8d3 | 16380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16381 | done |
16382 | case $ac_lo in | |
16383 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16384 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16385 | See \`config.log' for more details." >&5 | |
16386 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16387 | See \`config.log' for more details." >&2;} | |
16388 | { (exit 1); exit 1; }; } ;; | |
16389 | esac | |
16390 | else | |
16391 | if test "$cross_compiling" = yes; then | |
5dcf30a0 RN |
16392 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16393 | See \`config.log' for more details." >&5 | |
16394 | echo "$as_me: error: cannot run test program while cross compiling | |
16395 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16396 | { (exit 1); exit 1; }; } |
16397 | else | |
16398 | cat >conftest.$ac_ext <<_ACEOF | |
16399 | /* confdefs.h. */ | |
16400 | _ACEOF | |
16401 | cat confdefs.h >>conftest.$ac_ext | |
16402 | cat >>conftest.$ac_ext <<_ACEOF | |
16403 | /* end confdefs.h. */ | |
16404 | $ac_includes_default | |
16405 | long longval () { return (long) (sizeof (long)); } | |
16406 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16407 | #include <stdio.h> | |
16408 | #include <stdlib.h> | |
16409 | int | |
16410 | main () | |
16411 | { | |
16412 | ||
16413 | FILE *f = fopen ("conftest.val", "w"); | |
16414 | if (! f) | |
16415 | exit (1); | |
16416 | if (((long) (sizeof (long))) < 0) | |
16417 | { | |
16418 | long i = longval (); | |
16419 | if (i != ((long) (sizeof (long)))) | |
16420 | exit (1); | |
16421 | fprintf (f, "%ld\n", i); | |
16422 | } | |
16423 | else | |
16424 | { | |
16425 | unsigned long i = ulongval (); | |
16426 | if (i != ((long) (sizeof (long)))) | |
16427 | exit (1); | |
16428 | fprintf (f, "%lu\n", i); | |
16429 | } | |
16430 | exit (ferror (f) || fclose (f) != 0); | |
16431 | ||
16432 | ; | |
16433 | return 0; | |
16434 | } | |
16435 | _ACEOF | |
16436 | rm -f conftest$ac_exeext | |
16437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16438 | (eval $ac_link) 2>&5 | |
16439 | ac_status=$? | |
16440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16441 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16443 | (eval $ac_try) 2>&5 | |
16444 | ac_status=$? | |
16445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16446 | (exit $ac_status); }; }; then | |
16447 | ac_cv_sizeof_long=`cat conftest.val` | |
16448 | else | |
16449 | echo "$as_me: program exited with status $ac_status" >&5 | |
16450 | echo "$as_me: failed program was:" >&5 | |
16451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16452 | ||
16453 | ( exit $ac_status ) | |
16454 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16455 | See \`config.log' for more details." >&5 | |
16456 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16457 | See \`config.log' for more details." >&2;} | |
16458 | { (exit 1); exit 1; }; } | |
16459 | fi | |
ac1cb8d3 | 16460 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16461 | fi |
16462 | fi | |
16463 | rm -f conftest.val | |
16464 | else | |
16465 | ac_cv_sizeof_long=0 | |
16466 | fi | |
16467 | fi | |
16468 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16469 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16470 | cat >>confdefs.h <<_ACEOF | |
16471 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16472 | _ACEOF | |
16473 | ||
16474 | ||
16475 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16476 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16477 | if test "${ac_cv_type_size_t+set}" = set; then | |
16478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16479 | else | |
16480 | cat >conftest.$ac_ext <<_ACEOF | |
16481 | /* confdefs.h. */ | |
16482 | _ACEOF | |
16483 | cat confdefs.h >>conftest.$ac_ext | |
16484 | cat >>conftest.$ac_ext <<_ACEOF | |
16485 | /* end confdefs.h. */ | |
16486 | $ac_includes_default | |
16487 | int | |
16488 | main () | |
16489 | { | |
16490 | if ((size_t *) 0) | |
16491 | return 0; | |
16492 | if (sizeof (size_t)) | |
16493 | return 0; | |
16494 | ; | |
16495 | return 0; | |
16496 | } | |
16497 | _ACEOF | |
16498 | rm -f conftest.$ac_objext | |
16499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16500 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16501 | ac_status=$? |
ac1cb8d3 VS |
16502 | grep -v '^ *+' conftest.er1 >conftest.err |
16503 | rm -f conftest.er1 | |
16504 | cat conftest.err >&5 | |
a848cd7e SC |
16505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16506 | (exit $ac_status); } && | |
5dcf30a0 RN |
16507 | { ac_try='test -z "$ac_c_werror_flag" |
16508 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16510 | (eval $ac_try) 2>&5 | |
16511 | ac_status=$? | |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16513 | (exit $ac_status); }; } && | |
16514 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16516 | (eval $ac_try) 2>&5 | |
16517 | ac_status=$? | |
16518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16519 | (exit $ac_status); }; }; then | |
16520 | ac_cv_type_size_t=yes | |
16521 | else | |
16522 | echo "$as_me: failed program was:" >&5 | |
16523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16524 | ||
16525 | ac_cv_type_size_t=no | |
16526 | fi | |
ac1cb8d3 | 16527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16528 | fi |
16529 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16530 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16531 | ||
16532 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16533 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16534 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16536 | else | |
16537 | if test "$ac_cv_type_size_t" = yes; then | |
16538 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16539 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16540 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16541 | # This bug is HP SR number 8606223364. | |
16542 | if test "$cross_compiling" = yes; then | |
16543 | # Depending upon the size, compute the lo and hi bounds. | |
16544 | cat >conftest.$ac_ext <<_ACEOF | |
16545 | /* confdefs.h. */ | |
16546 | _ACEOF | |
16547 | cat confdefs.h >>conftest.$ac_ext | |
16548 | cat >>conftest.$ac_ext <<_ACEOF | |
16549 | /* end confdefs.h. */ | |
16550 | $ac_includes_default | |
16551 | int | |
16552 | main () | |
16553 | { | |
16554 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16555 | test_array [0] = 0 | |
16556 | ||
16557 | ; | |
16558 | return 0; | |
16559 | } | |
16560 | _ACEOF | |
16561 | rm -f conftest.$ac_objext | |
16562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16563 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16564 | ac_status=$? |
ac1cb8d3 VS |
16565 | grep -v '^ *+' conftest.er1 >conftest.err |
16566 | rm -f conftest.er1 | |
16567 | cat conftest.err >&5 | |
a848cd7e SC |
16568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16569 | (exit $ac_status); } && | |
5dcf30a0 RN |
16570 | { ac_try='test -z "$ac_c_werror_flag" |
16571 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16573 | (eval $ac_try) 2>&5 | |
16574 | ac_status=$? | |
16575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16576 | (exit $ac_status); }; } && | |
16577 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16579 | (eval $ac_try) 2>&5 | |
16580 | ac_status=$? | |
16581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16582 | (exit $ac_status); }; }; then | |
16583 | ac_lo=0 ac_mid=0 | |
16584 | while :; do | |
16585 | cat >conftest.$ac_ext <<_ACEOF | |
16586 | /* confdefs.h. */ | |
16587 | _ACEOF | |
16588 | cat confdefs.h >>conftest.$ac_ext | |
16589 | cat >>conftest.$ac_ext <<_ACEOF | |
16590 | /* end confdefs.h. */ | |
16591 | $ac_includes_default | |
16592 | int | |
16593 | main () | |
16594 | { | |
16595 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16596 | test_array [0] = 0 | |
16597 | ||
16598 | ; | |
16599 | return 0; | |
16600 | } | |
16601 | _ACEOF | |
16602 | rm -f conftest.$ac_objext | |
16603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16604 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16605 | ac_status=$? |
ac1cb8d3 VS |
16606 | grep -v '^ *+' conftest.er1 >conftest.err |
16607 | rm -f conftest.er1 | |
16608 | cat conftest.err >&5 | |
a848cd7e SC |
16609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16610 | (exit $ac_status); } && | |
5dcf30a0 RN |
16611 | { ac_try='test -z "$ac_c_werror_flag" |
16612 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16614 | (eval $ac_try) 2>&5 | |
16615 | ac_status=$? | |
16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16617 | (exit $ac_status); }; } && | |
16618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16620 | (eval $ac_try) 2>&5 | |
16621 | ac_status=$? | |
16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16623 | (exit $ac_status); }; }; then | |
16624 | ac_hi=$ac_mid; break | |
16625 | else | |
16626 | echo "$as_me: failed program was:" >&5 | |
16627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16628 | ||
16629 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16630 | if test $ac_lo -le $ac_mid; then |
16631 | ac_lo= ac_hi= | |
16632 | break | |
16633 | fi | |
16634 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16635 | fi |
ac1cb8d3 | 16636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16637 | done |
16638 | else | |
16639 | echo "$as_me: failed program was:" >&5 | |
16640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16641 | ||
16642 | cat >conftest.$ac_ext <<_ACEOF | |
16643 | /* confdefs.h. */ | |
16644 | _ACEOF | |
16645 | cat confdefs.h >>conftest.$ac_ext | |
16646 | cat >>conftest.$ac_ext <<_ACEOF | |
16647 | /* end confdefs.h. */ | |
16648 | $ac_includes_default | |
16649 | int | |
16650 | main () | |
16651 | { | |
16652 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16653 | test_array [0] = 0 | |
16654 | ||
16655 | ; | |
16656 | return 0; | |
16657 | } | |
16658 | _ACEOF | |
16659 | rm -f conftest.$ac_objext | |
16660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16661 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16662 | ac_status=$? |
ac1cb8d3 VS |
16663 | grep -v '^ *+' conftest.er1 >conftest.err |
16664 | rm -f conftest.er1 | |
16665 | cat conftest.err >&5 | |
a848cd7e SC |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16667 | (exit $ac_status); } && | |
5dcf30a0 RN |
16668 | { ac_try='test -z "$ac_c_werror_flag" |
16669 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16671 | (eval $ac_try) 2>&5 | |
16672 | ac_status=$? | |
16673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16674 | (exit $ac_status); }; } && | |
16675 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16677 | (eval $ac_try) 2>&5 | |
16678 | ac_status=$? | |
16679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16680 | (exit $ac_status); }; }; then | |
16681 | ac_hi=-1 ac_mid=-1 | |
16682 | while :; do | |
16683 | cat >conftest.$ac_ext <<_ACEOF | |
16684 | /* confdefs.h. */ | |
16685 | _ACEOF | |
16686 | cat confdefs.h >>conftest.$ac_ext | |
16687 | cat >>conftest.$ac_ext <<_ACEOF | |
16688 | /* end confdefs.h. */ | |
16689 | $ac_includes_default | |
16690 | int | |
16691 | main () | |
16692 | { | |
16693 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16694 | test_array [0] = 0 | |
16695 | ||
16696 | ; | |
16697 | return 0; | |
16698 | } | |
16699 | _ACEOF | |
16700 | rm -f conftest.$ac_objext | |
16701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16702 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16703 | ac_status=$? |
ac1cb8d3 VS |
16704 | grep -v '^ *+' conftest.er1 >conftest.err |
16705 | rm -f conftest.er1 | |
16706 | cat conftest.err >&5 | |
a848cd7e SC |
16707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16708 | (exit $ac_status); } && | |
5dcf30a0 RN |
16709 | { ac_try='test -z "$ac_c_werror_flag" |
16710 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
16716 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16718 | (eval $ac_try) 2>&5 | |
16719 | ac_status=$? | |
16720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16721 | (exit $ac_status); }; }; then | |
16722 | ac_lo=$ac_mid; break | |
16723 | else | |
16724 | echo "$as_me: failed program was:" >&5 | |
16725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16726 | ||
16727 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16728 | if test $ac_mid -le $ac_hi; then |
16729 | ac_lo= ac_hi= | |
16730 | break | |
16731 | fi | |
16732 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16733 | fi |
ac1cb8d3 | 16734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16735 | done |
16736 | else | |
16737 | echo "$as_me: failed program was:" >&5 | |
16738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16739 | ||
16740 | ac_lo= ac_hi= | |
16741 | fi | |
ac1cb8d3 | 16742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16743 | fi |
ac1cb8d3 | 16744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16745 | # Binary search between lo and hi bounds. |
16746 | while test "x$ac_lo" != "x$ac_hi"; do | |
16747 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16748 | cat >conftest.$ac_ext <<_ACEOF | |
16749 | /* confdefs.h. */ | |
16750 | _ACEOF | |
16751 | cat confdefs.h >>conftest.$ac_ext | |
16752 | cat >>conftest.$ac_ext <<_ACEOF | |
16753 | /* end confdefs.h. */ | |
16754 | $ac_includes_default | |
16755 | int | |
16756 | main () | |
16757 | { | |
16758 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16759 | test_array [0] = 0 | |
16760 | ||
16761 | ; | |
16762 | return 0; | |
16763 | } | |
16764 | _ACEOF | |
16765 | rm -f conftest.$ac_objext | |
16766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16767 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16768 | ac_status=$? |
ac1cb8d3 VS |
16769 | grep -v '^ *+' conftest.er1 >conftest.err |
16770 | rm -f conftest.er1 | |
16771 | cat conftest.err >&5 | |
a848cd7e SC |
16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16773 | (exit $ac_status); } && | |
5dcf30a0 RN |
16774 | { ac_try='test -z "$ac_c_werror_flag" |
16775 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16777 | (eval $ac_try) 2>&5 | |
16778 | ac_status=$? | |
16779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16780 | (exit $ac_status); }; } && | |
16781 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16783 | (eval $ac_try) 2>&5 | |
16784 | ac_status=$? | |
16785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16786 | (exit $ac_status); }; }; then | |
16787 | ac_hi=$ac_mid | |
16788 | else | |
16789 | echo "$as_me: failed program was:" >&5 | |
16790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16791 | ||
16792 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16793 | fi | |
ac1cb8d3 | 16794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16795 | done |
16796 | case $ac_lo in | |
16797 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16798 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16799 | See \`config.log' for more details." >&5 | |
16800 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16801 | See \`config.log' for more details." >&2;} | |
16802 | { (exit 1); exit 1; }; } ;; | |
16803 | esac | |
16804 | else | |
16805 | if test "$cross_compiling" = yes; then | |
5dcf30a0 RN |
16806 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16807 | See \`config.log' for more details." >&5 | |
16808 | echo "$as_me: error: cannot run test program while cross compiling | |
16809 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16810 | { (exit 1); exit 1; }; } |
16811 | else | |
16812 | cat >conftest.$ac_ext <<_ACEOF | |
16813 | /* confdefs.h. */ | |
16814 | _ACEOF | |
16815 | cat confdefs.h >>conftest.$ac_ext | |
16816 | cat >>conftest.$ac_ext <<_ACEOF | |
16817 | /* end confdefs.h. */ | |
16818 | $ac_includes_default | |
16819 | long longval () { return (long) (sizeof (size_t)); } | |
16820 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16821 | #include <stdio.h> | |
16822 | #include <stdlib.h> | |
16823 | int | |
16824 | main () | |
16825 | { | |
16826 | ||
16827 | FILE *f = fopen ("conftest.val", "w"); | |
16828 | if (! f) | |
16829 | exit (1); | |
16830 | if (((long) (sizeof (size_t))) < 0) | |
16831 | { | |
16832 | long i = longval (); | |
16833 | if (i != ((long) (sizeof (size_t)))) | |
16834 | exit (1); | |
16835 | fprintf (f, "%ld\n", i); | |
16836 | } | |
16837 | else | |
16838 | { | |
16839 | unsigned long i = ulongval (); | |
16840 | if (i != ((long) (sizeof (size_t)))) | |
16841 | exit (1); | |
16842 | fprintf (f, "%lu\n", i); | |
16843 | } | |
16844 | exit (ferror (f) || fclose (f) != 0); | |
16845 | ||
16846 | ; | |
16847 | return 0; | |
16848 | } | |
16849 | _ACEOF | |
16850 | rm -f conftest$ac_exeext | |
16851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16852 | (eval $ac_link) 2>&5 | |
16853 | ac_status=$? | |
16854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16857 | (eval $ac_try) 2>&5 | |
16858 | ac_status=$? | |
16859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16860 | (exit $ac_status); }; }; then | |
16861 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16862 | else | |
16863 | echo "$as_me: program exited with status $ac_status" >&5 | |
16864 | echo "$as_me: failed program was:" >&5 | |
16865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16866 | ||
16867 | ( exit $ac_status ) | |
16868 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16869 | See \`config.log' for more details." >&5 | |
16870 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16871 | See \`config.log' for more details." >&2;} | |
16872 | { (exit 1); exit 1; }; } | |
16873 | fi | |
ac1cb8d3 | 16874 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16875 | fi |
16876 | fi | |
16877 | rm -f conftest.val | |
16878 | else | |
16879 | ac_cv_sizeof_size_t=0 | |
16880 | fi | |
16881 | fi | |
16882 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16883 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16884 | cat >>confdefs.h <<_ACEOF | |
16885 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16886 | _ACEOF | |
16887 | ||
16888 | ||
16889 | ||
16890 | case "${host}" in | |
16891 | arm-*-linux* ) | |
16892 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16893 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16894 | if test "${ac_cv_type_long_long+set}" = set; then | |
16895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16896 | else | |
16897 | cat >conftest.$ac_ext <<_ACEOF | |
16898 | /* confdefs.h. */ | |
16899 | _ACEOF | |
16900 | cat confdefs.h >>conftest.$ac_ext | |
16901 | cat >>conftest.$ac_ext <<_ACEOF | |
16902 | /* end confdefs.h. */ | |
16903 | $ac_includes_default | |
16904 | int | |
16905 | main () | |
16906 | { | |
16907 | if ((long long *) 0) | |
16908 | return 0; | |
16909 | if (sizeof (long long)) | |
16910 | return 0; | |
16911 | ; | |
16912 | return 0; | |
16913 | } | |
16914 | _ACEOF | |
16915 | rm -f conftest.$ac_objext | |
16916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16917 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16918 | ac_status=$? |
ac1cb8d3 VS |
16919 | grep -v '^ *+' conftest.er1 >conftest.err |
16920 | rm -f conftest.er1 | |
16921 | cat conftest.err >&5 | |
a848cd7e SC |
16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16923 | (exit $ac_status); } && | |
5dcf30a0 RN |
16924 | { ac_try='test -z "$ac_c_werror_flag" |
16925 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16927 | (eval $ac_try) 2>&5 | |
16928 | ac_status=$? | |
16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16930 | (exit $ac_status); }; } && | |
16931 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16933 | (eval $ac_try) 2>&5 | |
16934 | ac_status=$? | |
16935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16936 | (exit $ac_status); }; }; then | |
16937 | ac_cv_type_long_long=yes | |
16938 | else | |
16939 | echo "$as_me: failed program was:" >&5 | |
16940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16941 | ||
16942 | ac_cv_type_long_long=no | |
16943 | fi | |
ac1cb8d3 | 16944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16945 | fi |
16946 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16947 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16948 | ||
16949 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16950 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16951 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16953 | else | |
16954 | if test "$ac_cv_type_long_long" = yes; then | |
16955 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16956 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16957 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16958 | # This bug is HP SR number 8606223364. | |
16959 | if test "$cross_compiling" = yes; then | |
16960 | # Depending upon the size, compute the lo and hi bounds. | |
16961 | cat >conftest.$ac_ext <<_ACEOF | |
16962 | /* confdefs.h. */ | |
16963 | _ACEOF | |
16964 | cat confdefs.h >>conftest.$ac_ext | |
16965 | cat >>conftest.$ac_ext <<_ACEOF | |
16966 | /* end confdefs.h. */ | |
16967 | $ac_includes_default | |
16968 | int | |
16969 | main () | |
16970 | { | |
16971 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16972 | test_array [0] = 0 | |
16973 | ||
16974 | ; | |
16975 | return 0; | |
16976 | } | |
16977 | _ACEOF | |
16978 | rm -f conftest.$ac_objext | |
16979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16980 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16981 | ac_status=$? |
ac1cb8d3 VS |
16982 | grep -v '^ *+' conftest.er1 >conftest.err |
16983 | rm -f conftest.er1 | |
16984 | cat conftest.err >&5 | |
a848cd7e SC |
16985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16986 | (exit $ac_status); } && | |
5dcf30a0 RN |
16987 | { ac_try='test -z "$ac_c_werror_flag" |
16988 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16990 | (eval $ac_try) 2>&5 | |
16991 | ac_status=$? | |
16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16993 | (exit $ac_status); }; } && | |
16994 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16996 | (eval $ac_try) 2>&5 | |
16997 | ac_status=$? | |
16998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16999 | (exit $ac_status); }; }; then | |
17000 | ac_lo=0 ac_mid=0 | |
17001 | while :; do | |
17002 | cat >conftest.$ac_ext <<_ACEOF | |
17003 | /* confdefs.h. */ | |
17004 | _ACEOF | |
17005 | cat confdefs.h >>conftest.$ac_ext | |
17006 | cat >>conftest.$ac_ext <<_ACEOF | |
17007 | /* end confdefs.h. */ | |
17008 | $ac_includes_default | |
17009 | int | |
17010 | main () | |
17011 | { | |
17012 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17013 | test_array [0] = 0 | |
17014 | ||
17015 | ; | |
17016 | return 0; | |
17017 | } | |
17018 | _ACEOF | |
17019 | rm -f conftest.$ac_objext | |
17020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17021 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17022 | ac_status=$? |
ac1cb8d3 VS |
17023 | grep -v '^ *+' conftest.er1 >conftest.err |
17024 | rm -f conftest.er1 | |
17025 | cat conftest.err >&5 | |
a848cd7e SC |
17026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17027 | (exit $ac_status); } && | |
5dcf30a0 RN |
17028 | { ac_try='test -z "$ac_c_werror_flag" |
17029 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17031 | (eval $ac_try) 2>&5 | |
17032 | ac_status=$? | |
17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17034 | (exit $ac_status); }; } && | |
17035 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17037 | (eval $ac_try) 2>&5 | |
17038 | ac_status=$? | |
17039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17040 | (exit $ac_status); }; }; then | |
17041 | ac_hi=$ac_mid; break | |
17042 | else | |
17043 | echo "$as_me: failed program was:" >&5 | |
17044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17045 | ||
17046 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17047 | if test $ac_lo -le $ac_mid; then |
17048 | ac_lo= ac_hi= | |
17049 | break | |
17050 | fi | |
17051 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17052 | fi |
ac1cb8d3 | 17053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17054 | done |
17055 | else | |
17056 | echo "$as_me: failed program was:" >&5 | |
17057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17058 | ||
17059 | cat >conftest.$ac_ext <<_ACEOF | |
17060 | /* confdefs.h. */ | |
17061 | _ACEOF | |
17062 | cat confdefs.h >>conftest.$ac_ext | |
17063 | cat >>conftest.$ac_ext <<_ACEOF | |
17064 | /* end confdefs.h. */ | |
17065 | $ac_includes_default | |
17066 | int | |
17067 | main () | |
17068 | { | |
17069 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17070 | test_array [0] = 0 | |
17071 | ||
17072 | ; | |
17073 | return 0; | |
17074 | } | |
17075 | _ACEOF | |
17076 | rm -f conftest.$ac_objext | |
17077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17078 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17079 | ac_status=$? |
ac1cb8d3 VS |
17080 | grep -v '^ *+' conftest.er1 >conftest.err |
17081 | rm -f conftest.er1 | |
17082 | cat conftest.err >&5 | |
a848cd7e SC |
17083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17084 | (exit $ac_status); } && | |
5dcf30a0 RN |
17085 | { ac_try='test -z "$ac_c_werror_flag" |
17086 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17088 | (eval $ac_try) 2>&5 | |
17089 | ac_status=$? | |
17090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17091 | (exit $ac_status); }; } && | |
17092 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17094 | (eval $ac_try) 2>&5 | |
17095 | ac_status=$? | |
17096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17097 | (exit $ac_status); }; }; then | |
17098 | ac_hi=-1 ac_mid=-1 | |
17099 | while :; do | |
17100 | cat >conftest.$ac_ext <<_ACEOF | |
17101 | /* confdefs.h. */ | |
17102 | _ACEOF | |
17103 | cat confdefs.h >>conftest.$ac_ext | |
17104 | cat >>conftest.$ac_ext <<_ACEOF | |
17105 | /* end confdefs.h. */ | |
17106 | $ac_includes_default | |
17107 | int | |
17108 | main () | |
17109 | { | |
17110 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17111 | test_array [0] = 0 | |
17112 | ||
17113 | ; | |
17114 | return 0; | |
17115 | } | |
17116 | _ACEOF | |
17117 | rm -f conftest.$ac_objext | |
17118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17120 | ac_status=$? |
ac1cb8d3 VS |
17121 | grep -v '^ *+' conftest.er1 >conftest.err |
17122 | rm -f conftest.er1 | |
17123 | cat conftest.err >&5 | |
a848cd7e SC |
17124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17125 | (exit $ac_status); } && | |
5dcf30a0 RN |
17126 | { ac_try='test -z "$ac_c_werror_flag" |
17127 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
17133 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17135 | (eval $ac_try) 2>&5 | |
17136 | ac_status=$? | |
17137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17138 | (exit $ac_status); }; }; then | |
17139 | ac_lo=$ac_mid; break | |
17140 | else | |
17141 | echo "$as_me: failed program was:" >&5 | |
17142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17143 | ||
17144 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17145 | if test $ac_mid -le $ac_hi; then |
17146 | ac_lo= ac_hi= | |
17147 | break | |
17148 | fi | |
17149 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17150 | fi |
ac1cb8d3 | 17151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17152 | done |
17153 | else | |
17154 | echo "$as_me: failed program was:" >&5 | |
17155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17156 | ||
17157 | ac_lo= ac_hi= | |
17158 | fi | |
ac1cb8d3 | 17159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17160 | fi |
ac1cb8d3 | 17161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17162 | # Binary search between lo and hi bounds. |
17163 | while test "x$ac_lo" != "x$ac_hi"; do | |
17164 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17165 | cat >conftest.$ac_ext <<_ACEOF | |
17166 | /* confdefs.h. */ | |
17167 | _ACEOF | |
17168 | cat confdefs.h >>conftest.$ac_ext | |
17169 | cat >>conftest.$ac_ext <<_ACEOF | |
17170 | /* end confdefs.h. */ | |
17171 | $ac_includes_default | |
17172 | int | |
17173 | main () | |
17174 | { | |
17175 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17176 | test_array [0] = 0 | |
17177 | ||
17178 | ; | |
17179 | return 0; | |
17180 | } | |
17181 | _ACEOF | |
17182 | rm -f conftest.$ac_objext | |
17183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17184 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17185 | ac_status=$? |
ac1cb8d3 VS |
17186 | grep -v '^ *+' conftest.er1 >conftest.err |
17187 | rm -f conftest.er1 | |
17188 | cat conftest.err >&5 | |
a848cd7e SC |
17189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17190 | (exit $ac_status); } && | |
5dcf30a0 RN |
17191 | { ac_try='test -z "$ac_c_werror_flag" |
17192 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17194 | (eval $ac_try) 2>&5 | |
17195 | ac_status=$? | |
17196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17197 | (exit $ac_status); }; } && | |
17198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17200 | (eval $ac_try) 2>&5 | |
17201 | ac_status=$? | |
17202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17203 | (exit $ac_status); }; }; then | |
17204 | ac_hi=$ac_mid | |
17205 | else | |
17206 | echo "$as_me: failed program was:" >&5 | |
17207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17208 | ||
17209 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17210 | fi | |
ac1cb8d3 | 17211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17212 | done |
17213 | case $ac_lo in | |
17214 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17215 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17216 | See \`config.log' for more details." >&5 | |
17217 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17218 | See \`config.log' for more details." >&2;} | |
17219 | { (exit 1); exit 1; }; } ;; | |
17220 | esac | |
17221 | else | |
17222 | if test "$cross_compiling" = yes; then | |
5dcf30a0 RN |
17223 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17224 | See \`config.log' for more details." >&5 | |
17225 | echo "$as_me: error: cannot run test program while cross compiling | |
17226 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17227 | { (exit 1); exit 1; }; } |
17228 | else | |
17229 | cat >conftest.$ac_ext <<_ACEOF | |
17230 | /* confdefs.h. */ | |
17231 | _ACEOF | |
17232 | cat confdefs.h >>conftest.$ac_ext | |
17233 | cat >>conftest.$ac_ext <<_ACEOF | |
17234 | /* end confdefs.h. */ | |
17235 | $ac_includes_default | |
17236 | long longval () { return (long) (sizeof (long long)); } | |
17237 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17238 | #include <stdio.h> | |
17239 | #include <stdlib.h> | |
17240 | int | |
17241 | main () | |
17242 | { | |
17243 | ||
17244 | FILE *f = fopen ("conftest.val", "w"); | |
17245 | if (! f) | |
17246 | exit (1); | |
17247 | if (((long) (sizeof (long long))) < 0) | |
17248 | { | |
17249 | long i = longval (); | |
17250 | if (i != ((long) (sizeof (long long)))) | |
17251 | exit (1); | |
17252 | fprintf (f, "%ld\n", i); | |
17253 | } | |
17254 | else | |
17255 | { | |
17256 | unsigned long i = ulongval (); | |
17257 | if (i != ((long) (sizeof (long long)))) | |
17258 | exit (1); | |
17259 | fprintf (f, "%lu\n", i); | |
17260 | } | |
17261 | exit (ferror (f) || fclose (f) != 0); | |
17262 | ||
17263 | ; | |
17264 | return 0; | |
17265 | } | |
17266 | _ACEOF | |
17267 | rm -f conftest$ac_exeext | |
17268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17269 | (eval $ac_link) 2>&5 | |
17270 | ac_status=$? | |
17271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17272 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17274 | (eval $ac_try) 2>&5 | |
17275 | ac_status=$? | |
17276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17277 | (exit $ac_status); }; }; then | |
17278 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17279 | else | |
17280 | echo "$as_me: program exited with status $ac_status" >&5 | |
17281 | echo "$as_me: failed program was:" >&5 | |
17282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17283 | ||
17284 | ( exit $ac_status ) | |
17285 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17286 | See \`config.log' for more details." >&5 | |
17287 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17288 | See \`config.log' for more details." >&2;} | |
17289 | { (exit 1); exit 1; }; } | |
17290 | fi | |
ac1cb8d3 | 17291 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17292 | fi |
17293 | fi | |
17294 | rm -f conftest.val | |
17295 | else | |
17296 | ac_cv_sizeof_long_long=0 | |
17297 | fi | |
17298 | fi | |
17299 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17300 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17301 | cat >>confdefs.h <<_ACEOF | |
17302 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17303 | _ACEOF | |
17304 | ||
17305 | ||
17306 | ;; | |
17307 | *-hp-hpux* ) | |
17308 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17309 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17310 | if test "${ac_cv_type_long_long+set}" = set; then | |
17311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17312 | else | |
17313 | cat >conftest.$ac_ext <<_ACEOF | |
17314 | /* confdefs.h. */ | |
17315 | _ACEOF | |
17316 | cat confdefs.h >>conftest.$ac_ext | |
17317 | cat >>conftest.$ac_ext <<_ACEOF | |
17318 | /* end confdefs.h. */ | |
17319 | $ac_includes_default | |
17320 | int | |
17321 | main () | |
17322 | { | |
17323 | if ((long long *) 0) | |
17324 | return 0; | |
17325 | if (sizeof (long long)) | |
17326 | return 0; | |
17327 | ; | |
17328 | return 0; | |
17329 | } | |
17330 | _ACEOF | |
17331 | rm -f conftest.$ac_objext | |
17332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17333 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17334 | ac_status=$? |
ac1cb8d3 VS |
17335 | grep -v '^ *+' conftest.er1 >conftest.err |
17336 | rm -f conftest.er1 | |
17337 | cat conftest.err >&5 | |
a848cd7e SC |
17338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17339 | (exit $ac_status); } && | |
5dcf30a0 RN |
17340 | { ac_try='test -z "$ac_c_werror_flag" |
17341 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17343 | (eval $ac_try) 2>&5 | |
17344 | ac_status=$? | |
17345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17346 | (exit $ac_status); }; } && | |
17347 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17349 | (eval $ac_try) 2>&5 | |
17350 | ac_status=$? | |
17351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17352 | (exit $ac_status); }; }; then | |
17353 | ac_cv_type_long_long=yes | |
17354 | else | |
17355 | echo "$as_me: failed program was:" >&5 | |
17356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17357 | ||
17358 | ac_cv_type_long_long=no | |
17359 | fi | |
ac1cb8d3 | 17360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17361 | fi |
17362 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17363 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17364 | ||
17365 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17366 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17367 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17369 | else | |
17370 | if test "$ac_cv_type_long_long" = yes; then | |
17371 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17372 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17373 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17374 | # This bug is HP SR number 8606223364. | |
17375 | if test "$cross_compiling" = yes; then | |
17376 | # Depending upon the size, compute the lo and hi bounds. | |
17377 | cat >conftest.$ac_ext <<_ACEOF | |
17378 | /* confdefs.h. */ | |
17379 | _ACEOF | |
17380 | cat confdefs.h >>conftest.$ac_ext | |
17381 | cat >>conftest.$ac_ext <<_ACEOF | |
17382 | /* end confdefs.h. */ | |
17383 | $ac_includes_default | |
17384 | int | |
17385 | main () | |
17386 | { | |
17387 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17388 | test_array [0] = 0 | |
17389 | ||
17390 | ; | |
17391 | return 0; | |
17392 | } | |
17393 | _ACEOF | |
17394 | rm -f conftest.$ac_objext | |
17395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17396 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17397 | ac_status=$? |
ac1cb8d3 VS |
17398 | grep -v '^ *+' conftest.er1 >conftest.err |
17399 | rm -f conftest.er1 | |
17400 | cat conftest.err >&5 | |
a848cd7e SC |
17401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17402 | (exit $ac_status); } && | |
5dcf30a0 RN |
17403 | { ac_try='test -z "$ac_c_werror_flag" |
17404 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17406 | (eval $ac_try) 2>&5 | |
17407 | ac_status=$? | |
17408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17409 | (exit $ac_status); }; } && | |
17410 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17412 | (eval $ac_try) 2>&5 | |
17413 | ac_status=$? | |
17414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17415 | (exit $ac_status); }; }; then | |
17416 | ac_lo=0 ac_mid=0 | |
17417 | while :; do | |
17418 | cat >conftest.$ac_ext <<_ACEOF | |
17419 | /* confdefs.h. */ | |
17420 | _ACEOF | |
17421 | cat confdefs.h >>conftest.$ac_ext | |
17422 | cat >>conftest.$ac_ext <<_ACEOF | |
17423 | /* end confdefs.h. */ | |
17424 | $ac_includes_default | |
17425 | int | |
17426 | main () | |
17427 | { | |
17428 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17429 | test_array [0] = 0 | |
17430 | ||
17431 | ; | |
17432 | return 0; | |
17433 | } | |
17434 | _ACEOF | |
17435 | rm -f conftest.$ac_objext | |
17436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17437 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17438 | ac_status=$? |
ac1cb8d3 VS |
17439 | grep -v '^ *+' conftest.er1 >conftest.err |
17440 | rm -f conftest.er1 | |
17441 | cat conftest.err >&5 | |
a848cd7e SC |
17442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17443 | (exit $ac_status); } && | |
5dcf30a0 RN |
17444 | { ac_try='test -z "$ac_c_werror_flag" |
17445 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17447 | (eval $ac_try) 2>&5 | |
17448 | ac_status=$? | |
17449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17450 | (exit $ac_status); }; } && | |
17451 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17453 | (eval $ac_try) 2>&5 | |
17454 | ac_status=$? | |
17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17456 | (exit $ac_status); }; }; then | |
17457 | ac_hi=$ac_mid; break | |
17458 | else | |
17459 | echo "$as_me: failed program was:" >&5 | |
17460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17461 | ||
17462 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17463 | if test $ac_lo -le $ac_mid; then |
17464 | ac_lo= ac_hi= | |
17465 | break | |
17466 | fi | |
17467 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17468 | fi |
ac1cb8d3 | 17469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17470 | done |
17471 | else | |
17472 | echo "$as_me: failed program was:" >&5 | |
17473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17474 | ||
17475 | cat >conftest.$ac_ext <<_ACEOF | |
17476 | /* confdefs.h. */ | |
17477 | _ACEOF | |
17478 | cat confdefs.h >>conftest.$ac_ext | |
17479 | cat >>conftest.$ac_ext <<_ACEOF | |
17480 | /* end confdefs.h. */ | |
17481 | $ac_includes_default | |
17482 | int | |
17483 | main () | |
17484 | { | |
17485 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17486 | test_array [0] = 0 | |
17487 | ||
17488 | ; | |
17489 | return 0; | |
17490 | } | |
17491 | _ACEOF | |
17492 | rm -f conftest.$ac_objext | |
17493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17494 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17495 | ac_status=$? |
ac1cb8d3 VS |
17496 | grep -v '^ *+' conftest.er1 >conftest.err |
17497 | rm -f conftest.er1 | |
17498 | cat conftest.err >&5 | |
a848cd7e SC |
17499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17500 | (exit $ac_status); } && | |
5dcf30a0 RN |
17501 | { ac_try='test -z "$ac_c_werror_flag" |
17502 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17504 | (eval $ac_try) 2>&5 | |
17505 | ac_status=$? | |
17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17507 | (exit $ac_status); }; } && | |
17508 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17510 | (eval $ac_try) 2>&5 | |
17511 | ac_status=$? | |
17512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17513 | (exit $ac_status); }; }; then | |
17514 | ac_hi=-1 ac_mid=-1 | |
17515 | while :; do | |
17516 | cat >conftest.$ac_ext <<_ACEOF | |
17517 | /* confdefs.h. */ | |
17518 | _ACEOF | |
17519 | cat confdefs.h >>conftest.$ac_ext | |
17520 | cat >>conftest.$ac_ext <<_ACEOF | |
17521 | /* end confdefs.h. */ | |
17522 | $ac_includes_default | |
17523 | int | |
17524 | main () | |
17525 | { | |
17526 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17527 | test_array [0] = 0 | |
17528 | ||
17529 | ; | |
17530 | return 0; | |
17531 | } | |
17532 | _ACEOF | |
17533 | rm -f conftest.$ac_objext | |
17534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17535 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17536 | ac_status=$? |
ac1cb8d3 VS |
17537 | grep -v '^ *+' conftest.er1 >conftest.err |
17538 | rm -f conftest.er1 | |
17539 | cat conftest.err >&5 | |
a848cd7e SC |
17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17541 | (exit $ac_status); } && | |
5dcf30a0 RN |
17542 | { ac_try='test -z "$ac_c_werror_flag" |
17543 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
17549 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17551 | (eval $ac_try) 2>&5 | |
17552 | ac_status=$? | |
17553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17554 | (exit $ac_status); }; }; then | |
17555 | ac_lo=$ac_mid; break | |
17556 | else | |
17557 | echo "$as_me: failed program was:" >&5 | |
17558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17559 | ||
17560 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17561 | if test $ac_mid -le $ac_hi; then |
17562 | ac_lo= ac_hi= | |
17563 | break | |
17564 | fi | |
17565 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17566 | fi |
ac1cb8d3 | 17567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17568 | done |
17569 | else | |
17570 | echo "$as_me: failed program was:" >&5 | |
17571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17572 | ||
17573 | ac_lo= ac_hi= | |
17574 | fi | |
ac1cb8d3 | 17575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17576 | fi |
ac1cb8d3 | 17577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17578 | # Binary search between lo and hi bounds. |
17579 | while test "x$ac_lo" != "x$ac_hi"; do | |
17580 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17581 | cat >conftest.$ac_ext <<_ACEOF | |
17582 | /* confdefs.h. */ | |
17583 | _ACEOF | |
17584 | cat confdefs.h >>conftest.$ac_ext | |
17585 | cat >>conftest.$ac_ext <<_ACEOF | |
17586 | /* end confdefs.h. */ | |
17587 | $ac_includes_default | |
17588 | int | |
17589 | main () | |
17590 | { | |
17591 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17592 | test_array [0] = 0 | |
17593 | ||
17594 | ; | |
17595 | return 0; | |
17596 | } | |
17597 | _ACEOF | |
17598 | rm -f conftest.$ac_objext | |
17599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17600 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17601 | ac_status=$? |
ac1cb8d3 VS |
17602 | grep -v '^ *+' conftest.er1 >conftest.err |
17603 | rm -f conftest.er1 | |
17604 | cat conftest.err >&5 | |
a848cd7e SC |
17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17606 | (exit $ac_status); } && | |
5dcf30a0 RN |
17607 | { ac_try='test -z "$ac_c_werror_flag" |
17608 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17610 | (eval $ac_try) 2>&5 | |
17611 | ac_status=$? | |
17612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17613 | (exit $ac_status); }; } && | |
17614 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17616 | (eval $ac_try) 2>&5 | |
17617 | ac_status=$? | |
17618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17619 | (exit $ac_status); }; }; then | |
17620 | ac_hi=$ac_mid | |
17621 | else | |
17622 | echo "$as_me: failed program was:" >&5 | |
17623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17624 | ||
17625 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17626 | fi | |
ac1cb8d3 | 17627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17628 | done |
17629 | case $ac_lo in | |
17630 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17631 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17632 | See \`config.log' for more details." >&5 | |
17633 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17634 | See \`config.log' for more details." >&2;} | |
17635 | { (exit 1); exit 1; }; } ;; | |
17636 | esac | |
17637 | else | |
17638 | if test "$cross_compiling" = yes; then | |
5dcf30a0 RN |
17639 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17640 | See \`config.log' for more details." >&5 | |
17641 | echo "$as_me: error: cannot run test program while cross compiling | |
17642 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17643 | { (exit 1); exit 1; }; } |
17644 | else | |
17645 | cat >conftest.$ac_ext <<_ACEOF | |
17646 | /* confdefs.h. */ | |
17647 | _ACEOF | |
17648 | cat confdefs.h >>conftest.$ac_ext | |
17649 | cat >>conftest.$ac_ext <<_ACEOF | |
17650 | /* end confdefs.h. */ | |
17651 | $ac_includes_default | |
17652 | long longval () { return (long) (sizeof (long long)); } | |
17653 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17654 | #include <stdio.h> | |
17655 | #include <stdlib.h> | |
17656 | int | |
17657 | main () | |
17658 | { | |
17659 | ||
17660 | FILE *f = fopen ("conftest.val", "w"); | |
17661 | if (! f) | |
17662 | exit (1); | |
17663 | if (((long) (sizeof (long long))) < 0) | |
17664 | { | |
17665 | long i = longval (); | |
17666 | if (i != ((long) (sizeof (long long)))) | |
17667 | exit (1); | |
17668 | fprintf (f, "%ld\n", i); | |
17669 | } | |
17670 | else | |
17671 | { | |
17672 | unsigned long i = ulongval (); | |
17673 | if (i != ((long) (sizeof (long long)))) | |
17674 | exit (1); | |
17675 | fprintf (f, "%lu\n", i); | |
17676 | } | |
17677 | exit (ferror (f) || fclose (f) != 0); | |
17678 | ||
17679 | ; | |
17680 | return 0; | |
17681 | } | |
17682 | _ACEOF | |
17683 | rm -f conftest$ac_exeext | |
17684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17685 | (eval $ac_link) 2>&5 | |
17686 | ac_status=$? | |
17687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17688 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17690 | (eval $ac_try) 2>&5 | |
17691 | ac_status=$? | |
17692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17693 | (exit $ac_status); }; }; then | |
17694 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17695 | else | |
17696 | echo "$as_me: program exited with status $ac_status" >&5 | |
17697 | echo "$as_me: failed program was:" >&5 | |
17698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17699 | ||
17700 | ( exit $ac_status ) | |
17701 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17702 | See \`config.log' for more details." >&5 | |
17703 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17704 | See \`config.log' for more details." >&2;} | |
17705 | { (exit 1); exit 1; }; } | |
17706 | fi | |
ac1cb8d3 | 17707 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17708 | fi |
17709 | fi | |
17710 | rm -f conftest.val | |
17711 | else | |
17712 | ac_cv_sizeof_long_long=0 | |
17713 | fi | |
17714 | fi | |
17715 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17716 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17717 | cat >>confdefs.h <<_ACEOF | |
17718 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17719 | _ACEOF | |
17720 | ||
17721 | ||
17722 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17723 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17724 | fi | |
17725 | ;; | |
17726 | * ) | |
17727 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17728 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17729 | if test "${ac_cv_type_long_long+set}" = set; then | |
17730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17731 | else | |
17732 | cat >conftest.$ac_ext <<_ACEOF | |
17733 | /* confdefs.h. */ | |
17734 | _ACEOF | |
17735 | cat confdefs.h >>conftest.$ac_ext | |
17736 | cat >>conftest.$ac_ext <<_ACEOF | |
17737 | /* end confdefs.h. */ | |
17738 | $ac_includes_default | |
17739 | int | |
17740 | main () | |
17741 | { | |
17742 | if ((long long *) 0) | |
17743 | return 0; | |
17744 | if (sizeof (long long)) | |
17745 | return 0; | |
17746 | ; | |
17747 | return 0; | |
17748 | } | |
17749 | _ACEOF | |
17750 | rm -f conftest.$ac_objext | |
17751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17752 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17753 | ac_status=$? |
ac1cb8d3 VS |
17754 | grep -v '^ *+' conftest.er1 >conftest.err |
17755 | rm -f conftest.er1 | |
17756 | cat conftest.err >&5 | |
a848cd7e SC |
17757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17758 | (exit $ac_status); } && | |
5dcf30a0 RN |
17759 | { ac_try='test -z "$ac_c_werror_flag" |
17760 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17762 | (eval $ac_try) 2>&5 | |
17763 | ac_status=$? | |
17764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17765 | (exit $ac_status); }; } && | |
17766 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17768 | (eval $ac_try) 2>&5 | |
17769 | ac_status=$? | |
17770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17771 | (exit $ac_status); }; }; then | |
17772 | ac_cv_type_long_long=yes | |
17773 | else | |
17774 | echo "$as_me: failed program was:" >&5 | |
17775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17776 | ||
17777 | ac_cv_type_long_long=no | |
17778 | fi | |
ac1cb8d3 | 17779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17780 | fi |
17781 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17782 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17783 | ||
17784 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17785 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17786 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17788 | else | |
17789 | if test "$ac_cv_type_long_long" = yes; then | |
17790 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17791 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17792 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17793 | # This bug is HP SR number 8606223364. | |
17794 | if test "$cross_compiling" = yes; then | |
17795 | # Depending upon the size, compute the lo and hi bounds. | |
17796 | cat >conftest.$ac_ext <<_ACEOF | |
17797 | /* confdefs.h. */ | |
17798 | _ACEOF | |
17799 | cat confdefs.h >>conftest.$ac_ext | |
17800 | cat >>conftest.$ac_ext <<_ACEOF | |
17801 | /* end confdefs.h. */ | |
17802 | $ac_includes_default | |
17803 | int | |
17804 | main () | |
17805 | { | |
17806 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17807 | test_array [0] = 0 | |
17808 | ||
17809 | ; | |
17810 | return 0; | |
17811 | } | |
17812 | _ACEOF | |
17813 | rm -f conftest.$ac_objext | |
17814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17815 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17816 | ac_status=$? |
ac1cb8d3 VS |
17817 | grep -v '^ *+' conftest.er1 >conftest.err |
17818 | rm -f conftest.er1 | |
17819 | cat conftest.err >&5 | |
a848cd7e SC |
17820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17821 | (exit $ac_status); } && | |
5dcf30a0 RN |
17822 | { ac_try='test -z "$ac_c_werror_flag" |
17823 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17825 | (eval $ac_try) 2>&5 | |
17826 | ac_status=$? | |
17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17828 | (exit $ac_status); }; } && | |
17829 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17831 | (eval $ac_try) 2>&5 | |
17832 | ac_status=$? | |
17833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17834 | (exit $ac_status); }; }; then | |
17835 | ac_lo=0 ac_mid=0 | |
17836 | while :; do | |
17837 | cat >conftest.$ac_ext <<_ACEOF | |
17838 | /* confdefs.h. */ | |
17839 | _ACEOF | |
17840 | cat confdefs.h >>conftest.$ac_ext | |
17841 | cat >>conftest.$ac_ext <<_ACEOF | |
17842 | /* end confdefs.h. */ | |
17843 | $ac_includes_default | |
17844 | int | |
17845 | main () | |
17846 | { | |
17847 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17848 | test_array [0] = 0 | |
17849 | ||
17850 | ; | |
17851 | return 0; | |
17852 | } | |
17853 | _ACEOF | |
17854 | rm -f conftest.$ac_objext | |
17855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17856 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17857 | ac_status=$? |
ac1cb8d3 VS |
17858 | grep -v '^ *+' conftest.er1 >conftest.err |
17859 | rm -f conftest.er1 | |
17860 | cat conftest.err >&5 | |
a848cd7e SC |
17861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17862 | (exit $ac_status); } && | |
5dcf30a0 RN |
17863 | { ac_try='test -z "$ac_c_werror_flag" |
17864 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17866 | (eval $ac_try) 2>&5 | |
17867 | ac_status=$? | |
17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17869 | (exit $ac_status); }; } && | |
17870 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17872 | (eval $ac_try) 2>&5 | |
17873 | ac_status=$? | |
17874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17875 | (exit $ac_status); }; }; then | |
17876 | ac_hi=$ac_mid; break | |
17877 | else | |
17878 | echo "$as_me: failed program was:" >&5 | |
17879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17880 | ||
17881 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17882 | if test $ac_lo -le $ac_mid; then |
17883 | ac_lo= ac_hi= | |
17884 | break | |
17885 | fi | |
17886 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17887 | fi |
ac1cb8d3 | 17888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17889 | done |
17890 | else | |
17891 | echo "$as_me: failed program was:" >&5 | |
17892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17893 | ||
17894 | cat >conftest.$ac_ext <<_ACEOF | |
17895 | /* confdefs.h. */ | |
17896 | _ACEOF | |
17897 | cat confdefs.h >>conftest.$ac_ext | |
17898 | cat >>conftest.$ac_ext <<_ACEOF | |
17899 | /* end confdefs.h. */ | |
17900 | $ac_includes_default | |
17901 | int | |
17902 | main () | |
17903 | { | |
17904 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17905 | test_array [0] = 0 | |
17906 | ||
17907 | ; | |
17908 | return 0; | |
17909 | } | |
17910 | _ACEOF | |
17911 | rm -f conftest.$ac_objext | |
17912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17913 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17914 | ac_status=$? |
ac1cb8d3 VS |
17915 | grep -v '^ *+' conftest.er1 >conftest.err |
17916 | rm -f conftest.er1 | |
17917 | cat conftest.err >&5 | |
a848cd7e SC |
17918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17919 | (exit $ac_status); } && | |
5dcf30a0 RN |
17920 | { ac_try='test -z "$ac_c_werror_flag" |
17921 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17923 | (eval $ac_try) 2>&5 | |
17924 | ac_status=$? | |
17925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17926 | (exit $ac_status); }; } && | |
17927 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17929 | (eval $ac_try) 2>&5 | |
17930 | ac_status=$? | |
17931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17932 | (exit $ac_status); }; }; then | |
17933 | ac_hi=-1 ac_mid=-1 | |
17934 | while :; do | |
17935 | cat >conftest.$ac_ext <<_ACEOF | |
17936 | /* confdefs.h. */ | |
17937 | _ACEOF | |
17938 | cat confdefs.h >>conftest.$ac_ext | |
17939 | cat >>conftest.$ac_ext <<_ACEOF | |
17940 | /* end confdefs.h. */ | |
17941 | $ac_includes_default | |
17942 | int | |
17943 | main () | |
17944 | { | |
17945 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17946 | test_array [0] = 0 | |
17947 | ||
17948 | ; | |
17949 | return 0; | |
17950 | } | |
17951 | _ACEOF | |
17952 | rm -f conftest.$ac_objext | |
17953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17954 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17955 | ac_status=$? |
ac1cb8d3 VS |
17956 | grep -v '^ *+' conftest.er1 >conftest.err |
17957 | rm -f conftest.er1 | |
17958 | cat conftest.err >&5 | |
a848cd7e SC |
17959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17960 | (exit $ac_status); } && | |
5dcf30a0 RN |
17961 | { ac_try='test -z "$ac_c_werror_flag" |
17962 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
17968 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17970 | (eval $ac_try) 2>&5 | |
17971 | ac_status=$? | |
17972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17973 | (exit $ac_status); }; }; then | |
17974 | ac_lo=$ac_mid; break | |
17975 | else | |
17976 | echo "$as_me: failed program was:" >&5 | |
17977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17978 | ||
17979 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17980 | if test $ac_mid -le $ac_hi; then |
17981 | ac_lo= ac_hi= | |
17982 | break | |
17983 | fi | |
17984 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17985 | fi |
ac1cb8d3 | 17986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17987 | done |
17988 | else | |
17989 | echo "$as_me: failed program was:" >&5 | |
17990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17991 | ||
17992 | ac_lo= ac_hi= | |
17993 | fi | |
ac1cb8d3 | 17994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17995 | fi |
ac1cb8d3 | 17996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17997 | # Binary search between lo and hi bounds. |
17998 | while test "x$ac_lo" != "x$ac_hi"; do | |
17999 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18000 | cat >conftest.$ac_ext <<_ACEOF | |
18001 | /* confdefs.h. */ | |
18002 | _ACEOF | |
18003 | cat confdefs.h >>conftest.$ac_ext | |
18004 | cat >>conftest.$ac_ext <<_ACEOF | |
18005 | /* end confdefs.h. */ | |
18006 | $ac_includes_default | |
18007 | int | |
18008 | main () | |
18009 | { | |
18010 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18011 | test_array [0] = 0 | |
18012 | ||
18013 | ; | |
18014 | return 0; | |
18015 | } | |
18016 | _ACEOF | |
18017 | rm -f conftest.$ac_objext | |
18018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18019 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18020 | ac_status=$? |
ac1cb8d3 VS |
18021 | grep -v '^ *+' conftest.er1 >conftest.err |
18022 | rm -f conftest.er1 | |
18023 | cat conftest.err >&5 | |
a848cd7e SC |
18024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18025 | (exit $ac_status); } && | |
5dcf30a0 RN |
18026 | { ac_try='test -z "$ac_c_werror_flag" |
18027 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18029 | (eval $ac_try) 2>&5 | |
18030 | ac_status=$? | |
18031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18032 | (exit $ac_status); }; } && | |
18033 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18035 | (eval $ac_try) 2>&5 | |
18036 | ac_status=$? | |
18037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18038 | (exit $ac_status); }; }; then | |
18039 | ac_hi=$ac_mid | |
18040 | else | |
18041 | echo "$as_me: failed program was:" >&5 | |
18042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18043 | ||
18044 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18045 | fi | |
ac1cb8d3 | 18046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18047 | done |
18048 | case $ac_lo in | |
18049 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18050 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18051 | See \`config.log' for more details." >&5 | |
18052 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18053 | See \`config.log' for more details." >&2;} | |
18054 | { (exit 1); exit 1; }; } ;; | |
18055 | esac | |
18056 | else | |
18057 | if test "$cross_compiling" = yes; then | |
5dcf30a0 RN |
18058 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18059 | See \`config.log' for more details." >&5 | |
18060 | echo "$as_me: error: cannot run test program while cross compiling | |
18061 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18062 | { (exit 1); exit 1; }; } |
18063 | else | |
18064 | cat >conftest.$ac_ext <<_ACEOF | |
18065 | /* confdefs.h. */ | |
18066 | _ACEOF | |
18067 | cat confdefs.h >>conftest.$ac_ext | |
18068 | cat >>conftest.$ac_ext <<_ACEOF | |
18069 | /* end confdefs.h. */ | |
18070 | $ac_includes_default | |
18071 | long longval () { return (long) (sizeof (long long)); } | |
18072 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18073 | #include <stdio.h> | |
18074 | #include <stdlib.h> | |
18075 | int | |
18076 | main () | |
18077 | { | |
18078 | ||
18079 | FILE *f = fopen ("conftest.val", "w"); | |
18080 | if (! f) | |
18081 | exit (1); | |
18082 | if (((long) (sizeof (long long))) < 0) | |
18083 | { | |
18084 | long i = longval (); | |
18085 | if (i != ((long) (sizeof (long long)))) | |
18086 | exit (1); | |
18087 | fprintf (f, "%ld\n", i); | |
18088 | } | |
18089 | else | |
18090 | { | |
18091 | unsigned long i = ulongval (); | |
18092 | if (i != ((long) (sizeof (long long)))) | |
18093 | exit (1); | |
18094 | fprintf (f, "%lu\n", i); | |
18095 | } | |
18096 | exit (ferror (f) || fclose (f) != 0); | |
18097 | ||
18098 | ; | |
18099 | return 0; | |
18100 | } | |
18101 | _ACEOF | |
18102 | rm -f conftest$ac_exeext | |
18103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18104 | (eval $ac_link) 2>&5 | |
18105 | ac_status=$? | |
18106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18107 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18109 | (eval $ac_try) 2>&5 | |
18110 | ac_status=$? | |
18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18112 | (exit $ac_status); }; }; then | |
18113 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18114 | else | |
18115 | echo "$as_me: program exited with status $ac_status" >&5 | |
18116 | echo "$as_me: failed program was:" >&5 | |
18117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18118 | ||
18119 | ( exit $ac_status ) | |
18120 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18121 | See \`config.log' for more details." >&5 | |
18122 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18123 | See \`config.log' for more details." >&2;} | |
18124 | { (exit 1); exit 1; }; } | |
18125 | fi | |
ac1cb8d3 | 18126 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18127 | fi |
18128 | fi | |
18129 | rm -f conftest.val | |
18130 | else | |
18131 | ac_cv_sizeof_long_long=0 | |
18132 | fi | |
18133 | fi | |
18134 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18135 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18136 | cat >>confdefs.h <<_ACEOF | |
18137 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18138 | _ACEOF | |
18139 | ||
18140 | ||
18141 | esac | |
18142 | ||
18143 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18144 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18145 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18147 | else | |
18148 | ||
18149 | if test "$cross_compiling" = yes; then | |
18150 | ||
18151 | case "${host}" in | |
18152 | *-pc-msdosdjgpp ) | |
18153 | wx_cv_sizeof_wchar_t=0 | |
18154 | ;; | |
18155 | * ) | |
18156 | wx_cv_sizeof_wchar_t=4 | |
18157 | ;; | |
18158 | esac | |
18159 | ||
18160 | ||
18161 | else | |
18162 | cat >conftest.$ac_ext <<_ACEOF | |
18163 | /* confdefs.h. */ | |
18164 | _ACEOF | |
18165 | cat confdefs.h >>conftest.$ac_ext | |
18166 | cat >>conftest.$ac_ext <<_ACEOF | |
18167 | /* end confdefs.h. */ | |
18168 | ||
18169 | /* DJGPP only has fake wchar_t: */ | |
18170 | #ifdef __DJGPP__ | |
18171 | # error "fake wchar_t" | |
18172 | #endif | |
18173 | #ifdef HAVE_WCHAR_H | |
18174 | # ifdef __CYGWIN__ | |
18175 | # include <stddef.h> | |
18176 | # endif | |
18177 | # include <wchar.h> | |
18178 | #endif | |
18179 | #ifdef HAVE_STDLIB_H | |
18180 | # include <stdlib.h> | |
18181 | #endif | |
18182 | #include <stdio.h> | |
18183 | int main() | |
18184 | { | |
18185 | FILE *f=fopen("conftestval", "w"); | |
18186 | if (!f) exit(1); | |
18187 | fprintf(f, "%i", sizeof(wchar_t)); | |
18188 | exit(0); | |
18189 | } | |
18190 | ||
18191 | _ACEOF | |
18192 | rm -f conftest$ac_exeext | |
18193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18194 | (eval $ac_link) 2>&5 | |
18195 | ac_status=$? | |
18196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18197 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18199 | (eval $ac_try) 2>&5 | |
18200 | ac_status=$? | |
18201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18202 | (exit $ac_status); }; }; then | |
18203 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18204 | else | |
18205 | echo "$as_me: program exited with status $ac_status" >&5 | |
18206 | echo "$as_me: failed program was:" >&5 | |
18207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18208 | ||
18209 | ( exit $ac_status ) | |
18210 | wx_cv_sizeof_wchar_t=0 | |
18211 | fi | |
ac1cb8d3 | 18212 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18213 | fi |
18214 | ||
18215 | fi | |
18216 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18217 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18218 | ||
18219 | cat >>confdefs.h <<_ACEOF | |
18220 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18221 | _ACEOF | |
18222 | ||
18223 | ||
18224 | # Check whether --enable-largefile or --disable-largefile was given. | |
18225 | if test "${enable_largefile+set}" = set; then | |
18226 | enableval="$enable_largefile" | |
18227 | ||
18228 | fi; | |
18229 | if test "$enable_largefile" != no; then | |
18230 | wx_largefile=no | |
18231 | ||
18232 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18233 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18234 | if test "${ac_cv_sys_file_offset_bits+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 _FILE_OFFSET_BITS 64 | |
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); } && | |
5dcf30a0 RN |
18266 | { ac_try='test -z "$ac_c_werror_flag" |
18267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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_file_offset_bits=64 | |
18280 | else | |
18281 | echo "$as_me: failed program was:" >&5 | |
18282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18283 | ||
18284 | ac_cv_sys_file_offset_bits=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_file_offset_bits" >&5 | |
18291 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18292 | ||
18293 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18294 | wx_largefile=yes | |
18295 | cat >>confdefs.h <<_ACEOF | |
18296 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18297 | _ACEOF | |
18298 | ||
18299 | fi | |
18300 | ||
18301 | if test "x$wx_largefile" != "xyes"; then | |
18302 | ||
18303 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18304 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18305 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18307 | else | |
18308 | ||
18309 | cat >conftest.$ac_ext <<_ACEOF | |
18310 | /* confdefs.h. */ | |
18311 | _ACEOF | |
18312 | cat confdefs.h >>conftest.$ac_ext | |
18313 | cat >>conftest.$ac_ext <<_ACEOF | |
18314 | /* end confdefs.h. */ | |
18315 | #define _LARGE_FILES 1 | |
18316 | #include <sys/types.h> | |
18317 | int | |
18318 | main () | |
18319 | { | |
18320 | typedef struct { | |
18321 | unsigned int field: sizeof(off_t) == 8; | |
18322 | } wxlf; | |
18323 | ||
18324 | ; | |
18325 | return 0; | |
18326 | } | |
18327 | _ACEOF | |
18328 | rm -f conftest.$ac_objext | |
18329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18330 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18331 | ac_status=$? |
ac1cb8d3 VS |
18332 | grep -v '^ *+' conftest.er1 >conftest.err |
18333 | rm -f conftest.er1 | |
18334 | cat conftest.err >&5 | |
a848cd7e SC |
18335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18336 | (exit $ac_status); } && | |
5dcf30a0 RN |
18337 | { ac_try='test -z "$ac_c_werror_flag" |
18338 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18340 | (eval $ac_try) 2>&5 | |
18341 | ac_status=$? | |
18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18343 | (exit $ac_status); }; } && | |
18344 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18346 | (eval $ac_try) 2>&5 | |
18347 | ac_status=$? | |
18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18349 | (exit $ac_status); }; }; then | |
18350 | ac_cv_sys_large_files=1 | |
18351 | else | |
18352 | echo "$as_me: failed program was:" >&5 | |
18353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18354 | ||
18355 | ac_cv_sys_large_files=no | |
18356 | fi | |
ac1cb8d3 | 18357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18358 | |
18359 | ||
18360 | fi | |
18361 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18362 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18363 | ||
18364 | if test "$ac_cv_sys_large_files" != no; then | |
18365 | wx_largefile=yes | |
18366 | cat >>confdefs.h <<_ACEOF | |
18367 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18368 | _ACEOF | |
18369 | ||
18370 | fi | |
18371 | ||
18372 | fi | |
18373 | ||
18374 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18375 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18376 | if test "x$wx_largefile" = "xyes"; then | |
18377 | cat >>confdefs.h <<\_ACEOF | |
18378 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18379 | _ACEOF | |
18380 | ||
18381 | fi | |
18382 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18383 | echo "${ECHO_T}$wx_largefile" >&6 | |
18384 | fi | |
18385 | ||
18386 | ||
18387 | if test "x$wx_largefile" = "xyes"; then | |
18388 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18389 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18390 | else | |
18391 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18392 | fi | |
18393 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18394 | fi | |
18395 | ||
18396 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18397 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18398 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18400 | else | |
18401 | ac_cv_c_bigendian=unknown | |
18402 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18403 | cat >conftest.$ac_ext <<_ACEOF | |
18404 | /* confdefs.h. */ | |
18405 | _ACEOF | |
18406 | cat confdefs.h >>conftest.$ac_ext | |
18407 | cat >>conftest.$ac_ext <<_ACEOF | |
18408 | /* end confdefs.h. */ | |
18409 | #include <sys/types.h> | |
18410 | #include <sys/param.h> | |
18411 | int | |
18412 | main () | |
18413 | { | |
18414 | ||
18415 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18416 | bogus endian macros | |
18417 | #endif | |
18418 | ; | |
18419 | return 0; | |
18420 | } | |
18421 | _ACEOF | |
18422 | rm -f conftest.$ac_objext | |
18423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18425 | ac_status=$? |
ac1cb8d3 VS |
18426 | grep -v '^ *+' conftest.er1 >conftest.err |
18427 | rm -f conftest.er1 | |
18428 | cat conftest.err >&5 | |
a848cd7e SC |
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18430 | (exit $ac_status); } && | |
5dcf30a0 RN |
18431 | { ac_try='test -z "$ac_c_werror_flag" |
18432 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18434 | (eval $ac_try) 2>&5 | |
18435 | ac_status=$? | |
18436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18437 | (exit $ac_status); }; } && | |
18438 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18440 | (eval $ac_try) 2>&5 | |
18441 | ac_status=$? | |
18442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18443 | (exit $ac_status); }; }; then | |
18444 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18445 | cat >conftest.$ac_ext <<_ACEOF | |
18446 | /* confdefs.h. */ | |
18447 | _ACEOF | |
18448 | cat confdefs.h >>conftest.$ac_ext | |
18449 | cat >>conftest.$ac_ext <<_ACEOF | |
18450 | /* end confdefs.h. */ | |
18451 | #include <sys/types.h> | |
18452 | #include <sys/param.h> | |
18453 | int | |
18454 | main () | |
18455 | { | |
18456 | ||
18457 | #if BYTE_ORDER != BIG_ENDIAN | |
18458 | not big endian | |
18459 | #endif | |
18460 | ; | |
18461 | return 0; | |
18462 | } | |
18463 | _ACEOF | |
18464 | rm -f conftest.$ac_objext | |
18465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18466 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18467 | ac_status=$? |
ac1cb8d3 VS |
18468 | grep -v '^ *+' conftest.er1 >conftest.err |
18469 | rm -f conftest.er1 | |
18470 | cat conftest.err >&5 | |
a848cd7e SC |
18471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18472 | (exit $ac_status); } && | |
5dcf30a0 RN |
18473 | { ac_try='test -z "$ac_c_werror_flag" |
18474 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18476 | (eval $ac_try) 2>&5 | |
18477 | ac_status=$? | |
18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18479 | (exit $ac_status); }; } && | |
18480 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18482 | (eval $ac_try) 2>&5 | |
18483 | ac_status=$? | |
18484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18485 | (exit $ac_status); }; }; then | |
18486 | ac_cv_c_bigendian=yes | |
18487 | else | |
18488 | echo "$as_me: failed program was:" >&5 | |
18489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18490 | ||
18491 | ac_cv_c_bigendian=no | |
18492 | fi | |
ac1cb8d3 | 18493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18494 | else |
18495 | echo "$as_me: failed program was:" >&5 | |
18496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18497 | ||
18498 | fi | |
ac1cb8d3 | 18499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18500 | if test $ac_cv_c_bigendian = unknown; then |
18501 | if test "$cross_compiling" = yes; then | |
18502 | ac_cv_c_bigendian=unknown | |
18503 | else | |
18504 | cat >conftest.$ac_ext <<_ACEOF | |
18505 | /* confdefs.h. */ | |
18506 | _ACEOF | |
18507 | cat confdefs.h >>conftest.$ac_ext | |
18508 | cat >>conftest.$ac_ext <<_ACEOF | |
18509 | /* end confdefs.h. */ | |
18510 | main () { | |
18511 | /* Are we little or big endian? From Harbison&Steele. */ | |
18512 | union | |
18513 | { | |
18514 | long l; | |
18515 | char c[sizeof (long)]; | |
18516 | } u; | |
18517 | u.l = 1; | |
18518 | exit (u.c[sizeof (long) - 1] == 1); | |
18519 | } | |
18520 | _ACEOF | |
18521 | rm -f conftest$ac_exeext | |
18522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18523 | (eval $ac_link) 2>&5 | |
18524 | ac_status=$? | |
18525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18526 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18528 | (eval $ac_try) 2>&5 | |
18529 | ac_status=$? | |
18530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18531 | (exit $ac_status); }; }; then | |
18532 | ac_cv_c_bigendian=no | |
18533 | else | |
18534 | echo "$as_me: program exited with status $ac_status" >&5 | |
18535 | echo "$as_me: failed program was:" >&5 | |
18536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18537 | ||
18538 | ( exit $ac_status ) | |
18539 | ac_cv_c_bigendian=yes | |
18540 | fi | |
ac1cb8d3 | 18541 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18542 | fi |
18543 | fi | |
18544 | fi | |
18545 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18546 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18547 | if test $ac_cv_c_bigendian = unknown; then | |
18548 | { 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 | |
18549 | 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;} | |
18550 | fi | |
18551 | if test $ac_cv_c_bigendian = yes; then | |
18552 | cat >>confdefs.h <<\_ACEOF | |
18553 | #define WORDS_BIGENDIAN 1 | |
18554 | _ACEOF | |
18555 | ||
18556 | fi | |
18557 | ||
18558 | ||
18559 | ac_ext=cc | |
18560 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18561 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18562 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18563 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18564 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18565 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18566 | if test -z "$CXXCPP"; then | |
18567 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18569 | else | |
18570 | # Double quotes because CXXCPP needs to be expanded | |
18571 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18572 | do | |
18573 | ac_preproc_ok=false | |
18574 | for ac_cxx_preproc_warn_flag in '' yes | |
18575 | do | |
18576 | # Use a header file that comes with gcc, so configuring glibc | |
18577 | # with a fresh cross-compiler works. | |
18578 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18579 | # <limits.h> exists even on freestanding compilers. | |
18580 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18581 | # not just through cpp. "Syntax error" is here to catch this case. | |
18582 | cat >conftest.$ac_ext <<_ACEOF | |
18583 | /* confdefs.h. */ | |
18584 | _ACEOF | |
18585 | cat confdefs.h >>conftest.$ac_ext | |
18586 | cat >>conftest.$ac_ext <<_ACEOF | |
18587 | /* end confdefs.h. */ | |
18588 | #ifdef __STDC__ | |
18589 | # include <limits.h> | |
18590 | #else | |
18591 | # include <assert.h> | |
18592 | #endif | |
ac1cb8d3 | 18593 | Syntax error |
a848cd7e SC |
18594 | _ACEOF |
18595 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18596 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18597 | ac_status=$? | |
18598 | grep -v '^ *+' conftest.er1 >conftest.err | |
18599 | rm -f conftest.er1 | |
18600 | cat conftest.err >&5 | |
18601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18602 | (exit $ac_status); } >/dev/null; then | |
18603 | if test -s conftest.err; then | |
18604 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18605 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18606 | else |
18607 | ac_cpp_err= | |
18608 | fi | |
18609 | else | |
18610 | ac_cpp_err=yes | |
18611 | fi | |
18612 | if test -z "$ac_cpp_err"; then | |
18613 | : | |
18614 | else | |
18615 | echo "$as_me: failed program was:" >&5 | |
18616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18617 | ||
18618 | # Broken: fails on valid input. | |
18619 | continue | |
18620 | fi | |
18621 | rm -f conftest.err conftest.$ac_ext | |
18622 | ||
18623 | # OK, works on sane cases. Now check whether non-existent headers | |
18624 | # can be detected and how. | |
18625 | cat >conftest.$ac_ext <<_ACEOF | |
18626 | /* confdefs.h. */ | |
18627 | _ACEOF | |
18628 | cat confdefs.h >>conftest.$ac_ext | |
18629 | cat >>conftest.$ac_ext <<_ACEOF | |
18630 | /* end confdefs.h. */ | |
18631 | #include <ac_nonexistent.h> | |
18632 | _ACEOF | |
18633 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18634 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18635 | ac_status=$? | |
18636 | grep -v '^ *+' conftest.er1 >conftest.err | |
18637 | rm -f conftest.er1 | |
18638 | cat conftest.err >&5 | |
18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18640 | (exit $ac_status); } >/dev/null; then | |
18641 | if test -s conftest.err; then | |
18642 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18643 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18644 | else |
18645 | ac_cpp_err= | |
18646 | fi | |
18647 | else | |
18648 | ac_cpp_err=yes | |
18649 | fi | |
18650 | if test -z "$ac_cpp_err"; then | |
18651 | # Broken: success on invalid input. | |
18652 | continue | |
18653 | else | |
18654 | echo "$as_me: failed program was:" >&5 | |
18655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18656 | ||
18657 | # Passes both tests. | |
18658 | ac_preproc_ok=: | |
18659 | break | |
18660 | fi | |
18661 | rm -f conftest.err conftest.$ac_ext | |
18662 | ||
18663 | done | |
18664 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18665 | rm -f conftest.err conftest.$ac_ext | |
18666 | if $ac_preproc_ok; then | |
18667 | break | |
18668 | fi | |
18669 | ||
18670 | done | |
18671 | ac_cv_prog_CXXCPP=$CXXCPP | |
18672 | ||
18673 | fi | |
18674 | CXXCPP=$ac_cv_prog_CXXCPP | |
18675 | else | |
18676 | ac_cv_prog_CXXCPP=$CXXCPP | |
18677 | fi | |
18678 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18679 | echo "${ECHO_T}$CXXCPP" >&6 | |
18680 | ac_preproc_ok=false | |
18681 | for ac_cxx_preproc_warn_flag in '' yes | |
18682 | do | |
18683 | # Use a header file that comes with gcc, so configuring glibc | |
18684 | # with a fresh cross-compiler works. | |
18685 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18686 | # <limits.h> exists even on freestanding compilers. | |
18687 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18688 | # not just through cpp. "Syntax error" is here to catch this case. | |
18689 | cat >conftest.$ac_ext <<_ACEOF | |
18690 | /* confdefs.h. */ | |
18691 | _ACEOF | |
18692 | cat confdefs.h >>conftest.$ac_ext | |
18693 | cat >>conftest.$ac_ext <<_ACEOF | |
18694 | /* end confdefs.h. */ | |
18695 | #ifdef __STDC__ | |
18696 | # include <limits.h> | |
18697 | #else | |
18698 | # include <assert.h> | |
18699 | #endif | |
ac1cb8d3 | 18700 | Syntax error |
a848cd7e SC |
18701 | _ACEOF |
18702 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18703 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18704 | ac_status=$? | |
18705 | grep -v '^ *+' conftest.er1 >conftest.err | |
18706 | rm -f conftest.er1 | |
18707 | cat conftest.err >&5 | |
18708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18709 | (exit $ac_status); } >/dev/null; then | |
18710 | if test -s conftest.err; then | |
18711 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18712 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18713 | else |
18714 | ac_cpp_err= | |
18715 | fi | |
18716 | else | |
18717 | ac_cpp_err=yes | |
18718 | fi | |
18719 | if test -z "$ac_cpp_err"; then | |
18720 | : | |
18721 | else | |
18722 | echo "$as_me: failed program was:" >&5 | |
18723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18724 | ||
18725 | # Broken: fails on valid input. | |
18726 | continue | |
18727 | fi | |
18728 | rm -f conftest.err conftest.$ac_ext | |
18729 | ||
18730 | # OK, works on sane cases. Now check whether non-existent headers | |
18731 | # can be detected and how. | |
18732 | cat >conftest.$ac_ext <<_ACEOF | |
18733 | /* confdefs.h. */ | |
18734 | _ACEOF | |
18735 | cat confdefs.h >>conftest.$ac_ext | |
18736 | cat >>conftest.$ac_ext <<_ACEOF | |
18737 | /* end confdefs.h. */ | |
18738 | #include <ac_nonexistent.h> | |
18739 | _ACEOF | |
18740 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18741 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18742 | ac_status=$? | |
18743 | grep -v '^ *+' conftest.er1 >conftest.err | |
18744 | rm -f conftest.er1 | |
18745 | cat conftest.err >&5 | |
18746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18747 | (exit $ac_status); } >/dev/null; then | |
18748 | if test -s conftest.err; then | |
18749 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18750 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18751 | else |
18752 | ac_cpp_err= | |
18753 | fi | |
18754 | else | |
18755 | ac_cpp_err=yes | |
18756 | fi | |
18757 | if test -z "$ac_cpp_err"; then | |
18758 | # Broken: success on invalid input. | |
18759 | continue | |
18760 | else | |
18761 | echo "$as_me: failed program was:" >&5 | |
18762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18763 | ||
18764 | # Passes both tests. | |
18765 | ac_preproc_ok=: | |
18766 | break | |
18767 | fi | |
18768 | rm -f conftest.err conftest.$ac_ext | |
18769 | ||
18770 | done | |
18771 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18772 | rm -f conftest.err conftest.$ac_ext | |
18773 | if $ac_preproc_ok; then | |
18774 | : | |
18775 | else | |
18776 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18777 | See \`config.log' for more details." >&5 | |
18778 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18779 | See \`config.log' for more details." >&2;} | |
18780 | { (exit 1); exit 1; }; } | |
18781 | fi | |
18782 | ||
18783 | ac_ext=cc | |
18784 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18785 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18786 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18787 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18788 | ||
18789 | ||
18790 | ||
18791 | ||
18792 | ||
18793 | ac_ext=cc | |
18794 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18795 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18796 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18797 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18798 | ||
18799 | ||
18800 | ||
18801 | for ac_header in iostream | |
18802 | do | |
18803 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18809 | fi | |
18810 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18811 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18812 | else | |
18813 | # Is the header compilable? | |
18814 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18815 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18816 | cat >conftest.$ac_ext <<_ACEOF | |
18817 | /* confdefs.h. */ | |
18818 | _ACEOF | |
18819 | cat confdefs.h >>conftest.$ac_ext | |
18820 | cat >>conftest.$ac_ext <<_ACEOF | |
18821 | /* end confdefs.h. */ | |
18822 | $ac_includes_default | |
18823 | #include <$ac_header> | |
18824 | _ACEOF | |
18825 | rm -f conftest.$ac_objext | |
18826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18827 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18828 | ac_status=$? |
ac1cb8d3 VS |
18829 | grep -v '^ *+' conftest.er1 >conftest.err |
18830 | rm -f conftest.er1 | |
18831 | cat conftest.err >&5 | |
a848cd7e SC |
18832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18833 | (exit $ac_status); } && | |
5dcf30a0 RN |
18834 | { ac_try='test -z "$ac_cxx_werror_flag" |
18835 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18837 | (eval $ac_try) 2>&5 | |
18838 | ac_status=$? | |
18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18840 | (exit $ac_status); }; } && | |
18841 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18843 | (eval $ac_try) 2>&5 | |
18844 | ac_status=$? | |
18845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18846 | (exit $ac_status); }; }; then | |
18847 | ac_header_compiler=yes | |
18848 | else | |
18849 | echo "$as_me: failed program was:" >&5 | |
18850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18851 | ||
18852 | ac_header_compiler=no | |
18853 | fi | |
ac1cb8d3 | 18854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18855 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18856 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18857 | ||
18858 | # Is the header present? | |
18859 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18860 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18861 | cat >conftest.$ac_ext <<_ACEOF | |
18862 | /* confdefs.h. */ | |
18863 | _ACEOF | |
18864 | cat confdefs.h >>conftest.$ac_ext | |
18865 | cat >>conftest.$ac_ext <<_ACEOF | |
18866 | /* end confdefs.h. */ | |
18867 | #include <$ac_header> | |
18868 | _ACEOF | |
18869 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18871 | ac_status=$? | |
18872 | grep -v '^ *+' conftest.er1 >conftest.err | |
18873 | rm -f conftest.er1 | |
18874 | cat conftest.err >&5 | |
18875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18876 | (exit $ac_status); } >/dev/null; then | |
18877 | if test -s conftest.err; then | |
18878 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18879 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18880 | else |
18881 | ac_cpp_err= | |
18882 | fi | |
18883 | else | |
18884 | ac_cpp_err=yes | |
18885 | fi | |
18886 | if test -z "$ac_cpp_err"; then | |
18887 | ac_header_preproc=yes | |
18888 | else | |
18889 | echo "$as_me: failed program was:" >&5 | |
18890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18891 | ||
18892 | ac_header_preproc=no | |
18893 | fi | |
18894 | rm -f conftest.err conftest.$ac_ext | |
18895 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18896 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18897 | ||
18898 | # So? What about this header? | |
ac1cb8d3 VS |
18899 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18900 | yes:no: ) | |
a848cd7e SC |
18901 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18902 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
18903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18904 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18905 | ac_header_preproc=yes | |
a848cd7e | 18906 | ;; |
ac1cb8d3 | 18907 | no:yes:* ) |
a848cd7e SC |
18908 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18909 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
18910 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18911 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18912 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18913 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18914 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18915 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
18916 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18917 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
18918 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18919 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
18920 | ( |
18921 | cat <<\_ASBOX | |
ac1cb8d3 VS |
18922 | ## ----------------------------------------- ## |
18923 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
18924 | ## ----------------------------------------- ## | |
a848cd7e SC |
18925 | _ASBOX |
18926 | ) | | |
18927 | sed "s/^/$as_me: WARNING: /" >&2 | |
18928 | ;; | |
18929 | esac | |
18930 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18934 | else | |
ac1cb8d3 | 18935 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
18936 | fi |
18937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18938 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18939 | ||
18940 | fi | |
18941 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18942 | cat >>confdefs.h <<_ACEOF | |
18943 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18944 | _ACEOF | |
18945 | ||
18946 | fi | |
18947 | ||
18948 | done | |
18949 | ||
18950 | ||
18951 | if test "$ac_cv_header_iostream" = "yes" ; then | |
18952 | : | |
18953 | else | |
18954 | cat >>confdefs.h <<\_ACEOF | |
18955 | #define wxUSE_IOSTREAMH 1 | |
18956 | _ACEOF | |
18957 | ||
18958 | fi | |
18959 | ||
18960 | ac_ext=c | |
18961 | ac_cpp='$CPP $CPPFLAGS' | |
18962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18965 | ||
18966 | ||
18967 | ||
18968 | ||
18969 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
18970 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18971 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18973 | else | |
18974 | ||
18975 | ||
18976 | ||
18977 | ac_ext=cc | |
18978 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18979 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18980 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18981 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18982 | ||
18983 | ||
18984 | cat >conftest.$ac_ext <<_ACEOF | |
18985 | /* confdefs.h. */ | |
18986 | _ACEOF | |
18987 | cat confdefs.h >>conftest.$ac_ext | |
18988 | cat >>conftest.$ac_ext <<_ACEOF | |
18989 | /* end confdefs.h. */ | |
18990 | ||
18991 | ||
18992 | int | |
18993 | main () | |
18994 | { | |
18995 | ||
18996 | bool b = true; | |
18997 | ||
18998 | return 0; | |
18999 | ||
19000 | ; | |
19001 | return 0; | |
19002 | } | |
19003 | _ACEOF | |
19004 | rm -f conftest.$ac_objext | |
19005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19007 | ac_status=$? |
ac1cb8d3 VS |
19008 | grep -v '^ *+' conftest.er1 >conftest.err |
19009 | rm -f conftest.er1 | |
19010 | cat conftest.err >&5 | |
a848cd7e SC |
19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19012 | (exit $ac_status); } && | |
5dcf30a0 RN |
19013 | { ac_try='test -z "$ac_cxx_werror_flag" |
19014 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19016 | (eval $ac_try) 2>&5 | |
19017 | ac_status=$? | |
19018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19019 | (exit $ac_status); }; } && | |
19020 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19022 | (eval $ac_try) 2>&5 | |
19023 | ac_status=$? | |
19024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19025 | (exit $ac_status); }; }; then | |
19026 | ||
19027 | wx_cv_cpp_bool=yes | |
19028 | ||
19029 | else | |
19030 | echo "$as_me: failed program was:" >&5 | |
19031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19032 | ||
19033 | ||
19034 | wx_cv_cpp_bool=no | |
19035 | ||
19036 | ||
19037 | fi | |
ac1cb8d3 | 19038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19039 | |
19040 | ac_ext=c | |
19041 | ac_cpp='$CPP $CPPFLAGS' | |
19042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19045 | ||
19046 | ||
19047 | fi | |
19048 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19049 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19050 | ||
19051 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19052 | cat >>confdefs.h <<\_ACEOF | |
19053 | #define HAVE_BOOL 1 | |
19054 | _ACEOF | |
19055 | ||
19056 | fi | |
19057 | ||
19058 | ||
19059 | ||
19060 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19061 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19062 | if test "${wx_cv_explicit+set}" = set; then | |
19063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19064 | else | |
19065 | ||
19066 | ||
19067 | ||
19068 | ac_ext=cc | |
19069 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19073 | ||
19074 | ||
19075 | cat >conftest.$ac_ext <<_ACEOF | |
19076 | /* confdefs.h. */ | |
19077 | _ACEOF | |
19078 | cat confdefs.h >>conftest.$ac_ext | |
19079 | cat >>conftest.$ac_ext <<_ACEOF | |
19080 | /* end confdefs.h. */ | |
19081 | ||
19082 | class Foo { public: explicit Foo(int) {} }; | |
19083 | ||
19084 | int | |
19085 | main () | |
19086 | { | |
19087 | ||
19088 | return 0; | |
19089 | ||
19090 | ; | |
19091 | return 0; | |
19092 | } | |
19093 | _ACEOF | |
19094 | rm -f conftest.$ac_objext | |
19095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19096 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19097 | ac_status=$? |
ac1cb8d3 VS |
19098 | grep -v '^ *+' conftest.er1 >conftest.err |
19099 | rm -f conftest.er1 | |
19100 | cat conftest.err >&5 | |
a848cd7e SC |
19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19102 | (exit $ac_status); } && | |
5dcf30a0 RN |
19103 | { ac_try='test -z "$ac_cxx_werror_flag" |
19104 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19106 | (eval $ac_try) 2>&5 | |
19107 | ac_status=$? | |
19108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19109 | (exit $ac_status); }; } && | |
19110 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19112 | (eval $ac_try) 2>&5 | |
19113 | ac_status=$? | |
19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19115 | (exit $ac_status); }; }; then | |
19116 | ||
19117 | cat >conftest.$ac_ext <<_ACEOF | |
19118 | /* confdefs.h. */ | |
19119 | _ACEOF | |
19120 | cat confdefs.h >>conftest.$ac_ext | |
19121 | cat >>conftest.$ac_ext <<_ACEOF | |
19122 | /* end confdefs.h. */ | |
19123 | ||
19124 | class Foo { public: explicit Foo(int) {} }; | |
19125 | static void TakeFoo(const Foo& foo) { } | |
19126 | ||
19127 | int | |
19128 | main () | |
19129 | { | |
19130 | ||
19131 | TakeFoo(17); | |
19132 | return 0; | |
19133 | ||
19134 | ; | |
19135 | return 0; | |
19136 | } | |
19137 | _ACEOF | |
19138 | rm -f conftest.$ac_objext | |
19139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19140 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19141 | ac_status=$? |
ac1cb8d3 VS |
19142 | grep -v '^ *+' conftest.er1 >conftest.err |
19143 | rm -f conftest.er1 | |
19144 | cat conftest.err >&5 | |
a848cd7e SC |
19145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19146 | (exit $ac_status); } && | |
5dcf30a0 RN |
19147 | { ac_try='test -z "$ac_cxx_werror_flag" |
19148 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19150 | (eval $ac_try) 2>&5 | |
19151 | ac_status=$? | |
19152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19153 | (exit $ac_status); }; } && | |
19154 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19156 | (eval $ac_try) 2>&5 | |
19157 | ac_status=$? | |
19158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19159 | (exit $ac_status); }; }; then | |
19160 | wx_cv_explicit=no | |
19161 | else | |
19162 | echo "$as_me: failed program was:" >&5 | |
19163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19164 | ||
19165 | wx_cv_explicit=yes | |
19166 | ||
19167 | fi | |
ac1cb8d3 | 19168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19169 | |
19170 | else | |
19171 | echo "$as_me: failed program was:" >&5 | |
19172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19173 | ||
19174 | wx_cv_explicit=no | |
19175 | ||
19176 | fi | |
ac1cb8d3 | 19177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19178 | |
19179 | ac_ext=c | |
19180 | ac_cpp='$CPP $CPPFLAGS' | |
19181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19184 | ||
19185 | ||
19186 | fi | |
19187 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19188 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19189 | ||
19190 | if test "$wx_cv_explicit" = "yes"; then | |
19191 | cat >>confdefs.h <<\_ACEOF | |
19192 | #define HAVE_EXPLICIT 1 | |
19193 | _ACEOF | |
19194 | ||
19195 | fi | |
19196 | ||
19197 | ||
19198 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19199 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19200 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19202 | else | |
19203 | ||
19204 | ||
19205 | ac_ext=cc | |
19206 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19207 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19208 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19209 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19210 | ||
19211 | cat >conftest.$ac_ext <<_ACEOF | |
19212 | /* confdefs.h. */ | |
19213 | _ACEOF | |
19214 | cat confdefs.h >>conftest.$ac_ext | |
19215 | cat >>conftest.$ac_ext <<_ACEOF | |
19216 | /* end confdefs.h. */ | |
19217 | ||
19218 | int | |
19219 | main () | |
19220 | { | |
19221 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19222 | ; | |
19223 | return 0; | |
19224 | } | |
19225 | _ACEOF | |
19226 | rm -f conftest.$ac_objext | |
19227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19228 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19229 | ac_status=$? |
ac1cb8d3 VS |
19230 | grep -v '^ *+' conftest.er1 >conftest.err |
19231 | rm -f conftest.er1 | |
19232 | cat conftest.err >&5 | |
a848cd7e SC |
19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19234 | (exit $ac_status); } && | |
5dcf30a0 RN |
19235 | { ac_try='test -z "$ac_cxx_werror_flag" |
19236 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19238 | (eval $ac_try) 2>&5 | |
19239 | ac_status=$? | |
19240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19241 | (exit $ac_status); }; } && | |
19242 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19244 | (eval $ac_try) 2>&5 | |
19245 | ac_status=$? | |
19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19247 | (exit $ac_status); }; }; then | |
19248 | ac_cv_cxx_const_cast=yes | |
19249 | else | |
19250 | echo "$as_me: failed program was:" >&5 | |
19251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19252 | ||
19253 | ac_cv_cxx_const_cast=no | |
19254 | fi | |
ac1cb8d3 | 19255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19256 | ac_ext=c |
19257 | ac_cpp='$CPP $CPPFLAGS' | |
19258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19261 | ||
19262 | ||
19263 | fi | |
19264 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19265 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19266 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19267 | ||
19268 | cat >>confdefs.h <<\_ACEOF | |
19269 | #define HAVE_CONST_CAST | |
19270 | _ACEOF | |
19271 | ||
19272 | fi | |
19273 | ||
19274 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 | |
19275 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19276 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19278 | else | |
19279 | ||
19280 | ||
19281 | ac_ext=cc | |
19282 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19283 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19284 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19285 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19286 | ||
19287 | cat >conftest.$ac_ext <<_ACEOF | |
19288 | /* confdefs.h. */ | |
19289 | _ACEOF | |
19290 | cat confdefs.h >>conftest.$ac_ext | |
19291 | cat >>conftest.$ac_ext <<_ACEOF | |
19292 | /* end confdefs.h. */ | |
19293 | #include <typeinfo> | |
19294 | class Base { public : Base () {} virtual void f () = 0; }; | |
19295 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19296 | int g (Derived&) { return 0; } | |
19297 | int | |
19298 | main () | |
19299 | { | |
19300 | ||
19301 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19302 | ; | |
19303 | return 0; | |
19304 | } | |
19305 | _ACEOF | |
19306 | rm -f conftest.$ac_objext | |
19307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19308 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19309 | ac_status=$? |
ac1cb8d3 VS |
19310 | grep -v '^ *+' conftest.er1 >conftest.err |
19311 | rm -f conftest.er1 | |
19312 | cat conftest.err >&5 | |
a848cd7e SC |
19313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19314 | (exit $ac_status); } && | |
5dcf30a0 RN |
19315 | { ac_try='test -z "$ac_cxx_werror_flag" |
19316 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19318 | (eval $ac_try) 2>&5 | |
19319 | ac_status=$? | |
19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19321 | (exit $ac_status); }; } && | |
19322 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19324 | (eval $ac_try) 2>&5 | |
19325 | ac_status=$? | |
19326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19327 | (exit $ac_status); }; }; then | |
19328 | ac_cv_cxx_static_cast=yes | |
19329 | else | |
19330 | echo "$as_me: failed program was:" >&5 | |
19331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19332 | ||
19333 | ac_cv_cxx_static_cast=no | |
19334 | fi | |
ac1cb8d3 | 19335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19336 | ac_ext=c |
19337 | ac_cpp='$CPP $CPPFLAGS' | |
19338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19341 | ||
19342 | ||
19343 | fi | |
19344 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19345 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19346 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19347 | ||
19348 | cat >>confdefs.h <<\_ACEOF | |
19349 | #define HAVE_STATIC_CAST | |
19350 | _ACEOF | |
19351 | ||
19352 | fi | |
19353 | ||
19354 | ||
19355 | if test "$wxUSE_STL" = "yes"; then | |
19356 | ac_ext=cc | |
19357 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19358 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19359 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19360 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19361 | ||
19362 | ||
19363 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19364 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19365 | cat >conftest.$ac_ext <<_ACEOF | |
19366 | /* confdefs.h. */ | |
19367 | _ACEOF | |
19368 | cat confdefs.h >>conftest.$ac_ext | |
19369 | cat >>conftest.$ac_ext <<_ACEOF | |
19370 | /* end confdefs.h. */ | |
19371 | #include <string> | |
19372 | #include <functional> | |
19373 | #include <algorithm> | |
19374 | #include <vector> | |
19375 | #include <list> | |
19376 | int | |
19377 | main () | |
19378 | { | |
19379 | std::vector<int> moo; | |
19380 | std::list<int> foo; | |
19381 | std::vector<int>::iterator it = | |
19382 | std::find_if(moo.begin(), moo.end(), | |
19383 | std::bind2nd(std::less<int>(), 3)); | |
19384 | ; | |
19385 | return 0; | |
19386 | } | |
19387 | _ACEOF | |
19388 | rm -f conftest.$ac_objext | |
19389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19391 | ac_status=$? |
ac1cb8d3 VS |
19392 | grep -v '^ *+' conftest.er1 >conftest.err |
19393 | rm -f conftest.er1 | |
19394 | cat conftest.err >&5 | |
a848cd7e SC |
19395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19396 | (exit $ac_status); } && | |
5dcf30a0 RN |
19397 | { ac_try='test -z "$ac_cxx_werror_flag" |
19398 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19400 | (eval $ac_try) 2>&5 | |
19401 | ac_status=$? | |
19402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19403 | (exit $ac_status); }; } && | |
19404 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19406 | (eval $ac_try) 2>&5 | |
19407 | ac_status=$? | |
19408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19409 | (exit $ac_status); }; }; then | |
19410 | echo "$as_me:$LINENO: result: yes" >&5 | |
19411 | echo "${ECHO_T}yes" >&6 | |
19412 | else | |
19413 | echo "$as_me: failed program was:" >&5 | |
19414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19415 | ||
19416 | echo "$as_me:$LINENO: result: no" >&5 | |
19417 | echo "${ECHO_T}no" >&6 | |
19418 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19419 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19420 | { (exit 1); exit 1; }; } | |
19421 | fi | |
ac1cb8d3 | 19422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19423 | |
19424 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19425 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19426 | cat >conftest.$ac_ext <<_ACEOF | |
19427 | /* confdefs.h. */ | |
19428 | _ACEOF | |
19429 | cat confdefs.h >>conftest.$ac_ext | |
19430 | cat >>conftest.$ac_ext <<_ACEOF | |
19431 | /* end confdefs.h. */ | |
19432 | #include <string> | |
19433 | int | |
19434 | main () | |
19435 | { | |
19436 | std::wstring foo; | |
19437 | ; | |
19438 | return 0; | |
19439 | } | |
19440 | _ACEOF | |
19441 | rm -f conftest.$ac_objext | |
19442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19443 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19444 | ac_status=$? |
ac1cb8d3 VS |
19445 | grep -v '^ *+' conftest.er1 >conftest.err |
19446 | rm -f conftest.er1 | |
19447 | cat conftest.err >&5 | |
a848cd7e SC |
19448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19449 | (exit $ac_status); } && | |
5dcf30a0 RN |
19450 | { ac_try='test -z "$ac_cxx_werror_flag" |
19451 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19453 | (eval $ac_try) 2>&5 | |
19454 | ac_status=$? | |
19455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19456 | (exit $ac_status); }; } && | |
19457 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19459 | (eval $ac_try) 2>&5 | |
19460 | ac_status=$? | |
19461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19462 | (exit $ac_status); }; }; then | |
19463 | echo "$as_me:$LINENO: result: yes" >&5 | |
19464 | echo "${ECHO_T}yes" >&6 | |
19465 | cat >>confdefs.h <<\_ACEOF | |
19466 | #define HAVE_STD_WSTRING 1 | |
19467 | _ACEOF | |
19468 | ||
19469 | else | |
19470 | echo "$as_me: failed program was:" >&5 | |
19471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19472 | ||
19473 | echo "$as_me:$LINENO: result: no" >&5 | |
19474 | echo "${ECHO_T}no" >&6 | |
19475 | fi | |
ac1cb8d3 | 19476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19477 | |
19478 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19479 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19480 | cat >conftest.$ac_ext <<_ACEOF | |
19481 | /* confdefs.h. */ | |
19482 | _ACEOF | |
19483 | cat confdefs.h >>conftest.$ac_ext | |
19484 | cat >>conftest.$ac_ext <<_ACEOF | |
19485 | /* end confdefs.h. */ | |
19486 | #include <string> | |
19487 | int | |
19488 | main () | |
19489 | { | |
19490 | std::string foo, bar; | |
19491 | foo.compare(bar); | |
19492 | foo.compare(1, 1, bar); | |
19493 | foo.compare(1, 1, bar, 1, 1); | |
19494 | foo.compare(""); | |
19495 | foo.compare(1, 1, ""); | |
19496 | foo.compare(1, 1, "", 2); | |
19497 | ; | |
19498 | return 0; | |
19499 | } | |
19500 | _ACEOF | |
19501 | rm -f conftest.$ac_objext | |
19502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19503 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19504 | ac_status=$? |
ac1cb8d3 VS |
19505 | grep -v '^ *+' conftest.er1 >conftest.err |
19506 | rm -f conftest.er1 | |
19507 | cat conftest.err >&5 | |
a848cd7e SC |
19508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19509 | (exit $ac_status); } && | |
5dcf30a0 RN |
19510 | { ac_try='test -z "$ac_cxx_werror_flag" |
19511 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
19517 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19519 | (eval $ac_try) 2>&5 | |
19520 | ac_status=$? | |
19521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19522 | (exit $ac_status); }; }; then | |
19523 | echo "$as_me:$LINENO: result: yes" >&5 | |
19524 | echo "${ECHO_T}yes" >&6 | |
19525 | cat >>confdefs.h <<\_ACEOF | |
19526 | #define HAVE_STD_STRING_COMPARE 1 | |
19527 | _ACEOF | |
19528 | ||
19529 | else | |
19530 | echo "$as_me: failed program was:" >&5 | |
19531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19532 | ||
19533 | echo "$as_me:$LINENO: result: no" >&5 | |
19534 | echo "${ECHO_T}no" >&6 | |
19535 | fi | |
ac1cb8d3 | 19536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19537 | |
19538 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19539 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19540 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19541 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19543 | fi | |
19544 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19545 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19546 | else | |
19547 | # Is the header compilable? | |
19548 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19549 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19550 | cat >conftest.$ac_ext <<_ACEOF | |
19551 | /* confdefs.h. */ | |
19552 | _ACEOF | |
19553 | cat confdefs.h >>conftest.$ac_ext | |
19554 | cat >>conftest.$ac_ext <<_ACEOF | |
19555 | /* end confdefs.h. */ | |
19556 | $ac_includes_default | |
19557 | #include <hash_map> | |
19558 | _ACEOF | |
19559 | rm -f conftest.$ac_objext | |
19560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19561 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19562 | ac_status=$? |
ac1cb8d3 VS |
19563 | grep -v '^ *+' conftest.er1 >conftest.err |
19564 | rm -f conftest.er1 | |
19565 | cat conftest.err >&5 | |
bdcade0a MB |
19566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19567 | (exit $ac_status); } && | |
5dcf30a0 RN |
19568 | { ac_try='test -z "$ac_cxx_werror_flag" |
19569 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19571 | (eval $ac_try) 2>&5 | |
19572 | ac_status=$? | |
19573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19574 | (exit $ac_status); }; } && | |
19575 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19577 | (eval $ac_try) 2>&5 | |
19578 | ac_status=$? | |
19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19580 | (exit $ac_status); }; }; then | |
19581 | ac_header_compiler=yes | |
19582 | else | |
19583 | echo "$as_me: failed program was:" >&5 | |
19584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19585 | ||
19586 | ac_header_compiler=no | |
19587 | fi | |
ac1cb8d3 | 19588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19589 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19590 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19591 | ||
19592 | # Is the header present? | |
19593 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19594 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19595 | cat >conftest.$ac_ext <<_ACEOF | |
19596 | /* confdefs.h. */ | |
19597 | _ACEOF | |
19598 | cat confdefs.h >>conftest.$ac_ext | |
19599 | cat >>conftest.$ac_ext <<_ACEOF | |
19600 | /* end confdefs.h. */ | |
19601 | #include <hash_map> | |
19602 | _ACEOF | |
19603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19605 | ac_status=$? | |
19606 | grep -v '^ *+' conftest.er1 >conftest.err | |
19607 | rm -f conftest.er1 | |
19608 | cat conftest.err >&5 | |
19609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19610 | (exit $ac_status); } >/dev/null; then | |
19611 | if test -s conftest.err; then | |
19612 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19613 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19614 | else |
19615 | ac_cpp_err= | |
19616 | fi | |
19617 | else | |
19618 | ac_cpp_err=yes | |
19619 | fi | |
19620 | if test -z "$ac_cpp_err"; then | |
19621 | ac_header_preproc=yes | |
19622 | else | |
19623 | echo "$as_me: failed program was:" >&5 | |
19624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19625 | ||
19626 | ac_header_preproc=no | |
19627 | fi | |
19628 | rm -f conftest.err conftest.$ac_ext | |
19629 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19630 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19631 | ||
19632 | # So? What about this header? | |
ac1cb8d3 VS |
19633 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19634 | yes:no: ) | |
bdcade0a MB |
19635 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19636 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19637 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19638 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19639 | ac_header_preproc=yes | |
bdcade0a | 19640 | ;; |
ac1cb8d3 | 19641 | no:yes:* ) |
bdcade0a MB |
19642 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19643 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19644 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19645 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19646 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19647 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19648 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19649 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19650 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19651 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19652 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19653 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19654 | ( |
19655 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19656 | ## ----------------------------------------- ## |
19657 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19658 | ## ----------------------------------------- ## | |
bdcade0a MB |
19659 | _ASBOX |
19660 | ) | | |
19661 | sed "s/^/$as_me: WARNING: /" >&2 | |
19662 | ;; | |
19663 | esac | |
19664 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19665 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19666 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19668 | else | |
19669 | ac_cv_header_hash_map=$ac_header_preproc | |
19670 | fi | |
19671 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19672 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19673 | ||
19674 | fi | |
19675 | if test $ac_cv_header_hash_map = yes; then | |
19676 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19677 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19678 | cat >conftest.$ac_ext <<_ACEOF | |
19679 | /* confdefs.h. */ | |
19680 | _ACEOF | |
19681 | cat confdefs.h >>conftest.$ac_ext | |
19682 | cat >>conftest.$ac_ext <<_ACEOF | |
19683 | /* end confdefs.h. */ | |
19684 | #include <hash_map> | |
19685 | #include <hash_set> | |
19686 | int | |
19687 | main () | |
19688 | { | |
19689 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19690 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19691 | ; | |
19692 | return 0; | |
19693 | } | |
19694 | _ACEOF | |
19695 | rm -f conftest.$ac_objext | |
19696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19697 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19698 | ac_status=$? |
ac1cb8d3 VS |
19699 | grep -v '^ *+' conftest.er1 >conftest.err |
19700 | rm -f conftest.er1 | |
19701 | cat conftest.err >&5 | |
bdcade0a MB |
19702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19703 | (exit $ac_status); } && | |
5dcf30a0 RN |
19704 | { ac_try='test -z "$ac_cxx_werror_flag" |
19705 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19707 | (eval $ac_try) 2>&5 | |
19708 | ac_status=$? | |
19709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19710 | (exit $ac_status); }; } && | |
19711 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19713 | (eval $ac_try) 2>&5 | |
19714 | ac_status=$? | |
19715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19716 | (exit $ac_status); }; }; then | |
19717 | echo "$as_me:$LINENO: result: yes" >&5 | |
19718 | echo "${ECHO_T}yes" >&6 | |
19719 | cat >>confdefs.h <<\_ACEOF | |
19720 | #define HAVE_HASH_MAP 1 | |
19721 | _ACEOF | |
19722 | ||
19723 | cat >>confdefs.h <<\_ACEOF | |
19724 | #define HAVE_STD_HASH_MAP 1 | |
19725 | _ACEOF | |
19726 | ||
19727 | else | |
19728 | echo "$as_me: failed program was:" >&5 | |
19729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19730 | ||
19731 | echo "$as_me:$LINENO: result: no" >&5 | |
19732 | echo "${ECHO_T}no" >&6 | |
19733 | fi | |
ac1cb8d3 | 19734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19735 | |
19736 | fi | |
19737 | ||
19738 | ||
19739 | ||
19740 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19741 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19742 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19743 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19745 | fi | |
19746 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19747 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19748 | else | |
19749 | # Is the header compilable? | |
19750 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19751 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19752 | cat >conftest.$ac_ext <<_ACEOF | |
19753 | /* confdefs.h. */ | |
19754 | _ACEOF | |
19755 | cat confdefs.h >>conftest.$ac_ext | |
19756 | cat >>conftest.$ac_ext <<_ACEOF | |
19757 | /* end confdefs.h. */ | |
19758 | $ac_includes_default | |
19759 | #include <ext/hash_map> | |
19760 | _ACEOF | |
19761 | rm -f conftest.$ac_objext | |
19762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19763 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19764 | ac_status=$? |
ac1cb8d3 VS |
19765 | grep -v '^ *+' conftest.er1 >conftest.err |
19766 | rm -f conftest.er1 | |
19767 | cat conftest.err >&5 | |
bdcade0a MB |
19768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19769 | (exit $ac_status); } && | |
5dcf30a0 RN |
19770 | { ac_try='test -z "$ac_cxx_werror_flag" |
19771 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19773 | (eval $ac_try) 2>&5 | |
19774 | ac_status=$? | |
19775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19776 | (exit $ac_status); }; } && | |
19777 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19779 | (eval $ac_try) 2>&5 | |
19780 | ac_status=$? | |
19781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19782 | (exit $ac_status); }; }; then | |
19783 | ac_header_compiler=yes | |
19784 | else | |
19785 | echo "$as_me: failed program was:" >&5 | |
19786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19787 | ||
19788 | ac_header_compiler=no | |
19789 | fi | |
ac1cb8d3 | 19790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19791 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19792 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19793 | ||
19794 | # Is the header present? | |
19795 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
19796 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
19797 | cat >conftest.$ac_ext <<_ACEOF | |
19798 | /* confdefs.h. */ | |
19799 | _ACEOF | |
19800 | cat confdefs.h >>conftest.$ac_ext | |
19801 | cat >>conftest.$ac_ext <<_ACEOF | |
19802 | /* end confdefs.h. */ | |
19803 | #include <ext/hash_map> | |
19804 | _ACEOF | |
19805 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19806 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19807 | ac_status=$? | |
19808 | grep -v '^ *+' conftest.er1 >conftest.err | |
19809 | rm -f conftest.er1 | |
19810 | cat conftest.err >&5 | |
19811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19812 | (exit $ac_status); } >/dev/null; then | |
19813 | if test -s conftest.err; then | |
19814 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19815 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19816 | else |
19817 | ac_cpp_err= | |
19818 | fi | |
19819 | else | |
19820 | ac_cpp_err=yes | |
19821 | fi | |
19822 | if test -z "$ac_cpp_err"; then | |
19823 | ac_header_preproc=yes | |
19824 | else | |
19825 | echo "$as_me: failed program was:" >&5 | |
19826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19827 | ||
19828 | ac_header_preproc=no | |
19829 | fi | |
19830 | rm -f conftest.err conftest.$ac_ext | |
19831 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19832 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19833 | ||
19834 | # So? What about this header? | |
ac1cb8d3 VS |
19835 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19836 | yes:no: ) | |
bdcade0a MB |
19837 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19838 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19839 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
19840 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
19841 | ac_header_preproc=yes | |
bdcade0a | 19842 | ;; |
ac1cb8d3 | 19843 | no:yes:* ) |
bdcade0a MB |
19844 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
19845 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19846 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
19847 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
19848 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
19849 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
19850 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19851 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19852 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
19853 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19854 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
19855 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19856 | ( |
19857 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19858 | ## ----------------------------------------- ## |
19859 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19860 | ## ----------------------------------------- ## | |
bdcade0a MB |
19861 | _ASBOX |
19862 | ) | | |
19863 | sed "s/^/$as_me: WARNING: /" >&2 | |
19864 | ;; | |
19865 | esac | |
19866 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19867 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19868 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19870 | else | |
19871 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
19872 | fi | |
19873 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19874 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19875 | ||
19876 | fi | |
19877 | if test $ac_cv_header_ext_hash_map = yes; then | |
19878 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19879 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19880 | cat >conftest.$ac_ext <<_ACEOF | |
19881 | /* confdefs.h. */ | |
19882 | _ACEOF | |
19883 | cat confdefs.h >>conftest.$ac_ext | |
19884 | cat >>conftest.$ac_ext <<_ACEOF | |
19885 | /* end confdefs.h. */ | |
19886 | #include <ext/hash_map> | |
19887 | #include <ext/hash_set> | |
19888 | int | |
19889 | main () | |
19890 | { | |
19891 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
19892 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
19893 | ; | |
19894 | return 0; | |
19895 | } | |
19896 | _ACEOF | |
19897 | rm -f conftest.$ac_objext | |
19898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19899 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19900 | ac_status=$? |
ac1cb8d3 VS |
19901 | grep -v '^ *+' conftest.er1 >conftest.err |
19902 | rm -f conftest.er1 | |
19903 | cat conftest.err >&5 | |
bdcade0a MB |
19904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19905 | (exit $ac_status); } && | |
5dcf30a0 RN |
19906 | { ac_try='test -z "$ac_cxx_werror_flag" |
19907 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19909 | (eval $ac_try) 2>&5 | |
19910 | ac_status=$? | |
19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19912 | (exit $ac_status); }; } && | |
19913 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19915 | (eval $ac_try) 2>&5 | |
19916 | ac_status=$? | |
19917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19918 | (exit $ac_status); }; }; then | |
19919 | echo "$as_me:$LINENO: result: yes" >&5 | |
19920 | echo "${ECHO_T}yes" >&6 | |
19921 | cat >>confdefs.h <<\_ACEOF | |
19922 | #define HAVE_EXT_HASH_MAP 1 | |
19923 | _ACEOF | |
19924 | ||
19925 | cat >>confdefs.h <<\_ACEOF | |
19926 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
19927 | _ACEOF | |
19928 | ||
19929 | else | |
19930 | echo "$as_me: failed program was:" >&5 | |
19931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19932 | ||
19933 | echo "$as_me:$LINENO: result: no" >&5 | |
19934 | echo "${ECHO_T}no" >&6 | |
19935 | fi | |
ac1cb8d3 | 19936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19937 | |
19938 | fi | |
19939 | ||
19940 | ||
a848cd7e SC |
19941 | |
19942 | ac_ext=c | |
19943 | ac_cpp='$CPP $CPPFLAGS' | |
19944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19947 | ||
19948 | fi | |
19949 | ||
19950 | ||
19951 | SEARCH_INCLUDE="\ | |
19952 | /usr/local/include \ | |
19953 | \ | |
19954 | /usr/Motif-2.1/include \ | |
19955 | /usr/Motif-1.2/include \ | |
19956 | /usr/include/Motif1.2 \ | |
19957 | /opt/xpm/include/X11 \ | |
19958 | /opt/GBxpm/include/ \ | |
19959 | /opt/GBxpm/X11/include/ \ | |
19960 | \ | |
19961 | /usr/dt/include \ | |
19962 | /usr/openwin/include \ | |
19963 | \ | |
19964 | /usr/include/Xm \ | |
19965 | \ | |
19966 | /usr/X11R6/include \ | |
19967 | /usr/X11R6.4/include \ | |
19968 | /usr/X11R5/include \ | |
19969 | /usr/X11R4/include \ | |
19970 | \ | |
19971 | /usr/include/X11R6 \ | |
19972 | /usr/include/X11R5 \ | |
19973 | /usr/include/X11R4 \ | |
19974 | \ | |
19975 | /usr/local/X11R6/include \ | |
19976 | /usr/local/X11R5/include \ | |
19977 | /usr/local/X11R4/include \ | |
19978 | \ | |
19979 | /usr/local/include/X11R6 \ | |
19980 | /usr/local/include/X11R5 \ | |
19981 | /usr/local/include/X11R4 \ | |
19982 | \ | |
19983 | /usr/X11/include \ | |
19984 | /usr/include/X11 \ | |
19985 | /usr/local/X11/include \ | |
19986 | /usr/local/include/X11 \ | |
19987 | \ | |
19988 | /usr/X386/include \ | |
19989 | /usr/x386/include \ | |
19990 | /usr/XFree86/include/X11 \ | |
19991 | \ | |
19992 | X:/XFree86/include \ | |
19993 | X:/XFree86/include/X11 \ | |
19994 | \ | |
19995 | /usr/include/gtk \ | |
19996 | /usr/local/include/gtk \ | |
19997 | /usr/include/glib \ | |
19998 | /usr/local/include/glib \ | |
19999 | \ | |
20000 | /usr/include/qt \ | |
20001 | /usr/local/include/qt \ | |
20002 | \ | |
20003 | /usr/local/arm/3.3.2/include \ | |
20004 | \ | |
20005 | /usr/include/windows \ | |
20006 | /usr/include/wine \ | |
20007 | /usr/local/include/wine \ | |
20008 | \ | |
20009 | /usr/unsupported/include \ | |
20010 | /usr/athena/include \ | |
20011 | /usr/local/x11r5/include \ | |
20012 | /usr/lpp/Xamples/include \ | |
20013 | \ | |
20014 | /usr/openwin/share/include" | |
20015 | ||
20016 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20017 | ||
20018 | ||
20019 | cat >confcache <<\_ACEOF | |
20020 | # This file is a shell script that caches the results of configure | |
20021 | # tests run on this system so they can be shared between configure | |
20022 | # scripts and configure runs, see configure's option --config-cache. | |
20023 | # It is not useful on other systems. If it contains results you don't | |
20024 | # want to keep, you may remove or edit it. | |
20025 | # | |
20026 | # config.status only pays attention to the cache file if you give it | |
20027 | # the --recheck option to rerun configure. | |
20028 | # | |
20029 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20030 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20031 | # following values. | |
20032 | ||
20033 | _ACEOF | |
20034 | ||
20035 | # The following way of writing the cache mishandles newlines in values, | |
20036 | # but we know of no workaround that is simple, portable, and efficient. | |
20037 | # So, don't put newlines in cache variables' values. | |
20038 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20039 | # and sets the high bit in the cache file unless we assign to the vars. | |
20040 | { | |
20041 | (set) 2>&1 | | |
20042 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20043 | *ac_space=\ *) | |
20044 | # `set' does not quote correctly, so add quotes (double-quote | |
20045 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20046 | sed -n \ | |
ac1cb8d3 VS |
20047 | "s/'/'\\\\''/g; |
20048 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20049 | ;; |
20050 | *) | |
20051 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20052 | sed -n \ | |
ac1cb8d3 | 20053 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20054 | ;; |
20055 | esac; | |
20056 | } | | |
20057 | sed ' | |
20058 | t clear | |
20059 | : clear | |
20060 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20061 | t end | |
20062 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20063 | : end' >>confcache | |
20064 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20065 | if test -w $cache_file; then | |
20066 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20067 | cat confcache >$cache_file | |
20068 | else | |
20069 | echo "not updating unwritable cache $cache_file" | |
20070 | fi | |
20071 | fi | |
20072 | rm -f confcache | |
20073 | ||
20074 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20075 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20076 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20077 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20079 | else | |
20080 | ||
20081 | cat >conftest.$ac_ext <<_ACEOF | |
20082 | /* confdefs.h. */ | |
20083 | _ACEOF | |
20084 | cat confdefs.h >>conftest.$ac_ext | |
20085 | cat >>conftest.$ac_ext <<_ACEOF | |
20086 | /* end confdefs.h. */ | |
20087 | #include <features.h> | |
20088 | int | |
20089 | main () | |
20090 | { | |
20091 | ||
20092 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20093 | #error not glibc2.1 | |
20094 | #endif | |
20095 | ||
20096 | ; | |
20097 | return 0; | |
20098 | } | |
20099 | _ACEOF | |
20100 | rm -f conftest.$ac_objext | |
20101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20102 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20103 | ac_status=$? |
ac1cb8d3 VS |
20104 | grep -v '^ *+' conftest.er1 >conftest.err |
20105 | rm -f conftest.er1 | |
20106 | cat conftest.err >&5 | |
a848cd7e SC |
20107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20108 | (exit $ac_status); } && | |
5dcf30a0 RN |
20109 | { ac_try='test -z "$ac_c_werror_flag" |
20110 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20112 | (eval $ac_try) 2>&5 | |
20113 | ac_status=$? | |
20114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20115 | (exit $ac_status); }; } && | |
20116 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20118 | (eval $ac_try) 2>&5 | |
20119 | ac_status=$? | |
20120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20121 | (exit $ac_status); }; }; then | |
20122 | ||
20123 | wx_cv_lib_glibc21=yes | |
20124 | ||
20125 | else | |
20126 | echo "$as_me: failed program was:" >&5 | |
20127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20128 | ||
20129 | ||
20130 | wx_cv_lib_glibc21=no | |
20131 | ||
20132 | ||
20133 | fi | |
ac1cb8d3 | 20134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20135 | |
20136 | fi | |
20137 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20138 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20139 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20140 | cat >>confdefs.h <<\_ACEOF | |
20141 | #define wxHAVE_GLIBC2 1 | |
20142 | _ACEOF | |
20143 | ||
20144 | fi | |
20145 | fi | |
20146 | ||
20147 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20148 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20149 | cat >>confdefs.h <<\_ACEOF | |
20150 | #define _GNU_SOURCE 1 | |
20151 | _ACEOF | |
20152 | ||
20153 | fi | |
20154 | fi | |
20155 | ||
20156 | ||
20157 | ||
20158 | if test "$wxUSE_REGEX" != "no"; then | |
20159 | cat >>confdefs.h <<\_ACEOF | |
20160 | #define wxUSE_REGEX 1 | |
20161 | _ACEOF | |
20162 | ||
20163 | ||
20164 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20165 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20166 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20167 | wxUSE_REGEX=builtin | |
20168 | fi | |
20169 | ||
20170 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20171 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20172 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20173 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20174 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20176 | fi | |
20177 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20178 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20179 | else | |
20180 | # Is the header compilable? | |
20181 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20182 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20183 | cat >conftest.$ac_ext <<_ACEOF | |
20184 | /* confdefs.h. */ | |
20185 | _ACEOF | |
20186 | cat confdefs.h >>conftest.$ac_ext | |
20187 | cat >>conftest.$ac_ext <<_ACEOF | |
20188 | /* end confdefs.h. */ | |
20189 | $ac_includes_default | |
20190 | #include <regex.h> | |
20191 | _ACEOF | |
20192 | rm -f conftest.$ac_objext | |
20193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20194 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20195 | ac_status=$? |
ac1cb8d3 VS |
20196 | grep -v '^ *+' conftest.er1 >conftest.err |
20197 | rm -f conftest.er1 | |
20198 | cat conftest.err >&5 | |
a848cd7e SC |
20199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20200 | (exit $ac_status); } && | |
5dcf30a0 RN |
20201 | { ac_try='test -z "$ac_c_werror_flag" |
20202 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20204 | (eval $ac_try) 2>&5 | |
20205 | ac_status=$? | |
20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20207 | (exit $ac_status); }; } && | |
20208 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20210 | (eval $ac_try) 2>&5 | |
20211 | ac_status=$? | |
20212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20213 | (exit $ac_status); }; }; then | |
20214 | ac_header_compiler=yes | |
20215 | else | |
20216 | echo "$as_me: failed program was:" >&5 | |
20217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20218 | ||
20219 | ac_header_compiler=no | |
20220 | fi | |
ac1cb8d3 | 20221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20222 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20223 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20224 | ||
20225 | # Is the header present? | |
20226 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20227 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20228 | cat >conftest.$ac_ext <<_ACEOF | |
20229 | /* confdefs.h. */ | |
20230 | _ACEOF | |
20231 | cat confdefs.h >>conftest.$ac_ext | |
20232 | cat >>conftest.$ac_ext <<_ACEOF | |
20233 | /* end confdefs.h. */ | |
20234 | #include <regex.h> | |
20235 | _ACEOF | |
20236 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20237 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20238 | ac_status=$? | |
20239 | grep -v '^ *+' conftest.er1 >conftest.err | |
20240 | rm -f conftest.er1 | |
20241 | cat conftest.err >&5 | |
20242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20243 | (exit $ac_status); } >/dev/null; then | |
20244 | if test -s conftest.err; then | |
20245 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20246 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20247 | else |
20248 | ac_cpp_err= | |
20249 | fi | |
20250 | else | |
20251 | ac_cpp_err=yes | |
20252 | fi | |
20253 | if test -z "$ac_cpp_err"; then | |
20254 | ac_header_preproc=yes | |
20255 | else | |
20256 | echo "$as_me: failed program was:" >&5 | |
20257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20258 | ||
20259 | ac_header_preproc=no | |
20260 | fi | |
20261 | rm -f conftest.err conftest.$ac_ext | |
20262 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20263 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20264 | ||
20265 | # So? What about this header? | |
ac1cb8d3 VS |
20266 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20267 | yes:no: ) | |
a848cd7e SC |
20268 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20269 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20270 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20271 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20272 | ac_header_preproc=yes | |
a848cd7e | 20273 | ;; |
ac1cb8d3 | 20274 | no:yes:* ) |
a848cd7e SC |
20275 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20276 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20277 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20278 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20279 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20280 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20281 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20282 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20283 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20284 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20285 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20286 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20287 | ( |
20288 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20289 | ## ----------------------------------------- ## |
20290 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20291 | ## ----------------------------------------- ## | |
a848cd7e SC |
20292 | _ASBOX |
20293 | ) | | |
20294 | sed "s/^/$as_me: WARNING: /" >&2 | |
20295 | ;; | |
20296 | esac | |
20297 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20298 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20299 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20301 | else | |
20302 | ac_cv_header_regex_h=$ac_header_preproc | |
20303 | fi | |
20304 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20305 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20306 | ||
20307 | fi | |
20308 | if test $ac_cv_header_regex_h = yes; then | |
20309 | ||
20310 | for ac_func in regcomp | |
20311 | do | |
20312 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20313 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20314 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20315 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20317 | else | |
20318 | cat >conftest.$ac_ext <<_ACEOF | |
20319 | /* confdefs.h. */ | |
20320 | _ACEOF | |
20321 | cat confdefs.h >>conftest.$ac_ext | |
20322 | cat >>conftest.$ac_ext <<_ACEOF | |
20323 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20324 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20325 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20326 | #define $ac_func innocuous_$ac_func | |
20327 | ||
a848cd7e SC |
20328 | /* System header to define __stub macros and hopefully few prototypes, |
20329 | which can conflict with char $ac_func (); below. | |
20330 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20331 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20332 | |
a848cd7e SC |
20333 | #ifdef __STDC__ |
20334 | # include <limits.h> | |
20335 | #else | |
20336 | # include <assert.h> | |
20337 | #endif | |
ac1cb8d3 VS |
20338 | |
20339 | #undef $ac_func | |
20340 | ||
a848cd7e SC |
20341 | /* Override any gcc2 internal prototype to avoid an error. */ |
20342 | #ifdef __cplusplus | |
20343 | extern "C" | |
20344 | { | |
20345 | #endif | |
20346 | /* We use char because int might match the return type of a gcc2 | |
20347 | builtin and then its argument prototype would still apply. */ | |
20348 | char $ac_func (); | |
20349 | /* The GNU C library defines this for functions which it implements | |
20350 | to always fail with ENOSYS. Some functions are actually named | |
20351 | something starting with __ and the normal name is an alias. */ | |
20352 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20353 | choke me | |
20354 | #else | |
20355 | char (*f) () = $ac_func; | |
20356 | #endif | |
20357 | #ifdef __cplusplus | |
20358 | } | |
20359 | #endif | |
20360 | ||
20361 | int | |
20362 | main () | |
20363 | { | |
20364 | return f != $ac_func; | |
20365 | ; | |
20366 | return 0; | |
20367 | } | |
20368 | _ACEOF | |
20369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20371 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20372 | ac_status=$? |
ac1cb8d3 VS |
20373 | grep -v '^ *+' conftest.er1 >conftest.err |
20374 | rm -f conftest.er1 | |
20375 | cat conftest.err >&5 | |
a848cd7e SC |
20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20377 | (exit $ac_status); } && | |
5dcf30a0 RN |
20378 | { ac_try='test -z "$ac_c_werror_flag" |
20379 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20381 | (eval $ac_try) 2>&5 | |
20382 | ac_status=$? | |
20383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20384 | (exit $ac_status); }; } && | |
20385 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20387 | (eval $ac_try) 2>&5 | |
20388 | ac_status=$? | |
20389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20390 | (exit $ac_status); }; }; then | |
20391 | eval "$as_ac_var=yes" | |
20392 | else | |
20393 | echo "$as_me: failed program was:" >&5 | |
20394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20395 | ||
20396 | eval "$as_ac_var=no" | |
20397 | fi | |
ac1cb8d3 VS |
20398 | rm -f conftest.err conftest.$ac_objext \ |
20399 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20400 | fi |
20401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20402 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20403 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20404 | cat >>confdefs.h <<_ACEOF | |
20405 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20406 | _ACEOF | |
20407 | ||
20408 | fi | |
20409 | done | |
20410 | ||
20411 | fi | |
20412 | ||
20413 | ||
20414 | ||
20415 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20416 | if test "$wxUSE_REGEX" = "sys" ; then | |
20417 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20418 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20419 | { (exit 1); exit 1; }; } | |
20420 | else | |
20421 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20422 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20423 | wxUSE_REGEX=builtin | |
20424 | fi | |
20425 | else | |
20426 | wxUSE_REGEX=sys | |
20427 | cat >>confdefs.h <<\_ACEOF | |
20428 | #define WX_NO_REGEX_ADVANCED 1 | |
20429 | _ACEOF | |
20430 | ||
20431 | fi | |
20432 | fi | |
20433 | fi | |
20434 | ||
20435 | ||
20436 | ZLIB_LINK= | |
20437 | if test "$wxUSE_ZLIB" != "no" ; then | |
20438 | cat >>confdefs.h <<\_ACEOF | |
20439 | #define wxUSE_ZLIB 1 | |
20440 | _ACEOF | |
20441 | ||
20442 | ||
20443 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20444 | if test "$USE_DARWIN" = 1; then | |
20445 | system_zlib_h_ok="yes" | |
20446 | else | |
20447 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20448 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20449 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20451 | else | |
20452 | if test "$cross_compiling" = yes; then | |
20453 | unset ac_cv_header_zlib_h | |
20454 | ||
20455 | else | |
20456 | cat >conftest.$ac_ext <<_ACEOF | |
20457 | /* confdefs.h. */ | |
20458 | _ACEOF | |
20459 | cat confdefs.h >>conftest.$ac_ext | |
20460 | cat >>conftest.$ac_ext <<_ACEOF | |
20461 | /* end confdefs.h. */ | |
20462 | ||
20463 | #include <zlib.h> | |
20464 | #include <stdio.h> | |
20465 | ||
20466 | int main() | |
20467 | { | |
20468 | FILE *f=fopen("conftestval", "w"); | |
20469 | if (!f) exit(1); | |
20470 | fprintf(f, "%s", | |
20471 | ZLIB_VERSION[0] == '1' && | |
20472 | (ZLIB_VERSION[2] > '1' || | |
20473 | (ZLIB_VERSION[2] == '1' && | |
20474 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20475 | exit(0); | |
20476 | } | |
20477 | ||
20478 | _ACEOF | |
20479 | rm -f conftest$ac_exeext | |
20480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20481 | (eval $ac_link) 2>&5 | |
20482 | ac_status=$? | |
20483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20484 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20486 | (eval $ac_try) 2>&5 | |
20487 | ac_status=$? | |
20488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20489 | (exit $ac_status); }; }; then | |
20490 | ac_cv_header_zlib_h=`cat conftestval` | |
20491 | else | |
20492 | echo "$as_me: program exited with status $ac_status" >&5 | |
20493 | echo "$as_me: failed program was:" >&5 | |
20494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20495 | ||
20496 | ( exit $ac_status ) | |
20497 | ac_cv_header_zlib_h=no | |
20498 | fi | |
ac1cb8d3 | 20499 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20500 | fi |
20501 | ||
20502 | fi | |
20503 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20504 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20505 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20506 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20507 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20508 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20510 | fi | |
20511 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20512 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20513 | else | |
20514 | # Is the header compilable? | |
20515 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20516 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20517 | cat >conftest.$ac_ext <<_ACEOF | |
20518 | /* confdefs.h. */ | |
20519 | _ACEOF | |
20520 | cat confdefs.h >>conftest.$ac_ext | |
20521 | cat >>conftest.$ac_ext <<_ACEOF | |
20522 | /* end confdefs.h. */ | |
20523 | $ac_includes_default | |
20524 | #include <zlib.h> | |
20525 | _ACEOF | |
20526 | rm -f conftest.$ac_objext | |
20527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20528 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20529 | ac_status=$? |
ac1cb8d3 VS |
20530 | grep -v '^ *+' conftest.er1 >conftest.err |
20531 | rm -f conftest.er1 | |
20532 | cat conftest.err >&5 | |
a848cd7e SC |
20533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20534 | (exit $ac_status); } && | |
5dcf30a0 RN |
20535 | { ac_try='test -z "$ac_c_werror_flag" |
20536 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20538 | (eval $ac_try) 2>&5 | |
20539 | ac_status=$? | |
20540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20541 | (exit $ac_status); }; } && | |
20542 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20544 | (eval $ac_try) 2>&5 | |
20545 | ac_status=$? | |
20546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20547 | (exit $ac_status); }; }; then | |
20548 | ac_header_compiler=yes | |
20549 | else | |
20550 | echo "$as_me: failed program was:" >&5 | |
20551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20552 | ||
20553 | ac_header_compiler=no | |
20554 | fi | |
ac1cb8d3 | 20555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20556 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20557 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20558 | ||
20559 | # Is the header present? | |
20560 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20561 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20562 | cat >conftest.$ac_ext <<_ACEOF | |
20563 | /* confdefs.h. */ | |
20564 | _ACEOF | |
20565 | cat confdefs.h >>conftest.$ac_ext | |
20566 | cat >>conftest.$ac_ext <<_ACEOF | |
20567 | /* end confdefs.h. */ | |
20568 | #include <zlib.h> | |
20569 | _ACEOF | |
20570 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20571 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20572 | ac_status=$? | |
20573 | grep -v '^ *+' conftest.er1 >conftest.err | |
20574 | rm -f conftest.er1 | |
20575 | cat conftest.err >&5 | |
20576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20577 | (exit $ac_status); } >/dev/null; then | |
20578 | if test -s conftest.err; then | |
20579 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20580 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20581 | else |
20582 | ac_cpp_err= | |
20583 | fi | |
20584 | else | |
20585 | ac_cpp_err=yes | |
20586 | fi | |
20587 | if test -z "$ac_cpp_err"; then | |
20588 | ac_header_preproc=yes | |
20589 | else | |
20590 | echo "$as_me: failed program was:" >&5 | |
20591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20592 | ||
20593 | ac_header_preproc=no | |
20594 | fi | |
20595 | rm -f conftest.err conftest.$ac_ext | |
20596 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20597 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20598 | ||
20599 | # So? What about this header? | |
ac1cb8d3 VS |
20600 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20601 | yes:no: ) | |
a848cd7e SC |
20602 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20603 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20604 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20605 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20606 | ac_header_preproc=yes | |
a848cd7e | 20607 | ;; |
ac1cb8d3 | 20608 | no:yes:* ) |
a848cd7e SC |
20609 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20610 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20611 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20612 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20613 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20614 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20615 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20616 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20617 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20618 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20619 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20620 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20621 | ( |
20622 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20623 | ## ----------------------------------------- ## |
20624 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20625 | ## ----------------------------------------- ## | |
a848cd7e SC |
20626 | _ASBOX |
20627 | ) | | |
20628 | sed "s/^/$as_me: WARNING: /" >&2 | |
20629 | ;; | |
20630 | esac | |
20631 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20632 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20633 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20635 | else | |
20636 | ac_cv_header_zlib_h=$ac_header_preproc | |
20637 | fi | |
20638 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20639 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20640 | ||
20641 | fi | |
20642 | ||
20643 | ||
20644 | ||
20645 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20646 | fi | |
20647 | ||
20648 | if test "$system_zlib_h_ok" = "yes"; then | |
20649 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20650 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20651 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20653 | else | |
20654 | ac_check_lib_save_LIBS=$LIBS | |
20655 | LIBS="-lz $LIBS" | |
20656 | cat >conftest.$ac_ext <<_ACEOF | |
20657 | /* confdefs.h. */ | |
20658 | _ACEOF | |
20659 | cat confdefs.h >>conftest.$ac_ext | |
20660 | cat >>conftest.$ac_ext <<_ACEOF | |
20661 | /* end confdefs.h. */ | |
20662 | ||
20663 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20664 | #ifdef __cplusplus | |
20665 | extern "C" | |
20666 | #endif | |
20667 | /* We use char because int might match the return type of a gcc2 | |
20668 | builtin and then its argument prototype would still apply. */ | |
20669 | char deflate (); | |
20670 | int | |
20671 | main () | |
20672 | { | |
20673 | deflate (); | |
20674 | ; | |
20675 | return 0; | |
20676 | } | |
20677 | _ACEOF | |
20678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20680 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20681 | ac_status=$? |
ac1cb8d3 VS |
20682 | grep -v '^ *+' conftest.er1 >conftest.err |
20683 | rm -f conftest.er1 | |
20684 | cat conftest.err >&5 | |
a848cd7e SC |
20685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20686 | (exit $ac_status); } && | |
5dcf30a0 RN |
20687 | { ac_try='test -z "$ac_c_werror_flag" |
20688 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20690 | (eval $ac_try) 2>&5 | |
20691 | ac_status=$? | |
20692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20693 | (exit $ac_status); }; } && | |
20694 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20696 | (eval $ac_try) 2>&5 | |
20697 | ac_status=$? | |
20698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20699 | (exit $ac_status); }; }; then | |
20700 | ac_cv_lib_z_deflate=yes | |
20701 | else | |
20702 | echo "$as_me: failed program was:" >&5 | |
20703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20704 | ||
20705 | ac_cv_lib_z_deflate=no | |
20706 | fi | |
ac1cb8d3 VS |
20707 | rm -f conftest.err conftest.$ac_objext \ |
20708 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20709 | LIBS=$ac_check_lib_save_LIBS |
20710 | fi | |
20711 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20712 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20713 | if test $ac_cv_lib_z_deflate = yes; then | |
20714 | ZLIB_LINK=" -lz" | |
20715 | fi | |
20716 | ||
20717 | fi | |
20718 | ||
20719 | if test "x$ZLIB_LINK" = "x" ; then | |
20720 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20721 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20722 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20723 | { (exit 1); exit 1; }; } | |
20724 | else | |
20725 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20726 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20727 | wxUSE_ZLIB=builtin | |
20728 | fi | |
20729 | else | |
20730 | wxUSE_ZLIB=sys | |
20731 | fi | |
20732 | fi | |
20733 | fi | |
20734 | ||
20735 | ||
20736 | PNG_LINK= | |
20737 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20738 | cat >>confdefs.h <<\_ACEOF | |
20739 | #define wxUSE_LIBPNG 1 | |
20740 | _ACEOF | |
20741 | ||
20742 | ||
20743 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20744 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20745 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20746 | wxUSE_LIBPNG=sys | |
20747 | fi | |
20748 | ||
20749 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20750 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20751 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20752 | wxUSE_LIBPNG=builtin | |
20753 | fi | |
20754 | ||
20755 | if test "$wxUSE_MGL" != 1 ; then | |
20756 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20757 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20758 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20759 | if test "${ac_cv_header_png_h+set}" = set; then | |
20760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20761 | else | |
20762 | if test "$cross_compiling" = yes; then | |
20763 | unset ac_cv_header_png_h | |
20764 | ||
20765 | else | |
20766 | cat >conftest.$ac_ext <<_ACEOF | |
20767 | /* confdefs.h. */ | |
20768 | _ACEOF | |
20769 | cat confdefs.h >>conftest.$ac_ext | |
20770 | cat >>conftest.$ac_ext <<_ACEOF | |
20771 | /* end confdefs.h. */ | |
20772 | ||
20773 | #include <png.h> | |
20774 | #include <stdio.h> | |
20775 | ||
20776 | int main() | |
20777 | { | |
20778 | FILE *f=fopen("conftestval", "w"); | |
20779 | if (!f) exit(1); | |
20780 | fprintf(f, "%s", | |
20781 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20782 | exit(0); | |
20783 | } | |
20784 | ||
20785 | _ACEOF | |
20786 | rm -f conftest$ac_exeext | |
20787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20788 | (eval $ac_link) 2>&5 | |
20789 | ac_status=$? | |
20790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20791 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20793 | (eval $ac_try) 2>&5 | |
20794 | ac_status=$? | |
20795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20796 | (exit $ac_status); }; }; then | |
20797 | ac_cv_header_png_h=`cat conftestval` | |
20798 | else | |
20799 | echo "$as_me: program exited with status $ac_status" >&5 | |
20800 | echo "$as_me: failed program was:" >&5 | |
20801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20802 | ||
20803 | ( exit $ac_status ) | |
20804 | ac_cv_header_png_h=no | |
20805 | fi | |
ac1cb8d3 | 20806 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20807 | fi |
20808 | ||
20809 | fi | |
20810 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20811 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20812 | if test "${ac_cv_header_png_h+set}" = set; then | |
20813 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20814 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20815 | if test "${ac_cv_header_png_h+set}" = set; then | |
20816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20817 | fi | |
20818 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20819 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20820 | else | |
20821 | # Is the header compilable? | |
20822 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20823 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20824 | cat >conftest.$ac_ext <<_ACEOF | |
20825 | /* confdefs.h. */ | |
20826 | _ACEOF | |
20827 | cat confdefs.h >>conftest.$ac_ext | |
20828 | cat >>conftest.$ac_ext <<_ACEOF | |
20829 | /* end confdefs.h. */ | |
20830 | $ac_includes_default | |
20831 | #include <png.h> | |
20832 | _ACEOF | |
20833 | rm -f conftest.$ac_objext | |
20834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20835 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20836 | ac_status=$? |
ac1cb8d3 VS |
20837 | grep -v '^ *+' conftest.er1 >conftest.err |
20838 | rm -f conftest.er1 | |
20839 | cat conftest.err >&5 | |
a848cd7e SC |
20840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20841 | (exit $ac_status); } && | |
5dcf30a0 RN |
20842 | { ac_try='test -z "$ac_c_werror_flag" |
20843 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20845 | (eval $ac_try) 2>&5 | |
20846 | ac_status=$? | |
20847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20848 | (exit $ac_status); }; } && | |
20849 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20851 | (eval $ac_try) 2>&5 | |
20852 | ac_status=$? | |
20853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20854 | (exit $ac_status); }; }; then | |
20855 | ac_header_compiler=yes | |
20856 | else | |
20857 | echo "$as_me: failed program was:" >&5 | |
20858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20859 | ||
20860 | ac_header_compiler=no | |
20861 | fi | |
ac1cb8d3 | 20862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20863 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20864 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20865 | ||
20866 | # Is the header present? | |
20867 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20868 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20869 | cat >conftest.$ac_ext <<_ACEOF | |
20870 | /* confdefs.h. */ | |
20871 | _ACEOF | |
20872 | cat confdefs.h >>conftest.$ac_ext | |
20873 | cat >>conftest.$ac_ext <<_ACEOF | |
20874 | /* end confdefs.h. */ | |
20875 | #include <png.h> | |
20876 | _ACEOF | |
20877 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20878 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20879 | ac_status=$? | |
20880 | grep -v '^ *+' conftest.er1 >conftest.err | |
20881 | rm -f conftest.er1 | |
20882 | cat conftest.err >&5 | |
20883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20884 | (exit $ac_status); } >/dev/null; then | |
20885 | if test -s conftest.err; then | |
20886 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20887 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20888 | else |
20889 | ac_cpp_err= | |
20890 | fi | |
20891 | else | |
20892 | ac_cpp_err=yes | |
20893 | fi | |
20894 | if test -z "$ac_cpp_err"; then | |
20895 | ac_header_preproc=yes | |
20896 | else | |
20897 | echo "$as_me: failed program was:" >&5 | |
20898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20899 | ||
20900 | ac_header_preproc=no | |
20901 | fi | |
20902 | rm -f conftest.err conftest.$ac_ext | |
20903 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20904 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20905 | ||
20906 | # So? What about this header? | |
ac1cb8d3 VS |
20907 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20908 | yes:no: ) | |
a848cd7e SC |
20909 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20910 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20911 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20912 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20913 | ac_header_preproc=yes | |
a848cd7e | 20914 | ;; |
ac1cb8d3 | 20915 | no:yes:* ) |
a848cd7e SC |
20916 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20917 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20918 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
20919 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
20920 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
20921 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
20922 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20923 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20924 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
20925 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20926 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
20927 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20928 | ( |
20929 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20930 | ## ----------------------------------------- ## |
20931 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20932 | ## ----------------------------------------- ## | |
a848cd7e SC |
20933 | _ASBOX |
20934 | ) | | |
20935 | sed "s/^/$as_me: WARNING: /" >&2 | |
20936 | ;; | |
20937 | esac | |
20938 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20939 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20940 | if test "${ac_cv_header_png_h+set}" = set; then | |
20941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20942 | else | |
20943 | ac_cv_header_png_h=$ac_header_preproc | |
20944 | fi | |
20945 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20946 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20947 | ||
20948 | fi | |
20949 | ||
20950 | ||
20951 | ||
20952 | if test "$ac_cv_header_png_h" = "yes"; then | |
20953 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
20954 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
20955 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
20956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20957 | else | |
20958 | ac_check_lib_save_LIBS=$LIBS | |
20959 | LIBS="-lpng -lz -lm $LIBS" | |
20960 | cat >conftest.$ac_ext <<_ACEOF | |
20961 | /* confdefs.h. */ | |
20962 | _ACEOF | |
20963 | cat confdefs.h >>conftest.$ac_ext | |
20964 | cat >>conftest.$ac_ext <<_ACEOF | |
20965 | /* end confdefs.h. */ | |
20966 | ||
20967 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20968 | #ifdef __cplusplus | |
20969 | extern "C" | |
20970 | #endif | |
20971 | /* We use char because int might match the return type of a gcc2 | |
20972 | builtin and then its argument prototype would still apply. */ | |
20973 | char png_check_sig (); | |
20974 | int | |
20975 | main () | |
20976 | { | |
20977 | png_check_sig (); | |
20978 | ; | |
20979 | return 0; | |
20980 | } | |
20981 | _ACEOF | |
20982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20984 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20985 | ac_status=$? |
ac1cb8d3 VS |
20986 | grep -v '^ *+' conftest.er1 >conftest.err |
20987 | rm -f conftest.er1 | |
20988 | cat conftest.err >&5 | |
a848cd7e SC |
20989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20990 | (exit $ac_status); } && | |
5dcf30a0 RN |
20991 | { ac_try='test -z "$ac_c_werror_flag" |
20992 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20994 | (eval $ac_try) 2>&5 | |
20995 | ac_status=$? | |
20996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20997 | (exit $ac_status); }; } && | |
20998 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21000 | (eval $ac_try) 2>&5 | |
21001 | ac_status=$? | |
21002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21003 | (exit $ac_status); }; }; then | |
21004 | ac_cv_lib_png_png_check_sig=yes | |
21005 | else | |
21006 | echo "$as_me: failed program was:" >&5 | |
21007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21008 | ||
21009 | ac_cv_lib_png_png_check_sig=no | |
21010 | fi | |
ac1cb8d3 VS |
21011 | rm -f conftest.err conftest.$ac_objext \ |
21012 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21013 | LIBS=$ac_check_lib_save_LIBS |
21014 | fi | |
21015 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21016 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21017 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21018 | PNG_LINK=" -lpng -lz" | |
21019 | fi | |
21020 | ||
21021 | fi | |
21022 | ||
21023 | if test "x$PNG_LINK" = "x" ; then | |
21024 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21025 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21026 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21027 | { (exit 1); exit 1; }; } | |
21028 | else | |
21029 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21030 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21031 | wxUSE_LIBPNG=builtin | |
21032 | fi | |
21033 | else | |
21034 | wxUSE_LIBPNG=sys | |
21035 | fi | |
21036 | fi | |
21037 | fi | |
21038 | ||
21039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21040 | fi | |
21041 | ||
21042 | ||
21043 | JPEG_LINK= | |
21044 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21045 | cat >>confdefs.h <<\_ACEOF | |
21046 | #define wxUSE_LIBJPEG 1 | |
21047 | _ACEOF | |
21048 | ||
21049 | ||
21050 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21051 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21052 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21053 | wxUSE_LIBJPEG=sys | |
21054 | fi | |
21055 | ||
21056 | if test "$wxUSE_MGL" != 1 ; then | |
21057 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21058 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21059 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21060 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
21061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21062 | else | |
21063 | cat >conftest.$ac_ext <<_ACEOF | |
21064 | /* confdefs.h. */ | |
21065 | _ACEOF | |
21066 | cat confdefs.h >>conftest.$ac_ext | |
21067 | cat >>conftest.$ac_ext <<_ACEOF | |
21068 | /* end confdefs.h. */ | |
21069 | ||
21070 | #undef HAVE_STDLIB_H | |
21071 | #include <stdio.h> | |
21072 | #include <jpeglib.h> | |
21073 | ||
21074 | int | |
21075 | main () | |
21076 | { | |
21077 | ||
21078 | ||
21079 | ; | |
21080 | return 0; | |
21081 | } | |
21082 | _ACEOF | |
21083 | rm -f conftest.$ac_objext | |
21084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21085 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21086 | ac_status=$? |
ac1cb8d3 VS |
21087 | grep -v '^ *+' conftest.er1 >conftest.err |
21088 | rm -f conftest.er1 | |
21089 | cat conftest.err >&5 | |
a848cd7e SC |
21090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21091 | (exit $ac_status); } && | |
5dcf30a0 RN |
21092 | { ac_try='test -z "$ac_c_werror_flag" |
21093 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21095 | (eval $ac_try) 2>&5 | |
21096 | ac_status=$? | |
21097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21098 | (exit $ac_status); }; } && | |
21099 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21101 | (eval $ac_try) 2>&5 | |
21102 | ac_status=$? | |
21103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21104 | (exit $ac_status); }; }; then | |
21105 | ac_cv_header_jpeglib_h=yes | |
21106 | else | |
21107 | echo "$as_me: failed program was:" >&5 | |
21108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21109 | ||
21110 | ac_cv_header_jpeglib_h=no | |
21111 | ||
21112 | fi | |
ac1cb8d3 | 21113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21114 | |
21115 | fi | |
21116 | ||
21117 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21118 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21119 | ||
21120 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21121 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21122 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21123 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21125 | else | |
21126 | ac_check_lib_save_LIBS=$LIBS | |
21127 | LIBS="-ljpeg $LIBS" | |
21128 | cat >conftest.$ac_ext <<_ACEOF | |
21129 | /* confdefs.h. */ | |
21130 | _ACEOF | |
21131 | cat confdefs.h >>conftest.$ac_ext | |
21132 | cat >>conftest.$ac_ext <<_ACEOF | |
21133 | /* end confdefs.h. */ | |
21134 | ||
21135 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21136 | #ifdef __cplusplus | |
21137 | extern "C" | |
21138 | #endif | |
21139 | /* We use char because int might match the return type of a gcc2 | |
21140 | builtin and then its argument prototype would still apply. */ | |
21141 | char jpeg_read_header (); | |
21142 | int | |
21143 | main () | |
21144 | { | |
21145 | jpeg_read_header (); | |
21146 | ; | |
21147 | return 0; | |
21148 | } | |
21149 | _ACEOF | |
21150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21152 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21153 | ac_status=$? |
ac1cb8d3 VS |
21154 | grep -v '^ *+' conftest.er1 >conftest.err |
21155 | rm -f conftest.er1 | |
21156 | cat conftest.err >&5 | |
a848cd7e SC |
21157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21158 | (exit $ac_status); } && | |
5dcf30a0 RN |
21159 | { ac_try='test -z "$ac_c_werror_flag" |
21160 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21162 | (eval $ac_try) 2>&5 | |
21163 | ac_status=$? | |
21164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21165 | (exit $ac_status); }; } && | |
21166 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21168 | (eval $ac_try) 2>&5 | |
21169 | ac_status=$? | |
21170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21171 | (exit $ac_status); }; }; then | |
21172 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21173 | else | |
21174 | echo "$as_me: failed program was:" >&5 | |
21175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21176 | ||
21177 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21178 | fi | |
ac1cb8d3 VS |
21179 | rm -f conftest.err conftest.$ac_objext \ |
21180 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21181 | LIBS=$ac_check_lib_save_LIBS |
21182 | fi | |
21183 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21184 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21185 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21186 | JPEG_LINK=" -ljpeg" | |
21187 | fi | |
21188 | ||
21189 | fi | |
21190 | ||
21191 | if test "x$JPEG_LINK" = "x" ; then | |
21192 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21193 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21194 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21195 | { (exit 1); exit 1; }; } | |
21196 | else | |
21197 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21198 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21199 | wxUSE_LIBJPEG=builtin | |
21200 | fi | |
21201 | else | |
21202 | wxUSE_LIBJPEG=sys | |
21203 | fi | |
21204 | fi | |
21205 | fi | |
21206 | fi | |
21207 | ||
21208 | ||
21209 | TIFF_LINK= | |
21210 | TIFF_PREREQ_LINKS=-lm | |
21211 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21212 | cat >>confdefs.h <<\_ACEOF | |
21213 | #define wxUSE_LIBTIFF 1 | |
21214 | _ACEOF | |
21215 | ||
21216 | ||
21217 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21218 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21219 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21220 | fi | |
21221 | if test "$wxUSE_ZLIB" = "sys"; then | |
21222 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21223 | fi | |
21224 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21225 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21226 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21227 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21229 | fi | |
21230 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21231 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21232 | else | |
21233 | # Is the header compilable? | |
21234 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21235 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21236 | cat >conftest.$ac_ext <<_ACEOF | |
21237 | /* confdefs.h. */ | |
21238 | _ACEOF | |
21239 | cat confdefs.h >>conftest.$ac_ext | |
21240 | cat >>conftest.$ac_ext <<_ACEOF | |
21241 | /* end confdefs.h. */ | |
21242 | $ac_includes_default | |
21243 | #include <tiffio.h> | |
21244 | _ACEOF | |
21245 | rm -f conftest.$ac_objext | |
21246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21247 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21248 | ac_status=$? |
ac1cb8d3 VS |
21249 | grep -v '^ *+' conftest.er1 >conftest.err |
21250 | rm -f conftest.er1 | |
21251 | cat conftest.err >&5 | |
a848cd7e SC |
21252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21253 | (exit $ac_status); } && | |
5dcf30a0 RN |
21254 | { ac_try='test -z "$ac_c_werror_flag" |
21255 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21257 | (eval $ac_try) 2>&5 | |
21258 | ac_status=$? | |
21259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21260 | (exit $ac_status); }; } && | |
21261 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21263 | (eval $ac_try) 2>&5 | |
21264 | ac_status=$? | |
21265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21266 | (exit $ac_status); }; }; then | |
21267 | ac_header_compiler=yes | |
21268 | else | |
21269 | echo "$as_me: failed program was:" >&5 | |
21270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21271 | ||
21272 | ac_header_compiler=no | |
21273 | fi | |
ac1cb8d3 | 21274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21275 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21276 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21277 | ||
21278 | # Is the header present? | |
21279 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21280 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21281 | cat >conftest.$ac_ext <<_ACEOF | |
21282 | /* confdefs.h. */ | |
21283 | _ACEOF | |
21284 | cat confdefs.h >>conftest.$ac_ext | |
21285 | cat >>conftest.$ac_ext <<_ACEOF | |
21286 | /* end confdefs.h. */ | |
21287 | #include <tiffio.h> | |
21288 | _ACEOF | |
21289 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21290 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21291 | ac_status=$? | |
21292 | grep -v '^ *+' conftest.er1 >conftest.err | |
21293 | rm -f conftest.er1 | |
21294 | cat conftest.err >&5 | |
21295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21296 | (exit $ac_status); } >/dev/null; then | |
21297 | if test -s conftest.err; then | |
21298 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21299 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21300 | else |
21301 | ac_cpp_err= | |
21302 | fi | |
21303 | else | |
21304 | ac_cpp_err=yes | |
21305 | fi | |
21306 | if test -z "$ac_cpp_err"; then | |
21307 | ac_header_preproc=yes | |
21308 | else | |
21309 | echo "$as_me: failed program was:" >&5 | |
21310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21311 | ||
21312 | ac_header_preproc=no | |
21313 | fi | |
21314 | rm -f conftest.err conftest.$ac_ext | |
21315 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21316 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21317 | ||
21318 | # So? What about this header? | |
ac1cb8d3 VS |
21319 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21320 | yes:no: ) | |
a848cd7e SC |
21321 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21322 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21323 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21324 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21325 | ac_header_preproc=yes | |
a848cd7e | 21326 | ;; |
ac1cb8d3 | 21327 | no:yes:* ) |
a848cd7e SC |
21328 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21329 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21330 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21331 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21332 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21333 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21334 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21335 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21336 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21337 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21338 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21339 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21340 | ( |
21341 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21342 | ## ----------------------------------------- ## |
21343 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21344 | ## ----------------------------------------- ## | |
a848cd7e SC |
21345 | _ASBOX |
21346 | ) | | |
21347 | sed "s/^/$as_me: WARNING: /" >&2 | |
21348 | ;; | |
21349 | esac | |
21350 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21351 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21352 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21354 | else | |
21355 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21356 | fi | |
21357 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21358 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21359 | ||
21360 | fi | |
21361 | if test $ac_cv_header_tiffio_h = yes; then | |
21362 | ||
21363 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21364 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21365 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21367 | else | |
21368 | ac_check_lib_save_LIBS=$LIBS | |
21369 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21370 | cat >conftest.$ac_ext <<_ACEOF | |
21371 | /* confdefs.h. */ | |
21372 | _ACEOF | |
21373 | cat confdefs.h >>conftest.$ac_ext | |
21374 | cat >>conftest.$ac_ext <<_ACEOF | |
21375 | /* end confdefs.h. */ | |
21376 | ||
21377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21378 | #ifdef __cplusplus | |
21379 | extern "C" | |
21380 | #endif | |
21381 | /* We use char because int might match the return type of a gcc2 | |
21382 | builtin and then its argument prototype would still apply. */ | |
21383 | char TIFFError (); | |
21384 | int | |
21385 | main () | |
21386 | { | |
21387 | TIFFError (); | |
21388 | ; | |
21389 | return 0; | |
21390 | } | |
21391 | _ACEOF | |
21392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21394 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21395 | ac_status=$? |
ac1cb8d3 VS |
21396 | grep -v '^ *+' conftest.er1 >conftest.err |
21397 | rm -f conftest.er1 | |
21398 | cat conftest.err >&5 | |
a848cd7e SC |
21399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21400 | (exit $ac_status); } && | |
5dcf30a0 RN |
21401 | { ac_try='test -z "$ac_c_werror_flag" |
21402 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21404 | (eval $ac_try) 2>&5 | |
21405 | ac_status=$? | |
21406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21407 | (exit $ac_status); }; } && | |
21408 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21410 | (eval $ac_try) 2>&5 | |
21411 | ac_status=$? | |
21412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21413 | (exit $ac_status); }; }; then | |
21414 | ac_cv_lib_tiff_TIFFError=yes | |
21415 | else | |
21416 | echo "$as_me: failed program was:" >&5 | |
21417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21418 | ||
21419 | ac_cv_lib_tiff_TIFFError=no | |
21420 | fi | |
ac1cb8d3 VS |
21421 | rm -f conftest.err conftest.$ac_objext \ |
21422 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21423 | LIBS=$ac_check_lib_save_LIBS |
21424 | fi | |
21425 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21426 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21427 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21428 | TIFF_LINK=" -ltiff" | |
21429 | fi | |
21430 | ||
21431 | ||
21432 | ||
21433 | fi | |
21434 | ||
21435 | ||
21436 | ||
21437 | if test "x$TIFF_LINK" = "x" ; then | |
21438 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21439 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21440 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21441 | { (exit 1); exit 1; }; } | |
21442 | else | |
21443 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21444 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21445 | wxUSE_LIBTIFF=builtin | |
21446 | fi | |
21447 | else | |
21448 | wxUSE_LIBTIFF=sys | |
21449 | fi | |
21450 | fi | |
21451 | fi | |
21452 | ||
21453 | ||
21454 | if test "$wxUSE_EXPAT" != "no"; then | |
21455 | wxUSE_XML=yes | |
21456 | cat >>confdefs.h <<\_ACEOF | |
21457 | #define wxUSE_EXPAT 1 | |
21458 | _ACEOF | |
21459 | ||
21460 | cat >>confdefs.h <<\_ACEOF | |
21461 | #define wxUSE_XML 1 | |
21462 | _ACEOF | |
21463 | ||
21464 | ||
21465 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21466 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21467 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21468 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21469 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21471 | fi | |
21472 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21473 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21474 | else | |
21475 | # Is the header compilable? | |
21476 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21477 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21478 | cat >conftest.$ac_ext <<_ACEOF | |
21479 | /* confdefs.h. */ | |
21480 | _ACEOF | |
21481 | cat confdefs.h >>conftest.$ac_ext | |
21482 | cat >>conftest.$ac_ext <<_ACEOF | |
21483 | /* end confdefs.h. */ | |
21484 | $ac_includes_default | |
21485 | #include <expat.h> | |
21486 | _ACEOF | |
21487 | rm -f conftest.$ac_objext | |
21488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21489 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21490 | ac_status=$? |
ac1cb8d3 VS |
21491 | grep -v '^ *+' conftest.er1 >conftest.err |
21492 | rm -f conftest.er1 | |
21493 | cat conftest.err >&5 | |
a848cd7e SC |
21494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21495 | (exit $ac_status); } && | |
5dcf30a0 RN |
21496 | { ac_try='test -z "$ac_c_werror_flag" |
21497 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21499 | (eval $ac_try) 2>&5 | |
21500 | ac_status=$? | |
21501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21502 | (exit $ac_status); }; } && | |
21503 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21505 | (eval $ac_try) 2>&5 | |
21506 | ac_status=$? | |
21507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21508 | (exit $ac_status); }; }; then | |
21509 | ac_header_compiler=yes | |
21510 | else | |
21511 | echo "$as_me: failed program was:" >&5 | |
21512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21513 | ||
21514 | ac_header_compiler=no | |
21515 | fi | |
ac1cb8d3 | 21516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21517 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21518 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21519 | ||
21520 | # Is the header present? | |
21521 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21522 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21523 | cat >conftest.$ac_ext <<_ACEOF | |
21524 | /* confdefs.h. */ | |
21525 | _ACEOF | |
21526 | cat confdefs.h >>conftest.$ac_ext | |
21527 | cat >>conftest.$ac_ext <<_ACEOF | |
21528 | /* end confdefs.h. */ | |
21529 | #include <expat.h> | |
21530 | _ACEOF | |
21531 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21532 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21533 | ac_status=$? | |
21534 | grep -v '^ *+' conftest.er1 >conftest.err | |
21535 | rm -f conftest.er1 | |
21536 | cat conftest.err >&5 | |
21537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21538 | (exit $ac_status); } >/dev/null; then | |
21539 | if test -s conftest.err; then | |
21540 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21541 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21542 | else |
21543 | ac_cpp_err= | |
21544 | fi | |
21545 | else | |
21546 | ac_cpp_err=yes | |
21547 | fi | |
21548 | if test -z "$ac_cpp_err"; then | |
21549 | ac_header_preproc=yes | |
21550 | else | |
21551 | echo "$as_me: failed program was:" >&5 | |
21552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21553 | ||
21554 | ac_header_preproc=no | |
21555 | fi | |
21556 | rm -f conftest.err conftest.$ac_ext | |
21557 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21558 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21559 | ||
21560 | # So? What about this header? | |
ac1cb8d3 VS |
21561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21562 | yes:no: ) | |
a848cd7e SC |
21563 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21564 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21565 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21566 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21567 | ac_header_preproc=yes | |
a848cd7e | 21568 | ;; |
ac1cb8d3 | 21569 | no:yes:* ) |
a848cd7e SC |
21570 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21571 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21572 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21573 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21574 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21575 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21576 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21577 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21578 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21579 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21580 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21581 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21582 | ( |
21583 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21584 | ## ----------------------------------------- ## |
21585 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21586 | ## ----------------------------------------- ## | |
a848cd7e SC |
21587 | _ASBOX |
21588 | ) | | |
21589 | sed "s/^/$as_me: WARNING: /" >&2 | |
21590 | ;; | |
21591 | esac | |
21592 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21593 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21594 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21596 | else | |
21597 | ac_cv_header_expat_h=$ac_header_preproc | |
21598 | fi | |
21599 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21600 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21601 | ||
21602 | fi | |
21603 | if test $ac_cv_header_expat_h = yes; then | |
21604 | found_expat_h=1 | |
21605 | fi | |
21606 | ||
21607 | ||
21608 | if test "x$found_expat_h" = "x1"; then | |
21609 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21610 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21611 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21613 | else | |
21614 | ||
21615 | ||
21616 | ||
21617 | ac_ext=cc | |
21618 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21619 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21620 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21621 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21622 | ||
21623 | cat >conftest.$ac_ext <<_ACEOF | |
21624 | /* confdefs.h. */ | |
21625 | _ACEOF | |
21626 | cat confdefs.h >>conftest.$ac_ext | |
21627 | cat >>conftest.$ac_ext <<_ACEOF | |
21628 | /* end confdefs.h. */ | |
21629 | #include <expat.h> | |
21630 | int | |
21631 | main () | |
21632 | { | |
21633 | ||
21634 | ; | |
21635 | return 0; | |
21636 | } | |
21637 | _ACEOF | |
21638 | rm -f conftest.$ac_objext | |
21639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21640 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21641 | ac_status=$? |
ac1cb8d3 VS |
21642 | grep -v '^ *+' conftest.er1 >conftest.err |
21643 | rm -f conftest.er1 | |
21644 | cat conftest.err >&5 | |
a848cd7e SC |
21645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21646 | (exit $ac_status); } && | |
5dcf30a0 RN |
21647 | { ac_try='test -z "$ac_cxx_werror_flag" |
21648 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21650 | (eval $ac_try) 2>&5 | |
21651 | ac_status=$? | |
21652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21653 | (exit $ac_status); }; } && | |
21654 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21656 | (eval $ac_try) 2>&5 | |
21657 | ac_status=$? | |
21658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21659 | (exit $ac_status); }; }; then | |
21660 | wx_cv_expat_is_not_broken=yes | |
21661 | else | |
21662 | echo "$as_me: failed program was:" >&5 | |
21663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21664 | ||
21665 | wx_cv_expat_is_not_broken=no | |
21666 | ||
21667 | fi | |
ac1cb8d3 | 21668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21669 | ac_ext=c |
21670 | ac_cpp='$CPP $CPPFLAGS' | |
21671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21674 | ||
21675 | ||
21676 | ||
21677 | fi | |
21678 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21679 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21680 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21681 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21682 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21683 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21685 | else | |
21686 | ac_check_lib_save_LIBS=$LIBS | |
21687 | LIBS="-lexpat $LIBS" | |
21688 | cat >conftest.$ac_ext <<_ACEOF | |
21689 | /* confdefs.h. */ | |
21690 | _ACEOF | |
21691 | cat confdefs.h >>conftest.$ac_ext | |
21692 | cat >>conftest.$ac_ext <<_ACEOF | |
21693 | /* end confdefs.h. */ | |
21694 | ||
21695 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21696 | #ifdef __cplusplus | |
21697 | extern "C" | |
21698 | #endif | |
21699 | /* We use char because int might match the return type of a gcc2 | |
21700 | builtin and then its argument prototype would still apply. */ | |
21701 | char XML_ParserCreate (); | |
21702 | int | |
21703 | main () | |
21704 | { | |
21705 | XML_ParserCreate (); | |
21706 | ; | |
21707 | return 0; | |
21708 | } | |
21709 | _ACEOF | |
21710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21712 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21713 | ac_status=$? |
ac1cb8d3 VS |
21714 | grep -v '^ *+' conftest.er1 >conftest.err |
21715 | rm -f conftest.er1 | |
21716 | cat conftest.err >&5 | |
a848cd7e SC |
21717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21718 | (exit $ac_status); } && | |
5dcf30a0 RN |
21719 | { ac_try='test -z "$ac_c_werror_flag" |
21720 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21722 | (eval $ac_try) 2>&5 | |
21723 | ac_status=$? | |
21724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21725 | (exit $ac_status); }; } && | |
21726 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21728 | (eval $ac_try) 2>&5 | |
21729 | ac_status=$? | |
21730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21731 | (exit $ac_status); }; }; then | |
21732 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21733 | else | |
21734 | echo "$as_me: failed program was:" >&5 | |
21735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21736 | ||
21737 | ac_cv_lib_expat_XML_ParserCreate=no | |
21738 | fi | |
ac1cb8d3 VS |
21739 | rm -f conftest.err conftest.$ac_objext \ |
21740 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21741 | LIBS=$ac_check_lib_save_LIBS |
21742 | fi | |
21743 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21744 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21745 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21746 | EXPAT_LINK=" -lexpat" | |
21747 | fi | |
21748 | ||
21749 | fi | |
21750 | fi | |
21751 | if test "x$EXPAT_LINK" = "x" ; then | |
21752 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21753 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21754 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21755 | { (exit 1); exit 1; }; } | |
21756 | else | |
21757 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21758 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21759 | wxUSE_EXPAT=builtin | |
21760 | fi | |
21761 | else | |
21762 | wxUSE_EXPAT=sys | |
21763 | fi | |
21764 | fi | |
21765 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21766 | ||
21767 | ||
21768 | subdirs="$subdirs src/expat" | |
21769 | ||
21770 | fi | |
21771 | fi | |
21772 | ||
21773 | ||
21774 | ||
21775 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21776 | ||
21777 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21778 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21779 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21780 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21782 | fi | |
21783 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21784 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21785 | else | |
21786 | # Is the header compilable? | |
21787 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21788 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21789 | cat >conftest.$ac_ext <<_ACEOF | |
21790 | /* confdefs.h. */ | |
21791 | _ACEOF | |
21792 | cat confdefs.h >>conftest.$ac_ext | |
21793 | cat >>conftest.$ac_ext <<_ACEOF | |
21794 | /* end confdefs.h. */ | |
21795 | $ac_includes_default | |
21796 | #include <mspack.h> | |
21797 | _ACEOF | |
21798 | rm -f conftest.$ac_objext | |
21799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21800 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21801 | ac_status=$? |
ac1cb8d3 VS |
21802 | grep -v '^ *+' conftest.er1 >conftest.err |
21803 | rm -f conftest.er1 | |
21804 | cat conftest.err >&5 | |
a848cd7e SC |
21805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21806 | (exit $ac_status); } && | |
5dcf30a0 RN |
21807 | { ac_try='test -z "$ac_c_werror_flag" |
21808 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21810 | (eval $ac_try) 2>&5 | |
21811 | ac_status=$? | |
21812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21813 | (exit $ac_status); }; } && | |
21814 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21816 | (eval $ac_try) 2>&5 | |
21817 | ac_status=$? | |
21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21819 | (exit $ac_status); }; }; then | |
21820 | ac_header_compiler=yes | |
21821 | else | |
21822 | echo "$as_me: failed program was:" >&5 | |
21823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21824 | ||
21825 | ac_header_compiler=no | |
21826 | fi | |
ac1cb8d3 | 21827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21828 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21829 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21830 | ||
21831 | # Is the header present? | |
21832 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21833 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21834 | cat >conftest.$ac_ext <<_ACEOF | |
21835 | /* confdefs.h. */ | |
21836 | _ACEOF | |
21837 | cat confdefs.h >>conftest.$ac_ext | |
21838 | cat >>conftest.$ac_ext <<_ACEOF | |
21839 | /* end confdefs.h. */ | |
21840 | #include <mspack.h> | |
21841 | _ACEOF | |
21842 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21843 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21844 | ac_status=$? | |
21845 | grep -v '^ *+' conftest.er1 >conftest.err | |
21846 | rm -f conftest.er1 | |
21847 | cat conftest.err >&5 | |
21848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21849 | (exit $ac_status); } >/dev/null; then | |
21850 | if test -s conftest.err; then | |
21851 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21852 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21853 | else |
21854 | ac_cpp_err= | |
21855 | fi | |
21856 | else | |
21857 | ac_cpp_err=yes | |
21858 | fi | |
21859 | if test -z "$ac_cpp_err"; then | |
21860 | ac_header_preproc=yes | |
21861 | else | |
21862 | echo "$as_me: failed program was:" >&5 | |
21863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21864 | ||
21865 | ac_header_preproc=no | |
21866 | fi | |
21867 | rm -f conftest.err conftest.$ac_ext | |
21868 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21869 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21870 | ||
21871 | # So? What about this header? | |
ac1cb8d3 VS |
21872 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21873 | yes:no: ) | |
a848cd7e SC |
21874 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21875 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21876 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21877 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21878 | ac_header_preproc=yes | |
a848cd7e | 21879 | ;; |
ac1cb8d3 | 21880 | no:yes:* ) |
a848cd7e SC |
21881 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21882 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21883 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21884 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21885 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21886 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21887 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21888 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21889 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21890 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21891 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21892 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21893 | ( |
21894 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21895 | ## ----------------------------------------- ## |
21896 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21897 | ## ----------------------------------------- ## | |
a848cd7e SC |
21898 | _ASBOX |
21899 | ) | | |
21900 | sed "s/^/$as_me: WARNING: /" >&2 | |
21901 | ;; | |
21902 | esac | |
21903 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21904 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21905 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21907 | else | |
21908 | ac_cv_header_mspack_h=$ac_header_preproc | |
21909 | fi | |
21910 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21911 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21912 | ||
21913 | fi | |
21914 | if test $ac_cv_header_mspack_h = yes; then | |
21915 | found_mspack_h=1 | |
21916 | fi | |
21917 | ||
21918 | ||
21919 | if test "x$found_mspack_h" = "x1"; then | |
21920 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21921 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21922 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21924 | else | |
21925 | ac_check_lib_save_LIBS=$LIBS | |
21926 | LIBS="-lmspack $LIBS" | |
21927 | cat >conftest.$ac_ext <<_ACEOF | |
21928 | /* confdefs.h. */ | |
21929 | _ACEOF | |
21930 | cat confdefs.h >>conftest.$ac_ext | |
21931 | cat >>conftest.$ac_ext <<_ACEOF | |
21932 | /* end confdefs.h. */ | |
21933 | ||
21934 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21935 | #ifdef __cplusplus | |
21936 | extern "C" | |
21937 | #endif | |
21938 | /* We use char because int might match the return type of a gcc2 | |
21939 | builtin and then its argument prototype would still apply. */ | |
21940 | char mspack_create_chm_decompressor (); | |
21941 | int | |
21942 | main () | |
21943 | { | |
21944 | mspack_create_chm_decompressor (); | |
21945 | ; | |
21946 | return 0; | |
21947 | } | |
21948 | _ACEOF | |
21949 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21951 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21952 | ac_status=$? |
ac1cb8d3 VS |
21953 | grep -v '^ *+' conftest.er1 >conftest.err |
21954 | rm -f conftest.er1 | |
21955 | cat conftest.err >&5 | |
a848cd7e SC |
21956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21957 | (exit $ac_status); } && | |
5dcf30a0 RN |
21958 | { ac_try='test -z "$ac_c_werror_flag" |
21959 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21961 | (eval $ac_try) 2>&5 | |
21962 | ac_status=$? | |
21963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21964 | (exit $ac_status); }; } && | |
21965 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21967 | (eval $ac_try) 2>&5 | |
21968 | ac_status=$? | |
21969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21970 | (exit $ac_status); }; }; then | |
21971 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
21972 | else | |
21973 | echo "$as_me: failed program was:" >&5 | |
21974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21975 | ||
21976 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
21977 | fi | |
ac1cb8d3 VS |
21978 | rm -f conftest.err conftest.$ac_objext \ |
21979 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21980 | LIBS=$ac_check_lib_save_LIBS |
21981 | fi | |
21982 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
21983 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
21984 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
21985 | MSPACK_LINK=" -lmspack" | |
21986 | fi | |
21987 | ||
21988 | fi | |
21989 | if test "x$MSPACK_LINK" = "x" ; then | |
21990 | wxUSE_LIBMSPACK=no | |
21991 | else | |
21992 | cat >>confdefs.h <<\_ACEOF | |
21993 | #define wxUSE_LIBMSPACK 1 | |
21994 | _ACEOF | |
21995 | ||
21996 | fi | |
21997 | fi | |
21998 | ||
21999 | ||
22000 | ||
22001 | AFMINSTALL= | |
22002 | WIN32INSTALL= | |
22003 | ||
22004 | TOOLKIT= | |
22005 | TOOLKIT_INCLUDE= | |
22006 | WIDGET_SET= | |
22007 | ||
22008 | if test "$USE_WIN32" = 1 ; then | |
22009 | ||
22010 | for ac_header in w32api.h | |
22011 | do | |
22012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22014 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22018 | fi | |
22019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22020 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22021 | else | |
22022 | # Is the header compilable? | |
22023 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22024 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22025 | cat >conftest.$ac_ext <<_ACEOF | |
22026 | /* confdefs.h. */ | |
22027 | _ACEOF | |
22028 | cat confdefs.h >>conftest.$ac_ext | |
22029 | cat >>conftest.$ac_ext <<_ACEOF | |
22030 | /* end confdefs.h. */ | |
22031 | $ac_includes_default | |
22032 | #include <$ac_header> | |
22033 | _ACEOF | |
22034 | rm -f conftest.$ac_objext | |
22035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22036 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22037 | ac_status=$? |
ac1cb8d3 VS |
22038 | grep -v '^ *+' conftest.er1 >conftest.err |
22039 | rm -f conftest.er1 | |
22040 | cat conftest.err >&5 | |
a848cd7e SC |
22041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22042 | (exit $ac_status); } && | |
5dcf30a0 RN |
22043 | { ac_try='test -z "$ac_c_werror_flag" |
22044 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22046 | (eval $ac_try) 2>&5 | |
22047 | ac_status=$? | |
22048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22049 | (exit $ac_status); }; } && | |
22050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22052 | (eval $ac_try) 2>&5 | |
22053 | ac_status=$? | |
22054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22055 | (exit $ac_status); }; }; then | |
22056 | ac_header_compiler=yes | |
22057 | else | |
22058 | echo "$as_me: failed program was:" >&5 | |
22059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22060 | ||
22061 | ac_header_compiler=no | |
22062 | fi | |
ac1cb8d3 | 22063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22064 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22065 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22066 | ||
22067 | # Is the header present? | |
22068 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22069 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22070 | cat >conftest.$ac_ext <<_ACEOF | |
22071 | /* confdefs.h. */ | |
22072 | _ACEOF | |
22073 | cat confdefs.h >>conftest.$ac_ext | |
22074 | cat >>conftest.$ac_ext <<_ACEOF | |
22075 | /* end confdefs.h. */ | |
22076 | #include <$ac_header> | |
22077 | _ACEOF | |
22078 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22079 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22080 | ac_status=$? | |
22081 | grep -v '^ *+' conftest.er1 >conftest.err | |
22082 | rm -f conftest.er1 | |
22083 | cat conftest.err >&5 | |
22084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22085 | (exit $ac_status); } >/dev/null; then | |
22086 | if test -s conftest.err; then | |
22087 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22088 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22089 | else |
22090 | ac_cpp_err= | |
22091 | fi | |
22092 | else | |
22093 | ac_cpp_err=yes | |
22094 | fi | |
22095 | if test -z "$ac_cpp_err"; then | |
22096 | ac_header_preproc=yes | |
22097 | else | |
22098 | echo "$as_me: failed program was:" >&5 | |
22099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22100 | ||
22101 | ac_header_preproc=no | |
22102 | fi | |
22103 | rm -f conftest.err conftest.$ac_ext | |
22104 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22105 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22106 | ||
22107 | # So? What about this header? | |
ac1cb8d3 VS |
22108 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22109 | yes:no: ) | |
a848cd7e SC |
22110 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22111 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22112 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22113 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22114 | ac_header_preproc=yes | |
a848cd7e | 22115 | ;; |
ac1cb8d3 | 22116 | no:yes:* ) |
a848cd7e SC |
22117 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22118 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22119 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22120 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22121 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22122 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22123 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22124 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22125 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22126 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22127 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22128 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22129 | ( |
22130 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22131 | ## ----------------------------------------- ## |
22132 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22133 | ## ----------------------------------------- ## | |
a848cd7e SC |
22134 | _ASBOX |
22135 | ) | | |
22136 | sed "s/^/$as_me: WARNING: /" >&2 | |
22137 | ;; | |
22138 | esac | |
22139 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22140 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22141 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22143 | else | |
ac1cb8d3 | 22144 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22145 | fi |
22146 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22147 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22148 | ||
22149 | fi | |
22150 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22151 | cat >>confdefs.h <<_ACEOF | |
22152 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22153 | _ACEOF | |
22154 | ||
22155 | fi | |
22156 | ||
22157 | done | |
22158 | ||
22159 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22160 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22161 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22162 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22164 | fi | |
22165 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22166 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22167 | else | |
22168 | # Is the header compilable? | |
22169 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22170 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22171 | cat >conftest.$ac_ext <<_ACEOF | |
22172 | /* confdefs.h. */ | |
22173 | _ACEOF | |
22174 | cat confdefs.h >>conftest.$ac_ext | |
22175 | cat >>conftest.$ac_ext <<_ACEOF | |
22176 | /* end confdefs.h. */ | |
22177 | $ac_includes_default | |
22178 | #include <windows.h> | |
22179 | _ACEOF | |
22180 | rm -f conftest.$ac_objext | |
22181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22183 | ac_status=$? |
ac1cb8d3 VS |
22184 | grep -v '^ *+' conftest.er1 >conftest.err |
22185 | rm -f conftest.er1 | |
22186 | cat conftest.err >&5 | |
a848cd7e SC |
22187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22188 | (exit $ac_status); } && | |
5dcf30a0 RN |
22189 | { ac_try='test -z "$ac_c_werror_flag" |
22190 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22192 | (eval $ac_try) 2>&5 | |
22193 | ac_status=$? | |
22194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22195 | (exit $ac_status); }; } && | |
22196 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22198 | (eval $ac_try) 2>&5 | |
22199 | ac_status=$? | |
22200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22201 | (exit $ac_status); }; }; then | |
22202 | ac_header_compiler=yes | |
22203 | else | |
22204 | echo "$as_me: failed program was:" >&5 | |
22205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22206 | ||
22207 | ac_header_compiler=no | |
22208 | fi | |
ac1cb8d3 | 22209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22210 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22211 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22212 | ||
22213 | # Is the header present? | |
22214 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22215 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22216 | cat >conftest.$ac_ext <<_ACEOF | |
22217 | /* confdefs.h. */ | |
22218 | _ACEOF | |
22219 | cat confdefs.h >>conftest.$ac_ext | |
22220 | cat >>conftest.$ac_ext <<_ACEOF | |
22221 | /* end confdefs.h. */ | |
22222 | #include <windows.h> | |
22223 | _ACEOF | |
22224 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22225 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22226 | ac_status=$? | |
22227 | grep -v '^ *+' conftest.er1 >conftest.err | |
22228 | rm -f conftest.er1 | |
22229 | cat conftest.err >&5 | |
22230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22231 | (exit $ac_status); } >/dev/null; then | |
22232 | if test -s conftest.err; then | |
22233 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22234 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22235 | else |
22236 | ac_cpp_err= | |
22237 | fi | |
22238 | else | |
22239 | ac_cpp_err=yes | |
22240 | fi | |
22241 | if test -z "$ac_cpp_err"; then | |
22242 | ac_header_preproc=yes | |
22243 | else | |
22244 | echo "$as_me: failed program was:" >&5 | |
22245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22246 | ||
22247 | ac_header_preproc=no | |
22248 | fi | |
22249 | rm -f conftest.err conftest.$ac_ext | |
22250 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22251 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22252 | ||
22253 | # So? What about this header? | |
ac1cb8d3 VS |
22254 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22255 | yes:no: ) | |
a848cd7e SC |
22256 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22257 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22258 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22259 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22260 | ac_header_preproc=yes | |
a848cd7e | 22261 | ;; |
ac1cb8d3 | 22262 | no:yes:* ) |
a848cd7e SC |
22263 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22264 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22265 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22266 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22267 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22268 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22269 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22270 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22271 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22272 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22273 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22274 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22275 | ( |
22276 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22277 | ## ----------------------------------------- ## |
22278 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22279 | ## ----------------------------------------- ## | |
a848cd7e SC |
22280 | _ASBOX |
22281 | ) | | |
22282 | sed "s/^/$as_me: WARNING: /" >&2 | |
22283 | ;; | |
22284 | esac | |
22285 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22286 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22287 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22289 | else | |
22290 | ac_cv_header_windows_h=$ac_header_preproc | |
22291 | fi | |
22292 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22293 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22294 | ||
22295 | fi | |
22296 | if test $ac_cv_header_windows_h = yes; then | |
22297 | : | |
22298 | else | |
22299 | ||
22300 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22301 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22302 | { (exit 1); exit 1; }; } | |
22303 | ||
22304 | fi | |
22305 | ||
22306 | ||
22307 | ||
22308 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22309 | ||
22310 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22311 | LIBS="$LIBS -loleacc" | |
22312 | fi | |
22313 | ||
22314 | case "${host}" in | |
22315 | *-*-cygwin* ) | |
22316 | LIBS="$LIBS -lkernel32 -luser32" | |
22317 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22318 | esac | |
22319 | ||
22320 | if test "$wxUSE_ODBC" = "sys" ; then | |
22321 | wxUSE_ODBC = "yes" | |
22322 | fi | |
22323 | if test "$wxUSE_ODBC" = "yes" ; then | |
22324 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22325 | cat >>confdefs.h <<\_ACEOF | |
22326 | #define wxUSE_ODBC 1 | |
22327 | _ACEOF | |
22328 | ||
22329 | fi | |
22330 | ||
22331 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22332 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22333 | ||
22334 | WIN32INSTALL=win32install | |
22335 | fi | |
22336 | ||
22337 | if test "$wxUSE_GUI" = "yes"; then | |
22338 | USE_GUI=1 | |
22339 | ||
22340 | GUI_TK_LIBRARY= | |
22341 | ||
22342 | WXGTK12= | |
22343 | WXGTK127= | |
22344 | WXGTK20= | |
22345 | WXGPE= | |
22346 | ||
22347 | if test "$wxUSE_MSW" = 1 ; then | |
22348 | TOOLKIT=MSW | |
22349 | GUIDIST=MSW_DIST | |
22350 | ||
ceec2216 | 22351 | case "${host}" in |
a848cd7e SC |
22352 | *-*-mingw32* ) |
22353 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22354 | esac | |
22355 | fi | |
22356 | ||
22357 | if test "$wxUSE_GTK" = 1; then | |
22358 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22359 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22360 | ||
22361 | gtk_version_cached=1 | |
22362 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22364 | else | |
22365 | ||
22366 | gtk_version_cached=0 | |
22367 | echo "$as_me:$LINENO: result: " >&5 | |
22368 | echo "${ECHO_T}" >&6 | |
22369 | ||
22370 | GTK_MODULES= | |
22371 | if test "$wxUSE_THREADS" = "yes"; then | |
22372 | GTK_MODULES=gthread | |
22373 | fi | |
22374 | ||
22375 | wx_cv_lib_gtk= | |
22376 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22377 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22378 | if test "${enable_gtktest+set}" = set; then | |
22379 | enableval="$enable_gtktest" | |
22380 | ||
22381 | else | |
22382 | enable_gtktest=yes | |
22383 | fi; | |
22384 | ||
22385 | pkg_config_args=gtk+-2.0 | |
22386 | for module in . $GTK_MODULES | |
22387 | do | |
22388 | case "$module" in | |
22389 | gthread) | |
22390 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22391 | ;; | |
22392 | esac | |
22393 | done | |
22394 | ||
22395 | no_gtk="" | |
22396 | ||
22397 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22398 | set dummy pkg-config; ac_word=$2 | |
22399 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22401 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22403 | else | |
22404 | case $PKG_CONFIG in | |
22405 | [\\/]* | ?:[\\/]*) | |
22406 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22407 | ;; | |
22408 | *) | |
22409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22410 | for as_dir in $PATH | |
22411 | do | |
22412 | IFS=$as_save_IFS | |
22413 | test -z "$as_dir" && as_dir=. | |
22414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22416 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22418 | break 2 | |
22419 | fi | |
22420 | done | |
22421 | done | |
22422 | ||
22423 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22424 | ;; | |
22425 | esac | |
22426 | fi | |
22427 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22428 | ||
22429 | if test -n "$PKG_CONFIG"; then | |
22430 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22431 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22432 | else | |
22433 | echo "$as_me:$LINENO: result: no" >&5 | |
22434 | echo "${ECHO_T}no" >&6 | |
22435 | fi | |
22436 | ||
22437 | ||
22438 | if test x$PKG_CONFIG != xno ; then | |
22439 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22440 | : | |
22441 | else | |
c2218763 | 22442 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22443 | no_gtk=yes |
22444 | PKG_CONFIG=no | |
22445 | fi | |
22446 | else | |
22447 | no_gtk=yes | |
22448 | fi | |
22449 | ||
22450 | min_gtk_version=2.0.0 | |
22451 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22452 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22453 | ||
22454 | if test x$PKG_CONFIG != xno ; then | |
22455 | ## don't try to run the test against uninstalled libtool libs | |
22456 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22457 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22458 | enable_gtktest=no | |
22459 | fi | |
22460 | ||
22461 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22462 | : | |
22463 | else | |
22464 | no_gtk=yes | |
22465 | fi | |
22466 | fi | |
22467 | ||
22468 | if test x"$no_gtk" = x ; then | |
22469 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22470 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22471 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22472 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22473 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22474 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22475 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22476 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22477 | if test "x$enable_gtktest" = "xyes" ; then | |
22478 | ac_save_CFLAGS="$CFLAGS" | |
22479 | ac_save_LIBS="$LIBS" | |
22480 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22481 | LIBS="$GTK_LIBS $LIBS" | |
22482 | rm -f conf.gtktest | |
22483 | if test "$cross_compiling" = yes; then | |
22484 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22485 | else | |
22486 | cat >conftest.$ac_ext <<_ACEOF | |
22487 | /* confdefs.h. */ | |
22488 | _ACEOF | |
22489 | cat confdefs.h >>conftest.$ac_ext | |
22490 | cat >>conftest.$ac_ext <<_ACEOF | |
22491 | /* end confdefs.h. */ | |
22492 | ||
22493 | #include <gtk/gtk.h> | |
22494 | #include <stdio.h> | |
22495 | #include <stdlib.h> | |
22496 | ||
22497 | int | |
22498 | main () | |
22499 | { | |
22500 | int major, minor, micro; | |
22501 | char *tmp_version; | |
22502 | ||
22503 | system ("touch conf.gtktest"); | |
22504 | ||
22505 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22506 | tmp_version = g_strdup("$min_gtk_version"); | |
22507 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22508 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22509 | exit(1); | |
22510 | } | |
22511 | ||
22512 | if ((gtk_major_version != $gtk_config_major_version) || | |
22513 | (gtk_minor_version != $gtk_config_minor_version) || | |
22514 | (gtk_micro_version != $gtk_config_micro_version)) | |
22515 | { | |
22516 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22517 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22518 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22519 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22520 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22521 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22522 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22523 | printf("*** required on your system.\n"); | |
22524 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22525 | printf("*** to point to the correct configuration files\n"); | |
22526 | } | |
22527 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22528 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22529 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22530 | { | |
22531 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22532 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22533 | printf("*** library (version %d.%d.%d)\n", | |
22534 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22535 | } | |
22536 | else | |
22537 | { | |
22538 | if ((gtk_major_version > major) || | |
22539 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22540 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22541 | { | |
22542 | return 0; | |
22543 | } | |
22544 | else | |
22545 | { | |
22546 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22547 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22548 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22549 | major, minor, micro); | |
22550 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22551 | printf("***\n"); | |
22552 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22553 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22554 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22555 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22556 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22557 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22558 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22559 | } | |
22560 | } | |
22561 | return 1; | |
22562 | } | |
22563 | ||
22564 | _ACEOF | |
22565 | rm -f conftest$ac_exeext | |
22566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22567 | (eval $ac_link) 2>&5 | |
22568 | ac_status=$? | |
22569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22570 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22572 | (eval $ac_try) 2>&5 | |
22573 | ac_status=$? | |
22574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22575 | (exit $ac_status); }; }; then | |
22576 | : | |
22577 | else | |
22578 | echo "$as_me: program exited with status $ac_status" >&5 | |
22579 | echo "$as_me: failed program was:" >&5 | |
22580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22581 | ||
22582 | ( exit $ac_status ) | |
22583 | no_gtk=yes | |
22584 | fi | |
ac1cb8d3 | 22585 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22586 | fi |
22587 | CFLAGS="$ac_save_CFLAGS" | |
22588 | LIBS="$ac_save_LIBS" | |
22589 | fi | |
22590 | fi | |
22591 | if test "x$no_gtk" = x ; then | |
22592 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22593 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22594 | wx_cv_lib_gtk=2.0 | |
22595 | else | |
22596 | echo "$as_me:$LINENO: result: no" >&5 | |
22597 | echo "${ECHO_T}no" >&6 | |
22598 | if test "$PKG_CONFIG" = "no" ; then | |
22599 | echo "*** A new enough version of pkg-config was not found." | |
22600 | echo "*** See http://pkgconfig.sourceforge.net" | |
22601 | else | |
22602 | if test -f conf.gtktest ; then | |
22603 | : | |
22604 | else | |
22605 | echo "*** Could not run GTK+ test program, checking why..." | |
22606 | ac_save_CFLAGS="$CFLAGS" | |
22607 | ac_save_LIBS="$LIBS" | |
22608 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22609 | LIBS="$LIBS $GTK_LIBS" | |
22610 | cat >conftest.$ac_ext <<_ACEOF | |
22611 | /* confdefs.h. */ | |
22612 | _ACEOF | |
22613 | cat confdefs.h >>conftest.$ac_ext | |
22614 | cat >>conftest.$ac_ext <<_ACEOF | |
22615 | /* end confdefs.h. */ | |
22616 | ||
22617 | #include <gtk/gtk.h> | |
22618 | #include <stdio.h> | |
22619 | ||
22620 | int | |
22621 | main () | |
22622 | { | |
22623 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22624 | ; | |
22625 | return 0; | |
22626 | } | |
22627 | _ACEOF | |
22628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22630 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22631 | ac_status=$? |
ac1cb8d3 VS |
22632 | grep -v '^ *+' conftest.er1 >conftest.err |
22633 | rm -f conftest.er1 | |
22634 | cat conftest.err >&5 | |
a848cd7e SC |
22635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22636 | (exit $ac_status); } && | |
5dcf30a0 RN |
22637 | { ac_try='test -z "$ac_c_werror_flag" |
22638 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22640 | (eval $ac_try) 2>&5 | |
22641 | ac_status=$? | |
22642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22643 | (exit $ac_status); }; } && | |
22644 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22646 | (eval $ac_try) 2>&5 | |
22647 | ac_status=$? | |
22648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22649 | (exit $ac_status); }; }; then | |
22650 | echo "*** The test program compiled, but did not run. This usually means" | |
22651 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22652 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22653 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22654 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22655 | echo "*** is required on your system" | |
22656 | echo "***" | |
22657 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22658 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22659 | else | |
22660 | echo "$as_me: failed program was:" >&5 | |
22661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22662 | ||
22663 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22664 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22665 | fi | |
ac1cb8d3 VS |
22666 | rm -f conftest.err conftest.$ac_objext \ |
22667 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22668 | CFLAGS="$ac_save_CFLAGS" |
22669 | LIBS="$ac_save_LIBS" | |
22670 | fi | |
22671 | fi | |
22672 | GTK_CFLAGS="" | |
22673 | GTK_LIBS="" | |
22674 | : | |
22675 | fi | |
22676 | ||
22677 | ||
22678 | rm -f conf.gtktest | |
22679 | ||
22680 | else | |
22681 | ||
22682 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22683 | if test "${with_gtk_prefix+set}" = set; then | |
22684 | withval="$with_gtk_prefix" | |
22685 | gtk_config_prefix="$withval" | |
22686 | else | |
22687 | gtk_config_prefix="" | |
22688 | fi; | |
22689 | ||
22690 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22691 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22692 | withval="$with_gtk_exec_prefix" | |
22693 | gtk_config_exec_prefix="$withval" | |
22694 | else | |
22695 | gtk_config_exec_prefix="" | |
22696 | fi; | |
22697 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22698 | if test "${enable_gtktest+set}" = set; then | |
22699 | enableval="$enable_gtktest" | |
22700 | ||
22701 | else | |
22702 | enable_gtktest=yes | |
22703 | fi; | |
22704 | ||
22705 | for module in . $GTK_MODULES | |
22706 | do | |
22707 | case "$module" in | |
22708 | gthread) | |
22709 | gtk_config_args="$gtk_config_args gthread" | |
22710 | ;; | |
22711 | esac | |
22712 | done | |
22713 | ||
22714 | if test x$gtk_config_exec_prefix != x ; then | |
22715 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22716 | if test x${GTK_CONFIG+set} != xset ; then | |
22717 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22718 | fi | |
22719 | fi | |
22720 | if test x$gtk_config_prefix != x ; then | |
22721 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22722 | if test x${GTK_CONFIG+set} != xset ; then | |
22723 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22724 | fi | |
22725 | fi | |
22726 | ||
22727 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22728 | set dummy gtk-config; ac_word=$2 | |
22729 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22731 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22733 | else | |
22734 | case $GTK_CONFIG in | |
22735 | [\\/]* | ?:[\\/]*) | |
22736 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22737 | ;; | |
22738 | *) | |
22739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22740 | for as_dir in $PATH | |
22741 | do | |
22742 | IFS=$as_save_IFS | |
22743 | test -z "$as_dir" && as_dir=. | |
22744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22746 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22748 | break 2 | |
22749 | fi | |
22750 | done | |
22751 | done | |
22752 | ||
22753 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22754 | ;; | |
22755 | esac | |
22756 | fi | |
22757 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22758 | ||
22759 | if test -n "$GTK_CONFIG"; then | |
22760 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22761 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22762 | else | |
22763 | echo "$as_me:$LINENO: result: no" >&5 | |
22764 | echo "${ECHO_T}no" >&6 | |
22765 | fi | |
22766 | ||
22767 | min_gtk_version=1.2.7 | |
22768 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22769 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22770 | no_gtk="" | |
22771 | if test "$GTK_CONFIG" = "no" ; then | |
22772 | no_gtk=yes | |
22773 | else | |
22774 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22775 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22776 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22777 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22778 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22779 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22780 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22781 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22782 | if test "x$enable_gtktest" = "xyes" ; then | |
22783 | ac_save_CFLAGS="$CFLAGS" | |
22784 | ac_save_LIBS="$LIBS" | |
22785 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22786 | LIBS="$GTK_LIBS $LIBS" | |
22787 | rm -f conf.gtktest | |
22788 | if test "$cross_compiling" = yes; then | |
22789 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22790 | else | |
22791 | cat >conftest.$ac_ext <<_ACEOF | |
22792 | /* confdefs.h. */ | |
22793 | _ACEOF | |
22794 | cat confdefs.h >>conftest.$ac_ext | |
22795 | cat >>conftest.$ac_ext <<_ACEOF | |
22796 | /* end confdefs.h. */ | |
22797 | ||
22798 | #include <gtk/gtk.h> | |
22799 | #include <stdio.h> | |
22800 | #include <stdlib.h> | |
22801 | ||
22802 | int | |
22803 | main () | |
22804 | { | |
22805 | int major, minor, micro; | |
22806 | char *tmp_version; | |
22807 | ||
22808 | system ("touch conf.gtktest"); | |
22809 | ||
22810 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22811 | tmp_version = g_strdup("$min_gtk_version"); | |
22812 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22813 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22814 | exit(1); | |
22815 | } | |
22816 | ||
22817 | if ((gtk_major_version != $gtk_config_major_version) || | |
22818 | (gtk_minor_version != $gtk_config_minor_version) || | |
22819 | (gtk_micro_version != $gtk_config_micro_version)) | |
22820 | { | |
22821 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22822 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22823 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22824 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22825 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22826 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22827 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22828 | printf("*** required on your system.\n"); | |
22829 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22830 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22831 | printf("*** before re-running configure\n"); | |
22832 | } | |
22833 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22834 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22835 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22836 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22837 | { | |
22838 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22839 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22840 | printf("*** library (version %d.%d.%d)\n", | |
22841 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22842 | } | |
22843 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22844 | else | |
22845 | { | |
22846 | if ((gtk_major_version > major) || | |
22847 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22848 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22849 | { | |
22850 | return 0; | |
22851 | } | |
22852 | else | |
22853 | { | |
22854 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22855 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22856 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22857 | major, minor, micro); | |
22858 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22859 | printf("***\n"); | |
22860 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22861 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22862 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22863 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22864 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22865 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22866 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22867 | } | |
22868 | } | |
22869 | return 1; | |
22870 | } | |
22871 | ||
22872 | _ACEOF | |
22873 | rm -f conftest$ac_exeext | |
22874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22875 | (eval $ac_link) 2>&5 | |
22876 | ac_status=$? | |
22877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22878 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22880 | (eval $ac_try) 2>&5 | |
22881 | ac_status=$? | |
22882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22883 | (exit $ac_status); }; }; then | |
22884 | : | |
22885 | else | |
22886 | echo "$as_me: program exited with status $ac_status" >&5 | |
22887 | echo "$as_me: failed program was:" >&5 | |
22888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22889 | ||
22890 | ( exit $ac_status ) | |
22891 | no_gtk=yes | |
22892 | fi | |
ac1cb8d3 | 22893 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22894 | fi |
22895 | CFLAGS="$ac_save_CFLAGS" | |
22896 | LIBS="$ac_save_LIBS" | |
22897 | fi | |
22898 | fi | |
22899 | if test "x$no_gtk" = x ; then | |
22900 | echo "$as_me:$LINENO: result: yes" >&5 | |
22901 | echo "${ECHO_T}yes" >&6 | |
22902 | wx_cv_lib_gtk=1.2.7 | |
22903 | else | |
22904 | echo "$as_me:$LINENO: result: no" >&5 | |
22905 | echo "${ECHO_T}no" >&6 | |
22906 | if test "$GTK_CONFIG" = "no" ; then | |
22907 | echo "*** The gtk-config script installed by GTK could not be found" | |
22908 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22909 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22910 | echo "*** full path to gtk-config." | |
22911 | else | |
22912 | if test -f conf.gtktest ; then | |
22913 | : | |
22914 | else | |
22915 | echo "*** Could not run GTK test program, checking why..." | |
22916 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22917 | LIBS="$LIBS $GTK_LIBS" | |
22918 | cat >conftest.$ac_ext <<_ACEOF | |
22919 | /* confdefs.h. */ | |
22920 | _ACEOF | |
22921 | cat confdefs.h >>conftest.$ac_ext | |
22922 | cat >>conftest.$ac_ext <<_ACEOF | |
22923 | /* end confdefs.h. */ | |
22924 | ||
22925 | #include <gtk/gtk.h> | |
22926 | #include <stdio.h> | |
22927 | ||
22928 | int | |
22929 | main () | |
22930 | { | |
22931 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22932 | ; | |
22933 | return 0; | |
22934 | } | |
22935 | _ACEOF | |
22936 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22938 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22939 | ac_status=$? |
ac1cb8d3 VS |
22940 | grep -v '^ *+' conftest.er1 >conftest.err |
22941 | rm -f conftest.er1 | |
22942 | cat conftest.err >&5 | |
a848cd7e SC |
22943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22944 | (exit $ac_status); } && | |
5dcf30a0 RN |
22945 | { ac_try='test -z "$ac_c_werror_flag" |
22946 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22948 | (eval $ac_try) 2>&5 | |
22949 | ac_status=$? | |
22950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22951 | (exit $ac_status); }; } && | |
22952 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22954 | (eval $ac_try) 2>&5 | |
22955 | ac_status=$? | |
22956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22957 | (exit $ac_status); }; }; then | |
22958 | echo "*** The test program compiled, but did not run. This usually means" | |
22959 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22960 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22961 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22962 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22963 | echo "*** is required on your system" | |
22964 | echo "***" | |
22965 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22966 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22967 | echo "***" | |
22968 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22969 | echo "*** came with the system with the command" | |
22970 | echo "***" | |
22971 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
22972 | else | |
22973 | echo "$as_me: failed program was:" >&5 | |
22974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22975 | ||
22976 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22977 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
22978 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
22979 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
22980 | fi | |
ac1cb8d3 VS |
22981 | rm -f conftest.err conftest.$ac_objext \ |
22982 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22983 | CFLAGS="$ac_save_CFLAGS" |
22984 | LIBS="$ac_save_LIBS" | |
22985 | fi | |
22986 | fi | |
22987 | GTK_CFLAGS="" | |
22988 | GTK_LIBS="" | |
22989 | : | |
22990 | fi | |
22991 | ||
22992 | ||
22993 | rm -f conf.gtktest | |
22994 | ||
22995 | ||
22996 | if test -z "$wx_cv_lib_gtk"; then | |
22997 | ||
22998 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22999 | if test "${with_gtk_prefix+set}" = set; then | |
23000 | withval="$with_gtk_prefix" | |
23001 | gtk_config_prefix="$withval" | |
23002 | else | |
23003 | gtk_config_prefix="" | |
23004 | fi; | |
23005 | ||
23006 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23007 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23008 | withval="$with_gtk_exec_prefix" | |
23009 | gtk_config_exec_prefix="$withval" | |
23010 | else | |
23011 | gtk_config_exec_prefix="" | |
23012 | fi; | |
23013 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23014 | if test "${enable_gtktest+set}" = set; then | |
23015 | enableval="$enable_gtktest" | |
23016 | ||
23017 | else | |
23018 | enable_gtktest=yes | |
23019 | fi; | |
23020 | ||
23021 | for module in . $GTK_MODULES | |
23022 | do | |
23023 | case "$module" in | |
23024 | gthread) | |
23025 | gtk_config_args="$gtk_config_args gthread" | |
23026 | ;; | |
23027 | esac | |
23028 | done | |
23029 | ||
23030 | if test x$gtk_config_exec_prefix != x ; then | |
23031 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23032 | if test x${GTK_CONFIG+set} != xset ; then | |
23033 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23034 | fi | |
23035 | fi | |
23036 | if test x$gtk_config_prefix != x ; then | |
23037 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23038 | if test x${GTK_CONFIG+set} != xset ; then | |
23039 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23040 | fi | |
23041 | fi | |
23042 | ||
23043 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23044 | set dummy gtk-config; ac_word=$2 | |
23045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23047 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23049 | else | |
23050 | case $GTK_CONFIG in | |
23051 | [\\/]* | ?:[\\/]*) | |
23052 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23053 | ;; | |
23054 | *) | |
23055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23056 | for as_dir in $PATH | |
23057 | do | |
23058 | IFS=$as_save_IFS | |
23059 | test -z "$as_dir" && as_dir=. | |
23060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23061 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23062 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23063 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23064 | break 2 | |
23065 | fi | |
23066 | done | |
23067 | done | |
23068 | ||
23069 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23070 | ;; | |
23071 | esac | |
23072 | fi | |
23073 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23074 | ||
23075 | if test -n "$GTK_CONFIG"; then | |
23076 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23077 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23078 | else | |
23079 | echo "$as_me:$LINENO: result: no" >&5 | |
23080 | echo "${ECHO_T}no" >&6 | |
23081 | fi | |
23082 | ||
23083 | min_gtk_version=1.2.3 | |
23084 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23085 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23086 | no_gtk="" | |
23087 | if test "$GTK_CONFIG" = "no" ; then | |
23088 | no_gtk=yes | |
23089 | else | |
23090 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23091 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23092 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23093 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23094 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23095 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23096 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23097 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23098 | if test "x$enable_gtktest" = "xyes" ; then | |
23099 | ac_save_CFLAGS="$CFLAGS" | |
23100 | ac_save_LIBS="$LIBS" | |
23101 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23102 | LIBS="$GTK_LIBS $LIBS" | |
23103 | rm -f conf.gtktest | |
23104 | if test "$cross_compiling" = yes; then | |
23105 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23106 | else | |
23107 | cat >conftest.$ac_ext <<_ACEOF | |
23108 | /* confdefs.h. */ | |
23109 | _ACEOF | |
23110 | cat confdefs.h >>conftest.$ac_ext | |
23111 | cat >>conftest.$ac_ext <<_ACEOF | |
23112 | /* end confdefs.h. */ | |
23113 | ||
23114 | #include <gtk/gtk.h> | |
23115 | #include <stdio.h> | |
23116 | #include <stdlib.h> | |
23117 | ||
23118 | int | |
23119 | main () | |
23120 | { | |
23121 | int major, minor, micro; | |
23122 | char *tmp_version; | |
23123 | ||
23124 | system ("touch conf.gtktest"); | |
23125 | ||
23126 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23127 | tmp_version = g_strdup("$min_gtk_version"); | |
23128 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23129 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23130 | exit(1); | |
23131 | } | |
23132 | ||
23133 | if ((gtk_major_version != $gtk_config_major_version) || | |
23134 | (gtk_minor_version != $gtk_config_minor_version) || | |
23135 | (gtk_micro_version != $gtk_config_micro_version)) | |
23136 | { | |
23137 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23138 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23139 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23140 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23141 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23142 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23143 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23144 | printf("*** required on your system.\n"); | |
23145 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23146 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23147 | printf("*** before re-running configure\n"); | |
23148 | } | |
23149 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23150 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23151 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23152 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23153 | { | |
23154 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23155 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23156 | printf("*** library (version %d.%d.%d)\n", | |
23157 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23158 | } | |
23159 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23160 | else | |
23161 | { | |
23162 | if ((gtk_major_version > major) || | |
23163 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23164 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23165 | { | |
23166 | return 0; | |
23167 | } | |
23168 | else | |
23169 | { | |
23170 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23171 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23172 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23173 | major, minor, micro); | |
23174 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23175 | printf("***\n"); | |
23176 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23177 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23178 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23179 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23180 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23181 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23182 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23183 | } | |
23184 | } | |
23185 | return 1; | |
23186 | } | |
23187 | ||
23188 | _ACEOF | |
23189 | rm -f conftest$ac_exeext | |
23190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23191 | (eval $ac_link) 2>&5 | |
23192 | ac_status=$? | |
23193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23194 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23196 | (eval $ac_try) 2>&5 | |
23197 | ac_status=$? | |
23198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23199 | (exit $ac_status); }; }; then | |
23200 | : | |
23201 | else | |
23202 | echo "$as_me: program exited with status $ac_status" >&5 | |
23203 | echo "$as_me: failed program was:" >&5 | |
23204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23205 | ||
23206 | ( exit $ac_status ) | |
23207 | no_gtk=yes | |
23208 | fi | |
ac1cb8d3 | 23209 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23210 | fi |
23211 | CFLAGS="$ac_save_CFLAGS" | |
23212 | LIBS="$ac_save_LIBS" | |
23213 | fi | |
23214 | fi | |
23215 | if test "x$no_gtk" = x ; then | |
23216 | echo "$as_me:$LINENO: result: yes" >&5 | |
23217 | echo "${ECHO_T}yes" >&6 | |
23218 | wx_cv_lib_gtk=1.2.3 | |
23219 | else | |
23220 | echo "$as_me:$LINENO: result: no" >&5 | |
23221 | echo "${ECHO_T}no" >&6 | |
23222 | if test "$GTK_CONFIG" = "no" ; then | |
23223 | echo "*** The gtk-config script installed by GTK could not be found" | |
23224 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23225 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23226 | echo "*** full path to gtk-config." | |
23227 | else | |
23228 | if test -f conf.gtktest ; then | |
23229 | : | |
23230 | else | |
23231 | echo "*** Could not run GTK test program, checking why..." | |
23232 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23233 | LIBS="$LIBS $GTK_LIBS" | |
23234 | cat >conftest.$ac_ext <<_ACEOF | |
23235 | /* confdefs.h. */ | |
23236 | _ACEOF | |
23237 | cat confdefs.h >>conftest.$ac_ext | |
23238 | cat >>conftest.$ac_ext <<_ACEOF | |
23239 | /* end confdefs.h. */ | |
23240 | ||
23241 | #include <gtk/gtk.h> | |
23242 | #include <stdio.h> | |
23243 | ||
23244 | int | |
23245 | main () | |
23246 | { | |
23247 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23248 | ; | |
23249 | return 0; | |
23250 | } | |
23251 | _ACEOF | |
23252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23254 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23255 | ac_status=$? |
ac1cb8d3 VS |
23256 | grep -v '^ *+' conftest.er1 >conftest.err |
23257 | rm -f conftest.er1 | |
23258 | cat conftest.err >&5 | |
a848cd7e SC |
23259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23260 | (exit $ac_status); } && | |
5dcf30a0 RN |
23261 | { ac_try='test -z "$ac_c_werror_flag" |
23262 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23264 | (eval $ac_try) 2>&5 | |
23265 | ac_status=$? | |
23266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23267 | (exit $ac_status); }; } && | |
23268 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23270 | (eval $ac_try) 2>&5 | |
23271 | ac_status=$? | |
23272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23273 | (exit $ac_status); }; }; then | |
23274 | echo "*** The test program compiled, but did not run. This usually means" | |
23275 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23276 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23277 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23278 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23279 | echo "*** is required on your system" | |
23280 | echo "***" | |
23281 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23282 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23283 | echo "***" | |
23284 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23285 | echo "*** came with the system with the command" | |
23286 | echo "***" | |
23287 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23288 | else | |
23289 | echo "$as_me: failed program was:" >&5 | |
23290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23291 | ||
23292 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23293 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23294 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23295 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23296 | fi | |
ac1cb8d3 VS |
23297 | rm -f conftest.err conftest.$ac_objext \ |
23298 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23299 | CFLAGS="$ac_save_CFLAGS" |
23300 | LIBS="$ac_save_LIBS" | |
23301 | fi | |
23302 | fi | |
23303 | GTK_CFLAGS="" | |
23304 | GTK_LIBS="" | |
23305 | : | |
23306 | fi | |
23307 | ||
23308 | ||
23309 | rm -f conf.gtktest | |
23310 | ||
23311 | fi | |
23312 | fi | |
23313 | ||
23314 | if test -z "$wx_cv_lib_gtk"; then | |
23315 | wx_cv_lib_gtk=none | |
23316 | else | |
23317 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23318 | wx_cv_libs_gtk=$GTK_LIBS | |
23319 | fi | |
23320 | ||
23321 | ||
23322 | fi | |
23323 | ||
23324 | ||
23325 | if test "$gtk_version_cached" = 1; then | |
23326 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23327 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23328 | fi | |
23329 | ||
23330 | case "$wx_cv_lib_gtk" in | |
23331 | 2.0) WXGTK20=1 | |
23332 | TOOLKIT_VERSION=2 | |
23333 | ;; | |
23334 | 1.2.7) WXGTK127=1 | |
23335 | WXGTK12=1 | |
23336 | ;; | |
23337 | 1.2.3) WXGTK12=1 | |
23338 | ;; | |
23339 | *) { { echo "$as_me:$LINENO: error: | |
23340 | Please check that gtk-config is in path, the directory | |
23341 | where GTK+ libraries are installed (returned by | |
23342 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23343 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23344 | " >&5 | |
23345 | echo "$as_me: error: | |
23346 | Please check that gtk-config is in path, the directory | |
23347 | where GTK+ libraries are installed (returned by | |
23348 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23349 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23350 | " >&2;} | |
23351 | { (exit 1); exit 1; }; } | |
23352 | ;; | |
23353 | esac | |
23354 | ||
23355 | if test "$WXGTK20" = 1; then | |
23356 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
23357 | ||
23358 | succeeded=no | |
23359 | ||
23360 | if test -z "$PKG_CONFIG"; then | |
23361 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23362 | set dummy pkg-config; ac_word=$2 | |
23363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23365 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23367 | else | |
23368 | case $PKG_CONFIG in | |
23369 | [\\/]* | ?:[\\/]*) | |
23370 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23371 | ;; | |
23372 | *) | |
23373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23374 | for as_dir in $PATH | |
23375 | do | |
23376 | IFS=$as_save_IFS | |
23377 | test -z "$as_dir" && as_dir=. | |
23378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23379 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23380 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23382 | break 2 | |
23383 | fi | |
23384 | done | |
23385 | done | |
23386 | ||
23387 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23388 | ;; | |
23389 | esac | |
23390 | fi | |
23391 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23392 | ||
23393 | if test -n "$PKG_CONFIG"; then | |
23394 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23395 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23396 | else | |
23397 | echo "$as_me:$LINENO: result: no" >&5 | |
23398 | echo "${ECHO_T}no" >&6 | |
23399 | fi | |
23400 | ||
23401 | fi | |
23402 | ||
23403 | if test "$PKG_CONFIG" = "no" ; then | |
23404 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23405 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23406 | echo "*** to the full path to pkg-config." | |
23407 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23408 | else | |
23409 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23410 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23411 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
23412 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
23413 | ||
23414 | if $PKG_CONFIG --exists "pangoft2" ; then | |
23415 | echo "$as_me:$LINENO: result: yes" >&5 | |
23416 | echo "${ECHO_T}yes" >&6 | |
23417 | succeeded=yes | |
23418 | ||
23419 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
23420 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
23421 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
23422 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
23423 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
23424 | ||
23425 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
23426 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
23427 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
23428 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
23429 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
23430 | else | |
23431 | PANGOFT2_CFLAGS="" | |
23432 | PANGOFT2_LIBS="" | |
23433 | ## If we have a custom action on failure, don't print errors, but | |
23434 | ## do set a variable so people can do so. | |
23435 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
23436 | ||
23437 | fi | |
23438 | ||
23439 | ||
23440 | ||
23441 | else | |
23442 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23443 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23444 | fi | |
23445 | fi | |
23446 | ||
23447 | if test $succeeded = yes; then | |
23448 | ||
23449 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
ceec2216 RL |
23450 | # FIXME: GTK_LIBS already has a lot of what this is |
23451 | # about to add, but we go ahead and just add | |
23452 | # it all again anyway. | |
23453 | # This is not a good way to manage things. And simply | |
23454 | # uniq'ing the list later is hardly better. | |
a848cd7e SC |
23455 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
23456 | ||
23457 | else | |
23458 | ||
23459 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23460 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
23461 | wxUSE_PRINTING_ARCHITECTURE="no" | |
23462 | ||
23463 | ||
23464 | fi | |
23465 | ||
23466 | fi | |
304205f1 VS |
23467 | |
23468 | save_CFLAGS="$CFLAGS" | |
23469 | save_LIBS="$LIBS" | |
23470 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23471 | LIBS="$LIBS $GTK_LIBS" | |
23472 | ||
23473 | for ac_func in pango_font_family_is_monospace | |
23474 | do | |
23475 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23476 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23477 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23478 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23480 | else | |
23481 | cat >conftest.$ac_ext <<_ACEOF | |
23482 | /* confdefs.h. */ | |
23483 | _ACEOF | |
23484 | cat confdefs.h >>conftest.$ac_ext | |
23485 | cat >>conftest.$ac_ext <<_ACEOF | |
23486 | /* end confdefs.h. */ | |
23487 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23488 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23489 | #define $ac_func innocuous_$ac_func | |
23490 | ||
23491 | /* System header to define __stub macros and hopefully few prototypes, | |
23492 | which can conflict with char $ac_func (); below. | |
23493 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23494 | <limits.h> exists even on freestanding compilers. */ | |
23495 | ||
23496 | #ifdef __STDC__ | |
23497 | # include <limits.h> | |
23498 | #else | |
23499 | # include <assert.h> | |
23500 | #endif | |
23501 | ||
23502 | #undef $ac_func | |
23503 | ||
23504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23505 | #ifdef __cplusplus | |
23506 | extern "C" | |
23507 | { | |
23508 | #endif | |
23509 | /* We use char because int might match the return type of a gcc2 | |
23510 | builtin and then its argument prototype would still apply. */ | |
23511 | char $ac_func (); | |
23512 | /* The GNU C library defines this for functions which it implements | |
23513 | to always fail with ENOSYS. Some functions are actually named | |
23514 | something starting with __ and the normal name is an alias. */ | |
23515 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23516 | choke me | |
23517 | #else | |
23518 | char (*f) () = $ac_func; | |
23519 | #endif | |
23520 | #ifdef __cplusplus | |
23521 | } | |
23522 | #endif | |
23523 | ||
23524 | int | |
23525 | main () | |
23526 | { | |
23527 | return f != $ac_func; | |
23528 | ; | |
23529 | return 0; | |
23530 | } | |
23531 | _ACEOF | |
23532 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23534 | (eval $ac_link) 2>conftest.er1 | |
23535 | ac_status=$? | |
23536 | grep -v '^ *+' conftest.er1 >conftest.err | |
23537 | rm -f conftest.er1 | |
23538 | cat conftest.err >&5 | |
23539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23540 | (exit $ac_status); } && | |
5dcf30a0 RN |
23541 | { ac_try='test -z "$ac_c_werror_flag" |
23542 | || test ! -s conftest.err' | |
304205f1 VS |
23543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23544 | (eval $ac_try) 2>&5 | |
23545 | ac_status=$? | |
23546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23547 | (exit $ac_status); }; } && | |
23548 | { ac_try='test -s conftest$ac_exeext' | |
23549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23550 | (eval $ac_try) 2>&5 | |
23551 | ac_status=$? | |
23552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23553 | (exit $ac_status); }; }; then | |
23554 | eval "$as_ac_var=yes" | |
23555 | else | |
23556 | echo "$as_me: failed program was:" >&5 | |
23557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23558 | ||
23559 | eval "$as_ac_var=no" | |
23560 | fi | |
23561 | rm -f conftest.err conftest.$ac_objext \ | |
23562 | conftest$ac_exeext conftest.$ac_ext | |
23563 | fi | |
23564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23565 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23566 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23567 | cat >>confdefs.h <<_ACEOF | |
23568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23569 | _ACEOF | |
23570 | ||
23571 | fi | |
23572 | done | |
23573 | ||
23574 | CFLAGS="$save_CFLAGS" | |
23575 | LIBS="$save_LIBS" | |
a848cd7e SC |
23576 | else |
23577 | if test "$wxUSE_UNICODE" = "yes"; then | |
23578 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23579 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23580 | wxUSE_UNICODE=no | |
23581 | fi | |
23582 | fi | |
23583 | ||
23584 | if test "$USE_DARWIN" != 1; then | |
23585 | ||
23586 | for ac_func in poll | |
23587 | do | |
23588 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23589 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23590 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23591 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23593 | else | |
23594 | cat >conftest.$ac_ext <<_ACEOF | |
23595 | /* confdefs.h. */ | |
23596 | _ACEOF | |
23597 | cat confdefs.h >>conftest.$ac_ext | |
23598 | cat >>conftest.$ac_ext <<_ACEOF | |
23599 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23600 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23602 | #define $ac_func innocuous_$ac_func | |
23603 | ||
a848cd7e SC |
23604 | /* System header to define __stub macros and hopefully few prototypes, |
23605 | which can conflict with char $ac_func (); below. | |
23606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23607 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23608 | |
a848cd7e SC |
23609 | #ifdef __STDC__ |
23610 | # include <limits.h> | |
23611 | #else | |
23612 | # include <assert.h> | |
23613 | #endif | |
ac1cb8d3 VS |
23614 | |
23615 | #undef $ac_func | |
23616 | ||
a848cd7e SC |
23617 | /* Override any gcc2 internal prototype to avoid an error. */ |
23618 | #ifdef __cplusplus | |
23619 | extern "C" | |
23620 | { | |
23621 | #endif | |
23622 | /* We use char because int might match the return type of a gcc2 | |
23623 | builtin and then its argument prototype would still apply. */ | |
23624 | char $ac_func (); | |
23625 | /* The GNU C library defines this for functions which it implements | |
23626 | to always fail with ENOSYS. Some functions are actually named | |
23627 | something starting with __ and the normal name is an alias. */ | |
23628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23629 | choke me | |
23630 | #else | |
23631 | char (*f) () = $ac_func; | |
23632 | #endif | |
23633 | #ifdef __cplusplus | |
23634 | } | |
23635 | #endif | |
23636 | ||
23637 | int | |
23638 | main () | |
23639 | { | |
23640 | return f != $ac_func; | |
23641 | ; | |
23642 | return 0; | |
23643 | } | |
23644 | _ACEOF | |
23645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23647 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23648 | ac_status=$? |
ac1cb8d3 VS |
23649 | grep -v '^ *+' conftest.er1 >conftest.err |
23650 | rm -f conftest.er1 | |
23651 | cat conftest.err >&5 | |
a848cd7e SC |
23652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23653 | (exit $ac_status); } && | |
5dcf30a0 RN |
23654 | { ac_try='test -z "$ac_c_werror_flag" |
23655 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23657 | (eval $ac_try) 2>&5 | |
23658 | ac_status=$? | |
23659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23660 | (exit $ac_status); }; } && | |
23661 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23663 | (eval $ac_try) 2>&5 | |
23664 | ac_status=$? | |
23665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23666 | (exit $ac_status); }; }; then | |
23667 | eval "$as_ac_var=yes" | |
23668 | else | |
23669 | echo "$as_me: failed program was:" >&5 | |
23670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23671 | ||
23672 | eval "$as_ac_var=no" | |
23673 | fi | |
ac1cb8d3 VS |
23674 | rm -f conftest.err conftest.$ac_objext \ |
23675 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23676 | fi |
23677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23678 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23679 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23680 | cat >>confdefs.h <<_ACEOF | |
23681 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23682 | _ACEOF | |
23683 | ||
23684 | fi | |
23685 | done | |
23686 | ||
23687 | fi | |
23688 | ||
23689 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23690 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23691 | ||
23692 | AFMINSTALL=afminstall | |
23693 | TOOLKIT=GTK | |
23694 | GUIDIST=GTK_DIST | |
23695 | ||
23696 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23697 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23698 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23700 | else | |
23701 | ac_check_lib_save_LIBS=$LIBS | |
23702 | LIBS="-lgdk $LIBS" | |
23703 | cat >conftest.$ac_ext <<_ACEOF | |
23704 | /* confdefs.h. */ | |
23705 | _ACEOF | |
23706 | cat confdefs.h >>conftest.$ac_ext | |
23707 | cat >>conftest.$ac_ext <<_ACEOF | |
23708 | /* end confdefs.h. */ | |
23709 | ||
23710 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23711 | #ifdef __cplusplus | |
23712 | extern "C" | |
23713 | #endif | |
23714 | /* We use char because int might match the return type of a gcc2 | |
23715 | builtin and then its argument prototype would still apply. */ | |
23716 | char gdk_im_open (); | |
23717 | int | |
23718 | main () | |
23719 | { | |
23720 | gdk_im_open (); | |
23721 | ; | |
23722 | return 0; | |
23723 | } | |
23724 | _ACEOF | |
23725 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23727 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23728 | ac_status=$? |
ac1cb8d3 VS |
23729 | grep -v '^ *+' conftest.er1 >conftest.err |
23730 | rm -f conftest.er1 | |
23731 | cat conftest.err >&5 | |
a848cd7e SC |
23732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23733 | (exit $ac_status); } && | |
5dcf30a0 RN |
23734 | { ac_try='test -z "$ac_c_werror_flag" |
23735 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23737 | (eval $ac_try) 2>&5 | |
23738 | ac_status=$? | |
23739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23740 | (exit $ac_status); }; } && | |
23741 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23743 | (eval $ac_try) 2>&5 | |
23744 | ac_status=$? | |
23745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23746 | (exit $ac_status); }; }; then | |
23747 | ac_cv_lib_gdk_gdk_im_open=yes | |
23748 | else | |
23749 | echo "$as_me: failed program was:" >&5 | |
23750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23751 | ||
23752 | ac_cv_lib_gdk_gdk_im_open=no | |
23753 | fi | |
ac1cb8d3 VS |
23754 | rm -f conftest.err conftest.$ac_objext \ |
23755 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23756 | LIBS=$ac_check_lib_save_LIBS |
23757 | fi | |
23758 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23759 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23760 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23761 | cat >>confdefs.h <<\_ACEOF | |
23762 | #define HAVE_XIM 1 | |
23763 | _ACEOF | |
23764 | ||
23765 | fi | |
23766 | ||
23767 | ||
23768 | ||
23769 | if test "$wxUSE_GPE" = "yes"; then | |
23770 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23771 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23772 | ||
23773 | ac_find_libraries= | |
23774 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23775 | do | |
23776 | for ac_extension in a so sl dylib; do | |
23777 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23778 | ac_find_libraries=$ac_dir | |
23779 | break 2 | |
23780 | fi | |
23781 | done | |
23782 | done | |
23783 | ||
23784 | if test "$ac_find_libraries" != "" ; then | |
23785 | ||
23786 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23787 | result=$? | |
23788 | if test $result = 0; then | |
23789 | ac_path_to_link="" | |
23790 | else | |
23791 | ac_path_to_link=" -L$ac_find_libraries" | |
23792 | fi | |
23793 | ||
23794 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23795 | WXGPE=1 | |
23796 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23797 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23798 | else | |
23799 | echo "$as_me:$LINENO: result: not found" >&5 | |
23800 | echo "${ECHO_T}not found" >&6 | |
23801 | fi | |
23802 | ||
23803 | fi | |
23804 | fi | |
23805 | ||
23806 | if test "$wxUSE_MGL" = 1; then | |
23807 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23808 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23809 | if test "x$MGL_ROOT" = x ; then | |
23810 | echo "$as_me:$LINENO: result: not found" >&5 | |
23811 | echo "${ECHO_T}not found" >&6 | |
23812 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23813 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23814 | { (exit 1); exit 1; }; } | |
23815 | else | |
23816 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
23817 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
23818 | fi | |
23819 | ||
23820 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
23821 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
23822 | case "${host}" in | |
23823 | *-*-linux* ) | |
23824 | if test "x$wxUSE_SHARED" = xyes ; then | |
23825 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
23826 | else | |
23827 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
23828 | fi | |
23829 | ;; | |
23830 | *-pc-msdosdjgpp ) | |
23831 | mgl_os_candidates="dos32/dj2" | |
23832 | ;; | |
23833 | *) | |
23834 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
23835 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23836 | { (exit 1); exit 1; }; } | |
23837 | esac | |
23838 | ||
23839 | mgl_lib_type="" | |
23840 | mgl_os="" | |
23841 | ||
23842 | for mgl_os_i in $mgl_os_candidates ; do | |
23843 | if test "x$mgl_os" = x ; then | |
23844 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23845 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23846 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23847 | mgl_lib_type=debug | |
23848 | mgl_os=$mgl_os_i | |
23849 | fi | |
23850 | fi | |
23851 | if test "x$mgl_lib_type" = x ; then | |
23852 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23853 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23854 | mgl_lib_type=release | |
23855 | mgl_os=$mgl_os_i | |
23856 | fi | |
23857 | fi | |
23858 | fi | |
23859 | done | |
23860 | ||
23861 | if test "x$mgl_os" = x ; then | |
23862 | echo "$as_me:$LINENO: result: not found" >&5 | |
23863 | echo "${ECHO_T}not found" >&6 | |
23864 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23865 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23866 | { (exit 1); exit 1; }; } | |
23867 | fi | |
23868 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
23869 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
23870 | ||
23871 | wxUSE_UNIVERSAL="yes" | |
23872 | ||
23873 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
23874 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23875 | ||
23876 | AFMINSTALL=afminstall | |
23877 | TOOLKIT=MGL | |
23878 | GUIDIST=MGL_DIST | |
23879 | fi | |
23880 | ||
23881 | if test "$wxUSE_MICROWIN" = 1; then | |
23882 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
23883 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
23884 | if test "x$MICROWINDOWS" = x ; then | |
23885 | echo "$as_me:$LINENO: result: not found" >&5 | |
23886 | echo "${ECHO_T}not found" >&6 | |
23887 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23888 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23889 | { (exit 1); exit 1; }; } | |
23890 | else | |
23891 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
23892 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
23893 | fi | |
23894 | ||
23895 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
23896 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
23897 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
23898 | else | |
23899 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
23900 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23901 | { (exit 1); exit 1; }; } | |
23902 | fi | |
23903 | ||
23904 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
23905 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23906 | ||
23907 | wxUSE_UNIVERSAL="yes" | |
23908 | ||
23909 | AFMINSTALL=afminstall | |
23910 | TOOLKIT=MICROWIN | |
23911 | GUIDIST=MICROWIN_DIST | |
23912 | ||
23913 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
23914 | fi | |
23915 | ||
74b84332 | 23916 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
5dcf30a0 | 23917 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
23918 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
23919 | ||
23920 | ||
23921 | # Check whether --with-x or --without-x was given. | |
23922 | if test "${with_x+set}" = set; then | |
23923 | withval="$with_x" | |
23924 | ||
23925 | fi; | |
23926 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
23927 | if test "x$with_x" = xno; then | |
23928 | # The user explicitly disabled X. | |
23929 | have_x=disabled | |
23930 | else | |
23931 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23932 | # Both variables are already set. | |
23933 | have_x=yes | |
23934 | else | |
23935 | if test "${ac_cv_have_x+set}" = set; then | |
23936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23937 | else | |
23938 | # One or both of the vars are not set, and there is no cached value. | |
23939 | ac_x_includes=no ac_x_libraries=no | |
23940 | rm -fr conftest.dir | |
23941 | if mkdir conftest.dir; then | |
23942 | cd conftest.dir | |
23943 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
23944 | cat >Imakefile <<'_ACEOF' | |
23945 | acfindx: | |
23946 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
23947 | _ACEOF | |
23948 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
23949 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23950 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23951 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23952 | for ac_extension in a so sl; do | |
23953 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
23954 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23955 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
23956 | fi |
23957 | done | |
23958 | # Screen out bogus values from the imake configuration. They are | |
23959 | # bogus both because they are the default anyway, and because | |
23960 | # using them would break gcc on systems where it needs fixed includes. | |
23961 | case $ac_im_incroot in | |
23962 | /usr/include) ;; | |
23963 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
23964 | esac | |
23965 | case $ac_im_usrlibdir in | |
23966 | /usr/lib | /lib) ;; | |
23967 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
23968 | esac | |
23969 | fi | |
23970 | cd .. | |
23971 | rm -fr conftest.dir | |
23972 | fi | |
23973 | ||
23974 | # Standard set of common directories for X headers. | |
23975 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23976 | ac_x_header_dirs=' | |
23977 | /usr/X11/include | |
23978 | /usr/X11R6/include | |
23979 | /usr/X11R5/include | |
23980 | /usr/X11R4/include | |
23981 | ||
23982 | /usr/include/X11 | |
23983 | /usr/include/X11R6 | |
23984 | /usr/include/X11R5 | |
23985 | /usr/include/X11R4 | |
23986 | ||
23987 | /usr/local/X11/include | |
23988 | /usr/local/X11R6/include | |
23989 | /usr/local/X11R5/include | |
23990 | /usr/local/X11R4/include | |
23991 | ||
23992 | /usr/local/include/X11 | |
23993 | /usr/local/include/X11R6 | |
23994 | /usr/local/include/X11R5 | |
23995 | /usr/local/include/X11R4 | |
23996 | ||
23997 | /usr/X386/include | |
23998 | /usr/x386/include | |
23999 | /usr/XFree86/include/X11 | |
24000 | ||
24001 | /usr/include | |
24002 | /usr/local/include | |
24003 | /usr/unsupported/include | |
24004 | /usr/athena/include | |
24005 | /usr/local/x11r5/include | |
24006 | /usr/lpp/Xamples/include | |
24007 | ||
24008 | /usr/openwin/include | |
24009 | /usr/openwin/share/include' | |
24010 | ||
24011 | if test "$ac_x_includes" = no; then | |
5dcf30a0 | 24012 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
24013 | # First, try using that file with no special directory specified. |
24014 | cat >conftest.$ac_ext <<_ACEOF | |
24015 | /* confdefs.h. */ | |
24016 | _ACEOF | |
24017 | cat confdefs.h >>conftest.$ac_ext | |
24018 | cat >>conftest.$ac_ext <<_ACEOF | |
24019 | /* end confdefs.h. */ | |
24020 | #include <X11/Intrinsic.h> | |
24021 | _ACEOF | |
24022 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24023 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24024 | ac_status=$? | |
24025 | grep -v '^ *+' conftest.er1 >conftest.err | |
24026 | rm -f conftest.er1 | |
24027 | cat conftest.err >&5 | |
24028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24029 | (exit $ac_status); } >/dev/null; then | |
24030 | if test -s conftest.err; then | |
24031 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24032 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24033 | else |
24034 | ac_cpp_err= | |
24035 | fi | |
24036 | else | |
24037 | ac_cpp_err=yes | |
24038 | fi | |
24039 | if test -z "$ac_cpp_err"; then | |
24040 | # We can compile using X headers with no special include directory. | |
24041 | ac_x_includes= | |
24042 | else | |
24043 | echo "$as_me: failed program was:" >&5 | |
24044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24045 | ||
24046 | for ac_dir in $ac_x_header_dirs; do | |
24047 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24048 | ac_x_includes=$ac_dir | |
24049 | break | |
24050 | fi | |
24051 | done | |
24052 | fi | |
24053 | rm -f conftest.err conftest.$ac_ext | |
24054 | fi # $ac_x_includes = no | |
24055 | ||
24056 | if test "$ac_x_libraries" = no; then | |
24057 | # Check for the libraries. | |
24058 | # See if we find them without any special options. | |
24059 | # Don't add to $LIBS permanently. | |
24060 | ac_save_LIBS=$LIBS | |
24061 | LIBS="-lXt $LIBS" | |
24062 | cat >conftest.$ac_ext <<_ACEOF | |
24063 | /* confdefs.h. */ | |
24064 | _ACEOF | |
24065 | cat confdefs.h >>conftest.$ac_ext | |
24066 | cat >>conftest.$ac_ext <<_ACEOF | |
24067 | /* end confdefs.h. */ | |
24068 | #include <X11/Intrinsic.h> | |
24069 | int | |
24070 | main () | |
24071 | { | |
24072 | XtMalloc (0) | |
24073 | ; | |
24074 | return 0; | |
24075 | } | |
24076 | _ACEOF | |
24077 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24079 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24080 | ac_status=$? |
ac1cb8d3 VS |
24081 | grep -v '^ *+' conftest.er1 >conftest.err |
24082 | rm -f conftest.er1 | |
24083 | cat conftest.err >&5 | |
a848cd7e SC |
24084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24085 | (exit $ac_status); } && | |
5dcf30a0 RN |
24086 | { ac_try='test -z "$ac_c_werror_flag" |
24087 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24089 | (eval $ac_try) 2>&5 | |
24090 | ac_status=$? | |
24091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24092 | (exit $ac_status); }; } && | |
24093 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24095 | (eval $ac_try) 2>&5 | |
24096 | ac_status=$? | |
24097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24098 | (exit $ac_status); }; }; then | |
24099 | LIBS=$ac_save_LIBS | |
24100 | # We can link X programs with no special library path. | |
24101 | ac_x_libraries= | |
24102 | else | |
24103 | echo "$as_me: failed program was:" >&5 | |
24104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24105 | ||
24106 | LIBS=$ac_save_LIBS | |
24107 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24108 | do | |
24109 | # Don't even attempt the hair of trying to link an X program! | |
24110 | for ac_extension in a so sl; do | |
24111 | if test -r $ac_dir/libXt.$ac_extension; then | |
24112 | ac_x_libraries=$ac_dir | |
24113 | break 2 | |
24114 | fi | |
24115 | done | |
24116 | done | |
24117 | fi | |
ac1cb8d3 VS |
24118 | rm -f conftest.err conftest.$ac_objext \ |
24119 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24120 | fi # $ac_x_libraries = no |
24121 | ||
24122 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24123 | # Didn't find X anywhere. Cache the known absence of X. | |
24124 | ac_cv_have_x="have_x=no" | |
24125 | else | |
24126 | # Record where we found X for the cache. | |
24127 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24128 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24129 | fi |
24130 | fi | |
24131 | ||
24132 | fi | |
24133 | eval "$ac_cv_have_x" | |
24134 | fi # $with_x != no | |
24135 | ||
24136 | if test "$have_x" != yes; then | |
24137 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24138 | echo "${ECHO_T}$have_x" >&6 | |
24139 | no_x=yes | |
24140 | else | |
24141 | # If each of the values was on the command line, it overrides each guess. | |
24142 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24143 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24144 | # Update the cache value to reflect the command line values. | |
24145 | ac_cv_have_x="have_x=yes \ | |
24146 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
5dcf30a0 RN |
24147 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
24148 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
24149 | fi |
24150 | ||
24151 | if test "$no_x" = yes; then | |
24152 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24153 | ||
24154 | cat >>confdefs.h <<\_ACEOF | |
24155 | #define X_DISPLAY_MISSING 1 | |
24156 | _ACEOF | |
24157 | ||
24158 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24159 | else | |
24160 | if test -n "$x_includes"; then | |
24161 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24162 | fi | |
24163 | ||
24164 | # It would also be nice to do this for all -L options, not just this one. | |
24165 | if test -n "$x_libraries"; then | |
24166 | X_LIBS="$X_LIBS -L$x_libraries" | |
24167 | # For Solaris; some versions of Sun CC require a space after -R and | |
24168 | # others require no space. Words are not sufficient . . . . | |
24169 | case `(uname -sr) 2>/dev/null` in | |
24170 | "SunOS 5"*) | |
24171 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24172 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24173 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24174 | cat >conftest.$ac_ext <<_ACEOF | |
24175 | /* confdefs.h. */ | |
24176 | _ACEOF | |
24177 | cat confdefs.h >>conftest.$ac_ext | |
24178 | cat >>conftest.$ac_ext <<_ACEOF | |
24179 | /* end confdefs.h. */ | |
24180 | ||
24181 | int | |
24182 | main () | |
24183 | { | |
24184 | ||
24185 | ; | |
24186 | return 0; | |
24187 | } | |
24188 | _ACEOF | |
24189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24191 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24192 | ac_status=$? |
ac1cb8d3 VS |
24193 | grep -v '^ *+' conftest.er1 >conftest.err |
24194 | rm -f conftest.er1 | |
24195 | cat conftest.err >&5 | |
a848cd7e SC |
24196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24197 | (exit $ac_status); } && | |
5dcf30a0 RN |
24198 | { ac_try='test -z "$ac_c_werror_flag" |
24199 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24201 | (eval $ac_try) 2>&5 | |
24202 | ac_status=$? | |
24203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24204 | (exit $ac_status); }; } && | |
24205 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24207 | (eval $ac_try) 2>&5 | |
24208 | ac_status=$? | |
24209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24210 | (exit $ac_status); }; }; then | |
24211 | ac_R_nospace=yes | |
24212 | else | |
24213 | echo "$as_me: failed program was:" >&5 | |
24214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24215 | ||
24216 | ac_R_nospace=no | |
24217 | fi | |
ac1cb8d3 VS |
24218 | rm -f conftest.err conftest.$ac_objext \ |
24219 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24220 | if test $ac_R_nospace = yes; then |
24221 | echo "$as_me:$LINENO: result: no" >&5 | |
24222 | echo "${ECHO_T}no" >&6 | |
24223 | X_LIBS="$X_LIBS -R$x_libraries" | |
24224 | else | |
24225 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24226 | cat >conftest.$ac_ext <<_ACEOF | |
24227 | /* confdefs.h. */ | |
24228 | _ACEOF | |
24229 | cat confdefs.h >>conftest.$ac_ext | |
24230 | cat >>conftest.$ac_ext <<_ACEOF | |
24231 | /* end confdefs.h. */ | |
24232 | ||
24233 | int | |
24234 | main () | |
24235 | { | |
24236 | ||
24237 | ; | |
24238 | return 0; | |
24239 | } | |
24240 | _ACEOF | |
24241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24243 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24244 | ac_status=$? |
ac1cb8d3 VS |
24245 | grep -v '^ *+' conftest.er1 >conftest.err |
24246 | rm -f conftest.er1 | |
24247 | cat conftest.err >&5 | |
a848cd7e SC |
24248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24249 | (exit $ac_status); } && | |
5dcf30a0 RN |
24250 | { ac_try='test -z "$ac_c_werror_flag" |
24251 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24253 | (eval $ac_try) 2>&5 | |
24254 | ac_status=$? | |
24255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24256 | (exit $ac_status); }; } && | |
24257 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24259 | (eval $ac_try) 2>&5 | |
24260 | ac_status=$? | |
24261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24262 | (exit $ac_status); }; }; then | |
24263 | ac_R_space=yes | |
24264 | else | |
24265 | echo "$as_me: failed program was:" >&5 | |
24266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24267 | ||
24268 | ac_R_space=no | |
24269 | fi | |
ac1cb8d3 VS |
24270 | rm -f conftest.err conftest.$ac_objext \ |
24271 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24272 | if test $ac_R_space = yes; then |
24273 | echo "$as_me:$LINENO: result: yes" >&5 | |
24274 | echo "${ECHO_T}yes" >&6 | |
24275 | X_LIBS="$X_LIBS -R $x_libraries" | |
24276 | else | |
24277 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24278 | echo "${ECHO_T}neither works" >&6 | |
24279 | fi | |
24280 | fi | |
24281 | LIBS=$ac_xsave_LIBS | |
24282 | esac | |
24283 | fi | |
24284 | ||
24285 | # Check for system-dependent libraries X programs must link with. | |
24286 | # Do this before checking for the system-independent R6 libraries | |
24287 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24288 | ||
24289 | if test "$ISC" = yes; then | |
24290 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24291 | else | |
24292 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24293 | # libraries were built with DECnet support. And Karl Berry says | |
24294 | # the Alpha needs dnet_stub (dnet does not exist). | |
24295 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24296 | cat >conftest.$ac_ext <<_ACEOF | |
24297 | /* confdefs.h. */ | |
24298 | _ACEOF | |
24299 | cat confdefs.h >>conftest.$ac_ext | |
24300 | cat >>conftest.$ac_ext <<_ACEOF | |
24301 | /* end confdefs.h. */ | |
24302 | ||
24303 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24304 | #ifdef __cplusplus | |
24305 | extern "C" | |
24306 | #endif | |
24307 | /* We use char because int might match the return type of a gcc2 | |
24308 | builtin and then its argument prototype would still apply. */ | |
24309 | char XOpenDisplay (); | |
24310 | int | |
24311 | main () | |
24312 | { | |
24313 | XOpenDisplay (); | |
24314 | ; | |
24315 | return 0; | |
24316 | } | |
24317 | _ACEOF | |
24318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24320 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24321 | ac_status=$? |
ac1cb8d3 VS |
24322 | grep -v '^ *+' conftest.er1 >conftest.err |
24323 | rm -f conftest.er1 | |
24324 | cat conftest.err >&5 | |
a848cd7e SC |
24325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24326 | (exit $ac_status); } && | |
5dcf30a0 RN |
24327 | { ac_try='test -z "$ac_c_werror_flag" |
24328 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24330 | (eval $ac_try) 2>&5 | |
24331 | ac_status=$? | |
24332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24333 | (exit $ac_status); }; } && | |
24334 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24336 | (eval $ac_try) 2>&5 | |
24337 | ac_status=$? | |
24338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24339 | (exit $ac_status); }; }; then | |
24340 | : | |
24341 | else | |
24342 | echo "$as_me: failed program was:" >&5 | |
24343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24344 | ||
24345 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24346 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24347 | if test "${ac_cv_lib_dnet_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 $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); } && | |
5dcf30a0 RN |
24383 | { ac_try='test -z "$ac_c_werror_flag" |
24384 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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_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_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_dnet_ntoa" >&5 | |
24408 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24409 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24410 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24411 | fi | |
24412 | ||
24413 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24414 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24415 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24416 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24418 | else | |
24419 | ac_check_lib_save_LIBS=$LIBS | |
24420 | LIBS="-ldnet_stub $LIBS" | |
24421 | cat >conftest.$ac_ext <<_ACEOF | |
24422 | /* confdefs.h. */ | |
24423 | _ACEOF | |
24424 | cat confdefs.h >>conftest.$ac_ext | |
24425 | cat >>conftest.$ac_ext <<_ACEOF | |
24426 | /* end confdefs.h. */ | |
24427 | ||
24428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24429 | #ifdef __cplusplus | |
24430 | extern "C" | |
24431 | #endif | |
24432 | /* We use char because int might match the return type of a gcc2 | |
24433 | builtin and then its argument prototype would still apply. */ | |
24434 | char dnet_ntoa (); | |
24435 | int | |
24436 | main () | |
24437 | { | |
24438 | dnet_ntoa (); | |
24439 | ; | |
24440 | return 0; | |
24441 | } | |
24442 | _ACEOF | |
24443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24445 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24446 | ac_status=$? |
ac1cb8d3 VS |
24447 | grep -v '^ *+' conftest.er1 >conftest.err |
24448 | rm -f conftest.er1 | |
24449 | cat conftest.err >&5 | |
a848cd7e SC |
24450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24451 | (exit $ac_status); } && | |
5dcf30a0 RN |
24452 | { ac_try='test -z "$ac_c_werror_flag" |
24453 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24455 | (eval $ac_try) 2>&5 | |
24456 | ac_status=$? | |
24457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24458 | (exit $ac_status); }; } && | |
24459 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24461 | (eval $ac_try) 2>&5 | |
24462 | ac_status=$? | |
24463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24464 | (exit $ac_status); }; }; then | |
24465 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24466 | else | |
24467 | echo "$as_me: failed program was:" >&5 | |
24468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24469 | ||
24470 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24471 | fi | |
ac1cb8d3 VS |
24472 | rm -f conftest.err conftest.$ac_objext \ |
24473 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24474 | LIBS=$ac_check_lib_save_LIBS |
24475 | fi | |
24476 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24477 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24478 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24479 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24480 | fi | |
24481 | ||
24482 | fi | |
24483 | fi | |
ac1cb8d3 VS |
24484 | rm -f conftest.err conftest.$ac_objext \ |
24485 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24486 | LIBS="$ac_xsave_LIBS" |
24487 | ||
24488 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24489 | # to get the SysV transport functions. | |
24490 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24491 | # needs -lnsl. | |
24492 | # The nsl library prevents programs from opening the X display | |
24493 | # on Irix 5.2, according to T.E. Dickey. | |
24494 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24495 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24496 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24497 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24498 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24500 | else | |
24501 | cat >conftest.$ac_ext <<_ACEOF | |
24502 | /* confdefs.h. */ | |
24503 | _ACEOF | |
24504 | cat confdefs.h >>conftest.$ac_ext | |
24505 | cat >>conftest.$ac_ext <<_ACEOF | |
24506 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24507 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24509 | #define gethostbyname innocuous_gethostbyname | |
24510 | ||
a848cd7e SC |
24511 | /* System header to define __stub macros and hopefully few prototypes, |
24512 | which can conflict with char gethostbyname (); below. | |
24513 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24514 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24515 | |
a848cd7e SC |
24516 | #ifdef __STDC__ |
24517 | # include <limits.h> | |
24518 | #else | |
24519 | # include <assert.h> | |
24520 | #endif | |
ac1cb8d3 VS |
24521 | |
24522 | #undef gethostbyname | |
24523 | ||
a848cd7e SC |
24524 | /* Override any gcc2 internal prototype to avoid an error. */ |
24525 | #ifdef __cplusplus | |
24526 | extern "C" | |
24527 | { | |
24528 | #endif | |
24529 | /* We use char because int might match the return type of a gcc2 | |
24530 | builtin and then its argument prototype would still apply. */ | |
24531 | char gethostbyname (); | |
24532 | /* The GNU C library defines this for functions which it implements | |
24533 | to always fail with ENOSYS. Some functions are actually named | |
24534 | something starting with __ and the normal name is an alias. */ | |
24535 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24536 | choke me | |
24537 | #else | |
24538 | char (*f) () = gethostbyname; | |
24539 | #endif | |
24540 | #ifdef __cplusplus | |
24541 | } | |
24542 | #endif | |
24543 | ||
24544 | int | |
24545 | main () | |
24546 | { | |
24547 | return f != gethostbyname; | |
24548 | ; | |
24549 | return 0; | |
24550 | } | |
24551 | _ACEOF | |
24552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24554 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24555 | ac_status=$? |
ac1cb8d3 VS |
24556 | grep -v '^ *+' conftest.er1 >conftest.err |
24557 | rm -f conftest.er1 | |
24558 | cat conftest.err >&5 | |
a848cd7e SC |
24559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24560 | (exit $ac_status); } && | |
5dcf30a0 RN |
24561 | { ac_try='test -z "$ac_c_werror_flag" |
24562 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24564 | (eval $ac_try) 2>&5 | |
24565 | ac_status=$? | |
24566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24567 | (exit $ac_status); }; } && | |
24568 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24570 | (eval $ac_try) 2>&5 | |
24571 | ac_status=$? | |
24572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24573 | (exit $ac_status); }; }; then | |
24574 | ac_cv_func_gethostbyname=yes | |
24575 | else | |
24576 | echo "$as_me: failed program was:" >&5 | |
24577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24578 | ||
24579 | ac_cv_func_gethostbyname=no | |
24580 | fi | |
ac1cb8d3 VS |
24581 | rm -f conftest.err conftest.$ac_objext \ |
24582 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24583 | fi |
24584 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24585 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24586 | ||
24587 | if test $ac_cv_func_gethostbyname = no; then | |
24588 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24589 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24590 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24592 | else | |
24593 | ac_check_lib_save_LIBS=$LIBS | |
24594 | LIBS="-lnsl $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 | |
ac1cb8d3 VS |
24619 | (eval $ac_link) 2>conftest.er1 |
24620 | ac_status=$? | |
24621 | grep -v '^ *+' conftest.er1 >conftest.err | |
24622 | rm -f conftest.er1 | |
24623 | cat conftest.err >&5 | |
24624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24625 | (exit $ac_status); } && | |
5dcf30a0 RN |
24626 | { ac_try='test -z "$ac_c_werror_flag" |
24627 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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 | |
24632 | (exit $ac_status); }; } && | |
24633 | { ac_try='test -s conftest$ac_exeext' | |
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_nsl_gethostbyname=yes | |
24640 | else | |
24641 | echo "$as_me: failed program was:" >&5 | |
24642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24643 | ||
24644 | ac_cv_lib_nsl_gethostbyname=no | |
24645 | fi | |
24646 | rm -f conftest.err conftest.$ac_objext \ | |
24647 | conftest$ac_exeext conftest.$ac_ext | |
24648 | LIBS=$ac_check_lib_save_LIBS | |
24649 | fi | |
24650 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24651 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24652 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24653 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24654 | fi | |
24655 | ||
24656 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24657 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24658 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24659 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24661 | else | |
24662 | ac_check_lib_save_LIBS=$LIBS | |
24663 | LIBS="-lbsd $LIBS" | |
24664 | cat >conftest.$ac_ext <<_ACEOF | |
24665 | /* confdefs.h. */ | |
24666 | _ACEOF | |
24667 | cat confdefs.h >>conftest.$ac_ext | |
24668 | cat >>conftest.$ac_ext <<_ACEOF | |
24669 | /* end confdefs.h. */ | |
24670 | ||
24671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24672 | #ifdef __cplusplus | |
24673 | extern "C" | |
24674 | #endif | |
24675 | /* We use char because int might match the return type of a gcc2 | |
24676 | builtin and then its argument prototype would still apply. */ | |
24677 | char gethostbyname (); | |
24678 | int | |
24679 | main () | |
24680 | { | |
24681 | gethostbyname (); | |
24682 | ; | |
24683 | return 0; | |
24684 | } | |
24685 | _ACEOF | |
24686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24688 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24689 | ac_status=$? |
ac1cb8d3 VS |
24690 | grep -v '^ *+' conftest.er1 >conftest.err |
24691 | rm -f conftest.er1 | |
24692 | cat conftest.err >&5 | |
a848cd7e SC |
24693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24694 | (exit $ac_status); } && | |
5dcf30a0 RN |
24695 | { ac_try='test -z "$ac_c_werror_flag" |
24696 | || test ! -s conftest.err' | |
a848cd7e SC |
24697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24698 | (eval $ac_try) 2>&5 | |
24699 | ac_status=$? | |
24700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24701 | (exit $ac_status); }; } && |
24702 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24704 | (eval $ac_try) 2>&5 | |
24705 | ac_status=$? | |
24706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24707 | (exit $ac_status); }; }; then | |
24708 | ac_cv_lib_bsd_gethostbyname=yes | |
24709 | else | |
24710 | echo "$as_me: failed program was:" >&5 | |
24711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24712 | ||
24713 | ac_cv_lib_bsd_gethostbyname=no | |
24714 | fi | |
ac1cb8d3 VS |
24715 | rm -f conftest.err conftest.$ac_objext \ |
24716 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24717 | LIBS=$ac_check_lib_save_LIBS |
24718 | fi | |
24719 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24720 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24721 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24722 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24723 | fi | |
24724 | ||
24725 | fi | |
24726 | fi | |
24727 | ||
24728 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24729 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24730 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24731 | # on later versions), says Simon Leinen: it contains gethostby* | |
24732 | # variants that don't use the name server (or something). -lsocket | |
24733 | # must be given before -lnsl if both are needed. We assume that | |
24734 | # if connect needs -lnsl, so does gethostbyname. | |
24735 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24736 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24737 | if test "${ac_cv_func_connect+set}" = set; then | |
24738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24739 | else | |
24740 | cat >conftest.$ac_ext <<_ACEOF | |
24741 | /* confdefs.h. */ | |
24742 | _ACEOF | |
24743 | cat confdefs.h >>conftest.$ac_ext | |
24744 | cat >>conftest.$ac_ext <<_ACEOF | |
24745 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24746 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24747 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24748 | #define connect innocuous_connect | |
24749 | ||
a848cd7e SC |
24750 | /* System header to define __stub macros and hopefully few prototypes, |
24751 | which can conflict with char connect (); below. | |
24752 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24753 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24754 | |
a848cd7e SC |
24755 | #ifdef __STDC__ |
24756 | # include <limits.h> | |
24757 | #else | |
24758 | # include <assert.h> | |
24759 | #endif | |
ac1cb8d3 VS |
24760 | |
24761 | #undef connect | |
24762 | ||
a848cd7e SC |
24763 | /* Override any gcc2 internal prototype to avoid an error. */ |
24764 | #ifdef __cplusplus | |
24765 | extern "C" | |
24766 | { | |
24767 | #endif | |
24768 | /* We use char because int might match the return type of a gcc2 | |
24769 | builtin and then its argument prototype would still apply. */ | |
24770 | char connect (); | |
24771 | /* The GNU C library defines this for functions which it implements | |
24772 | to always fail with ENOSYS. Some functions are actually named | |
24773 | something starting with __ and the normal name is an alias. */ | |
24774 | #if defined (__stub_connect) || defined (__stub___connect) | |
24775 | choke me | |
24776 | #else | |
24777 | char (*f) () = connect; | |
24778 | #endif | |
24779 | #ifdef __cplusplus | |
24780 | } | |
24781 | #endif | |
24782 | ||
24783 | int | |
24784 | main () | |
24785 | { | |
24786 | return f != connect; | |
24787 | ; | |
24788 | return 0; | |
24789 | } | |
24790 | _ACEOF | |
24791 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24793 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24794 | ac_status=$? |
ac1cb8d3 VS |
24795 | grep -v '^ *+' conftest.er1 >conftest.err |
24796 | rm -f conftest.er1 | |
24797 | cat conftest.err >&5 | |
a848cd7e SC |
24798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24799 | (exit $ac_status); } && | |
5dcf30a0 RN |
24800 | { ac_try='test -z "$ac_c_werror_flag" |
24801 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24803 | (eval $ac_try) 2>&5 | |
24804 | ac_status=$? | |
24805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24806 | (exit $ac_status); }; } && | |
24807 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24809 | (eval $ac_try) 2>&5 | |
24810 | ac_status=$? | |
24811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24812 | (exit $ac_status); }; }; then | |
24813 | ac_cv_func_connect=yes | |
24814 | else | |
24815 | echo "$as_me: failed program was:" >&5 | |
24816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24817 | ||
24818 | ac_cv_func_connect=no | |
24819 | fi | |
ac1cb8d3 VS |
24820 | rm -f conftest.err conftest.$ac_objext \ |
24821 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24822 | fi |
24823 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24824 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24825 | ||
24826 | if test $ac_cv_func_connect = no; then | |
24827 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24828 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24829 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24831 | else | |
24832 | ac_check_lib_save_LIBS=$LIBS | |
24833 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
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. */ | |
24840 | ||
24841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24842 | #ifdef __cplusplus | |
24843 | extern "C" | |
24844 | #endif | |
24845 | /* We use char because int might match the return type of a gcc2 | |
24846 | builtin and then its argument prototype would still apply. */ | |
24847 | char connect (); | |
24848 | int | |
24849 | main () | |
24850 | { | |
24851 | connect (); | |
24852 | ; | |
24853 | return 0; | |
24854 | } | |
24855 | _ACEOF | |
24856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24858 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24859 | ac_status=$? |
ac1cb8d3 VS |
24860 | grep -v '^ *+' conftest.er1 >conftest.err |
24861 | rm -f conftest.er1 | |
24862 | cat conftest.err >&5 | |
a848cd7e SC |
24863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24864 | (exit $ac_status); } && | |
5dcf30a0 RN |
24865 | { ac_try='test -z "$ac_c_werror_flag" |
24866 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24868 | (eval $ac_try) 2>&5 | |
24869 | ac_status=$? | |
24870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24871 | (exit $ac_status); }; } && | |
24872 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24874 | (eval $ac_try) 2>&5 | |
24875 | ac_status=$? | |
24876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24877 | (exit $ac_status); }; }; then | |
24878 | ac_cv_lib_socket_connect=yes | |
24879 | else | |
24880 | echo "$as_me: failed program was:" >&5 | |
24881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24882 | ||
24883 | ac_cv_lib_socket_connect=no | |
24884 | fi | |
ac1cb8d3 VS |
24885 | rm -f conftest.err conftest.$ac_objext \ |
24886 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24887 | LIBS=$ac_check_lib_save_LIBS |
24888 | fi | |
24889 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24890 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24891 | if test $ac_cv_lib_socket_connect = yes; then | |
24892 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24893 | fi | |
24894 | ||
24895 | fi | |
24896 | ||
24897 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24898 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24899 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24900 | if test "${ac_cv_func_remove+set}" = set; then | |
24901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24902 | else | |
24903 | cat >conftest.$ac_ext <<_ACEOF | |
24904 | /* confdefs.h. */ | |
24905 | _ACEOF | |
24906 | cat confdefs.h >>conftest.$ac_ext | |
24907 | cat >>conftest.$ac_ext <<_ACEOF | |
24908 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24909 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24910 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24911 | #define remove innocuous_remove | |
24912 | ||
a848cd7e SC |
24913 | /* System header to define __stub macros and hopefully few prototypes, |
24914 | which can conflict with char remove (); below. | |
24915 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24916 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24917 | |
a848cd7e SC |
24918 | #ifdef __STDC__ |
24919 | # include <limits.h> | |
24920 | #else | |
24921 | # include <assert.h> | |
24922 | #endif | |
ac1cb8d3 VS |
24923 | |
24924 | #undef remove | |
24925 | ||
a848cd7e SC |
24926 | /* Override any gcc2 internal prototype to avoid an error. */ |
24927 | #ifdef __cplusplus | |
24928 | extern "C" | |
24929 | { | |
24930 | #endif | |
24931 | /* We use char because int might match the return type of a gcc2 | |
24932 | builtin and then its argument prototype would still apply. */ | |
24933 | char remove (); | |
24934 | /* The GNU C library defines this for functions which it implements | |
24935 | to always fail with ENOSYS. Some functions are actually named | |
24936 | something starting with __ and the normal name is an alias. */ | |
24937 | #if defined (__stub_remove) || defined (__stub___remove) | |
24938 | choke me | |
24939 | #else | |
24940 | char (*f) () = remove; | |
24941 | #endif | |
24942 | #ifdef __cplusplus | |
24943 | } | |
24944 | #endif | |
24945 | ||
24946 | int | |
24947 | main () | |
24948 | { | |
24949 | return f != remove; | |
24950 | ; | |
24951 | return 0; | |
24952 | } | |
24953 | _ACEOF | |
24954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24956 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24957 | ac_status=$? |
ac1cb8d3 VS |
24958 | grep -v '^ *+' conftest.er1 >conftest.err |
24959 | rm -f conftest.er1 | |
24960 | cat conftest.err >&5 | |
a848cd7e SC |
24961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24962 | (exit $ac_status); } && | |
5dcf30a0 RN |
24963 | { ac_try='test -z "$ac_c_werror_flag" |
24964 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24966 | (eval $ac_try) 2>&5 | |
24967 | ac_status=$? | |
24968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24969 | (exit $ac_status); }; } && | |
24970 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24972 | (eval $ac_try) 2>&5 | |
24973 | ac_status=$? | |
24974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24975 | (exit $ac_status); }; }; then | |
24976 | ac_cv_func_remove=yes | |
24977 | else | |
24978 | echo "$as_me: failed program was:" >&5 | |
24979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24980 | ||
24981 | ac_cv_func_remove=no | |
24982 | fi | |
ac1cb8d3 VS |
24983 | rm -f conftest.err conftest.$ac_objext \ |
24984 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24985 | fi |
24986 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24987 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
24988 | ||
24989 | if test $ac_cv_func_remove = no; then | |
24990 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
24991 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24992 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24994 | else | |
24995 | ac_check_lib_save_LIBS=$LIBS | |
24996 | LIBS="-lposix $LIBS" | |
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. */ | |
25003 | ||
25004 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25005 | #ifdef __cplusplus | |
25006 | extern "C" | |
25007 | #endif | |
25008 | /* We use char because int might match the return type of a gcc2 | |
25009 | builtin and then its argument prototype would still apply. */ | |
25010 | char remove (); | |
25011 | int | |
25012 | main () | |
25013 | { | |
25014 | remove (); | |
25015 | ; | |
25016 | return 0; | |
25017 | } | |
25018 | _ACEOF | |
25019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25021 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25022 | ac_status=$? |
ac1cb8d3 VS |
25023 | grep -v '^ *+' conftest.er1 >conftest.err |
25024 | rm -f conftest.er1 | |
25025 | cat conftest.err >&5 | |
a848cd7e SC |
25026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25027 | (exit $ac_status); } && | |
5dcf30a0 RN |
25028 | { ac_try='test -z "$ac_c_werror_flag" |
25029 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25031 | (eval $ac_try) 2>&5 | |
25032 | ac_status=$? | |
25033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25034 | (exit $ac_status); }; } && | |
25035 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25037 | (eval $ac_try) 2>&5 | |
25038 | ac_status=$? | |
25039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25040 | (exit $ac_status); }; }; then | |
25041 | ac_cv_lib_posix_remove=yes | |
25042 | else | |
25043 | echo "$as_me: failed program was:" >&5 | |
25044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25045 | ||
25046 | ac_cv_lib_posix_remove=no | |
25047 | fi | |
ac1cb8d3 VS |
25048 | rm -f conftest.err conftest.$ac_objext \ |
25049 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25050 | LIBS=$ac_check_lib_save_LIBS |
25051 | fi | |
25052 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25053 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25054 | if test $ac_cv_lib_posix_remove = yes; then | |
25055 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25056 | fi | |
25057 | ||
25058 | fi | |
25059 | ||
25060 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25061 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25062 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25063 | if test "${ac_cv_func_shmat+set}" = set; then | |
25064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25065 | else | |
25066 | cat >conftest.$ac_ext <<_ACEOF | |
25067 | /* confdefs.h. */ | |
25068 | _ACEOF | |
25069 | cat confdefs.h >>conftest.$ac_ext | |
25070 | cat >>conftest.$ac_ext <<_ACEOF | |
25071 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25072 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25073 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25074 | #define shmat innocuous_shmat | |
25075 | ||
a848cd7e SC |
25076 | /* System header to define __stub macros and hopefully few prototypes, |
25077 | which can conflict with char shmat (); below. | |
25078 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25079 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25080 | |
a848cd7e SC |
25081 | #ifdef __STDC__ |
25082 | # include <limits.h> | |
25083 | #else | |
25084 | # include <assert.h> | |
25085 | #endif | |
ac1cb8d3 VS |
25086 | |
25087 | #undef shmat | |
25088 | ||
a848cd7e SC |
25089 | /* Override any gcc2 internal prototype to avoid an error. */ |
25090 | #ifdef __cplusplus | |
25091 | extern "C" | |
25092 | { | |
25093 | #endif | |
25094 | /* We use char because int might match the return type of a gcc2 | |
25095 | builtin and then its argument prototype would still apply. */ | |
25096 | char shmat (); | |
25097 | /* The GNU C library defines this for functions which it implements | |
25098 | to always fail with ENOSYS. Some functions are actually named | |
25099 | something starting with __ and the normal name is an alias. */ | |
25100 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25101 | choke me | |
25102 | #else | |
25103 | char (*f) () = shmat; | |
25104 | #endif | |
25105 | #ifdef __cplusplus | |
25106 | } | |
25107 | #endif | |
25108 | ||
25109 | int | |
25110 | main () | |
25111 | { | |
25112 | return f != shmat; | |
25113 | ; | |
25114 | return 0; | |
25115 | } | |
25116 | _ACEOF | |
25117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25119 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25120 | ac_status=$? |
ac1cb8d3 VS |
25121 | grep -v '^ *+' conftest.er1 >conftest.err |
25122 | rm -f conftest.er1 | |
25123 | cat conftest.err >&5 | |
a848cd7e SC |
25124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25125 | (exit $ac_status); } && | |
5dcf30a0 RN |
25126 | { ac_try='test -z "$ac_c_werror_flag" |
25127 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25129 | (eval $ac_try) 2>&5 | |
25130 | ac_status=$? | |
25131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25132 | (exit $ac_status); }; } && | |
25133 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25135 | (eval $ac_try) 2>&5 | |
25136 | ac_status=$? | |
25137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25138 | (exit $ac_status); }; }; then | |
25139 | ac_cv_func_shmat=yes | |
25140 | else | |
25141 | echo "$as_me: failed program was:" >&5 | |
25142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25143 | ||
25144 | ac_cv_func_shmat=no | |
25145 | fi | |
ac1cb8d3 VS |
25146 | rm -f conftest.err conftest.$ac_objext \ |
25147 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25148 | fi |
25149 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25150 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25151 | ||
25152 | if test $ac_cv_func_shmat = no; then | |
25153 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25154 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25155 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25157 | else | |
25158 | ac_check_lib_save_LIBS=$LIBS | |
25159 | LIBS="-lipc $LIBS" | |
25160 | cat >conftest.$ac_ext <<_ACEOF | |
25161 | /* confdefs.h. */ | |
25162 | _ACEOF | |
25163 | cat confdefs.h >>conftest.$ac_ext | |
25164 | cat >>conftest.$ac_ext <<_ACEOF | |
25165 | /* end confdefs.h. */ | |
25166 | ||
25167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25168 | #ifdef __cplusplus | |
25169 | extern "C" | |
25170 | #endif | |
25171 | /* We use char because int might match the return type of a gcc2 | |
25172 | builtin and then its argument prototype would still apply. */ | |
25173 | char shmat (); | |
25174 | int | |
25175 | main () | |
25176 | { | |
25177 | shmat (); | |
25178 | ; | |
25179 | return 0; | |
25180 | } | |
25181 | _ACEOF | |
25182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25184 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25185 | ac_status=$? |
ac1cb8d3 VS |
25186 | grep -v '^ *+' conftest.er1 >conftest.err |
25187 | rm -f conftest.er1 | |
25188 | cat conftest.err >&5 | |
a848cd7e SC |
25189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25190 | (exit $ac_status); } && | |
5dcf30a0 RN |
25191 | { ac_try='test -z "$ac_c_werror_flag" |
25192 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25194 | (eval $ac_try) 2>&5 | |
25195 | ac_status=$? | |
25196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25197 | (exit $ac_status); }; } && | |
25198 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25200 | (eval $ac_try) 2>&5 | |
25201 | ac_status=$? | |
25202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25203 | (exit $ac_status); }; }; then | |
25204 | ac_cv_lib_ipc_shmat=yes | |
25205 | else | |
25206 | echo "$as_me: failed program was:" >&5 | |
25207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25208 | ||
25209 | ac_cv_lib_ipc_shmat=no | |
25210 | fi | |
ac1cb8d3 VS |
25211 | rm -f conftest.err conftest.$ac_objext \ |
25212 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25213 | LIBS=$ac_check_lib_save_LIBS |
25214 | fi | |
25215 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25216 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25217 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25218 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25219 | fi | |
25220 | ||
25221 | fi | |
25222 | fi | |
25223 | ||
25224 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25225 | ac_save_LDFLAGS=$LDFLAGS | |
25226 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25227 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25228 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25229 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25230 | # These have to be linked with before -lX11, unlike the other | |
25231 | # libraries we check for below, so use a different variable. | |
25232 | # John Interrante, Karl Berry | |
25233 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25234 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25235 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25237 | else | |
25238 | ac_check_lib_save_LIBS=$LIBS | |
25239 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25240 | cat >conftest.$ac_ext <<_ACEOF | |
25241 | /* confdefs.h. */ | |
25242 | _ACEOF | |
25243 | cat confdefs.h >>conftest.$ac_ext | |
25244 | cat >>conftest.$ac_ext <<_ACEOF | |
25245 | /* end confdefs.h. */ | |
25246 | ||
25247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25248 | #ifdef __cplusplus | |
25249 | extern "C" | |
25250 | #endif | |
25251 | /* We use char because int might match the return type of a gcc2 | |
25252 | builtin and then its argument prototype would still apply. */ | |
25253 | char IceConnectionNumber (); | |
25254 | int | |
25255 | main () | |
25256 | { | |
25257 | IceConnectionNumber (); | |
25258 | ; | |
25259 | return 0; | |
25260 | } | |
25261 | _ACEOF | |
25262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25264 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25265 | ac_status=$? |
ac1cb8d3 VS |
25266 | grep -v '^ *+' conftest.er1 >conftest.err |
25267 | rm -f conftest.er1 | |
25268 | cat conftest.err >&5 | |
a848cd7e SC |
25269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25270 | (exit $ac_status); } && | |
5dcf30a0 RN |
25271 | { ac_try='test -z "$ac_c_werror_flag" |
25272 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25274 | (eval $ac_try) 2>&5 | |
25275 | ac_status=$? | |
25276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25277 | (exit $ac_status); }; } && | |
25278 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25280 | (eval $ac_try) 2>&5 | |
25281 | ac_status=$? | |
25282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25283 | (exit $ac_status); }; }; then | |
25284 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25285 | else | |
25286 | echo "$as_me: failed program was:" >&5 | |
25287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25288 | ||
25289 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25290 | fi | |
ac1cb8d3 VS |
25291 | rm -f conftest.err conftest.$ac_objext \ |
25292 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25293 | LIBS=$ac_check_lib_save_LIBS |
25294 | fi | |
25295 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25296 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25297 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25298 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25299 | fi | |
25300 | ||
25301 | LDFLAGS=$ac_save_LDFLAGS | |
25302 | ||
25303 | fi | |
25304 | ||
25305 | ||
25306 | if test "$no_x" = "yes"; then | |
25307 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25308 | echo "$as_me: error: X11 not found" >&2;} | |
25309 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25310 | fi | |
25311 | ||
74b84332 VS |
25312 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25313 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25314 | AFMINSTALL=afminstall |
25315 | COMPILED_X_PROGRAM=0 | |
25316 | ||
74b84332 VS |
25317 | fi |
25318 | ||
25319 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25320 | if test "$wxUSE_NANOX" = "yes"; then |
25321 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25322 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25323 | if test "x$MICROWIN" = x ; then | |
25324 | echo "$as_me:$LINENO: result: not found" >&5 | |
25325 | echo "${ECHO_T}not found" >&6 | |
25326 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25327 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25328 | { (exit 1); exit 1; }; } | |
25329 | else | |
25330 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25331 | echo "${ECHO_T}$MICROWIN" >&6 | |
25332 | cat >>confdefs.h <<\_ACEOF | |
25333 | #define wxUSE_NANOX 1 | |
25334 | _ACEOF | |
25335 | ||
25336 | fi | |
25337 | fi | |
25338 | ||
25339 | if test "$wxUSE_UNICODE" = "yes"; then | |
25340 | ||
25341 | succeeded=no | |
25342 | ||
25343 | if test -z "$PKG_CONFIG"; then | |
25344 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25345 | set dummy pkg-config; ac_word=$2 | |
25346 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25348 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25350 | else | |
25351 | case $PKG_CONFIG in | |
25352 | [\\/]* | ?:[\\/]*) | |
25353 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25354 | ;; | |
25355 | *) | |
25356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25357 | for as_dir in $PATH | |
25358 | do | |
25359 | IFS=$as_save_IFS | |
25360 | test -z "$as_dir" && as_dir=. | |
25361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25363 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25365 | break 2 | |
25366 | fi | |
25367 | done | |
25368 | done | |
25369 | ||
25370 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25371 | ;; | |
25372 | esac | |
25373 | fi | |
25374 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25375 | ||
25376 | if test -n "$PKG_CONFIG"; then | |
25377 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25378 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25379 | else | |
25380 | echo "$as_me:$LINENO: result: no" >&5 | |
25381 | echo "${ECHO_T}no" >&6 | |
25382 | fi | |
25383 | ||
25384 | fi | |
25385 | ||
25386 | if test "$PKG_CONFIG" = "no" ; then | |
25387 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25388 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25389 | echo "*** to the full path to pkg-config." | |
25390 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25391 | else | |
25392 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25393 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25394 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25395 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25396 | ||
25397 | if $PKG_CONFIG --exists "pangox" ; then | |
25398 | echo "$as_me:$LINENO: result: yes" >&5 | |
25399 | echo "${ECHO_T}yes" >&6 | |
25400 | succeeded=yes | |
25401 | ||
25402 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25403 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25404 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25405 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25406 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25407 | ||
25408 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25409 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25410 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25411 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25412 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25413 | else | |
25414 | PANGOX_CFLAGS="" | |
25415 | PANGOX_LIBS="" | |
25416 | ## If we have a custom action on failure, don't print errors, but | |
25417 | ## do set a variable so people can do so. | |
25418 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25419 | ||
25420 | fi | |
25421 | ||
25422 | ||
25423 | ||
25424 | else | |
25425 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25426 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25427 | fi | |
25428 | fi | |
25429 | ||
25430 | if test $succeeded = yes; then | |
25431 | ||
25432 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25433 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25434 | ||
25435 | else | |
25436 | ||
25437 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25438 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25439 | { (exit 1); exit 1; }; } | |
25440 | ||
25441 | ||
25442 | fi | |
25443 | ||
25444 | ||
25445 | succeeded=no | |
25446 | ||
25447 | if test -z "$PKG_CONFIG"; then | |
25448 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25449 | set dummy pkg-config; ac_word=$2 | |
25450 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25451 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25452 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25454 | else | |
25455 | case $PKG_CONFIG in | |
25456 | [\\/]* | ?:[\\/]*) | |
25457 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25458 | ;; | |
25459 | *) | |
25460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25461 | for as_dir in $PATH | |
25462 | do | |
25463 | IFS=$as_save_IFS | |
25464 | test -z "$as_dir" && as_dir=. | |
25465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25466 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25467 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25469 | break 2 | |
25470 | fi | |
25471 | done | |
25472 | done | |
25473 | ||
25474 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25475 | ;; | |
25476 | esac | |
25477 | fi | |
25478 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25479 | ||
25480 | if test -n "$PKG_CONFIG"; then | |
25481 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25482 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25483 | else | |
25484 | echo "$as_me:$LINENO: result: no" >&5 | |
25485 | echo "${ECHO_T}no" >&6 | |
25486 | fi | |
25487 | ||
25488 | fi | |
25489 | ||
25490 | if test "$PKG_CONFIG" = "no" ; then | |
25491 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25492 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25493 | echo "*** to the full path to pkg-config." | |
25494 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25495 | else | |
25496 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25497 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25498 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25499 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25500 | ||
25501 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25502 | echo "$as_me:$LINENO: result: yes" >&5 | |
25503 | echo "${ECHO_T}yes" >&6 | |
25504 | succeeded=yes | |
25505 | ||
25506 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25507 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25508 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25509 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25510 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25511 | ||
25512 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25513 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25514 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25515 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25516 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25517 | else | |
25518 | PANGOFT2_CFLAGS="" | |
25519 | PANGOFT2_LIBS="" | |
25520 | ## If we have a custom action on failure, don't print errors, but | |
25521 | ## do set a variable so people can do so. | |
25522 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25523 | ||
25524 | fi | |
25525 | ||
25526 | ||
25527 | ||
25528 | else | |
25529 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25530 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25531 | fi | |
25532 | fi | |
25533 | ||
25534 | if test $succeeded = yes; then | |
25535 | ||
25536 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25537 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25538 | ||
25539 | else | |
25540 | ||
25541 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25542 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25543 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25544 | ||
25545 | ||
25546 | fi | |
25547 | ||
25548 | ||
25549 | succeeded=no | |
25550 | ||
25551 | if test -z "$PKG_CONFIG"; then | |
25552 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25553 | set dummy pkg-config; ac_word=$2 | |
25554 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25556 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25558 | else | |
25559 | case $PKG_CONFIG in | |
25560 | [\\/]* | ?:[\\/]*) | |
25561 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25562 | ;; | |
25563 | *) | |
25564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25565 | for as_dir in $PATH | |
25566 | do | |
25567 | IFS=$as_save_IFS | |
25568 | test -z "$as_dir" && as_dir=. | |
25569 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25571 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25573 | break 2 | |
25574 | fi | |
25575 | done | |
25576 | done | |
25577 | ||
25578 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25579 | ;; | |
25580 | esac | |
25581 | fi | |
25582 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25583 | ||
25584 | if test -n "$PKG_CONFIG"; then | |
25585 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25586 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25587 | else | |
25588 | echo "$as_me:$LINENO: result: no" >&5 | |
25589 | echo "${ECHO_T}no" >&6 | |
25590 | fi | |
25591 | ||
25592 | fi | |
25593 | ||
25594 | if test "$PKG_CONFIG" = "no" ; then | |
25595 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25596 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25597 | echo "*** to the full path to pkg-config." | |
25598 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25599 | else | |
25600 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25601 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25602 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25603 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25604 | ||
25605 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25606 | echo "$as_me:$LINENO: result: yes" >&5 | |
25607 | echo "${ECHO_T}yes" >&6 | |
25608 | succeeded=yes | |
25609 | ||
25610 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25611 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25612 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25613 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25614 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25615 | ||
25616 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25617 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25618 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25619 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25620 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25621 | else | |
25622 | PANGOXFT_CFLAGS="" | |
25623 | PANGOXFT_LIBS="" | |
25624 | ## If we have a custom action on failure, don't print errors, but | |
25625 | ## do set a variable so people can do so. | |
25626 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25627 | ||
25628 | fi | |
25629 | ||
25630 | ||
25631 | ||
25632 | else | |
25633 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25634 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25635 | fi | |
25636 | fi | |
25637 | ||
25638 | if test $succeeded = yes; then | |
25639 | ||
25640 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25641 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25642 | ||
25643 | else | |
25644 | ||
25645 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25646 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25647 | ||
25648 | ||
25649 | fi | |
25650 | ||
304205f1 VS |
25651 | save_CFLAGS="$CFLAGS" |
25652 | save_LIBS="$LIBS" | |
25653 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25654 | LIBS="$LIBS $PANGOX_LIBS" | |
25655 | ||
25656 | for ac_func in pango_font_family_is_monospace | |
25657 | do | |
25658 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25659 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25660 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25661 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25663 | else | |
25664 | cat >conftest.$ac_ext <<_ACEOF | |
25665 | /* confdefs.h. */ | |
25666 | _ACEOF | |
25667 | cat confdefs.h >>conftest.$ac_ext | |
25668 | cat >>conftest.$ac_ext <<_ACEOF | |
25669 | /* end confdefs.h. */ | |
25670 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25671 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25672 | #define $ac_func innocuous_$ac_func | |
25673 | ||
25674 | /* System header to define __stub macros and hopefully few prototypes, | |
25675 | which can conflict with char $ac_func (); below. | |
25676 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25677 | <limits.h> exists even on freestanding compilers. */ | |
25678 | ||
25679 | #ifdef __STDC__ | |
25680 | # include <limits.h> | |
25681 | #else | |
25682 | # include <assert.h> | |
25683 | #endif | |
25684 | ||
25685 | #undef $ac_func | |
25686 | ||
25687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25688 | #ifdef __cplusplus | |
25689 | extern "C" | |
25690 | { | |
25691 | #endif | |
25692 | /* We use char because int might match the return type of a gcc2 | |
25693 | builtin and then its argument prototype would still apply. */ | |
25694 | char $ac_func (); | |
25695 | /* The GNU C library defines this for functions which it implements | |
25696 | to always fail with ENOSYS. Some functions are actually named | |
25697 | something starting with __ and the normal name is an alias. */ | |
25698 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25699 | choke me | |
25700 | #else | |
25701 | char (*f) () = $ac_func; | |
25702 | #endif | |
25703 | #ifdef __cplusplus | |
25704 | } | |
25705 | #endif | |
25706 | ||
25707 | int | |
25708 | main () | |
25709 | { | |
25710 | return f != $ac_func; | |
25711 | ; | |
25712 | return 0; | |
25713 | } | |
25714 | _ACEOF | |
25715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25717 | (eval $ac_link) 2>conftest.er1 | |
25718 | ac_status=$? | |
25719 | grep -v '^ *+' conftest.er1 >conftest.err | |
25720 | rm -f conftest.er1 | |
25721 | cat conftest.err >&5 | |
25722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25723 | (exit $ac_status); } && | |
5dcf30a0 RN |
25724 | { ac_try='test -z "$ac_c_werror_flag" |
25725 | || test ! -s conftest.err' | |
304205f1 VS |
25726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25727 | (eval $ac_try) 2>&5 | |
25728 | ac_status=$? | |
25729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25730 | (exit $ac_status); }; } && | |
25731 | { ac_try='test -s conftest$ac_exeext' | |
25732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25733 | (eval $ac_try) 2>&5 | |
25734 | ac_status=$? | |
25735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25736 | (exit $ac_status); }; }; then | |
25737 | eval "$as_ac_var=yes" | |
25738 | else | |
25739 | echo "$as_me: failed program was:" >&5 | |
25740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25741 | ||
25742 | eval "$as_ac_var=no" | |
25743 | fi | |
25744 | rm -f conftest.err conftest.$ac_objext \ | |
25745 | conftest$ac_exeext conftest.$ac_ext | |
25746 | fi | |
25747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25748 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25749 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25750 | cat >>confdefs.h <<_ACEOF | |
25751 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25752 | _ACEOF | |
25753 | ||
25754 | fi | |
25755 | done | |
25756 | ||
25757 | CFLAGS="$save_CFLAGS" | |
25758 | LIBS="$save_LIBS" | |
a848cd7e SC |
25759 | fi |
25760 | ||
25761 | wxUSE_UNIVERSAL="yes" | |
25762 | ||
25763 | if test "$wxUSE_NANOX" = "yes"; then | |
25764 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25765 | 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" | |
25766 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25767 | else | |
25768 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25769 | fi | |
25770 | ||
a848cd7e SC |
25771 | TOOLKIT=X11 |
25772 | GUIDIST=X11_DIST | |
25773 | fi | |
25774 | ||
25775 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25776 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25777 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25778 | |
74b84332 VS |
25779 | ac_find_includes= |
25780 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25781 | do | |
25782 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25783 | ac_find_includes=$ac_dir | |
25784 | break | |
25785 | fi | |
25786 | done | |
a848cd7e | 25787 | |
74b84332 VS |
25788 | if test "$ac_find_includes" != "" ; then |
25789 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25790 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25791 | ||
25792 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25793 | ac_path_to_include="" | |
25794 | else | |
25795 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25796 | result=$? | |
25797 | if test $result = 0; then | |
25798 | ac_path_to_include="" | |
25799 | else | |
25800 | ac_path_to_include=" -I$ac_find_includes" | |
25801 | fi | |
a848cd7e SC |
25802 | fi |
25803 | ||
74b84332 VS |
25804 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25805 | else | |
25806 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25807 | /* confdefs.h. */ |
25808 | _ACEOF | |
25809 | cat confdefs.h >>conftest.$ac_ext | |
25810 | cat >>conftest.$ac_ext <<_ACEOF | |
25811 | /* end confdefs.h. */ | |
25812 | ||
74b84332 VS |
25813 | #include <Xm/Xm.h> |
25814 | ||
a848cd7e SC |
25815 | int |
25816 | main () | |
25817 | { | |
25818 | ||
74b84332 VS |
25819 | int version; |
25820 | version = xmUseVersion; | |
25821 | ||
a848cd7e SC |
25822 | ; |
25823 | return 0; | |
25824 | } | |
25825 | _ACEOF | |
74b84332 VS |
25826 | rm -f conftest.$ac_objext |
25827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25828 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25829 | ac_status=$? |
ac1cb8d3 VS |
25830 | grep -v '^ *+' conftest.er1 >conftest.err |
25831 | rm -f conftest.er1 | |
25832 | cat conftest.err >&5 | |
a848cd7e SC |
25833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25834 | (exit $ac_status); } && | |
5dcf30a0 RN |
25835 | { ac_try='test -z "$ac_c_werror_flag" |
25836 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25838 | (eval $ac_try) 2>&5 | |
25839 | ac_status=$? | |
25840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25841 | (exit $ac_status); }; } && | |
74b84332 | 25842 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25844 | (eval $ac_try) 2>&5 | |
25845 | ac_status=$? | |
25846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25847 | (exit $ac_status); }; }; then | |
74b84332 VS |
25848 | |
25849 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25850 | echo "${ECHO_T}found in default search path" >&6 | |
25851 | COMPILED_X_PROGRAM=1 | |
25852 | ||
a848cd7e SC |
25853 | else |
25854 | echo "$as_me: failed program was:" >&5 | |
25855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25856 | ||
a848cd7e | 25857 | |
74b84332 VS |
25858 | echo "$as_me:$LINENO: result: no" >&5 |
25859 | echo "${ECHO_T}no" >&6 | |
25860 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25861 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25862 | { (exit 1); exit 1; }; } | |
a848cd7e | 25863 | |
a848cd7e | 25864 | |
a848cd7e | 25865 | fi |
74b84332 VS |
25866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25867 | fi | |
25868 | ||
25869 | if test "$COMPILED_X_PROGRAM" = 0; then | |
25870 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
25871 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25872 | ||
25873 | ac_find_libraries= | |
25874 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25875 | do | |
25876 | for ac_extension in a so sl dylib; do | |
25877 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25878 | ac_find_libraries=$ac_dir | |
25879 | break 2 | |
a848cd7e | 25880 | fi |
74b84332 VS |
25881 | done |
25882 | done | |
a848cd7e | 25883 | |
74b84332 VS |
25884 | if test "$ac_find_libraries" != "" ; then |
25885 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25886 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 25887 | |
74b84332 VS |
25888 | |
25889 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25890 | result=$? | |
25891 | if test $result = 0; then | |
25892 | ac_path_to_link="" | |
a848cd7e | 25893 | else |
74b84332 VS |
25894 | ac_path_to_link=" -L$ac_find_libraries" |
25895 | fi | |
25896 | ||
25897 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25898 | else | |
25899 | save_CFLAGS=$CFLAGS | |
25900 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25901 | ||
25902 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25903 | /* confdefs.h. */ |
25904 | _ACEOF | |
25905 | cat confdefs.h >>conftest.$ac_ext | |
25906 | cat >>conftest.$ac_ext <<_ACEOF | |
25907 | /* end confdefs.h. */ | |
25908 | ||
74b84332 VS |
25909 | #include <Xm/Xm.h> |
25910 | ||
a848cd7e SC |
25911 | int |
25912 | main () | |
25913 | { | |
74b84332 VS |
25914 | |
25915 | int version; | |
25916 | version = xmUseVersion; | |
25917 | ||
a848cd7e SC |
25918 | ; |
25919 | return 0; | |
25920 | } | |
25921 | _ACEOF | |
74b84332 VS |
25922 | rm -f conftest.$ac_objext |
25923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25924 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25925 | ac_status=$? |
ac1cb8d3 VS |
25926 | grep -v '^ *+' conftest.er1 >conftest.err |
25927 | rm -f conftest.er1 | |
25928 | cat conftest.err >&5 | |
a848cd7e SC |
25929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25930 | (exit $ac_status); } && | |
5dcf30a0 RN |
25931 | { ac_try='test -z "$ac_c_werror_flag" |
25932 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25934 | (eval $ac_try) 2>&5 | |
25935 | ac_status=$? | |
25936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25937 | (exit $ac_status); }; } && | |
74b84332 | 25938 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25940 | (eval $ac_try) 2>&5 | |
25941 | ac_status=$? | |
25942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25943 | (exit $ac_status); }; }; then | |
74b84332 VS |
25944 | |
25945 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25946 | echo "${ECHO_T}found in default search path" >&6 | |
25947 | COMPILED_X_PROGRAM=1 | |
25948 | ||
a848cd7e SC |
25949 | else |
25950 | echo "$as_me: failed program was:" >&5 | |
25951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25952 | ||
74b84332 VS |
25953 | |
25954 | echo "$as_me:$LINENO: result: no" >&5 | |
25955 | echo "${ECHO_T}no" >&6 | |
25956 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
25957 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
25958 | { (exit 1); exit 1; }; } | |
25959 | ||
25960 | ||
25961 | fi | |
25962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25963 | ||
25964 | CFLAGS=$save_CFLAGS | |
25965 | fi | |
25966 | fi | |
25967 | ||
25968 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
25969 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
25970 | libp_link="" | |
25971 | libsm_ice_link="" | |
25972 | libs_found=0 | |
25973 | for libp in "" " -lXp"; do | |
25974 | if test "$libs_found" = "0"; then | |
25975 | for libsm_ice in "" " -lSM -lICE"; do | |
25976 | if test "$libs_found" = "0"; then | |
25977 | save_LIBS="$LIBS" | |
25978 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
25979 | save_CFLAGS=$CFLAGS | |
25980 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25981 | ||
25982 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25983 | /* confdefs.h. */ |
25984 | _ACEOF | |
25985 | cat confdefs.h >>conftest.$ac_ext | |
25986 | cat >>conftest.$ac_ext <<_ACEOF | |
25987 | /* end confdefs.h. */ | |
25988 | ||
74b84332 VS |
25989 | #include <Xm/Xm.h> |
25990 | #include <Xm/List.h> | |
25991 | ||
a848cd7e SC |
25992 | int |
25993 | main () | |
25994 | { | |
74b84332 VS |
25995 | |
25996 | XmString string = NULL; | |
25997 | Widget w = NULL; | |
25998 | int position = 0; | |
25999 | XmListAddItem(w, string, position); | |
26000 | ||
a848cd7e SC |
26001 | ; |
26002 | return 0; | |
26003 | } | |
26004 | _ACEOF | |
26005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26007 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26008 | ac_status=$? |
ac1cb8d3 VS |
26009 | grep -v '^ *+' conftest.er1 >conftest.err |
26010 | rm -f conftest.er1 | |
26011 | cat conftest.err >&5 | |
a848cd7e SC |
26012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26013 | (exit $ac_status); } && | |
5dcf30a0 RN |
26014 | { ac_try='test -z "$ac_c_werror_flag" |
26015 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26017 | (eval $ac_try) 2>&5 | |
26018 | ac_status=$? | |
26019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26020 | (exit $ac_status); }; } && | |
26021 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26023 | (eval $ac_try) 2>&5 | |
26024 | ac_status=$? | |
26025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26026 | (exit $ac_status); }; }; then | |
26027 | ||
26028 | libp_link="$libp" | |
26029 | libsm_ice_link="$libsm_ice" | |
26030 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26031 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26032 | libs_found=1 | |
26033 | ||
26034 | else | |
26035 | echo "$as_me: failed program was:" >&5 | |
26036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26037 | ||
26038 | ||
26039 | ||
26040 | fi | |
ac1cb8d3 VS |
26041 | rm -f conftest.err conftest.$ac_objext \ |
26042 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26043 | |
26044 | LIBS="$save_LIBS" | |
26045 | CFLAGS=$save_CFLAGS | |
26046 | fi | |
26047 | done | |
26048 | fi | |
26049 | done | |
26050 | ||
26051 | if test "$libs_found" = "0"; then | |
26052 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26053 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26054 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26055 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26056 | { (exit 1); exit 1; }; } | |
26057 | fi | |
26058 | ||
26059 | save_CFLAGS=$CFLAGS | |
26060 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26061 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26062 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26063 | cat >conftest.$ac_ext <<_ACEOF | |
26064 | /* confdefs.h. */ | |
26065 | _ACEOF | |
26066 | cat confdefs.h >>conftest.$ac_ext | |
26067 | cat >>conftest.$ac_ext <<_ACEOF | |
26068 | /* end confdefs.h. */ | |
26069 | ||
26070 | #include <Xm/Xm.h> | |
26071 | ||
26072 | int | |
26073 | main () | |
26074 | { | |
26075 | ||
26076 | #if XmVersion < 2000 | |
26077 | #error "Not Motif 2" | |
26078 | #endif | |
26079 | ||
26080 | ; | |
26081 | return 0; | |
26082 | } | |
26083 | _ACEOF | |
26084 | rm -f conftest.$ac_objext | |
26085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26086 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26087 | ac_status=$? |
ac1cb8d3 VS |
26088 | grep -v '^ *+' conftest.er1 >conftest.err |
26089 | rm -f conftest.er1 | |
26090 | cat conftest.err >&5 | |
a848cd7e SC |
26091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26092 | (exit $ac_status); } && | |
5dcf30a0 RN |
26093 | { ac_try='test -z "$ac_c_werror_flag" |
26094 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26096 | (eval $ac_try) 2>&5 | |
26097 | ac_status=$? | |
26098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26099 | (exit $ac_status); }; } && | |
26100 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26102 | (eval $ac_try) 2>&5 | |
26103 | ac_status=$? | |
26104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26105 | (exit $ac_status); }; }; then | |
26106 | ||
26107 | cat >>confdefs.h <<\_ACEOF | |
26108 | #define __WXMOTIF20__ 1 | |
26109 | _ACEOF | |
26110 | ||
26111 | echo "$as_me:$LINENO: result: found" >&5 | |
26112 | echo "${ECHO_T}found" >&6 | |
26113 | ||
26114 | else | |
26115 | echo "$as_me: failed program was:" >&5 | |
26116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26117 | ||
26118 | ||
26119 | cat >>confdefs.h <<\_ACEOF | |
26120 | #define __WXMOTIF20__ 0 | |
26121 | _ACEOF | |
26122 | ||
26123 | echo "$as_me:$LINENO: result: not found" >&5 | |
26124 | echo "${ECHO_T}not found" >&6 | |
26125 | ||
26126 | fi | |
ac1cb8d3 | 26127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26128 | CFLAGS=$save_CFLAGS |
26129 | ||
26130 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26131 | TOOLKIT=MOTIF |
26132 | GUIDIST=MOTIF_DIST | |
26133 | fi | |
26134 | ||
74b84332 | 26135 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26136 | if test "$wxUSE_LIBXPM" = "sys"; then |
26137 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26138 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26139 | ||
26140 | ac_find_libraries= | |
26141 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26142 | do | |
26143 | for ac_extension in a so sl dylib; do | |
26144 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26145 | ac_find_libraries=$ac_dir | |
26146 | break 2 | |
26147 | fi | |
26148 | done | |
26149 | done | |
26150 | ||
26151 | if test "$ac_find_libraries" != "" ; then | |
26152 | ||
26153 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26154 | result=$? | |
26155 | if test $result = 0; then | |
26156 | ac_path_to_link="" | |
26157 | else | |
26158 | ac_path_to_link=" -L$ac_find_libraries" | |
26159 | fi | |
26160 | ||
26161 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26162 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26163 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26164 | ||
26165 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26166 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26167 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26169 | else | |
26170 | ||
26171 | save_CFLAGS=$CFLAGS | |
26172 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26173 | ||
26174 | cat >conftest.$ac_ext <<_ACEOF | |
26175 | /* confdefs.h. */ | |
26176 | _ACEOF | |
26177 | cat confdefs.h >>conftest.$ac_ext | |
26178 | cat >>conftest.$ac_ext <<_ACEOF | |
26179 | /* end confdefs.h. */ | |
26180 | ||
26181 | #include <X11/xpm.h> | |
26182 | ||
26183 | int | |
26184 | main () | |
26185 | { | |
26186 | ||
26187 | int version; | |
26188 | version = XpmLibraryVersion(); | |
26189 | ||
26190 | ; | |
26191 | return 0; | |
26192 | } | |
26193 | _ACEOF | |
26194 | rm -f conftest.$ac_objext | |
26195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26196 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26197 | ac_status=$? |
ac1cb8d3 VS |
26198 | grep -v '^ *+' conftest.er1 >conftest.err |
26199 | rm -f conftest.er1 | |
26200 | cat conftest.err >&5 | |
a848cd7e SC |
26201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26202 | (exit $ac_status); } && | |
5dcf30a0 RN |
26203 | { ac_try='test -z "$ac_c_werror_flag" |
26204 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26206 | (eval $ac_try) 2>&5 | |
26207 | ac_status=$? | |
26208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26209 | (exit $ac_status); }; } && | |
26210 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26212 | (eval $ac_try) 2>&5 | |
26213 | ac_status=$? | |
26214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26215 | (exit $ac_status); }; }; then | |
26216 | wx_cv_x11_xpm_h=yes | |
26217 | else | |
26218 | echo "$as_me: failed program was:" >&5 | |
26219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26220 | ||
26221 | wx_cv_x11_xpm_h=no | |
26222 | ||
26223 | fi | |
ac1cb8d3 | 26224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26225 | |
26226 | CFLAGS=$save_CFLAGS | |
26227 | ||
26228 | ||
26229 | fi | |
26230 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26231 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26232 | ||
26233 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26234 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26235 | cat >>confdefs.h <<\_ACEOF | |
26236 | #define wxHAVE_LIB_XPM 1 | |
26237 | _ACEOF | |
26238 | ||
26239 | else | |
26240 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26241 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26242 | fi | |
26243 | fi | |
26244 | ||
26245 | fi | |
26246 | ||
26247 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26248 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26249 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26251 | else | |
26252 | ac_check_lib_save_LIBS=$LIBS | |
26253 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26254 | cat >conftest.$ac_ext <<_ACEOF | |
26255 | /* confdefs.h. */ | |
26256 | _ACEOF | |
26257 | cat confdefs.h >>conftest.$ac_ext | |
26258 | cat >>conftest.$ac_ext <<_ACEOF | |
26259 | /* end confdefs.h. */ | |
26260 | ||
26261 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26262 | #ifdef __cplusplus | |
26263 | extern "C" | |
26264 | #endif | |
26265 | /* We use char because int might match the return type of a gcc2 | |
26266 | builtin and then its argument prototype would still apply. */ | |
26267 | char XShapeQueryExtension (); | |
26268 | int | |
26269 | main () | |
26270 | { | |
26271 | XShapeQueryExtension (); | |
26272 | ; | |
26273 | return 0; | |
26274 | } | |
26275 | _ACEOF | |
26276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26278 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26279 | ac_status=$? |
ac1cb8d3 VS |
26280 | grep -v '^ *+' conftest.er1 >conftest.err |
26281 | rm -f conftest.er1 | |
26282 | cat conftest.err >&5 | |
a848cd7e SC |
26283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26284 | (exit $ac_status); } && | |
5dcf30a0 RN |
26285 | { ac_try='test -z "$ac_c_werror_flag" |
26286 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26288 | (eval $ac_try) 2>&5 | |
26289 | ac_status=$? | |
26290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26291 | (exit $ac_status); }; } && | |
26292 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26294 | (eval $ac_try) 2>&5 | |
26295 | ac_status=$? | |
26296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26297 | (exit $ac_status); }; }; then | |
26298 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26299 | else | |
26300 | echo "$as_me: failed program was:" >&5 | |
26301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26302 | ||
26303 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26304 | fi | |
ac1cb8d3 VS |
26305 | rm -f conftest.err conftest.$ac_objext \ |
26306 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26307 | LIBS=$ac_check_lib_save_LIBS |
26308 | fi | |
26309 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26310 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26311 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26312 | ||
26313 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26314 | wxHAVE_XEXT_LIB=1 | |
26315 | ||
26316 | fi | |
26317 | ||
26318 | ||
26319 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26320 | save_CFLAGS="$CFLAGS" | |
26321 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26322 | ||
26323 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26324 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26325 | cat >conftest.$ac_ext <<_ACEOF | |
26326 | /* confdefs.h. */ | |
26327 | _ACEOF | |
26328 | cat confdefs.h >>conftest.$ac_ext | |
26329 | cat >>conftest.$ac_ext <<_ACEOF | |
26330 | /* end confdefs.h. */ | |
26331 | ||
26332 | #include <X11/Xlib.h> | |
26333 | #include <X11/extensions/shape.h> | |
26334 | ||
26335 | int | |
26336 | main () | |
26337 | { | |
26338 | ||
26339 | int dummy1, dummy2; | |
26340 | XShapeQueryExtension((Display*)NULL, | |
26341 | (int*)NULL, (int*)NULL); | |
26342 | ||
26343 | ; | |
26344 | return 0; | |
26345 | } | |
26346 | _ACEOF | |
26347 | rm -f conftest.$ac_objext | |
26348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26349 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26350 | ac_status=$? |
ac1cb8d3 VS |
26351 | grep -v '^ *+' conftest.er1 >conftest.err |
26352 | rm -f conftest.er1 | |
26353 | cat conftest.err >&5 | |
a848cd7e SC |
26354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26355 | (exit $ac_status); } && | |
5dcf30a0 RN |
26356 | { ac_try='test -z "$ac_c_werror_flag" |
26357 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26359 | (eval $ac_try) 2>&5 | |
26360 | ac_status=$? | |
26361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26362 | (exit $ac_status); }; } && | |
26363 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26365 | (eval $ac_try) 2>&5 | |
26366 | ac_status=$? | |
26367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26368 | (exit $ac_status); }; }; then | |
26369 | ||
26370 | cat >>confdefs.h <<\_ACEOF | |
26371 | #define HAVE_XSHAPE 1 | |
26372 | _ACEOF | |
26373 | ||
26374 | echo "$as_me:$LINENO: result: found" >&5 | |
26375 | echo "${ECHO_T}found" >&6 | |
26376 | ||
26377 | else | |
26378 | echo "$as_me: failed program was:" >&5 | |
26379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26380 | ||
26381 | ||
26382 | echo "$as_me:$LINENO: result: not found" >&5 | |
26383 | echo "${ECHO_T}not found" >&6 | |
26384 | ||
26385 | fi | |
ac1cb8d3 | 26386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26387 | CFLAGS="$save_CFLAGS" |
26388 | ||
26389 | fi | |
26390 | fi | |
26391 | ||
26392 | if test "$wxUSE_MAC" = 1; then | |
26393 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26394 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26395 | if test "$GCC" = yes; then | |
26396 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26397 | echo "${ECHO_T}gcc" >&6 | |
26398 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26399 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26400 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26401 | echo "${ECHO_T}xlc" >&6 | |
26402 | CPPFLAGS_PASCAL="-qmacpstr" | |
26403 | else | |
26404 | echo "$as_me:$LINENO: result: none" >&5 | |
26405 | echo "${ECHO_T}none" >&6 | |
26406 | fi | |
26407 | ||
26408 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26409 | ||
a848cd7e SC |
26410 | TOOLKIT=MAC |
26411 | GUIDIST=MACX_DIST | |
dd21ced8 | 26412 | WXBASEPORT="_carbon" |
a848cd7e SC |
26413 | fi |
26414 | ||
26415 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
26416 | TOOLKIT=COCOA |
26417 | GUIDIST=COCOA_DIST | |
26418 | fi | |
26419 | ||
26420 | if test "$wxUSE_PM" = 1; then | |
26421 | TOOLKIT=PM | |
de59c161 RD |
26422 | GUIDIST=PM_DIST |
26423 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26424 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26425 | if test "${wx_cv_spbcdata+set}" = set; then | |
26426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26427 | else | |
26428 | ||
26429 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26430 | /* confdefs.h. */ |
26431 | _ACEOF | |
26432 | cat confdefs.h >>conftest.$ac_ext | |
26433 | cat >>conftest.$ac_ext <<_ACEOF | |
26434 | /* end confdefs.h. */ | |
26435 | ||
26436 | #define INCL_PM | |
26437 | #include <os2.h> | |
26438 | ||
26439 | int | |
26440 | main () | |
26441 | { | |
26442 | ||
26443 | SPBCDATA test; | |
26444 | ||
26445 | ; | |
26446 | return 0; | |
26447 | } | |
26448 | _ACEOF | |
26449 | rm -f conftest.$ac_objext | |
26450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26451 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26452 | ac_status=$? |
ac1cb8d3 VS |
26453 | grep -v '^ *+' conftest.er1 >conftest.err |
26454 | rm -f conftest.er1 | |
26455 | cat conftest.err >&5 | |
de59c161 RD |
26456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26457 | (exit $ac_status); } && | |
5dcf30a0 RN |
26458 | { ac_try='test -z "$ac_c_werror_flag" |
26459 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26461 | (eval $ac_try) 2>&5 | |
26462 | ac_status=$? | |
26463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26464 | (exit $ac_status); }; } && | |
26465 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26467 | (eval $ac_try) 2>&5 | |
26468 | ac_status=$? | |
26469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26470 | (exit $ac_status); }; }; then | |
26471 | wx_cv_spbcdata=yes | |
26472 | else | |
26473 | echo "$as_me: failed program was:" >&5 | |
26474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26475 | ||
26476 | wx_cv_spbcdata=no | |
26477 | ||
26478 | fi | |
ac1cb8d3 | 26479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26480 | |
26481 | ||
26482 | fi | |
26483 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26484 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26485 | ||
26486 | if test $wx_cv_spbcdata = "yes"; then | |
26487 | cat >>confdefs.h <<\_ACEOF | |
26488 | #define HAVE_SPBCDATA 1 | |
26489 | _ACEOF | |
26490 | ||
26491 | fi | |
a848cd7e SC |
26492 | fi |
26493 | ||
26494 | if test "$TOOLKIT" = "PM" ; then | |
26495 | TOOLKIT_DIR="os2" | |
26496 | else | |
26497 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26498 | fi | |
26499 | ||
a848cd7e | 26500 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
26501 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
26502 | WIDGET_SET=univ | |
a848cd7e SC |
26503 | fi |
26504 | ||
26505 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26506 | DISTDIR="wx\$(TOOLKIT)" | |
26507 | else | |
26508 | USE_GUI=0 | |
26509 | ||
26510 | TOOLKIT_DIR="base" | |
26511 | ||
26512 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 26513 | TOOLKIT="MSW" |
a848cd7e SC |
26514 | fi |
26515 | ||
a848cd7e SC |
26516 | GUIDIST="BASE_DIST" |
26517 | DISTDIR="wxBase" | |
26518 | fi | |
26519 | ||
26520 | ||
26521 | ||
26522 | ||
26523 | IODBC_C_SRC="" | |
26524 | ||
26525 | ||
26526 | if test "$TOOLKIT" != "MSW" ; then | |
26527 | ||
26528 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26529 | ||
26530 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26531 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26532 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26533 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26535 | fi | |
26536 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26537 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26538 | else | |
26539 | # Is the header compilable? | |
26540 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26541 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26542 | cat >conftest.$ac_ext <<_ACEOF | |
26543 | /* confdefs.h. */ | |
26544 | _ACEOF | |
26545 | cat confdefs.h >>conftest.$ac_ext | |
26546 | cat >>conftest.$ac_ext <<_ACEOF | |
26547 | /* end confdefs.h. */ | |
26548 | $ac_includes_default | |
26549 | #include <sql.h> | |
26550 | _ACEOF | |
26551 | rm -f conftest.$ac_objext | |
26552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26553 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26554 | ac_status=$? |
ac1cb8d3 VS |
26555 | grep -v '^ *+' conftest.er1 >conftest.err |
26556 | rm -f conftest.er1 | |
26557 | cat conftest.err >&5 | |
a848cd7e SC |
26558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26559 | (exit $ac_status); } && | |
5dcf30a0 RN |
26560 | { ac_try='test -z "$ac_c_werror_flag" |
26561 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26563 | (eval $ac_try) 2>&5 | |
26564 | ac_status=$? | |
26565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26566 | (exit $ac_status); }; } && | |
26567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26569 | (eval $ac_try) 2>&5 | |
26570 | ac_status=$? | |
26571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26572 | (exit $ac_status); }; }; then | |
26573 | ac_header_compiler=yes | |
26574 | else | |
26575 | echo "$as_me: failed program was:" >&5 | |
26576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26577 | ||
26578 | ac_header_compiler=no | |
26579 | fi | |
ac1cb8d3 | 26580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26581 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26582 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26583 | ||
26584 | # Is the header present? | |
26585 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26586 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26587 | cat >conftest.$ac_ext <<_ACEOF | |
26588 | /* confdefs.h. */ | |
26589 | _ACEOF | |
26590 | cat confdefs.h >>conftest.$ac_ext | |
26591 | cat >>conftest.$ac_ext <<_ACEOF | |
26592 | /* end confdefs.h. */ | |
26593 | #include <sql.h> | |
26594 | _ACEOF | |
26595 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26596 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26597 | ac_status=$? | |
26598 | grep -v '^ *+' conftest.er1 >conftest.err | |
26599 | rm -f conftest.er1 | |
26600 | cat conftest.err >&5 | |
26601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26602 | (exit $ac_status); } >/dev/null; then | |
26603 | if test -s conftest.err; then | |
26604 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26605 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26606 | else |
26607 | ac_cpp_err= | |
26608 | fi | |
26609 | else | |
26610 | ac_cpp_err=yes | |
26611 | fi | |
26612 | if test -z "$ac_cpp_err"; then | |
26613 | ac_header_preproc=yes | |
26614 | else | |
26615 | echo "$as_me: failed program was:" >&5 | |
26616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26617 | ||
26618 | ac_header_preproc=no | |
26619 | fi | |
26620 | rm -f conftest.err conftest.$ac_ext | |
26621 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26622 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26623 | ||
26624 | # So? What about this header? | |
ac1cb8d3 VS |
26625 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26626 | yes:no: ) | |
a848cd7e SC |
26627 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26628 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26629 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26630 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26631 | ac_header_preproc=yes | |
a848cd7e | 26632 | ;; |
ac1cb8d3 | 26633 | no:yes:* ) |
a848cd7e SC |
26634 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26635 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26636 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26637 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26638 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26639 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26640 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26641 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26642 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26643 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26644 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26645 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26646 | ( |
26647 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26648 | ## ----------------------------------------- ## |
26649 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26650 | ## ----------------------------------------- ## | |
a848cd7e SC |
26651 | _ASBOX |
26652 | ) | | |
26653 | sed "s/^/$as_me: WARNING: /" >&2 | |
26654 | ;; | |
26655 | esac | |
26656 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26657 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26658 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26660 | else | |
26661 | ac_cv_header_sql_h=$ac_header_preproc | |
26662 | fi | |
26663 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26664 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26665 | ||
26666 | fi | |
26667 | if test $ac_cv_header_sql_h = yes; then | |
26668 | found_sql_h=1 | |
26669 | fi | |
26670 | ||
26671 | ||
26672 | if test "x$found_sql_h" = "x1" ; then | |
26673 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26674 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26675 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26677 | else | |
26678 | ac_check_lib_save_LIBS=$LIBS | |
26679 | LIBS="-liodbc $LIBS" | |
26680 | cat >conftest.$ac_ext <<_ACEOF | |
26681 | /* confdefs.h. */ | |
26682 | _ACEOF | |
26683 | cat confdefs.h >>conftest.$ac_ext | |
26684 | cat >>conftest.$ac_ext <<_ACEOF | |
26685 | /* end confdefs.h. */ | |
26686 | ||
26687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26688 | #ifdef __cplusplus | |
26689 | extern "C" | |
26690 | #endif | |
26691 | /* We use char because int might match the return type of a gcc2 | |
26692 | builtin and then its argument prototype would still apply. */ | |
26693 | char SQLAllocEnv (); | |
26694 | int | |
26695 | main () | |
26696 | { | |
26697 | SQLAllocEnv (); | |
26698 | ; | |
26699 | return 0; | |
26700 | } | |
26701 | _ACEOF | |
26702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26704 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26705 | ac_status=$? |
ac1cb8d3 VS |
26706 | grep -v '^ *+' conftest.er1 >conftest.err |
26707 | rm -f conftest.er1 | |
26708 | cat conftest.err >&5 | |
a848cd7e SC |
26709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26710 | (exit $ac_status); } && | |
5dcf30a0 RN |
26711 | { ac_try='test -z "$ac_c_werror_flag" |
26712 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26714 | (eval $ac_try) 2>&5 | |
26715 | ac_status=$? | |
26716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26717 | (exit $ac_status); }; } && | |
26718 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26720 | (eval $ac_try) 2>&5 | |
26721 | ac_status=$? | |
26722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26723 | (exit $ac_status); }; }; then | |
26724 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26725 | else | |
26726 | echo "$as_me: failed program was:" >&5 | |
26727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26728 | ||
26729 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26730 | fi | |
ac1cb8d3 VS |
26731 | rm -f conftest.err conftest.$ac_objext \ |
26732 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26733 | LIBS=$ac_check_lib_save_LIBS |
26734 | fi | |
26735 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26736 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26737 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26738 | ODBC_LINK=" -liodbc" | |
26739 | else | |
26740 | ||
26741 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26742 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26743 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26745 | else | |
26746 | ac_check_lib_save_LIBS=$LIBS | |
26747 | LIBS="-lunixodbc $LIBS" | |
26748 | cat >conftest.$ac_ext <<_ACEOF | |
26749 | /* confdefs.h. */ | |
26750 | _ACEOF | |
26751 | cat confdefs.h >>conftest.$ac_ext | |
26752 | cat >>conftest.$ac_ext <<_ACEOF | |
26753 | /* end confdefs.h. */ | |
26754 | ||
26755 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26756 | #ifdef __cplusplus | |
26757 | extern "C" | |
26758 | #endif | |
26759 | /* We use char because int might match the return type of a gcc2 | |
26760 | builtin and then its argument prototype would still apply. */ | |
26761 | char SQLAllocEnv (); | |
26762 | int | |
26763 | main () | |
26764 | { | |
26765 | SQLAllocEnv (); | |
26766 | ; | |
26767 | return 0; | |
26768 | } | |
26769 | _ACEOF | |
26770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26772 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26773 | ac_status=$? |
ac1cb8d3 VS |
26774 | grep -v '^ *+' conftest.er1 >conftest.err |
26775 | rm -f conftest.er1 | |
26776 | cat conftest.err >&5 | |
a848cd7e SC |
26777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26778 | (exit $ac_status); } && | |
5dcf30a0 RN |
26779 | { ac_try='test -z "$ac_c_werror_flag" |
26780 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26782 | (eval $ac_try) 2>&5 | |
26783 | ac_status=$? | |
26784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26785 | (exit $ac_status); }; } && | |
26786 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26788 | (eval $ac_try) 2>&5 | |
26789 | ac_status=$? | |
26790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26791 | (exit $ac_status); }; }; then | |
26792 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
26793 | else | |
26794 | echo "$as_me: failed program was:" >&5 | |
26795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26796 | ||
26797 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
26798 | fi | |
ac1cb8d3 VS |
26799 | rm -f conftest.err conftest.$ac_objext \ |
26800 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26801 | LIBS=$ac_check_lib_save_LIBS |
26802 | fi | |
26803 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
26804 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26805 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
26806 | ODBC_LINK=" -lunixodbc" | |
26807 | else | |
26808 | ||
26809 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
26810 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26811 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
26812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26813 | else | |
26814 | ac_check_lib_save_LIBS=$LIBS | |
26815 | LIBS="-lodbc $LIBS" | |
26816 | cat >conftest.$ac_ext <<_ACEOF | |
26817 | /* confdefs.h. */ | |
26818 | _ACEOF | |
26819 | cat confdefs.h >>conftest.$ac_ext | |
26820 | cat >>conftest.$ac_ext <<_ACEOF | |
26821 | /* end confdefs.h. */ | |
26822 | ||
26823 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26824 | #ifdef __cplusplus | |
26825 | extern "C" | |
26826 | #endif | |
26827 | /* We use char because int might match the return type of a gcc2 | |
26828 | builtin and then its argument prototype would still apply. */ | |
26829 | char SQLAllocEnv (); | |
26830 | int | |
26831 | main () | |
26832 | { | |
26833 | SQLAllocEnv (); | |
26834 | ; | |
26835 | return 0; | |
26836 | } | |
26837 | _ACEOF | |
26838 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26840 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26841 | ac_status=$? |
ac1cb8d3 VS |
26842 | grep -v '^ *+' conftest.er1 >conftest.err |
26843 | rm -f conftest.er1 | |
26844 | cat conftest.err >&5 | |
a848cd7e SC |
26845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26846 | (exit $ac_status); } && | |
5dcf30a0 RN |
26847 | { ac_try='test -z "$ac_c_werror_flag" |
26848 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26850 | (eval $ac_try) 2>&5 | |
26851 | ac_status=$? | |
26852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26853 | (exit $ac_status); }; } && | |
26854 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26856 | (eval $ac_try) 2>&5 | |
26857 | ac_status=$? | |
26858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26859 | (exit $ac_status); }; }; then | |
26860 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
26861 | else | |
26862 | echo "$as_me: failed program was:" >&5 | |
26863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26864 | ||
26865 | ac_cv_lib_odbc_SQLAllocEnv=no | |
26866 | fi | |
ac1cb8d3 VS |
26867 | rm -f conftest.err conftest.$ac_objext \ |
26868 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26869 | LIBS=$ac_check_lib_save_LIBS |
26870 | fi | |
26871 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
26872 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26873 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
26874 | ODBC_LINK=" -lodbc" | |
26875 | fi | |
26876 | ||
26877 | ||
26878 | fi | |
26879 | ||
26880 | ||
26881 | fi | |
26882 | ||
26883 | fi | |
26884 | if test "x$ODBC_LINK" = "x" ; then | |
26885 | if test "$wxUSE_ODBC" = "sys" ; then | |
26886 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26887 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26888 | { (exit 1); exit 1; }; } | |
26889 | else | |
26890 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26891 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26892 | wxUSE_ODBC=builtin | |
26893 | fi | |
26894 | else | |
26895 | wxUSE_ODBC=sys | |
26896 | fi | |
26897 | fi | |
26898 | if test "$wxUSE_ODBC" != "no" ; then | |
26899 | cat >>confdefs.h <<\_ACEOF | |
26900 | #define wxUSE_ODBC 1 | |
26901 | _ACEOF | |
26902 | ||
26903 | if test "$wxUSE_ODBC" = "builtin" ; then | |
26904 | cat >>confdefs.h <<\_ACEOF | |
26905 | #define wxUSE_BUILTIN_IODBC 1 | |
26906 | _ACEOF | |
26907 | ||
26908 | fi | |
26909 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
26910 | ||
26911 | WXODBCFLAG="-D_IODBC_" | |
26912 | fi | |
26913 | fi | |
26914 | ||
a848cd7e | 26915 | |
01cb68df | 26916 | |
a848cd7e | 26917 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 26918 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
26919 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
26920 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
26921 | ||
26922 | ac_find_libraries= | |
26923 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26924 | do | |
26925 | for ac_extension in a so sl dylib; do | |
26926 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26927 | ac_find_libraries=$ac_dir | |
26928 | break 2 | |
26929 | fi | |
26930 | done | |
26931 | done | |
26932 | ||
26933 | if test "$ac_find_libraries" != "" ; then | |
26934 | ||
26935 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26936 | result=$? | |
26937 | if test $result = 0; then | |
26938 | ac_path_to_link="" | |
26939 | else | |
26940 | ac_path_to_link=" -L$ac_find_libraries" | |
26941 | fi | |
26942 | ||
26943 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26944 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
26945 | fi | |
26946 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
26947 | echo "$as_me:$LINENO: result: yes" >&5 | |
26948 | echo "${ECHO_T}yes" >&6 | |
26949 | ||
26950 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
26951 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
26952 | ||
26953 | ac_find_libraries= | |
26954 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26955 | do | |
26956 | for ac_extension in a so sl dylib; do | |
26957 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
26958 | ac_find_libraries=$ac_dir | |
26959 | break 2 | |
26960 | fi | |
26961 | done | |
26962 | done | |
26963 | ||
26964 | if test "$ac_find_libraries" != "" ; then | |
26965 | echo "$as_me:$LINENO: result: yes" >&5 | |
26966 | echo "${ECHO_T}yes" >&6 | |
26967 | ||
26968 | for ac_header in X11/extensions/xf86vmode.h | |
26969 | do | |
26970 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26971 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26972 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26973 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26975 | else | |
26976 | cat >conftest.$ac_ext <<_ACEOF | |
26977 | /* confdefs.h. */ | |
26978 | _ACEOF | |
26979 | cat confdefs.h >>conftest.$ac_ext | |
26980 | cat >>conftest.$ac_ext <<_ACEOF | |
26981 | /* end confdefs.h. */ | |
26982 | ||
26983 | #if HAVE_X11_XLIB_H | |
26984 | #include <X11/Xlib.h> | |
26985 | #endif | |
26986 | ||
26987 | ||
26988 | #include <$ac_header> | |
26989 | _ACEOF | |
26990 | rm -f conftest.$ac_objext | |
26991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26992 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26993 | ac_status=$? |
ac1cb8d3 VS |
26994 | grep -v '^ *+' conftest.er1 >conftest.err |
26995 | rm -f conftest.er1 | |
26996 | cat conftest.err >&5 | |
a848cd7e SC |
26997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26998 | (exit $ac_status); } && | |
5dcf30a0 RN |
26999 | { ac_try='test -z "$ac_c_werror_flag" |
27000 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27002 | (eval $ac_try) 2>&5 | |
27003 | ac_status=$? | |
27004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27005 | (exit $ac_status); }; } && | |
27006 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27008 | (eval $ac_try) 2>&5 | |
27009 | ac_status=$? | |
27010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27011 | (exit $ac_status); }; }; then | |
27012 | eval "$as_ac_Header=yes" | |
27013 | else | |
27014 | echo "$as_me: failed program was:" >&5 | |
27015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27016 | ||
27017 | eval "$as_ac_Header=no" | |
27018 | fi | |
ac1cb8d3 | 27019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27020 | fi |
27021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27022 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27023 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27024 | cat >>confdefs.h <<_ACEOF | |
27025 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27026 | _ACEOF | |
27027 | ||
27028 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27029 | ||
27030 | fi | |
27031 | ||
27032 | done | |
27033 | ||
27034 | else | |
27035 | echo "$as_me:$LINENO: result: no" >&5 | |
27036 | echo "${ECHO_T}no" >&6 | |
27037 | fi | |
27038 | ||
27039 | else | |
27040 | echo "$as_me:$LINENO: result: no" >&5 | |
27041 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27042 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27043 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27044 | wxUSE_DISPLAY="no" |
27045 | fi | |
01cb68df RG |
27046 | elif test "$wxUSE_MSW" = 1; then |
27047 | ||
27048 | ||
27049 | for ac_header in multimon.h ddraw.h | |
27050 | do | |
27051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27057 | fi | |
27058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27060 | else | |
27061 | # Is the header compilable? | |
27062 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27064 | cat >conftest.$ac_ext <<_ACEOF | |
27065 | /* confdefs.h. */ | |
27066 | _ACEOF | |
27067 | cat confdefs.h >>conftest.$ac_ext | |
27068 | cat >>conftest.$ac_ext <<_ACEOF | |
27069 | /* end confdefs.h. */ | |
27070 | $ac_includes_default | |
27071 | #include <$ac_header> | |
27072 | _ACEOF | |
27073 | rm -f conftest.$ac_objext | |
27074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27075 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27076 | ac_status=$? |
ac1cb8d3 VS |
27077 | grep -v '^ *+' conftest.er1 >conftest.err |
27078 | rm -f conftest.er1 | |
27079 | cat conftest.err >&5 | |
01cb68df RG |
27080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27081 | (exit $ac_status); } && | |
5dcf30a0 RN |
27082 | { ac_try='test -z "$ac_c_werror_flag" |
27083 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27085 | (eval $ac_try) 2>&5 | |
27086 | ac_status=$? | |
27087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27088 | (exit $ac_status); }; } && | |
27089 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27091 | (eval $ac_try) 2>&5 | |
27092 | ac_status=$? | |
27093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27094 | (exit $ac_status); }; }; then | |
27095 | ac_header_compiler=yes | |
27096 | else | |
27097 | echo "$as_me: failed program was:" >&5 | |
27098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27099 | ||
27100 | ac_header_compiler=no | |
27101 | fi | |
ac1cb8d3 | 27102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27103 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27104 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27105 | ||
27106 | # Is the header present? | |
27107 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27108 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27109 | cat >conftest.$ac_ext <<_ACEOF | |
27110 | /* confdefs.h. */ | |
27111 | _ACEOF | |
27112 | cat confdefs.h >>conftest.$ac_ext | |
27113 | cat >>conftest.$ac_ext <<_ACEOF | |
27114 | /* end confdefs.h. */ | |
27115 | #include <$ac_header> | |
27116 | _ACEOF | |
27117 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27118 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27119 | ac_status=$? | |
27120 | grep -v '^ *+' conftest.er1 >conftest.err | |
27121 | rm -f conftest.er1 | |
27122 | cat conftest.err >&5 | |
27123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27124 | (exit $ac_status); } >/dev/null; then | |
27125 | if test -s conftest.err; then | |
27126 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27127 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
27128 | else |
27129 | ac_cpp_err= | |
27130 | fi | |
27131 | else | |
27132 | ac_cpp_err=yes | |
27133 | fi | |
27134 | if test -z "$ac_cpp_err"; then | |
27135 | ac_header_preproc=yes | |
27136 | else | |
27137 | echo "$as_me: failed program was:" >&5 | |
27138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27139 | ||
27140 | ac_header_preproc=no | |
27141 | fi | |
27142 | rm -f conftest.err conftest.$ac_ext | |
27143 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27144 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27145 | ||
27146 | # So? What about this header? | |
ac1cb8d3 VS |
27147 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27148 | yes:no: ) | |
01cb68df RG |
27149 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
27150 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27151 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27152 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27153 | ac_header_preproc=yes | |
01cb68df | 27154 | ;; |
ac1cb8d3 | 27155 | no:yes:* ) |
01cb68df RG |
27156 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27157 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27158 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27159 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27160 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27161 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27162 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27163 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
27164 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27165 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27166 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27167 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
27168 | ( |
27169 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27170 | ## ----------------------------------------- ## |
27171 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27172 | ## ----------------------------------------- ## | |
01cb68df RG |
27173 | _ASBOX |
27174 | ) | | |
27175 | sed "s/^/$as_me: WARNING: /" >&2 | |
27176 | ;; | |
27177 | esac | |
27178 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27182 | else | |
ac1cb8d3 | 27183 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
27184 | fi |
27185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27187 | ||
27188 | fi | |
27189 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27190 | cat >>confdefs.h <<_ACEOF | |
27191 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27192 | _ACEOF | |
27193 | ||
27194 | else | |
27195 | ||
27196 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
27197 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
27198 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
27199 | |
27200 | fi | |
27201 | ||
27202 | done | |
27203 | ||
a848cd7e SC |
27204 | fi |
27205 | fi | |
27206 | ||
27207 | ||
27208 | USE_OPENGL=0 | |
27209 | if test "$wxUSE_OPENGL" = "yes"; then | |
27210 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27211 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27212 | elif test "$wxUSE_MSW" = 1; then | |
27213 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27214 | else | |
27215 | ||
27216 | ||
27217 | ac_find_includes= | |
27218 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27219 | do | |
27220 | if test -f "$ac_dir/GL/gl.h"; then | |
27221 | ac_find_includes=$ac_dir | |
27222 | break | |
27223 | fi | |
27224 | done | |
27225 | ||
27226 | if test "$ac_find_includes" != "" ; then | |
27227 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27228 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27229 | ||
27230 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27231 | ac_path_to_include="" | |
27232 | else | |
27233 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27234 | result=$? | |
27235 | if test $result = 0; then | |
27236 | ac_path_to_include="" | |
27237 | else | |
27238 | ac_path_to_include=" -I$ac_find_includes" | |
27239 | fi | |
27240 | fi | |
27241 | ||
27242 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27243 | fi | |
27244 | ||
27245 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27246 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27247 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27248 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27250 | fi | |
27251 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27252 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27253 | else | |
27254 | # Is the header compilable? | |
27255 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27256 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27257 | cat >conftest.$ac_ext <<_ACEOF | |
27258 | /* confdefs.h. */ | |
27259 | _ACEOF | |
27260 | cat confdefs.h >>conftest.$ac_ext | |
27261 | cat >>conftest.$ac_ext <<_ACEOF | |
27262 | /* end confdefs.h. */ | |
27263 | $ac_includes_default | |
27264 | #include <GL/gl.h> | |
27265 | _ACEOF | |
27266 | rm -f conftest.$ac_objext | |
27267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27268 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27269 | ac_status=$? |
ac1cb8d3 VS |
27270 | grep -v '^ *+' conftest.er1 >conftest.err |
27271 | rm -f conftest.er1 | |
27272 | cat conftest.err >&5 | |
a848cd7e SC |
27273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27274 | (exit $ac_status); } && | |
5dcf30a0 RN |
27275 | { ac_try='test -z "$ac_c_werror_flag" |
27276 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27278 | (eval $ac_try) 2>&5 | |
27279 | ac_status=$? | |
27280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27281 | (exit $ac_status); }; } && | |
27282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27284 | (eval $ac_try) 2>&5 | |
27285 | ac_status=$? | |
27286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27287 | (exit $ac_status); }; }; then | |
27288 | ac_header_compiler=yes | |
27289 | else | |
27290 | echo "$as_me: failed program was:" >&5 | |
27291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27292 | ||
27293 | ac_header_compiler=no | |
27294 | fi | |
ac1cb8d3 | 27295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27296 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27297 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27298 | ||
27299 | # Is the header present? | |
27300 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27301 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27302 | cat >conftest.$ac_ext <<_ACEOF | |
27303 | /* confdefs.h. */ | |
27304 | _ACEOF | |
27305 | cat confdefs.h >>conftest.$ac_ext | |
27306 | cat >>conftest.$ac_ext <<_ACEOF | |
27307 | /* end confdefs.h. */ | |
27308 | #include <GL/gl.h> | |
27309 | _ACEOF | |
27310 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27311 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27312 | ac_status=$? | |
27313 | grep -v '^ *+' conftest.er1 >conftest.err | |
27314 | rm -f conftest.er1 | |
27315 | cat conftest.err >&5 | |
27316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27317 | (exit $ac_status); } >/dev/null; then | |
27318 | if test -s conftest.err; then | |
27319 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27320 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27321 | else |
27322 | ac_cpp_err= | |
27323 | fi | |
27324 | else | |
27325 | ac_cpp_err=yes | |
27326 | fi | |
27327 | if test -z "$ac_cpp_err"; then | |
27328 | ac_header_preproc=yes | |
27329 | else | |
27330 | echo "$as_me: failed program was:" >&5 | |
27331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27332 | ||
27333 | ac_header_preproc=no | |
27334 | fi | |
27335 | rm -f conftest.err conftest.$ac_ext | |
27336 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27337 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27338 | ||
27339 | # So? What about this header? | |
ac1cb8d3 VS |
27340 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27341 | yes:no: ) | |
a848cd7e SC |
27342 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27343 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27344 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27345 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27346 | ac_header_preproc=yes | |
a848cd7e | 27347 | ;; |
ac1cb8d3 | 27348 | no:yes:* ) |
a848cd7e SC |
27349 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27350 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27351 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27352 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27353 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27354 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27355 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27356 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27357 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27358 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27359 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27360 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27361 | ( |
27362 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27363 | ## ----------------------------------------- ## |
27364 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27365 | ## ----------------------------------------- ## | |
a848cd7e SC |
27366 | _ASBOX |
27367 | ) | | |
27368 | sed "s/^/$as_me: WARNING: /" >&2 | |
27369 | ;; | |
27370 | esac | |
27371 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27372 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27373 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27375 | else | |
27376 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27377 | fi | |
27378 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27379 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27380 | ||
27381 | fi | |
27382 | if test $ac_cv_header_GL_gl_h = yes; then | |
27383 | ||
27384 | found_gl=0 | |
27385 | ||
27386 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27387 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27388 | ||
27389 | ac_find_libraries= | |
27390 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27391 | do | |
27392 | for ac_extension in a so sl dylib; do | |
27393 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27394 | ac_find_libraries=$ac_dir | |
27395 | break 2 | |
27396 | fi | |
27397 | done | |
27398 | done | |
27399 | ||
27400 | if test "$ac_find_libraries" != "" ; then | |
27401 | ||
27402 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27403 | result=$? | |
27404 | if test $result = 0; then | |
27405 | ac_path_to_link="" | |
27406 | else | |
27407 | ac_path_to_link=" -L$ac_find_libraries" | |
27408 | fi | |
27409 | ||
27410 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27411 | LDFLAGS_GL="$ac_path_to_link" | |
27412 | fi | |
27413 | ||
27414 | ||
27415 | ac_find_libraries= | |
27416 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27417 | do | |
27418 | for ac_extension in a so sl dylib; do | |
27419 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27420 | ac_find_libraries=$ac_dir | |
27421 | break 2 | |
27422 | fi | |
27423 | done | |
27424 | done | |
27425 | ||
27426 | if test "$ac_find_libraries" != "" ; then | |
27427 | ||
27428 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27429 | result=$? | |
27430 | if test $result = 0; then | |
27431 | ac_path_to_link="" | |
27432 | else | |
27433 | ac_path_to_link=" -L$ac_find_libraries" | |
27434 | fi | |
27435 | ||
27436 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27437 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27438 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27439 | fi | |
27440 | ||
27441 | found_gl=1 | |
27442 | OPENGL_LIBS="-lGL -lGLU" | |
27443 | echo "$as_me:$LINENO: result: yes" >&5 | |
27444 | echo "${ECHO_T}yes" >&6 | |
27445 | fi | |
27446 | fi | |
27447 | ||
27448 | if test "$found_gl" != 1; then | |
27449 | echo "$as_me:$LINENO: result: no" >&5 | |
27450 | echo "${ECHO_T}no" >&6 | |
27451 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27452 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27453 | ||
27454 | ac_find_libraries= | |
27455 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27456 | do | |
27457 | for ac_extension in a so sl dylib; do | |
27458 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27459 | ac_find_libraries=$ac_dir | |
27460 | break 2 | |
27461 | fi | |
27462 | done | |
27463 | done | |
27464 | ||
27465 | if test "$ac_find_libraries" != "" ; then | |
27466 | ||
27467 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27468 | result=$? | |
27469 | if test $result = 0; then | |
27470 | ac_path_to_link="" | |
27471 | else | |
27472 | ac_path_to_link=" -L$ac_find_libraries" | |
27473 | fi | |
27474 | ||
27475 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27476 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27477 | echo "$as_me:$LINENO: result: yes" >&5 | |
27478 | echo "${ECHO_T}yes" >&6 | |
27479 | else | |
27480 | echo "$as_me:$LINENO: result: no" >&5 | |
27481 | echo "${ECHO_T}no" >&6 | |
27482 | fi | |
27483 | fi | |
27484 | ||
27485 | fi | |
27486 | ||
27487 | ||
27488 | ||
27489 | if test "x$OPENGL_LIBS" = "x"; then | |
27490 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27491 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27492 | { (exit 1); exit 1; }; } | |
27493 | fi | |
27494 | fi | |
27495 | ||
27496 | if test "$wxUSE_OPENGL" = "yes"; then | |
27497 | USE_OPENGL=1 | |
27498 | cat >>confdefs.h <<\_ACEOF | |
27499 | #define wxUSE_OPENGL 1 | |
27500 | _ACEOF | |
27501 | ||
27502 | cat >>confdefs.h <<\_ACEOF | |
27503 | #define wxUSE_GLCANVAS 1 | |
27504 | _ACEOF | |
27505 | ||
27506 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27507 | fi | |
27508 | fi | |
27509 | ||
a848cd7e SC |
27510 | |
27511 | if test -n "$TOOLKIT" ; then | |
27512 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27513 | fi | |
27514 | ||
a848cd7e SC |
27515 | |
27516 | ||
27517 | if test "$wxUSE_SHARED" = "yes"; then | |
27518 | case "${host}" in | |
27519 | *-pc-msdosdjgpp ) | |
27520 | wxUSE_SHARED=no | |
27521 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27522 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27523 | ;; | |
27524 | esac | |
27525 | fi | |
27526 | ||
a848cd7e | 27527 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
27528 | |
27529 | ||
27530 | found_versioning=no | |
27531 | ||
27532 | ||
27533 | if test $found_versioning = no ; then | |
27534 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27535 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27536 | if test "${wx_cv_version_script+set}" = set; then | |
27537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27538 | else | |
27539 | ||
27540 | echo "VER_1 { *; };" >conftest.sym | |
27541 | echo "int main() { return 0; }" >conftest.cpp | |
27542 | ||
27543 | if { ac_try=' | |
27544 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27545 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27547 | (eval $ac_try) 2>&5 | |
27548 | ac_status=$? | |
27549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27550 | (exit $ac_status); }; } ; then | |
27551 | if test -s conftest.stderr ; then | |
27552 | wx_cv_version_script=no | |
27553 | else | |
27554 | wx_cv_version_script=yes | |
27555 | fi | |
27556 | else | |
27557 | wx_cv_version_script=no | |
27558 | fi | |
27559 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27560 | ||
27561 | fi | |
27562 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27563 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27564 | if test $wx_cv_version_script = yes ; then | |
27565 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27566 | fi | |
27567 | fi | |
27568 | ||
27569 | ||
27570 | case "${host}" in | |
27571 | *-*-linux* | *-*-gnu* ) | |
27572 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27573 | ;; | |
27574 | ||
27575 | *-*-solaris2* ) | |
27576 | if test "$GCC" = yes ; then | |
27577 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27578 | ||
27579 | saveLdflags="$LDFLAGS" | |
27580 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27581 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27582 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27583 | cat >conftest.$ac_ext <<_ACEOF | |
27584 | /* confdefs.h. */ | |
27585 | _ACEOF | |
27586 | cat confdefs.h >>conftest.$ac_ext | |
27587 | cat >>conftest.$ac_ext <<_ACEOF | |
27588 | /* end confdefs.h. */ | |
27589 | ||
27590 | int | |
27591 | main () | |
27592 | { | |
27593 | ||
27594 | ; | |
27595 | return 0; | |
27596 | } | |
27597 | _ACEOF | |
27598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27600 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27601 | ac_status=$? |
ac1cb8d3 VS |
27602 | grep -v '^ *+' conftest.er1 >conftest.err |
27603 | rm -f conftest.er1 | |
27604 | cat conftest.err >&5 | |
a848cd7e SC |
27605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27606 | (exit $ac_status); } && | |
5dcf30a0 RN |
27607 | { ac_try='test -z "$ac_c_werror_flag" |
27608 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27610 | (eval $ac_try) 2>&5 | |
27611 | ac_status=$? | |
27612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27613 | (exit $ac_status); }; } && | |
27614 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27616 | (eval $ac_try) 2>&5 | |
27617 | ac_status=$? | |
27618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27619 | (exit $ac_status); }; }; then | |
27620 | ||
27621 | echo "$as_me:$LINENO: result: yes" >&5 | |
27622 | echo "${ECHO_T}yes" >&6 | |
27623 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27624 | ||
27625 | else | |
27626 | echo "$as_me: failed program was:" >&5 | |
27627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27628 | ||
27629 | ||
27630 | echo "$as_me:$LINENO: result: no" >&5 | |
27631 | echo "${ECHO_T}no" >&6 | |
27632 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27633 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27634 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27635 | cat >conftest.$ac_ext <<_ACEOF | |
27636 | /* confdefs.h. */ | |
27637 | _ACEOF | |
27638 | cat confdefs.h >>conftest.$ac_ext | |
27639 | cat >>conftest.$ac_ext <<_ACEOF | |
27640 | /* end confdefs.h. */ | |
27641 | ||
27642 | int | |
27643 | main () | |
27644 | { | |
27645 | ||
27646 | ; | |
27647 | return 0; | |
27648 | } | |
27649 | _ACEOF | |
27650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27652 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27653 | ac_status=$? |
ac1cb8d3 VS |
27654 | grep -v '^ *+' conftest.er1 >conftest.err |
27655 | rm -f conftest.er1 | |
27656 | cat conftest.err >&5 | |
a848cd7e SC |
27657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27658 | (exit $ac_status); } && | |
5dcf30a0 RN |
27659 | { ac_try='test -z "$ac_c_werror_flag" |
27660 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27662 | (eval $ac_try) 2>&5 | |
27663 | ac_status=$? | |
27664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27665 | (exit $ac_status); }; } && | |
27666 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27668 | (eval $ac_try) 2>&5 | |
27669 | ac_status=$? | |
27670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27671 | (exit $ac_status); }; }; then | |
27672 | ||
27673 | echo "$as_me:$LINENO: result: yes" >&5 | |
27674 | echo "${ECHO_T}yes" >&6 | |
27675 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27676 | else | |
27677 | echo "$as_me: failed program was:" >&5 | |
27678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27679 | ||
27680 | ||
27681 | echo "$as_me:$LINENO: result: no" >&5 | |
27682 | echo "${ECHO_T}no" >&6 | |
27683 | ||
27684 | fi | |
ac1cb8d3 VS |
27685 | rm -f conftest.err conftest.$ac_objext \ |
27686 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27687 | |
27688 | fi | |
ac1cb8d3 VS |
27689 | rm -f conftest.err conftest.$ac_objext \ |
27690 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27691 | LDFLAGS="$saveLdflags" |
27692 | else | |
a848cd7e SC |
27693 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
27694 | fi | |
27695 | ;; | |
27696 | ||
27697 | powerpc-*-darwin* ) | |
27698 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27699 | cat <<EOF >change-install-names | |
27700 | #!/bin/sh | |
27701 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27702 | inst_cmd="install_name_tool " | |
27703 | for i in \${libnames} ; do | |
27704 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27705 | done | |
27706 | \${inst_cmd} \${3} | |
27707 | EOF | |
27708 | chmod +x change-install-names | |
27709 | ;; | |
27710 | ||
27711 | *-*-cygwin* | *-*-mingw32* ) | |
27712 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27713 | ;; | |
27714 | ||
27715 | esac | |
ceec2216 RL |
27716 | fi |
27717 | ||
27718 | if test "$wxUSE_SHARED" = "no"; then | |
27719 | config_linkage_component="-static" | |
27720 | SHARED=0 | |
27721 | else | |
27722 | SHARED=1 | |
27723 | fi | |
a848cd7e | 27724 | |
a848cd7e | 27725 | |
ceec2216 RL |
27726 | UNICODE=0 |
27727 | lib_unicode_suffix= | |
27728 | WX_CHARTYPE="ansi" | |
27729 | if test "$wxUSE_UNICODE" = "yes"; then | |
27730 | lib_unicode_suffix=u | |
27731 | WX_CHARTYPE="unicode" | |
27732 | UNICODE=1 | |
a848cd7e SC |
27733 | fi |
27734 | ||
ceec2216 RL |
27735 | lib_debug_suffix= |
27736 | WX_DEBUGTYPE="release" | |
27737 | DEBUG_FLAG=0 | |
27738 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27739 | lib_debug_suffix=d | |
27740 | WX_DEBUGTYPE="debug" | |
27741 | DEBUG_FLAG=1 | |
27742 | fi | |
a848cd7e | 27743 | |
ceec2216 RL |
27744 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
27745 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 27746 | |
ceec2216 RL |
27747 | DEBUG_INFO=0 |
27748 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27749 | DEBUG_INFO=1 | |
27750 | fi | |
a848cd7e | 27751 | |
ceec2216 | 27752 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 27753 | |
ceec2216 | 27754 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 27755 | |
ceec2216 | 27756 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 27757 | |
ceec2216 RL |
27758 | if test "$cross_compiling" = "yes"; then |
27759 | HOST_SUFFIX="-$host_alias" | |
27760 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
27761 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
27762 | fi |
27763 | ||
dd21ced8 | 27764 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
27765 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
27766 | ||
27767 | ||
27768 | ||
a848cd7e | 27769 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
ceec2216 RL |
27770 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r" |
27771 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc" | |
27772 | ||
a848cd7e | 27773 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
27774 | |
27775 | # Extract the first word of "Rez", so it can be a program name with args. | |
27776 | set dummy Rez; ac_word=$2 | |
27777 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27779 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27781 | else | |
27782 | if test -n "$RESCOMP"; then | |
27783 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
27784 | else | |
27785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27786 | for as_dir in $PATH | |
27787 | do | |
27788 | IFS=$as_save_IFS | |
27789 | test -z "$as_dir" && as_dir=. | |
27790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27792 | ac_cv_prog_RESCOMP="Rez" | |
27793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27794 | break 2 | |
27795 | fi | |
27796 | done | |
27797 | done | |
27798 | ||
27799 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
27800 | fi | |
27801 | fi | |
27802 | RESCOMP=$ac_cv_prog_RESCOMP | |
27803 | if test -n "$RESCOMP"; then | |
27804 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
27805 | echo "${ECHO_T}$RESCOMP" >&6 | |
27806 | else | |
27807 | echo "$as_me:$LINENO: result: no" >&5 | |
27808 | echo "${ECHO_T}no" >&6 | |
27809 | fi | |
27810 | ||
27811 | # Extract the first word of "DeRez", so it can be a program name with args. | |
27812 | set dummy DeRez; ac_word=$2 | |
27813 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27815 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27817 | else | |
27818 | if test -n "$DEREZ"; then | |
27819 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
27820 | else | |
27821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27822 | for as_dir in $PATH | |
27823 | do | |
27824 | IFS=$as_save_IFS | |
27825 | test -z "$as_dir" && as_dir=. | |
27826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27828 | ac_cv_prog_DEREZ="DeRez" | |
27829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27830 | break 2 | |
27831 | fi | |
27832 | done | |
27833 | done | |
27834 | ||
27835 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
27836 | fi | |
27837 | fi | |
27838 | DEREZ=$ac_cv_prog_DEREZ | |
27839 | if test -n "$DEREZ"; then | |
27840 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
27841 | echo "${ECHO_T}$DEREZ" >&6 | |
27842 | else | |
27843 | echo "$as_me:$LINENO: result: no" >&5 | |
27844 | echo "${ECHO_T}no" >&6 | |
27845 | fi | |
27846 | ||
27847 | # Extract the first word of "SetFile", so it can be a program name with args. | |
27848 | set dummy SetFile; ac_word=$2 | |
27849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27851 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27853 | else | |
27854 | if test -n "$SETFILE"; then | |
27855 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27856 | else | |
27857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27858 | for as_dir in $PATH | |
27859 | do | |
27860 | IFS=$as_save_IFS | |
27861 | test -z "$as_dir" && as_dir=. | |
27862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27864 | ac_cv_prog_SETFILE="SetFile" | |
27865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27866 | break 2 | |
27867 | fi | |
27868 | done | |
27869 | done | |
27870 | ||
27871 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
27872 | fi | |
27873 | fi | |
27874 | SETFILE=$ac_cv_prog_SETFILE | |
27875 | if test -n "$SETFILE"; then | |
27876 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
27877 | echo "${ECHO_T}$SETFILE" >&6 | |
27878 | else | |
27879 | echo "$as_me:$LINENO: result: no" >&5 | |
27880 | echo "${ECHO_T}no" >&6 | |
27881 | fi | |
27882 | ||
27883 | ||
27884 | MACSETFILE="\$(SETFILE)" | |
27885 | ||
27886 | if test "$wxUSE_MAC" = 1; then | |
27887 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
27888 | ||
27889 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27890 | else | |
27891 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27892 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27893 | fi | |
27894 | else | |
27895 | MACSETFILE="@#" | |
27896 | MACRESWXCONFIG="#" | |
27897 | ||
27898 | if test "$wxUSE_PM" = 1; then | |
27899 | MACRESCOMP="emxbind -ep" | |
27900 | else | |
27901 | MACRESCOMP="@#" | |
27902 | fi | |
27903 | fi | |
27904 | ||
27905 | ||
27906 | ||
27907 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
27908 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
27909 | if test "${ac_cv_type_mode_t+set}" = set; then | |
27910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27911 | else | |
27912 | cat >conftest.$ac_ext <<_ACEOF | |
27913 | /* confdefs.h. */ | |
27914 | _ACEOF | |
27915 | cat confdefs.h >>conftest.$ac_ext | |
27916 | cat >>conftest.$ac_ext <<_ACEOF | |
27917 | /* end confdefs.h. */ | |
27918 | $ac_includes_default | |
27919 | int | |
27920 | main () | |
27921 | { | |
27922 | if ((mode_t *) 0) | |
27923 | return 0; | |
27924 | if (sizeof (mode_t)) | |
27925 | return 0; | |
27926 | ; | |
27927 | return 0; | |
27928 | } | |
27929 | _ACEOF | |
27930 | rm -f conftest.$ac_objext | |
27931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27932 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27933 | ac_status=$? |
ac1cb8d3 VS |
27934 | grep -v '^ *+' conftest.er1 >conftest.err |
27935 | rm -f conftest.er1 | |
27936 | cat conftest.err >&5 | |
a848cd7e SC |
27937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27938 | (exit $ac_status); } && | |
5dcf30a0 RN |
27939 | { ac_try='test -z "$ac_c_werror_flag" |
27940 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27942 | (eval $ac_try) 2>&5 | |
27943 | ac_status=$? | |
27944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27945 | (exit $ac_status); }; } && | |
27946 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27948 | (eval $ac_try) 2>&5 | |
27949 | ac_status=$? | |
27950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27951 | (exit $ac_status); }; }; then | |
27952 | ac_cv_type_mode_t=yes | |
27953 | else | |
27954 | echo "$as_me: failed program was:" >&5 | |
27955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27956 | ||
27957 | ac_cv_type_mode_t=no | |
27958 | fi | |
ac1cb8d3 | 27959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27960 | fi |
27961 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
27962 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
27963 | if test $ac_cv_type_mode_t = yes; then | |
27964 | : | |
27965 | else | |
27966 | ||
27967 | cat >>confdefs.h <<_ACEOF | |
27968 | #define mode_t int | |
27969 | _ACEOF | |
27970 | ||
27971 | fi | |
27972 | ||
27973 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
27974 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
27975 | if test "${ac_cv_type_off_t+set}" = set; then | |
27976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27977 | else | |
27978 | cat >conftest.$ac_ext <<_ACEOF | |
27979 | /* confdefs.h. */ | |
27980 | _ACEOF | |
27981 | cat confdefs.h >>conftest.$ac_ext | |
27982 | cat >>conftest.$ac_ext <<_ACEOF | |
27983 | /* end confdefs.h. */ | |
27984 | $ac_includes_default | |
27985 | int | |
27986 | main () | |
27987 | { | |
27988 | if ((off_t *) 0) | |
27989 | return 0; | |
27990 | if (sizeof (off_t)) | |
27991 | return 0; | |
27992 | ; | |
27993 | return 0; | |
27994 | } | |
27995 | _ACEOF | |
27996 | rm -f conftest.$ac_objext | |
27997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27998 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27999 | ac_status=$? |
ac1cb8d3 VS |
28000 | grep -v '^ *+' conftest.er1 >conftest.err |
28001 | rm -f conftest.er1 | |
28002 | cat conftest.err >&5 | |
a848cd7e SC |
28003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28004 | (exit $ac_status); } && | |
5dcf30a0 RN |
28005 | { ac_try='test -z "$ac_c_werror_flag" |
28006 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28008 | (eval $ac_try) 2>&5 | |
28009 | ac_status=$? | |
28010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28011 | (exit $ac_status); }; } && | |
28012 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28014 | (eval $ac_try) 2>&5 | |
28015 | ac_status=$? | |
28016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28017 | (exit $ac_status); }; }; then | |
28018 | ac_cv_type_off_t=yes | |
28019 | else | |
28020 | echo "$as_me: failed program was:" >&5 | |
28021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28022 | ||
28023 | ac_cv_type_off_t=no | |
28024 | fi | |
ac1cb8d3 | 28025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28026 | fi |
28027 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28028 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28029 | if test $ac_cv_type_off_t = yes; then | |
28030 | : | |
28031 | else | |
28032 | ||
28033 | cat >>confdefs.h <<_ACEOF | |
28034 | #define off_t long | |
28035 | _ACEOF | |
28036 | ||
28037 | fi | |
28038 | ||
28039 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28040 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28041 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28043 | else | |
28044 | cat >conftest.$ac_ext <<_ACEOF | |
28045 | /* confdefs.h. */ | |
28046 | _ACEOF | |
28047 | cat confdefs.h >>conftest.$ac_ext | |
28048 | cat >>conftest.$ac_ext <<_ACEOF | |
28049 | /* end confdefs.h. */ | |
28050 | $ac_includes_default | |
28051 | int | |
28052 | main () | |
28053 | { | |
28054 | if ((pid_t *) 0) | |
28055 | return 0; | |
28056 | if (sizeof (pid_t)) | |
28057 | return 0; | |
28058 | ; | |
28059 | return 0; | |
28060 | } | |
28061 | _ACEOF | |
28062 | rm -f conftest.$ac_objext | |
28063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28064 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28065 | ac_status=$? |
ac1cb8d3 VS |
28066 | grep -v '^ *+' conftest.er1 >conftest.err |
28067 | rm -f conftest.er1 | |
28068 | cat conftest.err >&5 | |
a848cd7e SC |
28069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28070 | (exit $ac_status); } && | |
5dcf30a0 RN |
28071 | { ac_try='test -z "$ac_c_werror_flag" |
28072 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28074 | (eval $ac_try) 2>&5 | |
28075 | ac_status=$? | |
28076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28077 | (exit $ac_status); }; } && | |
28078 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28080 | (eval $ac_try) 2>&5 | |
28081 | ac_status=$? | |
28082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28083 | (exit $ac_status); }; }; then | |
28084 | ac_cv_type_pid_t=yes | |
28085 | else | |
28086 | echo "$as_me: failed program was:" >&5 | |
28087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28088 | ||
28089 | ac_cv_type_pid_t=no | |
28090 | fi | |
ac1cb8d3 | 28091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28092 | fi |
28093 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28094 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28095 | if test $ac_cv_type_pid_t = yes; then | |
28096 | : | |
28097 | else | |
28098 | ||
28099 | cat >>confdefs.h <<_ACEOF | |
28100 | #define pid_t int | |
28101 | _ACEOF | |
28102 | ||
28103 | fi | |
28104 | ||
28105 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28106 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28107 | if test "${ac_cv_type_size_t+set}" = set; then | |
28108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28109 | else | |
28110 | cat >conftest.$ac_ext <<_ACEOF | |
28111 | /* confdefs.h. */ | |
28112 | _ACEOF | |
28113 | cat confdefs.h >>conftest.$ac_ext | |
28114 | cat >>conftest.$ac_ext <<_ACEOF | |
28115 | /* end confdefs.h. */ | |
28116 | $ac_includes_default | |
28117 | int | |
28118 | main () | |
28119 | { | |
28120 | if ((size_t *) 0) | |
28121 | return 0; | |
28122 | if (sizeof (size_t)) | |
28123 | return 0; | |
28124 | ; | |
28125 | return 0; | |
28126 | } | |
28127 | _ACEOF | |
28128 | rm -f conftest.$ac_objext | |
28129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28130 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28131 | ac_status=$? |
ac1cb8d3 VS |
28132 | grep -v '^ *+' conftest.er1 >conftest.err |
28133 | rm -f conftest.er1 | |
28134 | cat conftest.err >&5 | |
a848cd7e SC |
28135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28136 | (exit $ac_status); } && | |
5dcf30a0 RN |
28137 | { ac_try='test -z "$ac_c_werror_flag" |
28138 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28140 | (eval $ac_try) 2>&5 | |
28141 | ac_status=$? | |
28142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28143 | (exit $ac_status); }; } && | |
28144 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28146 | (eval $ac_try) 2>&5 | |
28147 | ac_status=$? | |
28148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28149 | (exit $ac_status); }; }; then | |
28150 | ac_cv_type_size_t=yes | |
28151 | else | |
28152 | echo "$as_me: failed program was:" >&5 | |
28153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28154 | ||
28155 | ac_cv_type_size_t=no | |
28156 | fi | |
ac1cb8d3 | 28157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28158 | fi |
28159 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28160 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28161 | if test $ac_cv_type_size_t = yes; then | |
28162 | : | |
28163 | else | |
28164 | ||
28165 | cat >>confdefs.h <<_ACEOF | |
28166 | #define size_t unsigned | |
28167 | _ACEOF | |
28168 | ||
28169 | fi | |
28170 | ||
28171 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28172 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28173 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28175 | else | |
28176 | cat >conftest.$ac_ext <<_ACEOF | |
28177 | /* confdefs.h. */ | |
28178 | _ACEOF | |
28179 | cat confdefs.h >>conftest.$ac_ext | |
28180 | cat >>conftest.$ac_ext <<_ACEOF | |
28181 | /* end confdefs.h. */ | |
28182 | #include <sys/types.h> | |
28183 | ||
28184 | _ACEOF | |
28185 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28186 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28187 | ac_cv_type_uid_t=yes | |
28188 | else | |
28189 | ac_cv_type_uid_t=no | |
28190 | fi | |
28191 | rm -f conftest* | |
28192 | ||
28193 | fi | |
28194 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28195 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28196 | if test $ac_cv_type_uid_t = no; then | |
28197 | ||
28198 | cat >>confdefs.h <<\_ACEOF | |
28199 | #define uid_t int | |
28200 | _ACEOF | |
28201 | ||
28202 | ||
28203 | cat >>confdefs.h <<\_ACEOF | |
28204 | #define gid_t int | |
28205 | _ACEOF | |
28206 | ||
28207 | fi | |
28208 | ||
28209 | ||
28210 | ||
28211 | ||
28212 | ac_ext=cc | |
28213 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28214 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28215 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28216 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28217 | ||
28218 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28219 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28220 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28222 | else | |
28223 | ||
28224 | cat >conftest.$ac_ext <<_ACEOF | |
28225 | /* confdefs.h. */ | |
28226 | _ACEOF | |
28227 | cat confdefs.h >>conftest.$ac_ext | |
28228 | cat >>conftest.$ac_ext <<_ACEOF | |
28229 | /* end confdefs.h. */ | |
28230 | #include <stddef.h> | |
28231 | int | |
28232 | main () | |
28233 | { | |
28234 | ||
28235 | return 0; } | |
28236 | ||
28237 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28238 | ||
28239 | int bar() { | |
28240 | ||
28241 | ; | |
28242 | return 0; | |
28243 | } | |
28244 | _ACEOF | |
28245 | rm -f conftest.$ac_objext | |
28246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28247 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28248 | ac_status=$? |
ac1cb8d3 VS |
28249 | grep -v '^ *+' conftest.er1 >conftest.err |
28250 | rm -f conftest.er1 | |
28251 | cat conftest.err >&5 | |
a848cd7e SC |
28252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28253 | (exit $ac_status); } && | |
5dcf30a0 RN |
28254 | { ac_try='test -z "$ac_cxx_werror_flag" |
28255 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28257 | (eval $ac_try) 2>&5 | |
28258 | ac_status=$? | |
28259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28260 | (exit $ac_status); }; } && | |
28261 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28263 | (eval $ac_try) 2>&5 | |
28264 | ac_status=$? | |
28265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28266 | (exit $ac_status); }; }; then | |
28267 | wx_cv_size_t_is_uint=no | |
28268 | else | |
28269 | echo "$as_me: failed program was:" >&5 | |
28270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28271 | ||
28272 | wx_cv_size_t_is_uint=yes | |
28273 | ||
28274 | fi | |
ac1cb8d3 | 28275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28276 | |
28277 | ||
28278 | fi | |
28279 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28280 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28281 | ||
28282 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28283 | cat >>confdefs.h <<\_ACEOF | |
28284 | #define wxSIZE_T_IS_UINT 1 | |
28285 | _ACEOF | |
28286 | ||
28287 | else | |
28288 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28289 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28290 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28292 | else | |
28293 | cat >conftest.$ac_ext <<_ACEOF | |
28294 | /* confdefs.h. */ | |
28295 | _ACEOF | |
28296 | cat confdefs.h >>conftest.$ac_ext | |
28297 | cat >>conftest.$ac_ext <<_ACEOF | |
28298 | /* end confdefs.h. */ | |
28299 | #include <stddef.h> | |
28300 | int | |
28301 | main () | |
28302 | { | |
28303 | ||
28304 | return 0; } | |
28305 | ||
28306 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28307 | ||
28308 | int bar() { | |
28309 | ||
28310 | ; | |
28311 | return 0; | |
28312 | } | |
28313 | _ACEOF | |
28314 | rm -f conftest.$ac_objext | |
28315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28317 | ac_status=$? |
ac1cb8d3 VS |
28318 | grep -v '^ *+' conftest.er1 >conftest.err |
28319 | rm -f conftest.er1 | |
28320 | cat conftest.err >&5 | |
a848cd7e SC |
28321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28322 | (exit $ac_status); } && | |
5dcf30a0 RN |
28323 | { ac_try='test -z "$ac_cxx_werror_flag" |
28324 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28326 | (eval $ac_try) 2>&5 | |
28327 | ac_status=$? | |
28328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28329 | (exit $ac_status); }; } && | |
28330 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28332 | (eval $ac_try) 2>&5 | |
28333 | ac_status=$? | |
28334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28335 | (exit $ac_status); }; }; then | |
28336 | wx_cv_size_t_is_ulong=no | |
28337 | else | |
28338 | echo "$as_me: failed program was:" >&5 | |
28339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28340 | ||
28341 | wx_cv_size_t_is_ulong=yes | |
28342 | ||
28343 | fi | |
ac1cb8d3 | 28344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28345 | |
28346 | fi | |
28347 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28348 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28349 | ||
28350 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28351 | cat >>confdefs.h <<\_ACEOF | |
28352 | #define wxSIZE_T_IS_ULONG 1 | |
28353 | _ACEOF | |
28354 | ||
28355 | fi | |
28356 | fi | |
28357 | ||
28358 | ac_ext=c | |
28359 | ac_cpp='$CPP $CPPFLAGS' | |
28360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28363 | ||
28364 | ||
28365 | ||
28366 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28367 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28368 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28370 | else | |
28371 | ||
28372 | cat >conftest.$ac_ext <<_ACEOF | |
28373 | /* confdefs.h. */ | |
28374 | _ACEOF | |
28375 | cat confdefs.h >>conftest.$ac_ext | |
28376 | cat >>conftest.$ac_ext <<_ACEOF | |
28377 | /* end confdefs.h. */ | |
28378 | #include <pwd.h> | |
28379 | int | |
28380 | main () | |
28381 | { | |
28382 | ||
28383 | char *p; | |
28384 | struct passwd *pw; | |
28385 | p = pw->pw_gecos; | |
28386 | ||
28387 | ; | |
28388 | return 0; | |
28389 | } | |
28390 | _ACEOF | |
28391 | rm -f conftest.$ac_objext | |
28392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28393 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28394 | ac_status=$? |
ac1cb8d3 VS |
28395 | grep -v '^ *+' conftest.er1 >conftest.err |
28396 | rm -f conftest.er1 | |
28397 | cat conftest.err >&5 | |
a848cd7e SC |
28398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28399 | (exit $ac_status); } && | |
5dcf30a0 RN |
28400 | { ac_try='test -z "$ac_c_werror_flag" |
28401 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28403 | (eval $ac_try) 2>&5 | |
28404 | ac_status=$? | |
28405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28406 | (exit $ac_status); }; } && | |
28407 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28409 | (eval $ac_try) 2>&5 | |
28410 | ac_status=$? | |
28411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28412 | (exit $ac_status); }; }; then | |
28413 | ||
28414 | wx_cv_struct_pw_gecos=yes | |
28415 | ||
28416 | else | |
28417 | echo "$as_me: failed program was:" >&5 | |
28418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28419 | ||
28420 | ||
28421 | wx_cv_struct_pw_gecos=no | |
28422 | ||
28423 | ||
28424 | fi | |
ac1cb8d3 | 28425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28426 | |
28427 | ||
28428 | fi | |
28429 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28430 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28431 | ||
28432 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28433 | cat >>confdefs.h <<\_ACEOF | |
28434 | #define HAVE_PW_GECOS 1 | |
28435 | _ACEOF | |
28436 | ||
28437 | fi | |
28438 | ||
28439 | ||
28440 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28441 | cat >>confdefs.h <<\_ACEOF | |
28442 | #define wxUSE_WCHAR_T 1 | |
28443 | _ACEOF | |
28444 | ||
28445 | ||
28446 | WCSLEN_FOUND=0 | |
28447 | WCHAR_LINK= | |
28448 | ||
28449 | for ac_func in wcslen | |
28450 | do | |
28451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28452 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28454 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28456 | else | |
28457 | cat >conftest.$ac_ext <<_ACEOF | |
28458 | /* confdefs.h. */ | |
28459 | _ACEOF | |
28460 | cat confdefs.h >>conftest.$ac_ext | |
28461 | cat >>conftest.$ac_ext <<_ACEOF | |
28462 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28463 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28464 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28465 | #define $ac_func innocuous_$ac_func | |
28466 | ||
a848cd7e SC |
28467 | /* System header to define __stub macros and hopefully few prototypes, |
28468 | which can conflict with char $ac_func (); below. | |
28469 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28470 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28471 | |
a848cd7e SC |
28472 | #ifdef __STDC__ |
28473 | # include <limits.h> | |
28474 | #else | |
28475 | # include <assert.h> | |
28476 | #endif | |
ac1cb8d3 VS |
28477 | |
28478 | #undef $ac_func | |
28479 | ||
a848cd7e SC |
28480 | /* Override any gcc2 internal prototype to avoid an error. */ |
28481 | #ifdef __cplusplus | |
28482 | extern "C" | |
28483 | { | |
28484 | #endif | |
28485 | /* We use char because int might match the return type of a gcc2 | |
28486 | builtin and then its argument prototype would still apply. */ | |
28487 | char $ac_func (); | |
28488 | /* The GNU C library defines this for functions which it implements | |
28489 | to always fail with ENOSYS. Some functions are actually named | |
28490 | something starting with __ and the normal name is an alias. */ | |
28491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28492 | choke me | |
28493 | #else | |
28494 | char (*f) () = $ac_func; | |
28495 | #endif | |
28496 | #ifdef __cplusplus | |
28497 | } | |
28498 | #endif | |
28499 | ||
28500 | int | |
28501 | main () | |
28502 | { | |
28503 | return f != $ac_func; | |
28504 | ; | |
28505 | return 0; | |
28506 | } | |
28507 | _ACEOF | |
28508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28510 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28511 | ac_status=$? |
ac1cb8d3 VS |
28512 | grep -v '^ *+' conftest.er1 >conftest.err |
28513 | rm -f conftest.er1 | |
28514 | cat conftest.err >&5 | |
a848cd7e SC |
28515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28516 | (exit $ac_status); } && | |
5dcf30a0 RN |
28517 | { ac_try='test -z "$ac_c_werror_flag" |
28518 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28520 | (eval $ac_try) 2>&5 | |
28521 | ac_status=$? | |
28522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28523 | (exit $ac_status); }; } && | |
28524 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28526 | (eval $ac_try) 2>&5 | |
28527 | ac_status=$? | |
28528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28529 | (exit $ac_status); }; }; then | |
28530 | eval "$as_ac_var=yes" | |
28531 | else | |
28532 | echo "$as_me: failed program was:" >&5 | |
28533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28534 | ||
28535 | eval "$as_ac_var=no" | |
28536 | fi | |
ac1cb8d3 VS |
28537 | rm -f conftest.err conftest.$ac_objext \ |
28538 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28539 | fi |
28540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28541 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28542 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28543 | cat >>confdefs.h <<_ACEOF | |
28544 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28545 | _ACEOF | |
28546 | WCSLEN_FOUND=1 | |
28547 | fi | |
28548 | done | |
28549 | ||
28550 | ||
28551 | if test "$WCSLEN_FOUND" = 0; then | |
28552 | if test "$TOOLKIT" = "MSW"; then | |
28553 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28554 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28555 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28557 | else | |
28558 | ac_check_lib_save_LIBS=$LIBS | |
28559 | LIBS="-lmsvcrt $LIBS" | |
28560 | cat >conftest.$ac_ext <<_ACEOF | |
28561 | /* confdefs.h. */ | |
28562 | _ACEOF | |
28563 | cat confdefs.h >>conftest.$ac_ext | |
28564 | cat >>conftest.$ac_ext <<_ACEOF | |
28565 | /* end confdefs.h. */ | |
28566 | ||
28567 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28568 | #ifdef __cplusplus | |
28569 | extern "C" | |
28570 | #endif | |
28571 | /* We use char because int might match the return type of a gcc2 | |
28572 | builtin and then its argument prototype would still apply. */ | |
28573 | char wcslen (); | |
28574 | int | |
28575 | main () | |
28576 | { | |
28577 | wcslen (); | |
28578 | ; | |
28579 | return 0; | |
28580 | } | |
28581 | _ACEOF | |
28582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28584 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28585 | ac_status=$? |
ac1cb8d3 VS |
28586 | grep -v '^ *+' conftest.er1 >conftest.err |
28587 | rm -f conftest.er1 | |
28588 | cat conftest.err >&5 | |
a848cd7e SC |
28589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28590 | (exit $ac_status); } && | |
5dcf30a0 RN |
28591 | { ac_try='test -z "$ac_c_werror_flag" |
28592 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28594 | (eval $ac_try) 2>&5 | |
28595 | ac_status=$? | |
28596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28597 | (exit $ac_status); }; } && | |
28598 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28600 | (eval $ac_try) 2>&5 | |
28601 | ac_status=$? | |
28602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28603 | (exit $ac_status); }; }; then | |
28604 | ac_cv_lib_msvcrt_wcslen=yes | |
28605 | else | |
28606 | echo "$as_me: failed program was:" >&5 | |
28607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28608 | ||
28609 | ac_cv_lib_msvcrt_wcslen=no | |
28610 | fi | |
ac1cb8d3 VS |
28611 | rm -f conftest.err conftest.$ac_objext \ |
28612 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28613 | LIBS=$ac_check_lib_save_LIBS |
28614 | fi | |
28615 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28616 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28617 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28618 | WCHAR_OK=1 | |
28619 | fi | |
28620 | ||
28621 | else | |
28622 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28623 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28624 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28626 | else | |
28627 | ac_check_lib_save_LIBS=$LIBS | |
28628 | LIBS="-lw $LIBS" | |
28629 | cat >conftest.$ac_ext <<_ACEOF | |
28630 | /* confdefs.h. */ | |
28631 | _ACEOF | |
28632 | cat confdefs.h >>conftest.$ac_ext | |
28633 | cat >>conftest.$ac_ext <<_ACEOF | |
28634 | /* end confdefs.h. */ | |
28635 | ||
28636 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28637 | #ifdef __cplusplus | |
28638 | extern "C" | |
28639 | #endif | |
28640 | /* We use char because int might match the return type of a gcc2 | |
28641 | builtin and then its argument prototype would still apply. */ | |
28642 | char wcslen (); | |
28643 | int | |
28644 | main () | |
28645 | { | |
28646 | wcslen (); | |
28647 | ; | |
28648 | return 0; | |
28649 | } | |
28650 | _ACEOF | |
28651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28653 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28654 | ac_status=$? |
ac1cb8d3 VS |
28655 | grep -v '^ *+' conftest.er1 >conftest.err |
28656 | rm -f conftest.er1 | |
28657 | cat conftest.err >&5 | |
a848cd7e SC |
28658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28659 | (exit $ac_status); } && | |
5dcf30a0 RN |
28660 | { ac_try='test -z "$ac_c_werror_flag" |
28661 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28663 | (eval $ac_try) 2>&5 | |
28664 | ac_status=$? | |
28665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28666 | (exit $ac_status); }; } && | |
28667 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28669 | (eval $ac_try) 2>&5 | |
28670 | ac_status=$? | |
28671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28672 | (exit $ac_status); }; }; then | |
28673 | ac_cv_lib_w_wcslen=yes | |
28674 | else | |
28675 | echo "$as_me: failed program was:" >&5 | |
28676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28677 | ||
28678 | ac_cv_lib_w_wcslen=no | |
28679 | fi | |
ac1cb8d3 VS |
28680 | rm -f conftest.err conftest.$ac_objext \ |
28681 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28682 | LIBS=$ac_check_lib_save_LIBS |
28683 | fi | |
28684 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28685 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28686 | if test $ac_cv_lib_w_wcslen = yes; then | |
28687 | ||
28688 | WCHAR_LINK=" -lw" | |
28689 | WCSLEN_FOUND=1 | |
28690 | ||
28691 | fi | |
28692 | ||
28693 | fi | |
28694 | fi | |
28695 | ||
28696 | if test "$WCSLEN_FOUND" = 1; then | |
28697 | cat >>confdefs.h <<\_ACEOF | |
28698 | #define HAVE_WCSLEN 1 | |
28699 | _ACEOF | |
28700 | ||
28701 | fi | |
28702 | ||
473276a9 VS |
28703 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
28704 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
28705 | fi | |
28706 | ||
a848cd7e SC |
28707 | |
28708 | for ac_func in wcsrtombs | |
28709 | do | |
28710 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28711 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28712 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28713 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28715 | else | |
28716 | cat >conftest.$ac_ext <<_ACEOF | |
28717 | /* confdefs.h. */ | |
28718 | _ACEOF | |
28719 | cat confdefs.h >>conftest.$ac_ext | |
28720 | cat >>conftest.$ac_ext <<_ACEOF | |
28721 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28722 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28723 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28724 | #define $ac_func innocuous_$ac_func | |
28725 | ||
a848cd7e SC |
28726 | /* System header to define __stub macros and hopefully few prototypes, |
28727 | which can conflict with char $ac_func (); below. | |
28728 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28729 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28730 | |
a848cd7e SC |
28731 | #ifdef __STDC__ |
28732 | # include <limits.h> | |
28733 | #else | |
28734 | # include <assert.h> | |
28735 | #endif | |
ac1cb8d3 VS |
28736 | |
28737 | #undef $ac_func | |
28738 | ||
a848cd7e SC |
28739 | /* Override any gcc2 internal prototype to avoid an error. */ |
28740 | #ifdef __cplusplus | |
28741 | extern "C" | |
28742 | { | |
28743 | #endif | |
28744 | /* We use char because int might match the return type of a gcc2 | |
28745 | builtin and then its argument prototype would still apply. */ | |
28746 | char $ac_func (); | |
28747 | /* The GNU C library defines this for functions which it implements | |
28748 | to always fail with ENOSYS. Some functions are actually named | |
28749 | something starting with __ and the normal name is an alias. */ | |
28750 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28751 | choke me | |
28752 | #else | |
28753 | char (*f) () = $ac_func; | |
28754 | #endif | |
28755 | #ifdef __cplusplus | |
28756 | } | |
28757 | #endif | |
28758 | ||
28759 | int | |
28760 | main () | |
28761 | { | |
28762 | return f != $ac_func; | |
28763 | ; | |
28764 | return 0; | |
28765 | } | |
28766 | _ACEOF | |
28767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28769 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28770 | ac_status=$? |
ac1cb8d3 VS |
28771 | grep -v '^ *+' conftest.er1 >conftest.err |
28772 | rm -f conftest.er1 | |
28773 | cat conftest.err >&5 | |
a848cd7e SC |
28774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28775 | (exit $ac_status); } && | |
5dcf30a0 RN |
28776 | { ac_try='test -z "$ac_c_werror_flag" |
28777 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28779 | (eval $ac_try) 2>&5 | |
28780 | ac_status=$? | |
28781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28782 | (exit $ac_status); }; } && | |
28783 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28785 | (eval $ac_try) 2>&5 | |
28786 | ac_status=$? | |
28787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28788 | (exit $ac_status); }; }; then | |
28789 | eval "$as_ac_var=yes" | |
28790 | else | |
28791 | echo "$as_me: failed program was:" >&5 | |
28792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28793 | ||
28794 | eval "$as_ac_var=no" | |
28795 | fi | |
ac1cb8d3 VS |
28796 | rm -f conftest.err conftest.$ac_objext \ |
28797 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28798 | fi |
28799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28800 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28801 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28802 | cat >>confdefs.h <<_ACEOF | |
28803 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28804 | _ACEOF | |
28805 | ||
28806 | fi | |
28807 | done | |
28808 | ||
28809 | else | |
28810 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
28811 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
28812 | fi | |
28813 | ||
28814 | ||
28815 | ||
28816 | ac_ext=cc | |
28817 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28818 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28819 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28820 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28821 | ||
28822 | ||
28823 | ||
28824 | for ac_func in vsnprintf | |
28825 | do | |
28826 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28827 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28828 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28829 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28831 | else | |
28832 | cat >conftest.$ac_ext <<_ACEOF | |
28833 | /* confdefs.h. */ | |
28834 | _ACEOF | |
28835 | cat confdefs.h >>conftest.$ac_ext | |
28836 | cat >>conftest.$ac_ext <<_ACEOF | |
28837 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28838 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28839 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28840 | #define $ac_func innocuous_$ac_func | |
28841 | ||
a848cd7e SC |
28842 | /* System header to define __stub macros and hopefully few prototypes, |
28843 | which can conflict with char $ac_func (); below. | |
28844 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28845 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28846 | |
a848cd7e SC |
28847 | #ifdef __STDC__ |
28848 | # include <limits.h> | |
28849 | #else | |
28850 | # include <assert.h> | |
28851 | #endif | |
ac1cb8d3 VS |
28852 | |
28853 | #undef $ac_func | |
28854 | ||
a848cd7e SC |
28855 | /* Override any gcc2 internal prototype to avoid an error. */ |
28856 | #ifdef __cplusplus | |
28857 | extern "C" | |
28858 | { | |
28859 | #endif | |
28860 | /* We use char because int might match the return type of a gcc2 | |
28861 | builtin and then its argument prototype would still apply. */ | |
28862 | char $ac_func (); | |
28863 | /* The GNU C library defines this for functions which it implements | |
28864 | to always fail with ENOSYS. Some functions are actually named | |
28865 | something starting with __ and the normal name is an alias. */ | |
28866 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28867 | choke me | |
28868 | #else | |
28869 | char (*f) () = $ac_func; | |
28870 | #endif | |
28871 | #ifdef __cplusplus | |
28872 | } | |
28873 | #endif | |
28874 | ||
28875 | int | |
28876 | main () | |
28877 | { | |
28878 | return f != $ac_func; | |
28879 | ; | |
28880 | return 0; | |
28881 | } | |
28882 | _ACEOF | |
28883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28885 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28886 | ac_status=$? |
ac1cb8d3 VS |
28887 | grep -v '^ *+' conftest.er1 >conftest.err |
28888 | rm -f conftest.er1 | |
28889 | cat conftest.err >&5 | |
a848cd7e SC |
28890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28891 | (exit $ac_status); } && | |
5dcf30a0 RN |
28892 | { ac_try='test -z "$ac_cxx_werror_flag" |
28893 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28895 | (eval $ac_try) 2>&5 | |
28896 | ac_status=$? | |
28897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28898 | (exit $ac_status); }; } && | |
28899 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28901 | (eval $ac_try) 2>&5 | |
28902 | ac_status=$? | |
28903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28904 | (exit $ac_status); }; }; then | |
28905 | eval "$as_ac_var=yes" | |
28906 | else | |
28907 | echo "$as_me: failed program was:" >&5 | |
28908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28909 | ||
28910 | eval "$as_ac_var=no" | |
28911 | fi | |
ac1cb8d3 VS |
28912 | rm -f conftest.err conftest.$ac_objext \ |
28913 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28914 | fi |
28915 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28916 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28917 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28918 | cat >>confdefs.h <<_ACEOF | |
28919 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28920 | _ACEOF | |
28921 | ||
28922 | fi | |
28923 | done | |
28924 | ||
28925 | ||
28926 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
28927 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
28928 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
28929 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
28930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28931 | else | |
28932 | ||
28933 | cat >conftest.$ac_ext <<_ACEOF | |
28934 | /* confdefs.h. */ | |
28935 | _ACEOF | |
28936 | cat confdefs.h >>conftest.$ac_ext | |
28937 | cat >>conftest.$ac_ext <<_ACEOF | |
28938 | /* end confdefs.h. */ | |
28939 | ||
28940 | #include <stdio.h> | |
28941 | #include <stdarg.h> | |
28942 | ||
28943 | int | |
28944 | main () | |
28945 | { | |
28946 | ||
28947 | char *buf; | |
28948 | va_list ap; | |
28949 | vsnprintf(buf, 10u, "%s", ap); | |
28950 | ||
28951 | ; | |
28952 | return 0; | |
28953 | } | |
28954 | _ACEOF | |
28955 | rm -f conftest.$ac_objext | |
28956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28957 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28958 | ac_status=$? |
ac1cb8d3 VS |
28959 | grep -v '^ *+' conftest.er1 >conftest.err |
28960 | rm -f conftest.er1 | |
28961 | cat conftest.err >&5 | |
a848cd7e SC |
28962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28963 | (exit $ac_status); } && | |
5dcf30a0 RN |
28964 | { ac_try='test -z "$ac_cxx_werror_flag" |
28965 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28967 | (eval $ac_try) 2>&5 | |
28968 | ac_status=$? | |
28969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28970 | (exit $ac_status); }; } && | |
28971 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28973 | (eval $ac_try) 2>&5 | |
28974 | ac_status=$? | |
28975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28976 | (exit $ac_status); }; }; then | |
28977 | wx_cv_func_vsnprintf_decl=yes | |
28978 | else | |
28979 | echo "$as_me: failed program was:" >&5 | |
28980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28981 | ||
28982 | wx_cv_func_vsnprintf_decl=no | |
28983 | ||
28984 | fi | |
ac1cb8d3 | 28985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28986 | |
28987 | ||
28988 | fi | |
28989 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
28990 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
28991 | ||
28992 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
28993 | cat >>confdefs.h <<\_ACEOF | |
28994 | #define HAVE_VSNPRINTF_DECL 1 | |
28995 | _ACEOF | |
28996 | ||
28997 | fi | |
28998 | fi | |
28999 | ||
29000 | if test "$wxUSE_UNICODE" = yes; then | |
29001 | ||
29002 | ||
29003 | ||
fbe47c7b VS |
29004 | |
29005 | ||
29006 | ||
29007 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29008 | do |
29009 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29010 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29011 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29012 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29014 | else | |
29015 | cat >conftest.$ac_ext <<_ACEOF | |
29016 | /* confdefs.h. */ | |
29017 | _ACEOF | |
29018 | cat confdefs.h >>conftest.$ac_ext | |
29019 | cat >>conftest.$ac_ext <<_ACEOF | |
29020 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29021 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29022 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29023 | #define $ac_func innocuous_$ac_func | |
29024 | ||
a848cd7e SC |
29025 | /* System header to define __stub macros and hopefully few prototypes, |
29026 | which can conflict with char $ac_func (); below. | |
29027 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29028 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29029 | |
a848cd7e SC |
29030 | #ifdef __STDC__ |
29031 | # include <limits.h> | |
29032 | #else | |
29033 | # include <assert.h> | |
29034 | #endif | |
ac1cb8d3 VS |
29035 | |
29036 | #undef $ac_func | |
29037 | ||
a848cd7e SC |
29038 | /* Override any gcc2 internal prototype to avoid an error. */ |
29039 | #ifdef __cplusplus | |
29040 | extern "C" | |
29041 | { | |
29042 | #endif | |
29043 | /* We use char because int might match the return type of a gcc2 | |
29044 | builtin and then its argument prototype would still apply. */ | |
29045 | char $ac_func (); | |
29046 | /* The GNU C library defines this for functions which it implements | |
29047 | to always fail with ENOSYS. Some functions are actually named | |
29048 | something starting with __ and the normal name is an alias. */ | |
29049 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29050 | choke me | |
29051 | #else | |
29052 | char (*f) () = $ac_func; | |
29053 | #endif | |
29054 | #ifdef __cplusplus | |
29055 | } | |
29056 | #endif | |
29057 | ||
29058 | int | |
29059 | main () | |
29060 | { | |
29061 | return f != $ac_func; | |
29062 | ; | |
29063 | return 0; | |
29064 | } | |
29065 | _ACEOF | |
29066 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29068 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29069 | ac_status=$? |
ac1cb8d3 VS |
29070 | grep -v '^ *+' conftest.er1 >conftest.err |
29071 | rm -f conftest.er1 | |
29072 | cat conftest.err >&5 | |
a848cd7e SC |
29073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29074 | (exit $ac_status); } && | |
5dcf30a0 RN |
29075 | { ac_try='test -z "$ac_cxx_werror_flag" |
29076 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29078 | (eval $ac_try) 2>&5 | |
29079 | ac_status=$? | |
29080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29081 | (exit $ac_status); }; } && | |
29082 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29084 | (eval $ac_try) 2>&5 | |
29085 | ac_status=$? | |
29086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29087 | (exit $ac_status); }; }; then | |
29088 | eval "$as_ac_var=yes" | |
29089 | else | |
29090 | echo "$as_me: failed program was:" >&5 | |
29091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29092 | ||
29093 | eval "$as_ac_var=no" | |
29094 | fi | |
ac1cb8d3 VS |
29095 | rm -f conftest.err conftest.$ac_objext \ |
29096 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29097 | fi |
29098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29099 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29100 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29101 | cat >>confdefs.h <<_ACEOF | |
29102 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29103 | _ACEOF | |
29104 | ||
29105 | fi | |
29106 | done | |
29107 | ||
29108 | ||
29109 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29110 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29111 | cat >conftest.$ac_ext <<_ACEOF | |
29112 | /* confdefs.h. */ | |
29113 | _ACEOF | |
29114 | cat confdefs.h >>conftest.$ac_ext | |
29115 | cat >>conftest.$ac_ext <<_ACEOF | |
29116 | /* end confdefs.h. */ | |
29117 | #include <wchar.h> | |
29118 | int | |
29119 | main () | |
29120 | { | |
29121 | &_vsnwprintf; | |
29122 | ; | |
29123 | return 0; | |
29124 | } | |
29125 | _ACEOF | |
29126 | rm -f conftest.$ac_objext | |
29127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29128 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29129 | ac_status=$? |
ac1cb8d3 VS |
29130 | grep -v '^ *+' conftest.er1 >conftest.err |
29131 | rm -f conftest.er1 | |
29132 | cat conftest.err >&5 | |
a848cd7e SC |
29133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29134 | (exit $ac_status); } && | |
5dcf30a0 RN |
29135 | { ac_try='test -z "$ac_cxx_werror_flag" |
29136 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29138 | (eval $ac_try) 2>&5 | |
29139 | ac_status=$? | |
29140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29141 | (exit $ac_status); }; } && | |
29142 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29144 | (eval $ac_try) 2>&5 | |
29145 | ac_status=$? | |
29146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29147 | (exit $ac_status); }; }; then | |
29148 | echo "$as_me:$LINENO: result: yes" >&5 | |
29149 | echo "${ECHO_T}yes" >&6 | |
29150 | cat >>confdefs.h <<\_ACEOF | |
29151 | #define HAVE__VSNWPRINTF 1 | |
29152 | _ACEOF | |
29153 | ||
29154 | else | |
29155 | echo "$as_me: failed program was:" >&5 | |
29156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29157 | ||
29158 | echo "$as_me:$LINENO: result: no" >&5 | |
29159 | echo "${ECHO_T}no" >&6 | |
29160 | fi | |
ac1cb8d3 | 29161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29162 | fi |
29163 | ||
29164 | ac_ext=c | |
29165 | ac_cpp='$CPP $CPPFLAGS' | |
29166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29169 | ||
29170 | ||
29171 | ||
29172 | ||
29173 | if test "$TOOLKIT" != "MSW"; then | |
29174 | ||
29175 | ||
29176 | ||
29177 | ||
29178 | ac_ext=cc | |
29179 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29180 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29181 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29182 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29183 | ||
29184 | ||
29185 | ||
29186 | ||
29187 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29188 | if test "${with_libiconv_prefix+set}" = set; then | |
29189 | withval="$with_libiconv_prefix" | |
29190 | ||
29191 | for dir in `echo "$withval" | tr : ' '`; do | |
29192 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29193 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29194 | done | |
29195 | ||
29196 | fi; | |
29197 | ||
29198 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29199 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29200 | if test "${am_cv_func_iconv+set}" = set; then | |
29201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29202 | else | |
29203 | ||
29204 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29205 | am_cv_lib_iconv=no | |
29206 | cat >conftest.$ac_ext <<_ACEOF | |
29207 | /* confdefs.h. */ | |
29208 | _ACEOF | |
29209 | cat confdefs.h >>conftest.$ac_ext | |
29210 | cat >>conftest.$ac_ext <<_ACEOF | |
29211 | /* end confdefs.h. */ | |
29212 | #include <stdlib.h> | |
29213 | #include <iconv.h> | |
29214 | int | |
29215 | main () | |
29216 | { | |
29217 | iconv_t cd = iconv_open("",""); | |
29218 | iconv(cd,NULL,NULL,NULL,NULL); | |
29219 | iconv_close(cd); | |
29220 | ; | |
29221 | return 0; | |
29222 | } | |
29223 | _ACEOF | |
29224 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29226 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29227 | ac_status=$? |
ac1cb8d3 VS |
29228 | grep -v '^ *+' conftest.er1 >conftest.err |
29229 | rm -f conftest.er1 | |
29230 | cat conftest.err >&5 | |
a848cd7e SC |
29231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29232 | (exit $ac_status); } && | |
5dcf30a0 RN |
29233 | { ac_try='test -z "$ac_cxx_werror_flag" |
29234 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29236 | (eval $ac_try) 2>&5 | |
29237 | ac_status=$? | |
29238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29239 | (exit $ac_status); }; } && | |
29240 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29242 | (eval $ac_try) 2>&5 | |
29243 | ac_status=$? | |
29244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29245 | (exit $ac_status); }; }; then | |
29246 | am_cv_func_iconv=yes | |
29247 | else | |
29248 | echo "$as_me: failed program was:" >&5 | |
29249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29250 | ||
29251 | fi | |
ac1cb8d3 VS |
29252 | rm -f conftest.err conftest.$ac_objext \ |
29253 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29254 | if test "$am_cv_func_iconv" != yes; then |
29255 | am_save_LIBS="$LIBS" | |
29256 | LIBS="$LIBS -liconv" | |
29257 | cat >conftest.$ac_ext <<_ACEOF | |
29258 | /* confdefs.h. */ | |
29259 | _ACEOF | |
29260 | cat confdefs.h >>conftest.$ac_ext | |
29261 | cat >>conftest.$ac_ext <<_ACEOF | |
29262 | /* end confdefs.h. */ | |
29263 | #include <stdlib.h> | |
29264 | #include <iconv.h> | |
29265 | int | |
29266 | main () | |
29267 | { | |
29268 | iconv_t cd = iconv_open("",""); | |
29269 | iconv(cd,NULL,NULL,NULL,NULL); | |
29270 | iconv_close(cd); | |
29271 | ; | |
29272 | return 0; | |
29273 | } | |
29274 | _ACEOF | |
29275 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29277 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29278 | ac_status=$? |
ac1cb8d3 VS |
29279 | grep -v '^ *+' conftest.er1 >conftest.err |
29280 | rm -f conftest.er1 | |
29281 | cat conftest.err >&5 | |
a848cd7e SC |
29282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29283 | (exit $ac_status); } && | |
5dcf30a0 RN |
29284 | { ac_try='test -z "$ac_cxx_werror_flag" |
29285 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29287 | (eval $ac_try) 2>&5 | |
29288 | ac_status=$? | |
29289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29290 | (exit $ac_status); }; } && | |
29291 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
29297 | am_cv_lib_iconv=yes | |
29298 | am_cv_func_iconv=yes | |
29299 | else | |
29300 | echo "$as_me: failed program was:" >&5 | |
29301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29302 | ||
29303 | fi | |
ac1cb8d3 VS |
29304 | rm -f conftest.err conftest.$ac_objext \ |
29305 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29306 | LIBS="$am_save_LIBS" |
29307 | fi | |
29308 | ||
29309 | fi | |
29310 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29311 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29312 | if test "$am_cv_func_iconv" = yes; then | |
29313 | ||
29314 | cat >>confdefs.h <<\_ACEOF | |
29315 | #define HAVE_ICONV 1 | |
29316 | _ACEOF | |
29317 | ||
29318 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29319 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29320 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29322 | else | |
29323 | cat >conftest.$ac_ext <<_ACEOF | |
29324 | /* confdefs.h. */ | |
29325 | _ACEOF | |
29326 | cat confdefs.h >>conftest.$ac_ext | |
29327 | cat >>conftest.$ac_ext <<_ACEOF | |
29328 | /* end confdefs.h. */ | |
29329 | ||
29330 | #include <stdlib.h> | |
29331 | #include <iconv.h> | |
29332 | extern | |
29333 | #ifdef __cplusplus | |
29334 | "C" | |
29335 | #endif | |
29336 | #if defined(__STDC__) || defined(__cplusplus) | |
29337 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29338 | #else | |
29339 | size_t iconv(); | |
29340 | #endif | |
29341 | ||
29342 | int | |
29343 | main () | |
29344 | { | |
29345 | ||
29346 | ; | |
29347 | return 0; | |
29348 | } | |
29349 | _ACEOF | |
29350 | rm -f conftest.$ac_objext | |
29351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29352 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29353 | ac_status=$? |
ac1cb8d3 VS |
29354 | grep -v '^ *+' conftest.er1 >conftest.err |
29355 | rm -f conftest.er1 | |
29356 | cat conftest.err >&5 | |
a848cd7e SC |
29357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29358 | (exit $ac_status); } && | |
5dcf30a0 RN |
29359 | { ac_try='test -z "$ac_cxx_werror_flag" |
29360 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29362 | (eval $ac_try) 2>&5 | |
29363 | ac_status=$? | |
29364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29365 | (exit $ac_status); }; } && | |
29366 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29368 | (eval $ac_try) 2>&5 | |
29369 | ac_status=$? | |
29370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29371 | (exit $ac_status); }; }; then | |
29372 | wx_cv_func_iconv_const="no" | |
29373 | else | |
29374 | echo "$as_me: failed program was:" >&5 | |
29375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29376 | ||
29377 | wx_cv_func_iconv_const="yes" | |
29378 | ||
29379 | fi | |
ac1cb8d3 | 29380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29381 | |
29382 | fi | |
29383 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29384 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29385 | ||
29386 | iconv_const= | |
29387 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29388 | iconv_const="const" | |
29389 | fi | |
29390 | ||
29391 | ||
29392 | cat >>confdefs.h <<_ACEOF | |
29393 | #define ICONV_CONST $iconv_const | |
29394 | _ACEOF | |
29395 | ||
29396 | fi | |
29397 | LIBICONV= | |
29398 | if test "$am_cv_lib_iconv" = yes; then | |
29399 | LIBICONV="-liconv" | |
29400 | fi | |
29401 | ||
29402 | ||
29403 | LIBS="$LIBICONV $LIBS" | |
29404 | ac_ext=c | |
29405 | ac_cpp='$CPP $CPPFLAGS' | |
29406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29409 | ||
29410 | ||
29411 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29412 | ||
29413 | for ac_func in sigaction | |
29414 | do | |
29415 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29416 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29417 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29418 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29420 | else | |
29421 | cat >conftest.$ac_ext <<_ACEOF | |
29422 | /* confdefs.h. */ | |
29423 | _ACEOF | |
29424 | cat confdefs.h >>conftest.$ac_ext | |
29425 | cat >>conftest.$ac_ext <<_ACEOF | |
29426 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29427 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29428 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29429 | #define $ac_func innocuous_$ac_func | |
29430 | ||
a848cd7e SC |
29431 | /* System header to define __stub macros and hopefully few prototypes, |
29432 | which can conflict with char $ac_func (); below. | |
29433 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29434 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29435 | |
a848cd7e SC |
29436 | #ifdef __STDC__ |
29437 | # include <limits.h> | |
29438 | #else | |
29439 | # include <assert.h> | |
29440 | #endif | |
ac1cb8d3 VS |
29441 | |
29442 | #undef $ac_func | |
29443 | ||
a848cd7e SC |
29444 | /* Override any gcc2 internal prototype to avoid an error. */ |
29445 | #ifdef __cplusplus | |
29446 | extern "C" | |
29447 | { | |
29448 | #endif | |
29449 | /* We use char because int might match the return type of a gcc2 | |
29450 | builtin and then its argument prototype would still apply. */ | |
29451 | char $ac_func (); | |
29452 | /* The GNU C library defines this for functions which it implements | |
29453 | to always fail with ENOSYS. Some functions are actually named | |
29454 | something starting with __ and the normal name is an alias. */ | |
29455 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29456 | choke me | |
29457 | #else | |
29458 | char (*f) () = $ac_func; | |
29459 | #endif | |
29460 | #ifdef __cplusplus | |
29461 | } | |
29462 | #endif | |
29463 | ||
29464 | int | |
29465 | main () | |
29466 | { | |
29467 | return f != $ac_func; | |
29468 | ; | |
29469 | return 0; | |
29470 | } | |
29471 | _ACEOF | |
29472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29474 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29475 | ac_status=$? |
ac1cb8d3 VS |
29476 | grep -v '^ *+' conftest.er1 >conftest.err |
29477 | rm -f conftest.er1 | |
29478 | cat conftest.err >&5 | |
a848cd7e SC |
29479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29480 | (exit $ac_status); } && | |
5dcf30a0 RN |
29481 | { ac_try='test -z "$ac_c_werror_flag" |
29482 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29484 | (eval $ac_try) 2>&5 | |
29485 | ac_status=$? | |
29486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29487 | (exit $ac_status); }; } && | |
29488 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29490 | (eval $ac_try) 2>&5 | |
29491 | ac_status=$? | |
29492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29493 | (exit $ac_status); }; }; then | |
29494 | eval "$as_ac_var=yes" | |
29495 | else | |
29496 | echo "$as_me: failed program was:" >&5 | |
29497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29498 | ||
29499 | eval "$as_ac_var=no" | |
29500 | fi | |
ac1cb8d3 VS |
29501 | rm -f conftest.err conftest.$ac_objext \ |
29502 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29503 | fi |
29504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29505 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29506 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29507 | cat >>confdefs.h <<_ACEOF | |
29508 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29509 | _ACEOF | |
29510 | ||
29511 | fi | |
29512 | done | |
29513 | ||
29514 | ||
29515 | if test "$ac_cv_func_sigaction" = "no"; then | |
29516 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29517 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29518 | wxUSE_ON_FATAL_EXCEPTION=no | |
29519 | fi | |
29520 | ||
29521 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29522 | ||
29523 | ||
29524 | ac_ext=cc | |
29525 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29526 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29527 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29528 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29529 | ||
29530 | ||
29531 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29532 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29533 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29535 | else | |
29536 | ||
29537 | cat >conftest.$ac_ext <<_ACEOF | |
29538 | /* confdefs.h. */ | |
29539 | _ACEOF | |
29540 | cat confdefs.h >>conftest.$ac_ext | |
29541 | cat >>conftest.$ac_ext <<_ACEOF | |
29542 | /* end confdefs.h. */ | |
29543 | #include <signal.h> | |
29544 | int | |
29545 | main () | |
29546 | { | |
29547 | ||
29548 | extern void testSigHandler(int); | |
29549 | ||
29550 | struct sigaction sa; | |
29551 | sa.sa_handler = testSigHandler; | |
29552 | ||
29553 | ; | |
29554 | return 0; | |
29555 | } | |
29556 | _ACEOF | |
29557 | rm -f conftest.$ac_objext | |
29558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29559 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29560 | ac_status=$? |
ac1cb8d3 VS |
29561 | grep -v '^ *+' conftest.er1 >conftest.err |
29562 | rm -f conftest.er1 | |
29563 | cat conftest.err >&5 | |
a848cd7e SC |
29564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29565 | (exit $ac_status); } && | |
5dcf30a0 RN |
29566 | { ac_try='test -z "$ac_cxx_werror_flag" |
29567 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29569 | (eval $ac_try) 2>&5 | |
29570 | ac_status=$? | |
29571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29572 | (exit $ac_status); }; } && | |
29573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29575 | (eval $ac_try) 2>&5 | |
29576 | ac_status=$? | |
29577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29578 | (exit $ac_status); }; }; then | |
29579 | ||
29580 | wx_cv_type_sa_handler=int | |
29581 | ||
29582 | else | |
29583 | echo "$as_me: failed program was:" >&5 | |
29584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29585 | ||
29586 | ||
29587 | wx_cv_type_sa_handler=void | |
29588 | ||
29589 | fi | |
ac1cb8d3 | 29590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29591 | |
29592 | fi | |
29593 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29594 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29595 | ||
29596 | ac_ext=c | |
29597 | ac_cpp='$CPP $CPPFLAGS' | |
29598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29601 | ||
29602 | ||
29603 | cat >>confdefs.h <<_ACEOF | |
29604 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29605 | _ACEOF | |
29606 | ||
29607 | fi | |
29608 | fi | |
29609 | ||
29610 | ||
29611 | ||
29612 | for ac_func in mkstemp mktemp | |
29613 | do | |
29614 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29615 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29616 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29617 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29619 | else | |
29620 | cat >conftest.$ac_ext <<_ACEOF | |
29621 | /* confdefs.h. */ | |
29622 | _ACEOF | |
29623 | cat confdefs.h >>conftest.$ac_ext | |
29624 | cat >>conftest.$ac_ext <<_ACEOF | |
29625 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29626 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29627 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29628 | #define $ac_func innocuous_$ac_func | |
29629 | ||
a848cd7e SC |
29630 | /* System header to define __stub macros and hopefully few prototypes, |
29631 | which can conflict with char $ac_func (); below. | |
29632 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29633 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29634 | |
a848cd7e SC |
29635 | #ifdef __STDC__ |
29636 | # include <limits.h> | |
29637 | #else | |
29638 | # include <assert.h> | |
29639 | #endif | |
ac1cb8d3 VS |
29640 | |
29641 | #undef $ac_func | |
29642 | ||
a848cd7e SC |
29643 | /* Override any gcc2 internal prototype to avoid an error. */ |
29644 | #ifdef __cplusplus | |
29645 | extern "C" | |
29646 | { | |
29647 | #endif | |
29648 | /* We use char because int might match the return type of a gcc2 | |
29649 | builtin and then its argument prototype would still apply. */ | |
29650 | char $ac_func (); | |
29651 | /* The GNU C library defines this for functions which it implements | |
29652 | to always fail with ENOSYS. Some functions are actually named | |
29653 | something starting with __ and the normal name is an alias. */ | |
29654 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29655 | choke me | |
29656 | #else | |
29657 | char (*f) () = $ac_func; | |
29658 | #endif | |
29659 | #ifdef __cplusplus | |
29660 | } | |
29661 | #endif | |
29662 | ||
29663 | int | |
29664 | main () | |
29665 | { | |
29666 | return f != $ac_func; | |
29667 | ; | |
29668 | return 0; | |
29669 | } | |
29670 | _ACEOF | |
29671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29673 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29674 | ac_status=$? |
ac1cb8d3 VS |
29675 | grep -v '^ *+' conftest.er1 >conftest.err |
29676 | rm -f conftest.er1 | |
29677 | cat conftest.err >&5 | |
a848cd7e SC |
29678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29679 | (exit $ac_status); } && | |
5dcf30a0 RN |
29680 | { ac_try='test -z "$ac_c_werror_flag" |
29681 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29683 | (eval $ac_try) 2>&5 | |
29684 | ac_status=$? | |
29685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29686 | (exit $ac_status); }; } && | |
29687 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29689 | (eval $ac_try) 2>&5 | |
29690 | ac_status=$? | |
29691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29692 | (exit $ac_status); }; }; then | |
29693 | eval "$as_ac_var=yes" | |
29694 | else | |
29695 | echo "$as_me: failed program was:" >&5 | |
29696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29697 | ||
29698 | eval "$as_ac_var=no" | |
29699 | fi | |
ac1cb8d3 VS |
29700 | rm -f conftest.err conftest.$ac_objext \ |
29701 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29702 | fi |
29703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29704 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29705 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29706 | cat >>confdefs.h <<_ACEOF | |
29707 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29708 | _ACEOF | |
29709 | break | |
29710 | fi | |
29711 | done | |
29712 | ||
29713 | ||
29714 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
29715 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29716 | if test "${wx_cv_func_statfs+set}" = set; then | |
29717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29718 | else | |
29719 | cat >conftest.$ac_ext <<_ACEOF | |
29720 | /* confdefs.h. */ | |
29721 | _ACEOF | |
29722 | cat confdefs.h >>conftest.$ac_ext | |
29723 | cat >>conftest.$ac_ext <<_ACEOF | |
29724 | /* end confdefs.h. */ | |
29725 | ||
29726 | #if defined(__BSD__) | |
29727 | #include <sys/param.h> | |
29728 | #include <sys/mount.h> | |
29729 | #else | |
29730 | #include <sys/vfs.h> | |
29731 | #endif | |
29732 | ||
29733 | int | |
29734 | main () | |
29735 | { | |
29736 | ||
29737 | long l; | |
29738 | struct statfs fs; | |
29739 | statfs("/", &fs); | |
29740 | l = fs.f_bsize; | |
29741 | l += fs.f_blocks; | |
29742 | l += fs.f_bavail; | |
29743 | ||
29744 | ; | |
29745 | return 0; | |
29746 | } | |
29747 | _ACEOF | |
29748 | rm -f conftest.$ac_objext | |
29749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29750 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29751 | ac_status=$? |
ac1cb8d3 VS |
29752 | grep -v '^ *+' conftest.er1 >conftest.err |
29753 | rm -f conftest.er1 | |
29754 | cat conftest.err >&5 | |
a848cd7e SC |
29755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29756 | (exit $ac_status); } && | |
5dcf30a0 RN |
29757 | { ac_try='test -z "$ac_c_werror_flag" |
29758 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29760 | (eval $ac_try) 2>&5 | |
29761 | ac_status=$? | |
29762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29763 | (exit $ac_status); }; } && | |
29764 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29766 | (eval $ac_try) 2>&5 | |
29767 | ac_status=$? | |
29768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29769 | (exit $ac_status); }; }; then | |
29770 | ||
29771 | wx_cv_func_statfs=yes | |
29772 | ||
29773 | else | |
29774 | echo "$as_me: failed program was:" >&5 | |
29775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29776 | ||
29777 | ||
29778 | wx_cv_func_statfs=no | |
29779 | ||
29780 | ||
29781 | fi | |
ac1cb8d3 | 29782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29783 | |
29784 | fi | |
29785 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29786 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
29787 | ||
29788 | if test "$wx_cv_func_statfs" = "yes"; then | |
29789 | wx_cv_type_statvfs_t="struct statfs" | |
29790 | cat >>confdefs.h <<\_ACEOF | |
29791 | #define HAVE_STATFS 1 | |
29792 | _ACEOF | |
29793 | ||
29794 | else | |
29795 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
29796 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29797 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29799 | else | |
29800 | cat >conftest.$ac_ext <<_ACEOF | |
29801 | /* confdefs.h. */ | |
29802 | _ACEOF | |
29803 | cat confdefs.h >>conftest.$ac_ext | |
29804 | cat >>conftest.$ac_ext <<_ACEOF | |
29805 | /* end confdefs.h. */ | |
29806 | ||
29807 | #include <stddef.h> | |
29808 | #include <sys/statvfs.h> | |
29809 | ||
29810 | int | |
29811 | main () | |
29812 | { | |
29813 | ||
29814 | statvfs("/", NULL); | |
29815 | ||
29816 | ; | |
29817 | return 0; | |
29818 | } | |
29819 | _ACEOF | |
29820 | rm -f conftest.$ac_objext | |
29821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29822 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29823 | ac_status=$? |
ac1cb8d3 VS |
29824 | grep -v '^ *+' conftest.er1 >conftest.err |
29825 | rm -f conftest.er1 | |
29826 | cat conftest.err >&5 | |
a848cd7e SC |
29827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29828 | (exit $ac_status); } && | |
5dcf30a0 RN |
29829 | { ac_try='test -z "$ac_c_werror_flag" |
29830 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29832 | (eval $ac_try) 2>&5 | |
29833 | ac_status=$? | |
29834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29835 | (exit $ac_status); }; } && | |
29836 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29838 | (eval $ac_try) 2>&5 | |
29839 | ac_status=$? | |
29840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29841 | (exit $ac_status); }; }; then | |
29842 | wx_cv_func_statvfs=yes | |
29843 | else | |
29844 | echo "$as_me: failed program was:" >&5 | |
29845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29846 | ||
29847 | wx_cv_func_statvfs=no | |
29848 | ||
29849 | fi | |
ac1cb8d3 | 29850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29851 | |
29852 | fi | |
29853 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29854 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
29855 | ||
29856 | if test "$wx_cv_func_statvfs" = "yes"; then | |
29857 | ||
29858 | ||
29859 | ac_ext=cc | |
29860 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29861 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29862 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29863 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29864 | ||
29865 | ||
29866 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
29867 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29868 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29870 | else | |
29871 | cat >conftest.$ac_ext <<_ACEOF | |
29872 | /* confdefs.h. */ | |
29873 | _ACEOF | |
29874 | cat confdefs.h >>conftest.$ac_ext | |
29875 | cat >>conftest.$ac_ext <<_ACEOF | |
29876 | /* end confdefs.h. */ | |
29877 | ||
29878 | #include <sys/statvfs.h> | |
29879 | ||
29880 | int | |
29881 | main () | |
29882 | { | |
29883 | ||
29884 | long l; | |
29885 | statvfs_t fs; | |
29886 | statvfs("/", &fs); | |
29887 | l = fs.f_bsize; | |
29888 | l += fs.f_blocks; | |
29889 | l += fs.f_bavail; | |
29890 | ||
29891 | ; | |
29892 | return 0; | |
29893 | } | |
29894 | _ACEOF | |
29895 | rm -f conftest.$ac_objext | |
29896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29897 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29898 | ac_status=$? |
ac1cb8d3 VS |
29899 | grep -v '^ *+' conftest.er1 >conftest.err |
29900 | rm -f conftest.er1 | |
29901 | cat conftest.err >&5 | |
a848cd7e SC |
29902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29903 | (exit $ac_status); } && | |
5dcf30a0 RN |
29904 | { ac_try='test -z "$ac_cxx_werror_flag" |
29905 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29907 | (eval $ac_try) 2>&5 | |
29908 | ac_status=$? | |
29909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29910 | (exit $ac_status); }; } && | |
29911 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29913 | (eval $ac_try) 2>&5 | |
29914 | ac_status=$? | |
29915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29916 | (exit $ac_status); }; }; then | |
29917 | wx_cv_type_statvfs_t=statvfs_t | |
29918 | else | |
29919 | echo "$as_me: failed program was:" >&5 | |
29920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29921 | ||
29922 | ||
29923 | cat >conftest.$ac_ext <<_ACEOF | |
29924 | /* confdefs.h. */ | |
29925 | _ACEOF | |
29926 | cat confdefs.h >>conftest.$ac_ext | |
29927 | cat >>conftest.$ac_ext <<_ACEOF | |
29928 | /* end confdefs.h. */ | |
29929 | ||
29930 | #include <sys/statvfs.h> | |
29931 | ||
29932 | int | |
29933 | main () | |
29934 | { | |
29935 | ||
29936 | long l; | |
29937 | struct statvfs fs; | |
29938 | statvfs("/", &fs); | |
29939 | l = fs.f_bsize; | |
29940 | l += fs.f_blocks; | |
29941 | l += fs.f_bavail; | |
29942 | ||
29943 | ; | |
29944 | return 0; | |
29945 | } | |
29946 | _ACEOF | |
29947 | rm -f conftest.$ac_objext | |
29948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29949 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29950 | ac_status=$? |
ac1cb8d3 VS |
29951 | grep -v '^ *+' conftest.er1 >conftest.err |
29952 | rm -f conftest.er1 | |
29953 | cat conftest.err >&5 | |
a848cd7e SC |
29954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29955 | (exit $ac_status); } && | |
5dcf30a0 RN |
29956 | { ac_try='test -z "$ac_cxx_werror_flag" |
29957 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29959 | (eval $ac_try) 2>&5 | |
29960 | ac_status=$? | |
29961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29962 | (exit $ac_status); }; } && | |
29963 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29965 | (eval $ac_try) 2>&5 | |
29966 | ac_status=$? | |
29967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29968 | (exit $ac_status); }; }; then | |
29969 | wx_cv_type_statvfs_t="struct statvfs" | |
29970 | else | |
29971 | echo "$as_me: failed program was:" >&5 | |
29972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29973 | ||
29974 | wx_cv_type_statvfs_t="unknown" | |
29975 | ||
29976 | fi | |
ac1cb8d3 | 29977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29978 | |
29979 | ||
29980 | fi | |
ac1cb8d3 | 29981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29982 | |
29983 | fi | |
29984 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
29985 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
29986 | ||
29987 | ac_ext=c | |
29988 | ac_cpp='$CPP $CPPFLAGS' | |
29989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29992 | ||
29993 | ||
29994 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
29995 | cat >>confdefs.h <<\_ACEOF | |
29996 | #define HAVE_STATVFS 1 | |
29997 | _ACEOF | |
29998 | ||
29999 | fi | |
30000 | else | |
30001 | wx_cv_type_statvfs_t="unknown" | |
30002 | fi | |
30003 | fi | |
30004 | ||
30005 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30006 | cat >>confdefs.h <<_ACEOF | |
30007 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30008 | _ACEOF | |
30009 | ||
30010 | else | |
30011 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30012 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30013 | fi | |
30014 | ||
30015 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30016 | ||
30017 | ||
30018 | for ac_func in fcntl flock | |
30019 | do | |
30020 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30021 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30022 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30023 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30025 | else | |
30026 | cat >conftest.$ac_ext <<_ACEOF | |
30027 | /* confdefs.h. */ | |
30028 | _ACEOF | |
30029 | cat confdefs.h >>conftest.$ac_ext | |
30030 | cat >>conftest.$ac_ext <<_ACEOF | |
30031 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30032 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30033 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30034 | #define $ac_func innocuous_$ac_func | |
30035 | ||
a848cd7e SC |
30036 | /* System header to define __stub macros and hopefully few prototypes, |
30037 | which can conflict with char $ac_func (); below. | |
30038 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30039 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30040 | |
a848cd7e SC |
30041 | #ifdef __STDC__ |
30042 | # include <limits.h> | |
30043 | #else | |
30044 | # include <assert.h> | |
30045 | #endif | |
ac1cb8d3 VS |
30046 | |
30047 | #undef $ac_func | |
30048 | ||
a848cd7e SC |
30049 | /* Override any gcc2 internal prototype to avoid an error. */ |
30050 | #ifdef __cplusplus | |
30051 | extern "C" | |
30052 | { | |
30053 | #endif | |
30054 | /* We use char because int might match the return type of a gcc2 | |
30055 | builtin and then its argument prototype would still apply. */ | |
30056 | char $ac_func (); | |
30057 | /* The GNU C library defines this for functions which it implements | |
30058 | to always fail with ENOSYS. Some functions are actually named | |
30059 | something starting with __ and the normal name is an alias. */ | |
30060 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30061 | choke me | |
30062 | #else | |
30063 | char (*f) () = $ac_func; | |
30064 | #endif | |
30065 | #ifdef __cplusplus | |
30066 | } | |
30067 | #endif | |
30068 | ||
30069 | int | |
30070 | main () | |
30071 | { | |
30072 | return f != $ac_func; | |
30073 | ; | |
30074 | return 0; | |
30075 | } | |
30076 | _ACEOF | |
30077 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30079 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30080 | ac_status=$? |
ac1cb8d3 VS |
30081 | grep -v '^ *+' conftest.er1 >conftest.err |
30082 | rm -f conftest.er1 | |
30083 | cat conftest.err >&5 | |
a848cd7e SC |
30084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30085 | (exit $ac_status); } && | |
5dcf30a0 RN |
30086 | { ac_try='test -z "$ac_c_werror_flag" |
30087 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30089 | (eval $ac_try) 2>&5 | |
30090 | ac_status=$? | |
30091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30092 | (exit $ac_status); }; } && | |
30093 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30095 | (eval $ac_try) 2>&5 | |
30096 | ac_status=$? | |
30097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30098 | (exit $ac_status); }; }; then | |
30099 | eval "$as_ac_var=yes" | |
30100 | else | |
30101 | echo "$as_me: failed program was:" >&5 | |
30102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30103 | ||
30104 | eval "$as_ac_var=no" | |
30105 | fi | |
ac1cb8d3 VS |
30106 | rm -f conftest.err conftest.$ac_objext \ |
30107 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30108 | fi |
30109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30110 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30111 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30112 | cat >>confdefs.h <<_ACEOF | |
30113 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30114 | _ACEOF | |
30115 | break | |
30116 | fi | |
30117 | done | |
30118 | ||
30119 | ||
30120 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30121 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30122 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30123 | wxUSE_SNGLINST_CHECKER=no | |
30124 | fi | |
30125 | fi | |
30126 | ||
30127 | ||
30128 | for ac_func in timegm | |
30129 | do | |
30130 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30131 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30132 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30133 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30135 | else | |
30136 | cat >conftest.$ac_ext <<_ACEOF | |
30137 | /* confdefs.h. */ | |
30138 | _ACEOF | |
30139 | cat confdefs.h >>conftest.$ac_ext | |
30140 | cat >>conftest.$ac_ext <<_ACEOF | |
30141 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30142 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30144 | #define $ac_func innocuous_$ac_func | |
30145 | ||
a848cd7e SC |
30146 | /* System header to define __stub macros and hopefully few prototypes, |
30147 | which can conflict with char $ac_func (); below. | |
30148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30149 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30150 | |
a848cd7e SC |
30151 | #ifdef __STDC__ |
30152 | # include <limits.h> | |
30153 | #else | |
30154 | # include <assert.h> | |
30155 | #endif | |
ac1cb8d3 VS |
30156 | |
30157 | #undef $ac_func | |
30158 | ||
a848cd7e SC |
30159 | /* Override any gcc2 internal prototype to avoid an error. */ |
30160 | #ifdef __cplusplus | |
30161 | extern "C" | |
30162 | { | |
30163 | #endif | |
30164 | /* We use char because int might match the return type of a gcc2 | |
30165 | builtin and then its argument prototype would still apply. */ | |
30166 | char $ac_func (); | |
30167 | /* The GNU C library defines this for functions which it implements | |
30168 | to always fail with ENOSYS. Some functions are actually named | |
30169 | something starting with __ and the normal name is an alias. */ | |
30170 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30171 | choke me | |
30172 | #else | |
30173 | char (*f) () = $ac_func; | |
30174 | #endif | |
30175 | #ifdef __cplusplus | |
30176 | } | |
30177 | #endif | |
30178 | ||
30179 | int | |
30180 | main () | |
30181 | { | |
30182 | return f != $ac_func; | |
30183 | ; | |
30184 | return 0; | |
30185 | } | |
30186 | _ACEOF | |
30187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30190 | ac_status=$? |
ac1cb8d3 VS |
30191 | grep -v '^ *+' conftest.er1 >conftest.err |
30192 | rm -f conftest.er1 | |
30193 | cat conftest.err >&5 | |
a848cd7e SC |
30194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30195 | (exit $ac_status); } && | |
5dcf30a0 RN |
30196 | { ac_try='test -z "$ac_c_werror_flag" |
30197 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30199 | (eval $ac_try) 2>&5 | |
30200 | ac_status=$? | |
30201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30202 | (exit $ac_status); }; } && | |
30203 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30205 | (eval $ac_try) 2>&5 | |
30206 | ac_status=$? | |
30207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30208 | (exit $ac_status); }; }; then | |
30209 | eval "$as_ac_var=yes" | |
30210 | else | |
30211 | echo "$as_me: failed program was:" >&5 | |
30212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30213 | ||
30214 | eval "$as_ac_var=no" | |
30215 | fi | |
ac1cb8d3 VS |
30216 | rm -f conftest.err conftest.$ac_objext \ |
30217 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30218 | fi |
30219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30220 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30221 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30222 | cat >>confdefs.h <<_ACEOF | |
30223 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30224 | _ACEOF | |
30225 | ||
30226 | fi | |
30227 | done | |
30228 | ||
30229 | ||
30230 | ||
30231 | ||
30232 | for ac_func in putenv setenv | |
30233 | do | |
30234 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30235 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30236 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30237 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30239 | else | |
30240 | cat >conftest.$ac_ext <<_ACEOF | |
30241 | /* confdefs.h. */ | |
30242 | _ACEOF | |
30243 | cat confdefs.h >>conftest.$ac_ext | |
30244 | cat >>conftest.$ac_ext <<_ACEOF | |
30245 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30246 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30248 | #define $ac_func innocuous_$ac_func | |
30249 | ||
a848cd7e SC |
30250 | /* System header to define __stub macros and hopefully few prototypes, |
30251 | which can conflict with char $ac_func (); below. | |
30252 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30253 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30254 | |
a848cd7e SC |
30255 | #ifdef __STDC__ |
30256 | # include <limits.h> | |
30257 | #else | |
30258 | # include <assert.h> | |
30259 | #endif | |
ac1cb8d3 VS |
30260 | |
30261 | #undef $ac_func | |
30262 | ||
a848cd7e SC |
30263 | /* Override any gcc2 internal prototype to avoid an error. */ |
30264 | #ifdef __cplusplus | |
30265 | extern "C" | |
30266 | { | |
30267 | #endif | |
30268 | /* We use char because int might match the return type of a gcc2 | |
30269 | builtin and then its argument prototype would still apply. */ | |
30270 | char $ac_func (); | |
30271 | /* The GNU C library defines this for functions which it implements | |
30272 | to always fail with ENOSYS. Some functions are actually named | |
30273 | something starting with __ and the normal name is an alias. */ | |
30274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30275 | choke me | |
30276 | #else | |
30277 | char (*f) () = $ac_func; | |
30278 | #endif | |
30279 | #ifdef __cplusplus | |
30280 | } | |
30281 | #endif | |
30282 | ||
30283 | int | |
30284 | main () | |
30285 | { | |
30286 | return f != $ac_func; | |
30287 | ; | |
30288 | return 0; | |
30289 | } | |
30290 | _ACEOF | |
30291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30293 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30294 | ac_status=$? |
ac1cb8d3 VS |
30295 | grep -v '^ *+' conftest.er1 >conftest.err |
30296 | rm -f conftest.er1 | |
30297 | cat conftest.err >&5 | |
a848cd7e SC |
30298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30299 | (exit $ac_status); } && | |
5dcf30a0 RN |
30300 | { ac_try='test -z "$ac_c_werror_flag" |
30301 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30303 | (eval $ac_try) 2>&5 | |
30304 | ac_status=$? | |
30305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30306 | (exit $ac_status); }; } && | |
30307 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30309 | (eval $ac_try) 2>&5 | |
30310 | ac_status=$? | |
30311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30312 | (exit $ac_status); }; }; then | |
30313 | eval "$as_ac_var=yes" | |
30314 | else | |
30315 | echo "$as_me: failed program was:" >&5 | |
30316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30317 | ||
30318 | eval "$as_ac_var=no" | |
30319 | fi | |
ac1cb8d3 VS |
30320 | rm -f conftest.err conftest.$ac_objext \ |
30321 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30322 | fi |
30323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30326 | cat >>confdefs.h <<_ACEOF | |
30327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30328 | _ACEOF | |
30329 | break | |
30330 | fi | |
30331 | done | |
30332 | ||
30333 | ||
30334 | HAVE_SOME_SLEEP_FUNC=0 | |
30335 | if test "$USE_BEOS" = 1; then | |
30336 | cat >>confdefs.h <<\_ACEOF | |
30337 | #define HAVE_SLEEP 1 | |
30338 | _ACEOF | |
30339 | ||
30340 | HAVE_SOME_SLEEP_FUNC=1 | |
30341 | fi | |
30342 | ||
30343 | if test "$USE_DARWIN" = 1; then | |
30344 | cat >>confdefs.h <<\_ACEOF | |
30345 | #define HAVE_USLEEP 1 | |
30346 | _ACEOF | |
30347 | ||
30348 | HAVE_SOME_SLEEP_FUNC=1 | |
30349 | fi | |
30350 | ||
30351 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30352 | POSIX4_LINK= | |
30353 | ||
30354 | for ac_func in nanosleep | |
30355 | do | |
30356 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30357 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30358 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30359 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30361 | else | |
30362 | cat >conftest.$ac_ext <<_ACEOF | |
30363 | /* confdefs.h. */ | |
30364 | _ACEOF | |
30365 | cat confdefs.h >>conftest.$ac_ext | |
30366 | cat >>conftest.$ac_ext <<_ACEOF | |
30367 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30368 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30369 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30370 | #define $ac_func innocuous_$ac_func | |
30371 | ||
a848cd7e SC |
30372 | /* System header to define __stub macros and hopefully few prototypes, |
30373 | which can conflict with char $ac_func (); below. | |
30374 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30375 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30376 | |
a848cd7e SC |
30377 | #ifdef __STDC__ |
30378 | # include <limits.h> | |
30379 | #else | |
30380 | # include <assert.h> | |
30381 | #endif | |
ac1cb8d3 VS |
30382 | |
30383 | #undef $ac_func | |
30384 | ||
a848cd7e SC |
30385 | /* Override any gcc2 internal prototype to avoid an error. */ |
30386 | #ifdef __cplusplus | |
30387 | extern "C" | |
30388 | { | |
30389 | #endif | |
30390 | /* We use char because int might match the return type of a gcc2 | |
30391 | builtin and then its argument prototype would still apply. */ | |
30392 | char $ac_func (); | |
30393 | /* The GNU C library defines this for functions which it implements | |
30394 | to always fail with ENOSYS. Some functions are actually named | |
30395 | something starting with __ and the normal name is an alias. */ | |
30396 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30397 | choke me | |
30398 | #else | |
30399 | char (*f) () = $ac_func; | |
30400 | #endif | |
30401 | #ifdef __cplusplus | |
30402 | } | |
30403 | #endif | |
30404 | ||
30405 | int | |
30406 | main () | |
30407 | { | |
30408 | return f != $ac_func; | |
30409 | ; | |
30410 | return 0; | |
30411 | } | |
30412 | _ACEOF | |
30413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30415 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30416 | ac_status=$? |
ac1cb8d3 VS |
30417 | grep -v '^ *+' conftest.er1 >conftest.err |
30418 | rm -f conftest.er1 | |
30419 | cat conftest.err >&5 | |
a848cd7e SC |
30420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30421 | (exit $ac_status); } && | |
5dcf30a0 RN |
30422 | { ac_try='test -z "$ac_c_werror_flag" |
30423 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30425 | (eval $ac_try) 2>&5 | |
30426 | ac_status=$? | |
30427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30428 | (exit $ac_status); }; } && | |
30429 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30431 | (eval $ac_try) 2>&5 | |
30432 | ac_status=$? | |
30433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30434 | (exit $ac_status); }; }; then | |
30435 | eval "$as_ac_var=yes" | |
30436 | else | |
30437 | echo "$as_me: failed program was:" >&5 | |
30438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30439 | ||
30440 | eval "$as_ac_var=no" | |
30441 | fi | |
ac1cb8d3 VS |
30442 | rm -f conftest.err conftest.$ac_objext \ |
30443 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30444 | fi |
30445 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30446 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30447 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30448 | cat >>confdefs.h <<_ACEOF | |
30449 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30450 | _ACEOF | |
30451 | cat >>confdefs.h <<\_ACEOF | |
30452 | #define HAVE_NANOSLEEP 1 | |
30453 | _ACEOF | |
30454 | ||
30455 | else | |
30456 | ||
30457 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30458 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30459 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30461 | else | |
30462 | ac_check_lib_save_LIBS=$LIBS | |
30463 | LIBS="-lposix4 $LIBS" | |
30464 | cat >conftest.$ac_ext <<_ACEOF | |
30465 | /* confdefs.h. */ | |
30466 | _ACEOF | |
30467 | cat confdefs.h >>conftest.$ac_ext | |
30468 | cat >>conftest.$ac_ext <<_ACEOF | |
30469 | /* end confdefs.h. */ | |
30470 | ||
30471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30472 | #ifdef __cplusplus | |
30473 | extern "C" | |
30474 | #endif | |
30475 | /* We use char because int might match the return type of a gcc2 | |
30476 | builtin and then its argument prototype would still apply. */ | |
30477 | char nanosleep (); | |
30478 | int | |
30479 | main () | |
30480 | { | |
30481 | nanosleep (); | |
30482 | ; | |
30483 | return 0; | |
30484 | } | |
30485 | _ACEOF | |
30486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30489 | ac_status=$? |
ac1cb8d3 VS |
30490 | grep -v '^ *+' conftest.er1 >conftest.err |
30491 | rm -f conftest.er1 | |
30492 | cat conftest.err >&5 | |
a848cd7e SC |
30493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30494 | (exit $ac_status); } && | |
5dcf30a0 RN |
30495 | { ac_try='test -z "$ac_c_werror_flag" |
30496 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30498 | (eval $ac_try) 2>&5 | |
30499 | ac_status=$? | |
30500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30501 | (exit $ac_status); }; } && | |
30502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30504 | (eval $ac_try) 2>&5 | |
30505 | ac_status=$? | |
30506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30507 | (exit $ac_status); }; }; then | |
30508 | ac_cv_lib_posix4_nanosleep=yes | |
30509 | else | |
30510 | echo "$as_me: failed program was:" >&5 | |
30511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30512 | ||
30513 | ac_cv_lib_posix4_nanosleep=no | |
30514 | fi | |
ac1cb8d3 VS |
30515 | rm -f conftest.err conftest.$ac_objext \ |
30516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30517 | LIBS=$ac_check_lib_save_LIBS |
30518 | fi | |
30519 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30520 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30521 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30522 | ||
30523 | cat >>confdefs.h <<\_ACEOF | |
30524 | #define HAVE_NANOSLEEP 1 | |
30525 | _ACEOF | |
30526 | ||
30527 | POSIX4_LINK=" -lposix4" | |
30528 | ||
30529 | else | |
30530 | ||
30531 | ||
30532 | for ac_func in usleep | |
30533 | do | |
30534 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30535 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30536 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30537 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30539 | else | |
30540 | cat >conftest.$ac_ext <<_ACEOF | |
30541 | /* confdefs.h. */ | |
30542 | _ACEOF | |
30543 | cat confdefs.h >>conftest.$ac_ext | |
30544 | cat >>conftest.$ac_ext <<_ACEOF | |
30545 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30546 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30547 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30548 | #define $ac_func innocuous_$ac_func | |
30549 | ||
a848cd7e SC |
30550 | /* System header to define __stub macros and hopefully few prototypes, |
30551 | which can conflict with char $ac_func (); below. | |
30552 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30553 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30554 | |
a848cd7e SC |
30555 | #ifdef __STDC__ |
30556 | # include <limits.h> | |
30557 | #else | |
30558 | # include <assert.h> | |
30559 | #endif | |
ac1cb8d3 VS |
30560 | |
30561 | #undef $ac_func | |
30562 | ||
a848cd7e SC |
30563 | /* Override any gcc2 internal prototype to avoid an error. */ |
30564 | #ifdef __cplusplus | |
30565 | extern "C" | |
30566 | { | |
30567 | #endif | |
30568 | /* We use char because int might match the return type of a gcc2 | |
30569 | builtin and then its argument prototype would still apply. */ | |
30570 | char $ac_func (); | |
30571 | /* The GNU C library defines this for functions which it implements | |
30572 | to always fail with ENOSYS. Some functions are actually named | |
30573 | something starting with __ and the normal name is an alias. */ | |
30574 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30575 | choke me | |
30576 | #else | |
30577 | char (*f) () = $ac_func; | |
30578 | #endif | |
30579 | #ifdef __cplusplus | |
30580 | } | |
30581 | #endif | |
30582 | ||
30583 | int | |
30584 | main () | |
30585 | { | |
30586 | return f != $ac_func; | |
30587 | ; | |
30588 | return 0; | |
30589 | } | |
30590 | _ACEOF | |
30591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30593 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30594 | ac_status=$? |
ac1cb8d3 VS |
30595 | grep -v '^ *+' conftest.er1 >conftest.err |
30596 | rm -f conftest.er1 | |
30597 | cat conftest.err >&5 | |
a848cd7e SC |
30598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30599 | (exit $ac_status); } && | |
5dcf30a0 RN |
30600 | { ac_try='test -z "$ac_c_werror_flag" |
30601 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30603 | (eval $ac_try) 2>&5 | |
30604 | ac_status=$? | |
30605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30606 | (exit $ac_status); }; } && | |
30607 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30609 | (eval $ac_try) 2>&5 | |
30610 | ac_status=$? | |
30611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30612 | (exit $ac_status); }; }; then | |
30613 | eval "$as_ac_var=yes" | |
30614 | else | |
30615 | echo "$as_me: failed program was:" >&5 | |
30616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30617 | ||
30618 | eval "$as_ac_var=no" | |
30619 | fi | |
ac1cb8d3 VS |
30620 | rm -f conftest.err conftest.$ac_objext \ |
30621 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30622 | fi |
30623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30624 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30625 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30626 | cat >>confdefs.h <<_ACEOF | |
30627 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30628 | _ACEOF | |
30629 | cat >>confdefs.h <<\_ACEOF | |
30630 | #define HAVE_USLEEP 1 | |
30631 | _ACEOF | |
30632 | ||
30633 | else | |
30634 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30635 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30636 | ||
30637 | fi | |
30638 | done | |
30639 | ||
30640 | ||
30641 | ||
30642 | fi | |
30643 | ||
30644 | ||
30645 | ||
30646 | fi | |
30647 | done | |
30648 | ||
30649 | fi | |
30650 | ||
30651 | ||
30652 | ||
30653 | for ac_func in uname gethostname | |
30654 | do | |
30655 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30656 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30657 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30658 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30660 | else | |
30661 | cat >conftest.$ac_ext <<_ACEOF | |
30662 | /* confdefs.h. */ | |
30663 | _ACEOF | |
30664 | cat confdefs.h >>conftest.$ac_ext | |
30665 | cat >>conftest.$ac_ext <<_ACEOF | |
30666 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30667 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30668 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30669 | #define $ac_func innocuous_$ac_func | |
30670 | ||
a848cd7e SC |
30671 | /* System header to define __stub macros and hopefully few prototypes, |
30672 | which can conflict with char $ac_func (); below. | |
30673 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30674 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30675 | |
a848cd7e SC |
30676 | #ifdef __STDC__ |
30677 | # include <limits.h> | |
30678 | #else | |
30679 | # include <assert.h> | |
30680 | #endif | |
ac1cb8d3 VS |
30681 | |
30682 | #undef $ac_func | |
30683 | ||
a848cd7e SC |
30684 | /* Override any gcc2 internal prototype to avoid an error. */ |
30685 | #ifdef __cplusplus | |
30686 | extern "C" | |
30687 | { | |
30688 | #endif | |
30689 | /* We use char because int might match the return type of a gcc2 | |
30690 | builtin and then its argument prototype would still apply. */ | |
30691 | char $ac_func (); | |
30692 | /* The GNU C library defines this for functions which it implements | |
30693 | to always fail with ENOSYS. Some functions are actually named | |
30694 | something starting with __ and the normal name is an alias. */ | |
30695 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30696 | choke me | |
30697 | #else | |
30698 | char (*f) () = $ac_func; | |
30699 | #endif | |
30700 | #ifdef __cplusplus | |
30701 | } | |
30702 | #endif | |
30703 | ||
30704 | int | |
30705 | main () | |
30706 | { | |
30707 | return f != $ac_func; | |
30708 | ; | |
30709 | return 0; | |
30710 | } | |
30711 | _ACEOF | |
30712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30714 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30715 | ac_status=$? |
ac1cb8d3 VS |
30716 | grep -v '^ *+' conftest.er1 >conftest.err |
30717 | rm -f conftest.er1 | |
30718 | cat conftest.err >&5 | |
a848cd7e SC |
30719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30720 | (exit $ac_status); } && | |
5dcf30a0 RN |
30721 | { ac_try='test -z "$ac_c_werror_flag" |
30722 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30724 | (eval $ac_try) 2>&5 | |
30725 | ac_status=$? | |
30726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30727 | (exit $ac_status); }; } && | |
30728 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30730 | (eval $ac_try) 2>&5 | |
30731 | ac_status=$? | |
30732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30733 | (exit $ac_status); }; }; then | |
30734 | eval "$as_ac_var=yes" | |
30735 | else | |
30736 | echo "$as_me: failed program was:" >&5 | |
30737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30738 | ||
30739 | eval "$as_ac_var=no" | |
30740 | fi | |
ac1cb8d3 VS |
30741 | rm -f conftest.err conftest.$ac_objext \ |
30742 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30743 | fi |
30744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30745 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30746 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30747 | cat >>confdefs.h <<_ACEOF | |
30748 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30749 | _ACEOF | |
30750 | break | |
30751 | fi | |
30752 | done | |
30753 | ||
30754 | ||
30755 | ||
30756 | ||
30757 | ac_ext=cc | |
30758 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30759 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30760 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30761 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30762 | ||
30763 | ||
30764 | ||
30765 | for ac_func in strtok_r | |
30766 | do | |
30767 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30768 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30769 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30770 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30772 | else | |
30773 | cat >conftest.$ac_ext <<_ACEOF | |
30774 | /* confdefs.h. */ | |
30775 | _ACEOF | |
30776 | cat confdefs.h >>conftest.$ac_ext | |
30777 | cat >>conftest.$ac_ext <<_ACEOF | |
30778 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30779 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30780 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30781 | #define $ac_func innocuous_$ac_func | |
30782 | ||
a848cd7e SC |
30783 | /* System header to define __stub macros and hopefully few prototypes, |
30784 | which can conflict with char $ac_func (); below. | |
30785 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30786 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30787 | |
a848cd7e SC |
30788 | #ifdef __STDC__ |
30789 | # include <limits.h> | |
30790 | #else | |
30791 | # include <assert.h> | |
30792 | #endif | |
ac1cb8d3 VS |
30793 | |
30794 | #undef $ac_func | |
30795 | ||
a848cd7e SC |
30796 | /* Override any gcc2 internal prototype to avoid an error. */ |
30797 | #ifdef __cplusplus | |
30798 | extern "C" | |
30799 | { | |
30800 | #endif | |
30801 | /* We use char because int might match the return type of a gcc2 | |
30802 | builtin and then its argument prototype would still apply. */ | |
30803 | char $ac_func (); | |
30804 | /* The GNU C library defines this for functions which it implements | |
30805 | to always fail with ENOSYS. Some functions are actually named | |
30806 | something starting with __ and the normal name is an alias. */ | |
30807 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30808 | choke me | |
30809 | #else | |
30810 | char (*f) () = $ac_func; | |
30811 | #endif | |
30812 | #ifdef __cplusplus | |
30813 | } | |
30814 | #endif | |
30815 | ||
30816 | int | |
30817 | main () | |
30818 | { | |
30819 | return f != $ac_func; | |
30820 | ; | |
30821 | return 0; | |
30822 | } | |
30823 | _ACEOF | |
30824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30826 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30827 | ac_status=$? |
ac1cb8d3 VS |
30828 | grep -v '^ *+' conftest.er1 >conftest.err |
30829 | rm -f conftest.er1 | |
30830 | cat conftest.err >&5 | |
a848cd7e SC |
30831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30832 | (exit $ac_status); } && | |
5dcf30a0 RN |
30833 | { ac_try='test -z "$ac_cxx_werror_flag" |
30834 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30836 | (eval $ac_try) 2>&5 | |
30837 | ac_status=$? | |
30838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30839 | (exit $ac_status); }; } && | |
30840 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30842 | (eval $ac_try) 2>&5 | |
30843 | ac_status=$? | |
30844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30845 | (exit $ac_status); }; }; then | |
30846 | eval "$as_ac_var=yes" | |
30847 | else | |
30848 | echo "$as_me: failed program was:" >&5 | |
30849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30850 | ||
30851 | eval "$as_ac_var=no" | |
30852 | fi | |
ac1cb8d3 VS |
30853 | rm -f conftest.err conftest.$ac_objext \ |
30854 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30855 | fi |
30856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30857 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30858 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30859 | cat >>confdefs.h <<_ACEOF | |
30860 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30861 | _ACEOF | |
30862 | ||
30863 | fi | |
30864 | done | |
30865 | ||
30866 | ||
30867 | ac_ext=c | |
30868 | ac_cpp='$CPP $CPPFLAGS' | |
30869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30872 | ||
30873 | ||
30874 | INET_LINK= | |
30875 | ||
30876 | for ac_func in inet_addr | |
30877 | do | |
30878 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30879 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30880 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30881 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30883 | else | |
30884 | cat >conftest.$ac_ext <<_ACEOF | |
30885 | /* confdefs.h. */ | |
30886 | _ACEOF | |
30887 | cat confdefs.h >>conftest.$ac_ext | |
30888 | cat >>conftest.$ac_ext <<_ACEOF | |
30889 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30890 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30891 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30892 | #define $ac_func innocuous_$ac_func | |
30893 | ||
a848cd7e SC |
30894 | /* System header to define __stub macros and hopefully few prototypes, |
30895 | which can conflict with char $ac_func (); below. | |
30896 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30897 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30898 | |
a848cd7e SC |
30899 | #ifdef __STDC__ |
30900 | # include <limits.h> | |
30901 | #else | |
30902 | # include <assert.h> | |
30903 | #endif | |
ac1cb8d3 VS |
30904 | |
30905 | #undef $ac_func | |
30906 | ||
a848cd7e SC |
30907 | /* Override any gcc2 internal prototype to avoid an error. */ |
30908 | #ifdef __cplusplus | |
30909 | extern "C" | |
30910 | { | |
30911 | #endif | |
30912 | /* We use char because int might match the return type of a gcc2 | |
30913 | builtin and then its argument prototype would still apply. */ | |
30914 | char $ac_func (); | |
30915 | /* The GNU C library defines this for functions which it implements | |
30916 | to always fail with ENOSYS. Some functions are actually named | |
30917 | something starting with __ and the normal name is an alias. */ | |
30918 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30919 | choke me | |
30920 | #else | |
30921 | char (*f) () = $ac_func; | |
30922 | #endif | |
30923 | #ifdef __cplusplus | |
30924 | } | |
30925 | #endif | |
30926 | ||
30927 | int | |
30928 | main () | |
30929 | { | |
30930 | return f != $ac_func; | |
30931 | ; | |
30932 | return 0; | |
30933 | } | |
30934 | _ACEOF | |
30935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30937 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30938 | ac_status=$? |
ac1cb8d3 VS |
30939 | grep -v '^ *+' conftest.er1 >conftest.err |
30940 | rm -f conftest.er1 | |
30941 | cat conftest.err >&5 | |
a848cd7e SC |
30942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30943 | (exit $ac_status); } && | |
5dcf30a0 RN |
30944 | { ac_try='test -z "$ac_c_werror_flag" |
30945 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30947 | (eval $ac_try) 2>&5 | |
30948 | ac_status=$? | |
30949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30950 | (exit $ac_status); }; } && | |
30951 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30953 | (eval $ac_try) 2>&5 | |
30954 | ac_status=$? | |
30955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30956 | (exit $ac_status); }; }; then | |
30957 | eval "$as_ac_var=yes" | |
30958 | else | |
30959 | echo "$as_me: failed program was:" >&5 | |
30960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30961 | ||
30962 | eval "$as_ac_var=no" | |
30963 | fi | |
ac1cb8d3 VS |
30964 | rm -f conftest.err conftest.$ac_objext \ |
30965 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30966 | fi |
30967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30968 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30969 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30970 | cat >>confdefs.h <<_ACEOF | |
30971 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30972 | _ACEOF | |
30973 | cat >>confdefs.h <<\_ACEOF | |
30974 | #define HAVE_INET_ADDR 1 | |
30975 | _ACEOF | |
30976 | ||
30977 | else | |
30978 | ||
30979 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
30980 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
30981 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
30982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30983 | else | |
30984 | ac_check_lib_save_LIBS=$LIBS | |
30985 | LIBS="-lnsl $LIBS" | |
30986 | cat >conftest.$ac_ext <<_ACEOF | |
30987 | /* confdefs.h. */ | |
30988 | _ACEOF | |
30989 | cat confdefs.h >>conftest.$ac_ext | |
30990 | cat >>conftest.$ac_ext <<_ACEOF | |
30991 | /* end confdefs.h. */ | |
30992 | ||
30993 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30994 | #ifdef __cplusplus | |
30995 | extern "C" | |
30996 | #endif | |
30997 | /* We use char because int might match the return type of a gcc2 | |
30998 | builtin and then its argument prototype would still apply. */ | |
30999 | char inet_addr (); | |
31000 | int | |
31001 | main () | |
31002 | { | |
31003 | inet_addr (); | |
31004 | ; | |
31005 | return 0; | |
31006 | } | |
31007 | _ACEOF | |
31008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31010 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31011 | ac_status=$? |
ac1cb8d3 VS |
31012 | grep -v '^ *+' conftest.er1 >conftest.err |
31013 | rm -f conftest.er1 | |
31014 | cat conftest.err >&5 | |
a848cd7e SC |
31015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31016 | (exit $ac_status); } && | |
5dcf30a0 RN |
31017 | { ac_try='test -z "$ac_c_werror_flag" |
31018 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31020 | (eval $ac_try) 2>&5 | |
31021 | ac_status=$? | |
31022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31023 | (exit $ac_status); }; } && | |
31024 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31026 | (eval $ac_try) 2>&5 | |
31027 | ac_status=$? | |
31028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31029 | (exit $ac_status); }; }; then | |
31030 | ac_cv_lib_nsl_inet_addr=yes | |
31031 | else | |
31032 | echo "$as_me: failed program was:" >&5 | |
31033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31034 | ||
31035 | ac_cv_lib_nsl_inet_addr=no | |
31036 | fi | |
ac1cb8d3 VS |
31037 | rm -f conftest.err conftest.$ac_objext \ |
31038 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31039 | LIBS=$ac_check_lib_save_LIBS |
31040 | fi | |
31041 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31042 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31043 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31044 | INET_LINK="nsl" | |
31045 | else | |
31046 | ||
31047 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31048 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31049 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31051 | else | |
31052 | ac_check_lib_save_LIBS=$LIBS | |
31053 | LIBS="-lresolv $LIBS" | |
31054 | cat >conftest.$ac_ext <<_ACEOF | |
31055 | /* confdefs.h. */ | |
31056 | _ACEOF | |
31057 | cat confdefs.h >>conftest.$ac_ext | |
31058 | cat >>conftest.$ac_ext <<_ACEOF | |
31059 | /* end confdefs.h. */ | |
31060 | ||
31061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31062 | #ifdef __cplusplus | |
31063 | extern "C" | |
31064 | #endif | |
31065 | /* We use char because int might match the return type of a gcc2 | |
31066 | builtin and then its argument prototype would still apply. */ | |
31067 | char inet_addr (); | |
31068 | int | |
31069 | main () | |
31070 | { | |
31071 | inet_addr (); | |
31072 | ; | |
31073 | return 0; | |
31074 | } | |
31075 | _ACEOF | |
31076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31078 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31079 | ac_status=$? |
ac1cb8d3 VS |
31080 | grep -v '^ *+' conftest.er1 >conftest.err |
31081 | rm -f conftest.er1 | |
31082 | cat conftest.err >&5 | |
a848cd7e SC |
31083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31084 | (exit $ac_status); } && | |
5dcf30a0 RN |
31085 | { ac_try='test -z "$ac_c_werror_flag" |
31086 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31088 | (eval $ac_try) 2>&5 | |
31089 | ac_status=$? | |
31090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31091 | (exit $ac_status); }; } && | |
31092 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31094 | (eval $ac_try) 2>&5 | |
31095 | ac_status=$? | |
31096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31097 | (exit $ac_status); }; }; then | |
31098 | ac_cv_lib_resolv_inet_addr=yes | |
31099 | else | |
31100 | echo "$as_me: failed program was:" >&5 | |
31101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31102 | ||
31103 | ac_cv_lib_resolv_inet_addr=no | |
31104 | fi | |
ac1cb8d3 VS |
31105 | rm -f conftest.err conftest.$ac_objext \ |
31106 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31107 | LIBS=$ac_check_lib_save_LIBS |
31108 | fi | |
31109 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31110 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31111 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31112 | INET_LINK="resolv" | |
31113 | else | |
31114 | ||
31115 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31116 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31117 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31119 | else | |
31120 | ac_check_lib_save_LIBS=$LIBS | |
31121 | LIBS="-lsocket $LIBS" | |
31122 | cat >conftest.$ac_ext <<_ACEOF | |
31123 | /* confdefs.h. */ | |
31124 | _ACEOF | |
31125 | cat confdefs.h >>conftest.$ac_ext | |
31126 | cat >>conftest.$ac_ext <<_ACEOF | |
31127 | /* end confdefs.h. */ | |
31128 | ||
31129 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31130 | #ifdef __cplusplus | |
31131 | extern "C" | |
31132 | #endif | |
31133 | /* We use char because int might match the return type of a gcc2 | |
31134 | builtin and then its argument prototype would still apply. */ | |
31135 | char inet_addr (); | |
31136 | int | |
31137 | main () | |
31138 | { | |
31139 | inet_addr (); | |
31140 | ; | |
31141 | return 0; | |
31142 | } | |
31143 | _ACEOF | |
31144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31146 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31147 | ac_status=$? |
ac1cb8d3 VS |
31148 | grep -v '^ *+' conftest.er1 >conftest.err |
31149 | rm -f conftest.er1 | |
31150 | cat conftest.err >&5 | |
a848cd7e SC |
31151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31152 | (exit $ac_status); } && | |
5dcf30a0 RN |
31153 | { ac_try='test -z "$ac_c_werror_flag" |
31154 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31156 | (eval $ac_try) 2>&5 | |
31157 | ac_status=$? | |
31158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31159 | (exit $ac_status); }; } && | |
31160 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31162 | (eval $ac_try) 2>&5 | |
31163 | ac_status=$? | |
31164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31165 | (exit $ac_status); }; }; then | |
31166 | ac_cv_lib_socket_inet_addr=yes | |
31167 | else | |
31168 | echo "$as_me: failed program was:" >&5 | |
31169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31170 | ||
31171 | ac_cv_lib_socket_inet_addr=no | |
31172 | fi | |
ac1cb8d3 VS |
31173 | rm -f conftest.err conftest.$ac_objext \ |
31174 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31175 | LIBS=$ac_check_lib_save_LIBS |
31176 | fi | |
31177 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31178 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31179 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31180 | INET_LINK="socket" | |
31181 | ||
31182 | fi | |
31183 | ||
31184 | ||
31185 | ||
31186 | fi | |
31187 | ||
31188 | ||
31189 | ||
31190 | fi | |
31191 | ||
31192 | ||
31193 | ||
31194 | fi | |
31195 | done | |
31196 | ||
31197 | ||
31198 | ||
31199 | for ac_func in inet_aton | |
31200 | do | |
31201 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31202 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31203 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31204 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31206 | else | |
31207 | cat >conftest.$ac_ext <<_ACEOF | |
31208 | /* confdefs.h. */ | |
31209 | _ACEOF | |
31210 | cat confdefs.h >>conftest.$ac_ext | |
31211 | cat >>conftest.$ac_ext <<_ACEOF | |
31212 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31213 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31214 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31215 | #define $ac_func innocuous_$ac_func | |
31216 | ||
a848cd7e SC |
31217 | /* System header to define __stub macros and hopefully few prototypes, |
31218 | which can conflict with char $ac_func (); below. | |
31219 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31220 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31221 | |
a848cd7e SC |
31222 | #ifdef __STDC__ |
31223 | # include <limits.h> | |
31224 | #else | |
31225 | # include <assert.h> | |
31226 | #endif | |
ac1cb8d3 VS |
31227 | |
31228 | #undef $ac_func | |
31229 | ||
a848cd7e SC |
31230 | /* Override any gcc2 internal prototype to avoid an error. */ |
31231 | #ifdef __cplusplus | |
31232 | extern "C" | |
31233 | { | |
31234 | #endif | |
31235 | /* We use char because int might match the return type of a gcc2 | |
31236 | builtin and then its argument prototype would still apply. */ | |
31237 | char $ac_func (); | |
31238 | /* The GNU C library defines this for functions which it implements | |
31239 | to always fail with ENOSYS. Some functions are actually named | |
31240 | something starting with __ and the normal name is an alias. */ | |
31241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31242 | choke me | |
31243 | #else | |
31244 | char (*f) () = $ac_func; | |
31245 | #endif | |
31246 | #ifdef __cplusplus | |
31247 | } | |
31248 | #endif | |
31249 | ||
31250 | int | |
31251 | main () | |
31252 | { | |
31253 | return f != $ac_func; | |
31254 | ; | |
31255 | return 0; | |
31256 | } | |
31257 | _ACEOF | |
31258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31260 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31261 | ac_status=$? |
ac1cb8d3 VS |
31262 | grep -v '^ *+' conftest.er1 >conftest.err |
31263 | rm -f conftest.er1 | |
31264 | cat conftest.err >&5 | |
a848cd7e SC |
31265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31266 | (exit $ac_status); } && | |
5dcf30a0 RN |
31267 | { ac_try='test -z "$ac_c_werror_flag" |
31268 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31270 | (eval $ac_try) 2>&5 | |
31271 | ac_status=$? | |
31272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31273 | (exit $ac_status); }; } && | |
31274 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31276 | (eval $ac_try) 2>&5 | |
31277 | ac_status=$? | |
31278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31279 | (exit $ac_status); }; }; then | |
31280 | eval "$as_ac_var=yes" | |
31281 | else | |
31282 | echo "$as_me: failed program was:" >&5 | |
31283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31284 | ||
31285 | eval "$as_ac_var=no" | |
31286 | fi | |
ac1cb8d3 VS |
31287 | rm -f conftest.err conftest.$ac_objext \ |
31288 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31289 | fi |
31290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31291 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31292 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31293 | cat >>confdefs.h <<_ACEOF | |
31294 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31295 | _ACEOF | |
31296 | cat >>confdefs.h <<\_ACEOF | |
31297 | #define HAVE_INET_ATON 1 | |
31298 | _ACEOF | |
31299 | ||
31300 | else | |
31301 | ||
31302 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31303 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31304 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31305 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31307 | else | |
31308 | ac_check_lib_save_LIBS=$LIBS | |
31309 | LIBS="-l$INET_LINK $LIBS" | |
31310 | cat >conftest.$ac_ext <<_ACEOF | |
31311 | /* confdefs.h. */ | |
31312 | _ACEOF | |
31313 | cat confdefs.h >>conftest.$ac_ext | |
31314 | cat >>conftest.$ac_ext <<_ACEOF | |
31315 | /* end confdefs.h. */ | |
31316 | ||
31317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31318 | #ifdef __cplusplus | |
31319 | extern "C" | |
31320 | #endif | |
31321 | /* We use char because int might match the return type of a gcc2 | |
31322 | builtin and then its argument prototype would still apply. */ | |
31323 | char inet_aton (); | |
31324 | int | |
31325 | main () | |
31326 | { | |
31327 | inet_aton (); | |
31328 | ; | |
31329 | return 0; | |
31330 | } | |
31331 | _ACEOF | |
31332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31334 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31335 | ac_status=$? |
ac1cb8d3 VS |
31336 | grep -v '^ *+' conftest.er1 >conftest.err |
31337 | rm -f conftest.er1 | |
31338 | cat conftest.err >&5 | |
a848cd7e SC |
31339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31340 | (exit $ac_status); } && | |
5dcf30a0 RN |
31341 | { ac_try='test -z "$ac_c_werror_flag" |
31342 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31344 | (eval $ac_try) 2>&5 | |
31345 | ac_status=$? | |
31346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31347 | (exit $ac_status); }; } && | |
31348 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31350 | (eval $ac_try) 2>&5 | |
31351 | ac_status=$? | |
31352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31353 | (exit $ac_status); }; }; then | |
31354 | eval "$as_ac_Lib=yes" | |
31355 | else | |
31356 | echo "$as_me: failed program was:" >&5 | |
31357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31358 | ||
31359 | eval "$as_ac_Lib=no" | |
31360 | fi | |
ac1cb8d3 VS |
31361 | rm -f conftest.err conftest.$ac_objext \ |
31362 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31363 | LIBS=$ac_check_lib_save_LIBS |
31364 | fi | |
31365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31366 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31367 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31368 | cat >>confdefs.h <<\_ACEOF | |
31369 | #define HAVE_INET_ATON 1 | |
31370 | _ACEOF | |
31371 | ||
31372 | fi | |
31373 | ||
31374 | ||
31375 | fi | |
31376 | done | |
31377 | ||
31378 | ||
31379 | if test "x$INET_LINK" != "x"; then | |
31380 | cat >>confdefs.h <<\_ACEOF | |
31381 | #define HAVE_INET_ADDR 1 | |
31382 | _ACEOF | |
31383 | ||
31384 | INET_LINK=" -l$INET_LINK" | |
31385 | fi | |
31386 | ||
31387 | fi | |
31388 | ||
31389 | ||
31390 | ||
31391 | EXTRALIBS_ESD= | |
31392 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31393 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31394 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31396 | else | |
31397 | ac_check_lib_save_LIBS=$LIBS | |
31398 | LIBS="-lesd $LIBS" | |
31399 | cat >conftest.$ac_ext <<_ACEOF | |
31400 | /* confdefs.h. */ | |
31401 | _ACEOF | |
31402 | cat confdefs.h >>conftest.$ac_ext | |
31403 | cat >>conftest.$ac_ext <<_ACEOF | |
31404 | /* end confdefs.h. */ | |
31405 | ||
31406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31407 | #ifdef __cplusplus | |
31408 | extern "C" | |
31409 | #endif | |
31410 | /* We use char because int might match the return type of a gcc2 | |
31411 | builtin and then its argument prototype would still apply. */ | |
31412 | char esd_close (); | |
31413 | int | |
31414 | main () | |
31415 | { | |
31416 | esd_close (); | |
31417 | ; | |
31418 | return 0; | |
31419 | } | |
31420 | _ACEOF | |
31421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31423 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31424 | ac_status=$? |
ac1cb8d3 VS |
31425 | grep -v '^ *+' conftest.er1 >conftest.err |
31426 | rm -f conftest.er1 | |
31427 | cat conftest.err >&5 | |
a848cd7e SC |
31428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31429 | (exit $ac_status); } && | |
5dcf30a0 RN |
31430 | { ac_try='test -z "$ac_c_werror_flag" |
31431 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31433 | (eval $ac_try) 2>&5 | |
31434 | ac_status=$? | |
31435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31436 | (exit $ac_status); }; } && | |
31437 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31439 | (eval $ac_try) 2>&5 | |
31440 | ac_status=$? | |
31441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31442 | (exit $ac_status); }; }; then | |
31443 | ac_cv_lib_esd_esd_close=yes | |
31444 | else | |
31445 | echo "$as_me: failed program was:" >&5 | |
31446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31447 | ||
31448 | ac_cv_lib_esd_esd_close=no | |
31449 | fi | |
ac1cb8d3 VS |
31450 | rm -f conftest.err conftest.$ac_objext \ |
31451 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31452 | LIBS=$ac_check_lib_save_LIBS |
31453 | fi | |
31454 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31455 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31456 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31457 | ||
31458 | ||
31459 | for ac_header in esd.h | |
31460 | do | |
31461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31467 | fi | |
31468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31470 | else | |
31471 | # Is the header compilable? | |
31472 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31473 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31474 | cat >conftest.$ac_ext <<_ACEOF | |
31475 | /* confdefs.h. */ | |
31476 | _ACEOF | |
31477 | cat confdefs.h >>conftest.$ac_ext | |
31478 | cat >>conftest.$ac_ext <<_ACEOF | |
31479 | /* end confdefs.h. */ | |
31480 | $ac_includes_default | |
31481 | #include <$ac_header> | |
31482 | _ACEOF | |
31483 | rm -f conftest.$ac_objext | |
31484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31485 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31486 | ac_status=$? |
ac1cb8d3 VS |
31487 | grep -v '^ *+' conftest.er1 >conftest.err |
31488 | rm -f conftest.er1 | |
31489 | cat conftest.err >&5 | |
a848cd7e SC |
31490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31491 | (exit $ac_status); } && | |
5dcf30a0 RN |
31492 | { ac_try='test -z "$ac_c_werror_flag" |
31493 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31495 | (eval $ac_try) 2>&5 | |
31496 | ac_status=$? | |
31497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31498 | (exit $ac_status); }; } && | |
31499 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31501 | (eval $ac_try) 2>&5 | |
31502 | ac_status=$? | |
31503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31504 | (exit $ac_status); }; }; then | |
31505 | ac_header_compiler=yes | |
31506 | else | |
31507 | echo "$as_me: failed program was:" >&5 | |
31508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31509 | ||
31510 | ac_header_compiler=no | |
31511 | fi | |
ac1cb8d3 | 31512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31513 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31514 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31515 | ||
31516 | # Is the header present? | |
31517 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31518 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31519 | cat >conftest.$ac_ext <<_ACEOF | |
31520 | /* confdefs.h. */ | |
31521 | _ACEOF | |
31522 | cat confdefs.h >>conftest.$ac_ext | |
31523 | cat >>conftest.$ac_ext <<_ACEOF | |
31524 | /* end confdefs.h. */ | |
31525 | #include <$ac_header> | |
31526 | _ACEOF | |
31527 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31528 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31529 | ac_status=$? | |
31530 | grep -v '^ *+' conftest.er1 >conftest.err | |
31531 | rm -f conftest.er1 | |
31532 | cat conftest.err >&5 | |
31533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31534 | (exit $ac_status); } >/dev/null; then | |
31535 | if test -s conftest.err; then | |
31536 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31537 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31538 | else |
31539 | ac_cpp_err= | |
31540 | fi | |
31541 | else | |
31542 | ac_cpp_err=yes | |
31543 | fi | |
31544 | if test -z "$ac_cpp_err"; then | |
31545 | ac_header_preproc=yes | |
31546 | else | |
31547 | echo "$as_me: failed program was:" >&5 | |
31548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31549 | ||
31550 | ac_header_preproc=no | |
31551 | fi | |
31552 | rm -f conftest.err conftest.$ac_ext | |
31553 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31554 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31555 | ||
31556 | # So? What about this header? | |
ac1cb8d3 VS |
31557 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31558 | yes:no: ) | |
a848cd7e SC |
31559 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31560 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31561 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31562 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31563 | ac_header_preproc=yes | |
a848cd7e | 31564 | ;; |
ac1cb8d3 | 31565 | no:yes:* ) |
a848cd7e SC |
31566 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31567 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31568 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31569 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31570 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31571 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31572 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31573 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31575 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31576 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31577 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31578 | ( |
31579 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31580 | ## ----------------------------------------- ## |
31581 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31582 | ## ----------------------------------------- ## | |
a848cd7e SC |
31583 | _ASBOX |
31584 | ) | | |
31585 | sed "s/^/$as_me: WARNING: /" >&2 | |
31586 | ;; | |
31587 | esac | |
31588 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31590 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31592 | else | |
ac1cb8d3 | 31593 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31594 | fi |
31595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31596 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31597 | ||
31598 | fi | |
31599 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31600 | cat >>confdefs.h <<_ACEOF | |
31601 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31602 | _ACEOF | |
31603 | ||
31604 | EXTRALIBS_ESD="-lesd" | |
31605 | ||
31606 | fi | |
31607 | ||
31608 | done | |
31609 | ||
31610 | ||
31611 | fi | |
31612 | ||
31613 | ||
31614 | ||
31615 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31616 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31617 | cat >conftest.$ac_ext <<_ACEOF | |
31618 | /* confdefs.h. */ | |
31619 | _ACEOF | |
31620 | cat confdefs.h >>conftest.$ac_ext | |
31621 | cat >>conftest.$ac_ext <<_ACEOF | |
31622 | /* end confdefs.h. */ | |
31623 | #ifdef __linux__ | |
31624 | #include <linux/cdrom.h> | |
31625 | #else | |
31626 | /* For Solaris */ | |
31627 | #include <sys/cdio.h> | |
31628 | #endif | |
31629 | ||
31630 | int | |
31631 | main () | |
31632 | { | |
31633 | struct cdrom_tocentry entry, old_entry; | |
31634 | ; | |
31635 | return 0; | |
31636 | } | |
31637 | _ACEOF | |
31638 | rm -f conftest.$ac_objext | |
31639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31640 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31641 | ac_status=$? |
ac1cb8d3 VS |
31642 | grep -v '^ *+' conftest.er1 >conftest.err |
31643 | rm -f conftest.er1 | |
31644 | cat conftest.err >&5 | |
a848cd7e SC |
31645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31646 | (exit $ac_status); } && | |
5dcf30a0 RN |
31647 | { ac_try='test -z "$ac_c_werror_flag" |
31648 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31650 | (eval $ac_try) 2>&5 | |
31651 | ac_status=$? | |
31652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31653 | (exit $ac_status); }; } && | |
31654 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31656 | (eval $ac_try) 2>&5 | |
31657 | ac_status=$? | |
31658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31659 | (exit $ac_status); }; }; then | |
31660 | echo "$as_me:$LINENO: result: yes" >&5 | |
31661 | echo "${ECHO_T}yes" >&6 | |
31662 | cat >>confdefs.h <<\_ACEOF | |
31663 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31664 | _ACEOF | |
31665 | ||
31666 | else | |
31667 | echo "$as_me: failed program was:" >&5 | |
31668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31669 | ||
31670 | echo "$as_me:$LINENO: result: no" >&5 | |
31671 | echo "${ECHO_T}no" >&6 | |
31672 | fi | |
ac1cb8d3 | 31673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31674 | |
31675 | ||
31676 | cat >confcache <<\_ACEOF | |
31677 | # This file is a shell script that caches the results of configure | |
31678 | # tests run on this system so they can be shared between configure | |
31679 | # scripts and configure runs, see configure's option --config-cache. | |
31680 | # It is not useful on other systems. If it contains results you don't | |
31681 | # want to keep, you may remove or edit it. | |
31682 | # | |
31683 | # config.status only pays attention to the cache file if you give it | |
31684 | # the --recheck option to rerun configure. | |
31685 | # | |
31686 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31687 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31688 | # following values. | |
31689 | ||
31690 | _ACEOF | |
31691 | ||
31692 | # The following way of writing the cache mishandles newlines in values, | |
31693 | # but we know of no workaround that is simple, portable, and efficient. | |
31694 | # So, don't put newlines in cache variables' values. | |
31695 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31696 | # and sets the high bit in the cache file unless we assign to the vars. | |
31697 | { | |
31698 | (set) 2>&1 | | |
31699 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31700 | *ac_space=\ *) | |
31701 | # `set' does not quote correctly, so add quotes (double-quote | |
31702 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31703 | sed -n \ | |
ac1cb8d3 VS |
31704 | "s/'/'\\\\''/g; |
31705 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31706 | ;; |
31707 | *) | |
31708 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31709 | sed -n \ | |
ac1cb8d3 | 31710 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31711 | ;; |
31712 | esac; | |
31713 | } | | |
31714 | sed ' | |
31715 | t clear | |
31716 | : clear | |
31717 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31718 | t end | |
31719 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31720 | : end' >>confcache | |
31721 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31722 | if test -w $cache_file; then | |
31723 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31724 | cat confcache >$cache_file | |
31725 | else | |
31726 | echo "not updating unwritable cache $cache_file" | |
31727 | fi | |
31728 | fi | |
31729 | rm -f confcache | |
31730 | ||
31731 | ||
31732 | CPP_MT_FLAG= | |
31733 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31734 | ||
31735 | ||
31736 | THREADS_LINK= | |
31737 | THREADS_CFLAGS= | |
31738 | ||
31739 | if test "$wxUSE_THREADS" = "yes" ; then | |
31740 | if test "$USE_BEOS" = 1; then | |
31741 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
31742 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
31743 | wxUSE_THREADS="no" | |
31744 | fi | |
31745 | fi | |
31746 | ||
31747 | if test "$wxUSE_THREADS" = "yes" ; then | |
31748 | ||
31749 | ||
31750 | THREAD_OPTS="-pthread" | |
31751 | case "${host}" in | |
31752 | *-*-solaris2* | *-*-sunos4* ) | |
31753 | if test "x$GCC" = "xyes"; then | |
31754 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
31755 | else | |
31756 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31757 | fi | |
31758 | ;; | |
31759 | *-*-freebsd*) | |
31760 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31761 | ;; | |
31762 | *-*-darwin* | *-*-cygwin* ) | |
31763 | THREAD_OPTS="" | |
31764 | ;; | |
31765 | *-*-aix*) | |
31766 | THREAD_OPTS="pthreads" | |
31767 | ;; | |
31768 | *-hp-hpux* ) | |
31769 | if test "x$GCC" != "xyes"; then | |
31770 | THREAD_OPTS="" | |
31771 | fi | |
31772 | ;; | |
31773 | ||
31774 | *-*-irix* ) | |
31775 | if test "x$GCC" = "xyes"; then | |
31776 | THREAD_OPTS="" | |
31777 | fi | |
31778 | ;; | |
31779 | ||
31780 | *-*-*UnixWare*) | |
31781 | if test "x$GCC" != "xyes"; then | |
31782 | THREAD_OPTS="-Ethread" | |
31783 | fi | |
31784 | ;; | |
31785 | esac | |
31786 | ||
31787 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
31788 | ||
31789 | THREADS_OK=no | |
31790 | for flag in $THREAD_OPTS; do | |
31791 | case $flag in | |
31792 | none) | |
31793 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
31794 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
31795 | ;; | |
31796 | ||
31797 | -*) | |
31798 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
31799 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
31800 | THREADS_CFLAGS="$flag" | |
31801 | ;; | |
31802 | ||
31803 | *) | |
31804 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
31805 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
31806 | THREADS_LINK="-l$flag" | |
31807 | ;; | |
31808 | esac | |
31809 | ||
31810 | save_LIBS="$LIBS" | |
31811 | save_CFLAGS="$CFLAGS" | |
31812 | LIBS="$THREADS_LINK $LIBS" | |
31813 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
31814 | ||
31815 | cat >conftest.$ac_ext <<_ACEOF | |
31816 | /* confdefs.h. */ | |
31817 | _ACEOF | |
31818 | cat confdefs.h >>conftest.$ac_ext | |
31819 | cat >>conftest.$ac_ext <<_ACEOF | |
31820 | /* end confdefs.h. */ | |
31821 | #include <pthread.h> | |
31822 | int | |
31823 | main () | |
31824 | { | |
31825 | pthread_create(0,0,0,0); | |
31826 | ; | |
31827 | return 0; | |
31828 | } | |
31829 | _ACEOF | |
31830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31832 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31833 | ac_status=$? |
ac1cb8d3 VS |
31834 | grep -v '^ *+' conftest.er1 >conftest.err |
31835 | rm -f conftest.er1 | |
31836 | cat conftest.err >&5 | |
a848cd7e SC |
31837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31838 | (exit $ac_status); } && | |
5dcf30a0 RN |
31839 | { ac_try='test -z "$ac_c_werror_flag" |
31840 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31842 | (eval $ac_try) 2>&5 | |
31843 | ac_status=$? | |
31844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31845 | (exit $ac_status); }; } && | |
31846 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31848 | (eval $ac_try) 2>&5 | |
31849 | ac_status=$? | |
31850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31851 | (exit $ac_status); }; }; then | |
31852 | THREADS_OK=yes | |
31853 | else | |
31854 | echo "$as_me: failed program was:" >&5 | |
31855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31856 | ||
31857 | fi | |
ac1cb8d3 VS |
31858 | rm -f conftest.err conftest.$ac_objext \ |
31859 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31860 | |
31861 | LIBS="$save_LIBS" | |
31862 | CFLAGS="$save_CFLAGS" | |
31863 | ||
31864 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
31865 | echo "${ECHO_T}$THREADS_OK" >&6 | |
31866 | if test "x$THREADS_OK" = "xyes"; then | |
31867 | break; | |
31868 | fi | |
31869 | ||
31870 | THREADS_LINK="" | |
31871 | THREADS_CFLAGS="" | |
31872 | done | |
31873 | ||
31874 | if test "x$THREADS_OK" != "xyes"; then | |
31875 | wxUSE_THREADS=no | |
31876 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
31877 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
31878 | else | |
31879 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
31880 | LIBS="$THREADS_LINK $LIBS" | |
31881 | ||
31882 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
31883 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
31884 | flag=no | |
31885 | case "${host}" in | |
31886 | *-aix*) | |
31887 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31888 | flag="-D_THREAD_SAFE" | |
31889 | ;; | |
31890 | *-freebsd*) | |
31891 | flag="-D_THREAD_SAFE" | |
31892 | ;; | |
31893 | *-hp-hpux* ) | |
31894 | flag="-D_REENTRANT" | |
31895 | if test "x$GCC" != "xyes"; then | |
31896 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
31897 | |
31898 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
31899 | fi |
31900 | ;; | |
31901 | *solaris* | alpha*-osf*) | |
31902 | flag="-D_REENTRANT" | |
31903 | ;; | |
31904 | esac | |
31905 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
31906 | echo "${ECHO_T}${flag}" >&6 | |
31907 | if test "x$flag" != xno; then | |
31908 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
31909 | fi | |
31910 | ||
31911 | if test "x$THREADS_CFLAGS" != "x"; then | |
31912 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
31913 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
31914 | fi | |
31915 | fi | |
31916 | fi | |
31917 | ||
31918 | if test "$wxUSE_THREADS" = "yes" ; then | |
31919 | ||
31920 | for ac_func in thr_setconcurrency | |
31921 | do | |
31922 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31923 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31924 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31925 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31927 | else | |
31928 | cat >conftest.$ac_ext <<_ACEOF | |
31929 | /* confdefs.h. */ | |
31930 | _ACEOF | |
31931 | cat confdefs.h >>conftest.$ac_ext | |
31932 | cat >>conftest.$ac_ext <<_ACEOF | |
31933 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31934 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31935 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31936 | #define $ac_func innocuous_$ac_func | |
31937 | ||
a848cd7e SC |
31938 | /* System header to define __stub macros and hopefully few prototypes, |
31939 | which can conflict with char $ac_func (); below. | |
31940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31941 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31942 | |
a848cd7e SC |
31943 | #ifdef __STDC__ |
31944 | # include <limits.h> | |
31945 | #else | |
31946 | # include <assert.h> | |
31947 | #endif | |
ac1cb8d3 VS |
31948 | |
31949 | #undef $ac_func | |
31950 | ||
a848cd7e SC |
31951 | /* Override any gcc2 internal prototype to avoid an error. */ |
31952 | #ifdef __cplusplus | |
31953 | extern "C" | |
31954 | { | |
31955 | #endif | |
31956 | /* We use char because int might match the return type of a gcc2 | |
31957 | builtin and then its argument prototype would still apply. */ | |
31958 | char $ac_func (); | |
31959 | /* The GNU C library defines this for functions which it implements | |
31960 | to always fail with ENOSYS. Some functions are actually named | |
31961 | something starting with __ and the normal name is an alias. */ | |
31962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31963 | choke me | |
31964 | #else | |
31965 | char (*f) () = $ac_func; | |
31966 | #endif | |
31967 | #ifdef __cplusplus | |
31968 | } | |
31969 | #endif | |
31970 | ||
31971 | int | |
31972 | main () | |
31973 | { | |
31974 | return f != $ac_func; | |
31975 | ; | |
31976 | return 0; | |
31977 | } | |
31978 | _ACEOF | |
31979 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31981 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31982 | ac_status=$? |
ac1cb8d3 VS |
31983 | grep -v '^ *+' conftest.er1 >conftest.err |
31984 | rm -f conftest.er1 | |
31985 | cat conftest.err >&5 | |
a848cd7e SC |
31986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31987 | (exit $ac_status); } && | |
5dcf30a0 RN |
31988 | { ac_try='test -z "$ac_c_werror_flag" |
31989 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31991 | (eval $ac_try) 2>&5 | |
31992 | ac_status=$? | |
31993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31994 | (exit $ac_status); }; } && | |
31995 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31997 | (eval $ac_try) 2>&5 | |
31998 | ac_status=$? | |
31999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32000 | (exit $ac_status); }; }; then | |
32001 | eval "$as_ac_var=yes" | |
32002 | else | |
32003 | echo "$as_me: failed program was:" >&5 | |
32004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32005 | ||
32006 | eval "$as_ac_var=no" | |
32007 | fi | |
ac1cb8d3 VS |
32008 | rm -f conftest.err conftest.$ac_objext \ |
32009 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32010 | fi |
32011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32012 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32013 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32014 | cat >>confdefs.h <<_ACEOF | |
32015 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32016 | _ACEOF | |
32017 | ||
32018 | fi | |
32019 | done | |
32020 | ||
32021 | ||
32022 | ||
32023 | for ac_header in sched.h | |
32024 | do | |
32025 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32027 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32031 | fi | |
32032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32033 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32034 | else | |
32035 | # Is the header compilable? | |
32036 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32037 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32038 | cat >conftest.$ac_ext <<_ACEOF | |
32039 | /* confdefs.h. */ | |
32040 | _ACEOF | |
32041 | cat confdefs.h >>conftest.$ac_ext | |
32042 | cat >>conftest.$ac_ext <<_ACEOF | |
32043 | /* end confdefs.h. */ | |
32044 | $ac_includes_default | |
32045 | #include <$ac_header> | |
32046 | _ACEOF | |
32047 | rm -f conftest.$ac_objext | |
32048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32049 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32050 | ac_status=$? |
ac1cb8d3 VS |
32051 | grep -v '^ *+' conftest.er1 >conftest.err |
32052 | rm -f conftest.er1 | |
32053 | cat conftest.err >&5 | |
a848cd7e SC |
32054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32055 | (exit $ac_status); } && | |
5dcf30a0 RN |
32056 | { ac_try='test -z "$ac_c_werror_flag" |
32057 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32059 | (eval $ac_try) 2>&5 | |
32060 | ac_status=$? | |
32061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32062 | (exit $ac_status); }; } && | |
32063 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32065 | (eval $ac_try) 2>&5 | |
32066 | ac_status=$? | |
32067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32068 | (exit $ac_status); }; }; then | |
32069 | ac_header_compiler=yes | |
32070 | else | |
32071 | echo "$as_me: failed program was:" >&5 | |
32072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32073 | ||
32074 | ac_header_compiler=no | |
32075 | fi | |
ac1cb8d3 | 32076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32077 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32078 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32079 | ||
32080 | # Is the header present? | |
32081 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32082 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32083 | cat >conftest.$ac_ext <<_ACEOF | |
32084 | /* confdefs.h. */ | |
32085 | _ACEOF | |
32086 | cat confdefs.h >>conftest.$ac_ext | |
32087 | cat >>conftest.$ac_ext <<_ACEOF | |
32088 | /* end confdefs.h. */ | |
32089 | #include <$ac_header> | |
32090 | _ACEOF | |
32091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32093 | ac_status=$? | |
32094 | grep -v '^ *+' conftest.er1 >conftest.err | |
32095 | rm -f conftest.er1 | |
32096 | cat conftest.err >&5 | |
32097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32098 | (exit $ac_status); } >/dev/null; then | |
32099 | if test -s conftest.err; then | |
32100 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32101 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32102 | else |
32103 | ac_cpp_err= | |
32104 | fi | |
32105 | else | |
32106 | ac_cpp_err=yes | |
32107 | fi | |
32108 | if test -z "$ac_cpp_err"; then | |
32109 | ac_header_preproc=yes | |
32110 | else | |
32111 | echo "$as_me: failed program was:" >&5 | |
32112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32113 | ||
32114 | ac_header_preproc=no | |
32115 | fi | |
32116 | rm -f conftest.err conftest.$ac_ext | |
32117 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32118 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32119 | ||
32120 | # So? What about this header? | |
ac1cb8d3 VS |
32121 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32122 | yes:no: ) | |
a848cd7e SC |
32123 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32124 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32125 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32126 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32127 | ac_header_preproc=yes | |
a848cd7e | 32128 | ;; |
ac1cb8d3 | 32129 | no:yes:* ) |
a848cd7e SC |
32130 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32131 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32132 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32133 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32134 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32135 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32136 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32137 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32138 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32139 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32140 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32141 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32142 | ( |
32143 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32144 | ## ----------------------------------------- ## |
32145 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32146 | ## ----------------------------------------- ## | |
a848cd7e SC |
32147 | _ASBOX |
32148 | ) | | |
32149 | sed "s/^/$as_me: WARNING: /" >&2 | |
32150 | ;; | |
32151 | esac | |
32152 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32156 | else | |
ac1cb8d3 | 32157 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32158 | fi |
32159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32161 | ||
32162 | fi | |
32163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32164 | cat >>confdefs.h <<_ACEOF | |
32165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32166 | _ACEOF | |
32167 | ||
32168 | fi | |
32169 | ||
32170 | done | |
32171 | ||
32172 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32173 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32174 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32175 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32177 | else | |
32178 | cat >conftest.$ac_ext <<_ACEOF | |
32179 | /* confdefs.h. */ | |
32180 | _ACEOF | |
32181 | cat confdefs.h >>conftest.$ac_ext | |
32182 | cat >>conftest.$ac_ext <<_ACEOF | |
32183 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32184 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32185 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32186 | #define sched_yield innocuous_sched_yield | |
32187 | ||
a848cd7e SC |
32188 | /* System header to define __stub macros and hopefully few prototypes, |
32189 | which can conflict with char sched_yield (); below. | |
32190 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32191 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32192 | |
a848cd7e SC |
32193 | #ifdef __STDC__ |
32194 | # include <limits.h> | |
32195 | #else | |
32196 | # include <assert.h> | |
32197 | #endif | |
ac1cb8d3 VS |
32198 | |
32199 | #undef sched_yield | |
32200 | ||
a848cd7e SC |
32201 | /* Override any gcc2 internal prototype to avoid an error. */ |
32202 | #ifdef __cplusplus | |
32203 | extern "C" | |
32204 | { | |
32205 | #endif | |
32206 | /* We use char because int might match the return type of a gcc2 | |
32207 | builtin and then its argument prototype would still apply. */ | |
32208 | char sched_yield (); | |
32209 | /* The GNU C library defines this for functions which it implements | |
32210 | to always fail with ENOSYS. Some functions are actually named | |
32211 | something starting with __ and the normal name is an alias. */ | |
32212 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32213 | choke me | |
32214 | #else | |
32215 | char (*f) () = sched_yield; | |
32216 | #endif | |
32217 | #ifdef __cplusplus | |
32218 | } | |
32219 | #endif | |
32220 | ||
32221 | int | |
32222 | main () | |
32223 | { | |
32224 | return f != sched_yield; | |
32225 | ; | |
32226 | return 0; | |
32227 | } | |
32228 | _ACEOF | |
32229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32231 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32232 | ac_status=$? |
ac1cb8d3 VS |
32233 | grep -v '^ *+' conftest.er1 >conftest.err |
32234 | rm -f conftest.er1 | |
32235 | cat conftest.err >&5 | |
a848cd7e SC |
32236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32237 | (exit $ac_status); } && | |
5dcf30a0 RN |
32238 | { ac_try='test -z "$ac_c_werror_flag" |
32239 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32241 | (eval $ac_try) 2>&5 | |
32242 | ac_status=$? | |
32243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32244 | (exit $ac_status); }; } && | |
32245 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32247 | (eval $ac_try) 2>&5 | |
32248 | ac_status=$? | |
32249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32250 | (exit $ac_status); }; }; then | |
32251 | ac_cv_func_sched_yield=yes | |
32252 | else | |
32253 | echo "$as_me: failed program was:" >&5 | |
32254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32255 | ||
32256 | ac_cv_func_sched_yield=no | |
32257 | fi | |
ac1cb8d3 VS |
32258 | rm -f conftest.err conftest.$ac_objext \ |
32259 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32260 | fi |
32261 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32262 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32263 | if test $ac_cv_func_sched_yield = yes; then | |
32264 | cat >>confdefs.h <<\_ACEOF | |
32265 | #define HAVE_SCHED_YIELD 1 | |
32266 | _ACEOF | |
32267 | ||
32268 | else | |
32269 | ||
32270 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32271 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32272 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32274 | else | |
32275 | ac_check_lib_save_LIBS=$LIBS | |
32276 | LIBS="-lposix4 $LIBS" | |
32277 | cat >conftest.$ac_ext <<_ACEOF | |
32278 | /* confdefs.h. */ | |
32279 | _ACEOF | |
32280 | cat confdefs.h >>conftest.$ac_ext | |
32281 | cat >>conftest.$ac_ext <<_ACEOF | |
32282 | /* end confdefs.h. */ | |
32283 | ||
32284 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32285 | #ifdef __cplusplus | |
32286 | extern "C" | |
32287 | #endif | |
32288 | /* We use char because int might match the return type of a gcc2 | |
32289 | builtin and then its argument prototype would still apply. */ | |
32290 | char sched_yield (); | |
32291 | int | |
32292 | main () | |
32293 | { | |
32294 | sched_yield (); | |
32295 | ; | |
32296 | return 0; | |
32297 | } | |
32298 | _ACEOF | |
32299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32301 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32302 | ac_status=$? |
ac1cb8d3 VS |
32303 | grep -v '^ *+' conftest.er1 >conftest.err |
32304 | rm -f conftest.er1 | |
32305 | cat conftest.err >&5 | |
a848cd7e SC |
32306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32307 | (exit $ac_status); } && | |
5dcf30a0 RN |
32308 | { ac_try='test -z "$ac_c_werror_flag" |
32309 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32311 | (eval $ac_try) 2>&5 | |
32312 | ac_status=$? | |
32313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32314 | (exit $ac_status); }; } && | |
32315 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32317 | (eval $ac_try) 2>&5 | |
32318 | ac_status=$? | |
32319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32320 | (exit $ac_status); }; }; then | |
32321 | ac_cv_lib_posix4_sched_yield=yes | |
32322 | else | |
32323 | echo "$as_me: failed program was:" >&5 | |
32324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32325 | ||
32326 | ac_cv_lib_posix4_sched_yield=no | |
32327 | fi | |
ac1cb8d3 VS |
32328 | rm -f conftest.err conftest.$ac_objext \ |
32329 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32330 | LIBS=$ac_check_lib_save_LIBS |
32331 | fi | |
32332 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32333 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32334 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32335 | cat >>confdefs.h <<\_ACEOF | |
32336 | #define HAVE_SCHED_YIELD 1 | |
32337 | _ACEOF | |
32338 | POSIX4_LINK=" -lposix4" | |
32339 | else | |
32340 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32341 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32342 | ||
32343 | fi | |
32344 | ||
32345 | ||
32346 | ||
32347 | fi | |
32348 | ||
32349 | fi | |
32350 | ||
32351 | HAVE_PRIOR_FUNCS=0 | |
32352 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32353 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32354 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32356 | else | |
32357 | cat >conftest.$ac_ext <<_ACEOF | |
32358 | /* confdefs.h. */ | |
32359 | _ACEOF | |
32360 | cat confdefs.h >>conftest.$ac_ext | |
32361 | cat >>conftest.$ac_ext <<_ACEOF | |
32362 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32363 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32364 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32365 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32366 | ||
a848cd7e SC |
32367 | /* System header to define __stub macros and hopefully few prototypes, |
32368 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32369 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32370 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32371 | |
a848cd7e SC |
32372 | #ifdef __STDC__ |
32373 | # include <limits.h> | |
32374 | #else | |
32375 | # include <assert.h> | |
32376 | #endif | |
ac1cb8d3 VS |
32377 | |
32378 | #undef pthread_attr_getschedpolicy | |
32379 | ||
a848cd7e SC |
32380 | /* Override any gcc2 internal prototype to avoid an error. */ |
32381 | #ifdef __cplusplus | |
32382 | extern "C" | |
32383 | { | |
32384 | #endif | |
32385 | /* We use char because int might match the return type of a gcc2 | |
32386 | builtin and then its argument prototype would still apply. */ | |
32387 | char pthread_attr_getschedpolicy (); | |
32388 | /* The GNU C library defines this for functions which it implements | |
32389 | to always fail with ENOSYS. Some functions are actually named | |
32390 | something starting with __ and the normal name is an alias. */ | |
32391 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32392 | choke me | |
32393 | #else | |
32394 | char (*f) () = pthread_attr_getschedpolicy; | |
32395 | #endif | |
32396 | #ifdef __cplusplus | |
32397 | } | |
32398 | #endif | |
32399 | ||
32400 | int | |
32401 | main () | |
32402 | { | |
32403 | return f != pthread_attr_getschedpolicy; | |
32404 | ; | |
32405 | return 0; | |
32406 | } | |
32407 | _ACEOF | |
32408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32410 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32411 | ac_status=$? |
ac1cb8d3 VS |
32412 | grep -v '^ *+' conftest.er1 >conftest.err |
32413 | rm -f conftest.er1 | |
32414 | cat conftest.err >&5 | |
a848cd7e SC |
32415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32416 | (exit $ac_status); } && | |
5dcf30a0 RN |
32417 | { ac_try='test -z "$ac_c_werror_flag" |
32418 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32420 | (eval $ac_try) 2>&5 | |
32421 | ac_status=$? | |
32422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32423 | (exit $ac_status); }; } && | |
32424 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32426 | (eval $ac_try) 2>&5 | |
32427 | ac_status=$? | |
32428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32429 | (exit $ac_status); }; }; then | |
32430 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32431 | else | |
32432 | echo "$as_me: failed program was:" >&5 | |
32433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32434 | ||
32435 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32436 | fi | |
ac1cb8d3 VS |
32437 | rm -f conftest.err conftest.$ac_objext \ |
32438 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32439 | fi |
32440 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32441 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32442 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32443 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32444 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32445 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32447 | else | |
32448 | cat >conftest.$ac_ext <<_ACEOF | |
32449 | /* confdefs.h. */ | |
32450 | _ACEOF | |
32451 | cat confdefs.h >>conftest.$ac_ext | |
32452 | cat >>conftest.$ac_ext <<_ACEOF | |
32453 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32454 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32455 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32456 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32457 | ||
a848cd7e SC |
32458 | /* System header to define __stub macros and hopefully few prototypes, |
32459 | which can conflict with char pthread_attr_setschedparam (); below. | |
32460 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32461 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32462 | |
a848cd7e SC |
32463 | #ifdef __STDC__ |
32464 | # include <limits.h> | |
32465 | #else | |
32466 | # include <assert.h> | |
32467 | #endif | |
ac1cb8d3 VS |
32468 | |
32469 | #undef pthread_attr_setschedparam | |
32470 | ||
a848cd7e SC |
32471 | /* Override any gcc2 internal prototype to avoid an error. */ |
32472 | #ifdef __cplusplus | |
32473 | extern "C" | |
32474 | { | |
32475 | #endif | |
32476 | /* We use char because int might match the return type of a gcc2 | |
32477 | builtin and then its argument prototype would still apply. */ | |
32478 | char pthread_attr_setschedparam (); | |
32479 | /* The GNU C library defines this for functions which it implements | |
32480 | to always fail with ENOSYS. Some functions are actually named | |
32481 | something starting with __ and the normal name is an alias. */ | |
32482 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32483 | choke me | |
32484 | #else | |
32485 | char (*f) () = pthread_attr_setschedparam; | |
32486 | #endif | |
32487 | #ifdef __cplusplus | |
32488 | } | |
32489 | #endif | |
32490 | ||
32491 | int | |
32492 | main () | |
32493 | { | |
32494 | return f != pthread_attr_setschedparam; | |
32495 | ; | |
32496 | return 0; | |
32497 | } | |
32498 | _ACEOF | |
32499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32501 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32502 | ac_status=$? |
ac1cb8d3 VS |
32503 | grep -v '^ *+' conftest.er1 >conftest.err |
32504 | rm -f conftest.er1 | |
32505 | cat conftest.err >&5 | |
a848cd7e SC |
32506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32507 | (exit $ac_status); } && | |
5dcf30a0 RN |
32508 | { ac_try='test -z "$ac_c_werror_flag" |
32509 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32511 | (eval $ac_try) 2>&5 | |
32512 | ac_status=$? | |
32513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32514 | (exit $ac_status); }; } && | |
32515 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32517 | (eval $ac_try) 2>&5 | |
32518 | ac_status=$? | |
32519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32520 | (exit $ac_status); }; }; then | |
32521 | ac_cv_func_pthread_attr_setschedparam=yes | |
32522 | else | |
32523 | echo "$as_me: failed program was:" >&5 | |
32524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32525 | ||
32526 | ac_cv_func_pthread_attr_setschedparam=no | |
32527 | fi | |
ac1cb8d3 VS |
32528 | rm -f conftest.err conftest.$ac_objext \ |
32529 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32530 | fi |
32531 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32532 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32533 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32534 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32535 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32536 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32538 | else | |
32539 | cat >conftest.$ac_ext <<_ACEOF | |
32540 | /* confdefs.h. */ | |
32541 | _ACEOF | |
32542 | cat confdefs.h >>conftest.$ac_ext | |
32543 | cat >>conftest.$ac_ext <<_ACEOF | |
32544 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32545 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32546 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32547 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32548 | ||
a848cd7e SC |
32549 | /* System header to define __stub macros and hopefully few prototypes, |
32550 | which can conflict with char sched_get_priority_max (); below. | |
32551 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32552 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32553 | |
a848cd7e SC |
32554 | #ifdef __STDC__ |
32555 | # include <limits.h> | |
32556 | #else | |
32557 | # include <assert.h> | |
32558 | #endif | |
ac1cb8d3 VS |
32559 | |
32560 | #undef sched_get_priority_max | |
32561 | ||
a848cd7e SC |
32562 | /* Override any gcc2 internal prototype to avoid an error. */ |
32563 | #ifdef __cplusplus | |
32564 | extern "C" | |
32565 | { | |
32566 | #endif | |
32567 | /* We use char because int might match the return type of a gcc2 | |
32568 | builtin and then its argument prototype would still apply. */ | |
32569 | char sched_get_priority_max (); | |
32570 | /* The GNU C library defines this for functions which it implements | |
32571 | to always fail with ENOSYS. Some functions are actually named | |
32572 | something starting with __ and the normal name is an alias. */ | |
32573 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32574 | choke me | |
32575 | #else | |
32576 | char (*f) () = sched_get_priority_max; | |
32577 | #endif | |
32578 | #ifdef __cplusplus | |
32579 | } | |
32580 | #endif | |
32581 | ||
32582 | int | |
32583 | main () | |
32584 | { | |
32585 | return f != sched_get_priority_max; | |
32586 | ; | |
32587 | return 0; | |
32588 | } | |
32589 | _ACEOF | |
32590 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32592 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32593 | ac_status=$? |
ac1cb8d3 VS |
32594 | grep -v '^ *+' conftest.er1 >conftest.err |
32595 | rm -f conftest.er1 | |
32596 | cat conftest.err >&5 | |
a848cd7e SC |
32597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32598 | (exit $ac_status); } && | |
5dcf30a0 RN |
32599 | { ac_try='test -z "$ac_c_werror_flag" |
32600 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32602 | (eval $ac_try) 2>&5 | |
32603 | ac_status=$? | |
32604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32605 | (exit $ac_status); }; } && | |
32606 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32608 | (eval $ac_try) 2>&5 | |
32609 | ac_status=$? | |
32610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32611 | (exit $ac_status); }; }; then | |
32612 | ac_cv_func_sched_get_priority_max=yes | |
32613 | else | |
32614 | echo "$as_me: failed program was:" >&5 | |
32615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32616 | ||
32617 | ac_cv_func_sched_get_priority_max=no | |
32618 | fi | |
ac1cb8d3 VS |
32619 | rm -f conftest.err conftest.$ac_objext \ |
32620 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32621 | fi |
32622 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32623 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32624 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32625 | HAVE_PRIOR_FUNCS=1 | |
32626 | else | |
32627 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32628 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32629 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32631 | else | |
32632 | ac_check_lib_save_LIBS=$LIBS | |
32633 | LIBS="-lposix4 $LIBS" | |
32634 | cat >conftest.$ac_ext <<_ACEOF | |
32635 | /* confdefs.h. */ | |
32636 | _ACEOF | |
32637 | cat confdefs.h >>conftest.$ac_ext | |
32638 | cat >>conftest.$ac_ext <<_ACEOF | |
32639 | /* end confdefs.h. */ | |
32640 | ||
32641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32642 | #ifdef __cplusplus | |
32643 | extern "C" | |
32644 | #endif | |
32645 | /* We use char because int might match the return type of a gcc2 | |
32646 | builtin and then its argument prototype would still apply. */ | |
32647 | char sched_get_priority_max (); | |
32648 | int | |
32649 | main () | |
32650 | { | |
32651 | sched_get_priority_max (); | |
32652 | ; | |
32653 | return 0; | |
32654 | } | |
32655 | _ACEOF | |
32656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32658 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32659 | ac_status=$? |
ac1cb8d3 VS |
32660 | grep -v '^ *+' conftest.er1 >conftest.err |
32661 | rm -f conftest.er1 | |
32662 | cat conftest.err >&5 | |
a848cd7e SC |
32663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32664 | (exit $ac_status); } && | |
5dcf30a0 RN |
32665 | { ac_try='test -z "$ac_c_werror_flag" |
32666 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32668 | (eval $ac_try) 2>&5 | |
32669 | ac_status=$? | |
32670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32671 | (exit $ac_status); }; } && | |
32672 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32674 | (eval $ac_try) 2>&5 | |
32675 | ac_status=$? | |
32676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32677 | (exit $ac_status); }; }; then | |
32678 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32679 | else | |
32680 | echo "$as_me: failed program was:" >&5 | |
32681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32682 | ||
32683 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32684 | fi | |
ac1cb8d3 VS |
32685 | rm -f conftest.err conftest.$ac_objext \ |
32686 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32687 | LIBS=$ac_check_lib_save_LIBS |
32688 | fi | |
32689 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32690 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32691 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32692 | ||
32693 | HAVE_PRIOR_FUNCS=1 | |
32694 | POSIX4_LINK=" -lposix4" | |
32695 | ||
32696 | fi | |
32697 | ||
32698 | ||
32699 | fi | |
32700 | ||
32701 | ||
32702 | fi | |
32703 | ||
32704 | ||
32705 | fi | |
32706 | ||
32707 | ||
32708 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32709 | cat >>confdefs.h <<\_ACEOF | |
32710 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32711 | _ACEOF | |
32712 | ||
32713 | else | |
32714 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32715 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32716 | fi | |
32717 | ||
32718 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32719 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32720 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32722 | else | |
32723 | cat >conftest.$ac_ext <<_ACEOF | |
32724 | /* confdefs.h. */ | |
32725 | _ACEOF | |
32726 | cat confdefs.h >>conftest.$ac_ext | |
32727 | cat >>conftest.$ac_ext <<_ACEOF | |
32728 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32729 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32730 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32731 | #define pthread_cancel innocuous_pthread_cancel | |
32732 | ||
a848cd7e SC |
32733 | /* System header to define __stub macros and hopefully few prototypes, |
32734 | which can conflict with char pthread_cancel (); below. | |
32735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32736 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32737 | |
a848cd7e SC |
32738 | #ifdef __STDC__ |
32739 | # include <limits.h> | |
32740 | #else | |
32741 | # include <assert.h> | |
32742 | #endif | |
ac1cb8d3 VS |
32743 | |
32744 | #undef pthread_cancel | |
32745 | ||
a848cd7e SC |
32746 | /* Override any gcc2 internal prototype to avoid an error. */ |
32747 | #ifdef __cplusplus | |
32748 | extern "C" | |
32749 | { | |
32750 | #endif | |
32751 | /* We use char because int might match the return type of a gcc2 | |
32752 | builtin and then its argument prototype would still apply. */ | |
32753 | char pthread_cancel (); | |
32754 | /* The GNU C library defines this for functions which it implements | |
32755 | to always fail with ENOSYS. Some functions are actually named | |
32756 | something starting with __ and the normal name is an alias. */ | |
32757 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32758 | choke me | |
32759 | #else | |
32760 | char (*f) () = pthread_cancel; | |
32761 | #endif | |
32762 | #ifdef __cplusplus | |
32763 | } | |
32764 | #endif | |
32765 | ||
32766 | int | |
32767 | main () | |
32768 | { | |
32769 | return f != pthread_cancel; | |
32770 | ; | |
32771 | return 0; | |
32772 | } | |
32773 | _ACEOF | |
32774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32776 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32777 | ac_status=$? |
ac1cb8d3 VS |
32778 | grep -v '^ *+' conftest.er1 >conftest.err |
32779 | rm -f conftest.er1 | |
32780 | cat conftest.err >&5 | |
a848cd7e SC |
32781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32782 | (exit $ac_status); } && | |
5dcf30a0 RN |
32783 | { ac_try='test -z "$ac_c_werror_flag" |
32784 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32786 | (eval $ac_try) 2>&5 | |
32787 | ac_status=$? | |
32788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32789 | (exit $ac_status); }; } && | |
32790 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32792 | (eval $ac_try) 2>&5 | |
32793 | ac_status=$? | |
32794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32795 | (exit $ac_status); }; }; then | |
32796 | ac_cv_func_pthread_cancel=yes | |
32797 | else | |
32798 | echo "$as_me: failed program was:" >&5 | |
32799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32800 | ||
32801 | ac_cv_func_pthread_cancel=no | |
32802 | fi | |
ac1cb8d3 VS |
32803 | rm -f conftest.err conftest.$ac_objext \ |
32804 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32805 | fi |
32806 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32807 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32808 | if test $ac_cv_func_pthread_cancel = yes; then | |
32809 | cat >>confdefs.h <<\_ACEOF | |
32810 | #define HAVE_PTHREAD_CANCEL 1 | |
32811 | _ACEOF | |
32812 | ||
32813 | else | |
32814 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
32815 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
32816 | fi | |
32817 | ||
32818 | ||
32819 | ||
32820 | ||
32821 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32822 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32823 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32825 | else | |
32826 | ||
32827 | cat >conftest.$ac_ext <<_ACEOF | |
32828 | /* confdefs.h. */ | |
32829 | _ACEOF | |
32830 | cat confdefs.h >>conftest.$ac_ext | |
32831 | cat >>conftest.$ac_ext <<_ACEOF | |
32832 | /* end confdefs.h. */ | |
32833 | #include <pthread.h> | |
32834 | int | |
32835 | main () | |
32836 | { | |
32837 | ||
32838 | pthread_mutexattr_t attr; | |
32839 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
32840 | ||
32841 | ; | |
32842 | return 0; | |
32843 | } | |
32844 | _ACEOF | |
32845 | rm -f conftest.$ac_objext | |
32846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32848 | ac_status=$? |
ac1cb8d3 VS |
32849 | grep -v '^ *+' conftest.er1 >conftest.err |
32850 | rm -f conftest.er1 | |
32851 | cat conftest.err >&5 | |
a848cd7e SC |
32852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32853 | (exit $ac_status); } && | |
5dcf30a0 RN |
32854 | { ac_try='test -z "$ac_c_werror_flag" |
32855 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32857 | (eval $ac_try) 2>&5 | |
32858 | ac_status=$? | |
32859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32860 | (exit $ac_status); }; } && | |
32861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32863 | (eval $ac_try) 2>&5 | |
32864 | ac_status=$? | |
32865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32866 | (exit $ac_status); }; }; then | |
32867 | ||
32868 | wx_cv_type_pthread_mutexattr_t=yes | |
32869 | ||
32870 | else | |
32871 | echo "$as_me: failed program was:" >&5 | |
32872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32873 | ||
32874 | ||
32875 | wx_cv_type_pthread_mutexattr_t=no | |
32876 | ||
32877 | ||
32878 | fi | |
ac1cb8d3 | 32879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32880 | |
32881 | fi | |
32882 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32883 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
32884 | ||
32885 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
32886 | cat >>confdefs.h <<\_ACEOF | |
32887 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
32888 | _ACEOF | |
32889 | ||
32890 | else | |
32891 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
32892 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32893 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32895 | else | |
32896 | ||
32897 | cat >conftest.$ac_ext <<_ACEOF | |
32898 | /* confdefs.h. */ | |
32899 | _ACEOF | |
32900 | cat confdefs.h >>conftest.$ac_ext | |
32901 | cat >>conftest.$ac_ext <<_ACEOF | |
32902 | /* end confdefs.h. */ | |
32903 | #include <pthread.h> | |
32904 | int | |
32905 | main () | |
32906 | { | |
32907 | ||
32908 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
32909 | ||
32910 | ; | |
32911 | return 0; | |
32912 | } | |
32913 | _ACEOF | |
32914 | rm -f conftest.$ac_objext | |
32915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32916 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32917 | ac_status=$? |
ac1cb8d3 VS |
32918 | grep -v '^ *+' conftest.er1 >conftest.err |
32919 | rm -f conftest.er1 | |
32920 | cat conftest.err >&5 | |
a848cd7e SC |
32921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32922 | (exit $ac_status); } && | |
5dcf30a0 RN |
32923 | { ac_try='test -z "$ac_c_werror_flag" |
32924 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32926 | (eval $ac_try) 2>&5 | |
32927 | ac_status=$? | |
32928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32929 | (exit $ac_status); }; } && | |
32930 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32932 | (eval $ac_try) 2>&5 | |
32933 | ac_status=$? | |
32934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32935 | (exit $ac_status); }; }; then | |
32936 | ||
32937 | wx_cv_type_pthread_rec_mutex_init=yes | |
32938 | ||
32939 | else | |
32940 | echo "$as_me: failed program was:" >&5 | |
32941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32942 | ||
32943 | ||
32944 | wx_cv_type_pthread_rec_mutex_init=no | |
32945 | ||
32946 | ||
32947 | fi | |
ac1cb8d3 | 32948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32949 | |
32950 | fi | |
32951 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
32952 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
32953 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
32954 | cat >>confdefs.h <<\_ACEOF | |
32955 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
32956 | _ACEOF | |
32957 | ||
32958 | else | |
32959 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
32960 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
32961 | fi | |
32962 | fi | |
32963 | fi | |
32964 | ||
32965 | else | |
32966 | if test "$wxUSE_THREADS" = "yes" ; then | |
32967 | case "${host}" in | |
32968 | *-*-mingw32* ) | |
32969 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
32970 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
32971 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
32972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32973 | else | |
32974 | ||
32975 | CFLAGS_OLD="$CFLAGS" | |
32976 | CFLAGS="$CFLAGS -mthreads" | |
32977 | cat >conftest.$ac_ext <<_ACEOF | |
32978 | /* confdefs.h. */ | |
32979 | _ACEOF | |
32980 | cat confdefs.h >>conftest.$ac_ext | |
32981 | cat >>conftest.$ac_ext <<_ACEOF | |
32982 | /* end confdefs.h. */ | |
32983 | ||
32984 | int | |
32985 | main () | |
32986 | { | |
32987 | ||
32988 | ; | |
32989 | return 0; | |
32990 | } | |
32991 | _ACEOF | |
32992 | rm -f conftest.$ac_objext | |
32993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32994 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32995 | ac_status=$? |
ac1cb8d3 VS |
32996 | grep -v '^ *+' conftest.er1 >conftest.err |
32997 | rm -f conftest.er1 | |
32998 | cat conftest.err >&5 | |
a848cd7e SC |
32999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33000 | (exit $ac_status); } && | |
5dcf30a0 RN |
33001 | { ac_try='test -z "$ac_c_werror_flag" |
33002 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33004 | (eval $ac_try) 2>&5 | |
33005 | ac_status=$? | |
33006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33007 | (exit $ac_status); }; } && | |
33008 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33010 | (eval $ac_try) 2>&5 | |
33011 | ac_status=$? | |
33012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33013 | (exit $ac_status); }; }; then | |
33014 | wx_cv_cflags_mthread=yes | |
33015 | else | |
33016 | echo "$as_me: failed program was:" >&5 | |
33017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33018 | ||
33019 | wx_cv_cflags_mthread=no | |
33020 | ||
33021 | fi | |
ac1cb8d3 | 33022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33023 | |
33024 | ||
33025 | fi | |
33026 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33027 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33028 | ||
33029 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33030 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33031 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33032 | LDFLAGS="$LDFLAGS -mthreads" | |
33033 | else | |
33034 | CFLAGS="$CFLAGS_OLD" | |
33035 | fi | |
33036 | ;; | |
33037 | *-pc-os2*emx ) | |
33038 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33039 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33040 | LDFLAGS="$LDFLAGS -Zmt" | |
33041 | ;; | |
33042 | esac | |
33043 | fi | |
33044 | fi | |
33045 | ||
33046 | if test "$wxUSE_THREADS" = "yes"; then | |
33047 | cat >>confdefs.h <<\_ACEOF | |
33048 | #define wxUSE_THREADS 1 | |
33049 | _ACEOF | |
33050 | ||
33051 | ||
33052 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33053 | else | |
33054 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33055 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33056 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33057 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33058 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33059 | echo "$as_me:$LINENO: result: yes" >&5 | |
33060 | echo "${ECHO_T}yes" >&6 | |
33061 | else | |
33062 | echo "$as_me:$LINENO: result: no" >&5 | |
33063 | echo "${ECHO_T}no" >&6 | |
33064 | fi | |
33065 | fi | |
33066 | fi | |
33067 | ||
33068 | if test "$WXGTK20" = 1 ; then | |
33069 | cat >>confdefs.h <<_ACEOF | |
33070 | #define __WXGTK20__ $WXGTK20 | |
33071 | _ACEOF | |
33072 | ||
33073 | WXGTK12=1 | |
33074 | fi | |
33075 | ||
33076 | if test "$WXGTK12" = 1 ; then | |
33077 | cat >>confdefs.h <<_ACEOF | |
33078 | #define __WXGTK12__ $WXGTK12 | |
33079 | _ACEOF | |
33080 | ||
33081 | fi | |
33082 | ||
33083 | if test "$WXGTK127" = 1 ; then | |
33084 | cat >>confdefs.h <<_ACEOF | |
33085 | #define __WXGTK127__ $WXGTK127 | |
33086 | _ACEOF | |
33087 | ||
33088 | fi | |
33089 | ||
33090 | if test "$WXGPE" = 1 ; then | |
33091 | cat >>confdefs.h <<_ACEOF | |
33092 | #define __WXGPE__ $WXGPE | |
33093 | _ACEOF | |
33094 | ||
33095 | fi | |
33096 | ||
33097 | WXDEBUG= | |
33098 | ||
33099 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33100 | WXDEBUG="-g" | |
33101 | wxUSE_OPTIMISE=no | |
33102 | fi | |
33103 | ||
33104 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33105 | wxUSE_DEBUG_INFO=yes | |
33106 | WXDEBUG="-ggdb" | |
33107 | fi | |
33108 | ||
33109 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33110 | cat >>confdefs.h <<\_ACEOF | |
33111 | #define WXDEBUG 1 | |
33112 | _ACEOF | |
33113 | ||
33114 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33115 | else | |
33116 | if test "$wxUSE_GTK" = 1 ; then | |
33117 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33118 | fi | |
33119 | fi | |
33120 | ||
33121 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33122 | cat >>confdefs.h <<\_ACEOF | |
33123 | #define wxUSE_MEMORY_TRACING 1 | |
33124 | _ACEOF | |
33125 | ||
33126 | cat >>confdefs.h <<\_ACEOF | |
33127 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33128 | _ACEOF | |
33129 | ||
33130 | cat >>confdefs.h <<\_ACEOF | |
33131 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33132 | _ACEOF | |
33133 | ||
33134 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33135 | fi | |
33136 | ||
33137 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33138 | DMALLOC_LIBS="-ldmalloc" | |
33139 | fi | |
33140 | ||
33141 | PROFILE= | |
33142 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33143 | PROFILE=" -pg" | |
33144 | fi | |
33145 | ||
33146 | CODE_GEN_FLAGS= | |
33147 | CODE_GEN_FLAGS_CXX= | |
33148 | if test "$GCC" = "yes" ; then | |
33149 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33150 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33151 | fi | |
33152 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33153 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33154 | fi | |
33155 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33156 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33157 | fi | |
33158 | ||
33159 | case "${host}" in | |
33160 | powerpc*-*-aix* ) | |
33161 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33162 | ;; | |
33163 | *-hppa* ) | |
33164 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33165 | ;; | |
33166 | esac | |
33167 | fi | |
33168 | ||
33169 | OPTIMISE= | |
33170 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33171 | if test "$GCC" = yes ; then | |
33172 | OPTIMISE="-O0" | |
33173 | fi | |
33174 | else | |
33175 | if test "$GCC" = yes ; then | |
33176 | OPTIMISE="-O2" | |
33177 | ||
33178 | case "${host}" in | |
33179 | i586-*-*|i686-*-* ) | |
33180 | OPTIMISE="${OPTIMISE} " | |
33181 | ;; | |
33182 | esac | |
33183 | else | |
33184 | OPTIMISE="-O" | |
33185 | fi | |
33186 | fi | |
33187 | ||
33188 | ||
33189 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33190 | cat >>confdefs.h <<\_ACEOF | |
33191 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33192 | _ACEOF | |
33193 | ||
33194 | ||
33195 | WXWIN_COMPATIBILITY_2_4="yes" | |
33196 | fi | |
33197 | ||
33198 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33199 | cat >>confdefs.h <<\_ACEOF | |
33200 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33201 | _ACEOF | |
33202 | ||
33203 | fi | |
33204 | ||
33205 | ||
33206 | if test "$wxUSE_GUI" = "yes"; then | |
33207 | cat >>confdefs.h <<\_ACEOF | |
33208 | #define wxUSE_GUI 1 | |
33209 | _ACEOF | |
33210 | ||
33211 | ||
33212 | else | |
33213 | cat >>confdefs.h <<\_ACEOF | |
33214 | #define wxUSE_NOGUI 1 | |
33215 | _ACEOF | |
33216 | ||
33217 | fi | |
33218 | ||
33219 | ||
33220 | if test "$wxUSE_UNIX" = "yes"; then | |
33221 | cat >>confdefs.h <<\_ACEOF | |
33222 | #define wxUSE_UNIX 1 | |
33223 | _ACEOF | |
33224 | ||
33225 | fi | |
33226 | ||
33227 | ||
33228 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33229 | ||
33230 | HAVE_DL_FUNCS=0 | |
33231 | HAVE_SHL_FUNCS=0 | |
33232 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33233 | if test "$USE_DARWIN" = 1; then | |
33234 | HAVE_DL_FUNCS=1 | |
33235 | else | |
33236 | ||
33237 | for ac_func in dlopen | |
33238 | do | |
33239 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33240 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33241 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33242 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33244 | else | |
33245 | cat >conftest.$ac_ext <<_ACEOF | |
33246 | /* confdefs.h. */ | |
33247 | _ACEOF | |
33248 | cat confdefs.h >>conftest.$ac_ext | |
33249 | cat >>conftest.$ac_ext <<_ACEOF | |
33250 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33251 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33252 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33253 | #define $ac_func innocuous_$ac_func | |
33254 | ||
a848cd7e SC |
33255 | /* System header to define __stub macros and hopefully few prototypes, |
33256 | which can conflict with char $ac_func (); below. | |
33257 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33258 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33259 | |
a848cd7e SC |
33260 | #ifdef __STDC__ |
33261 | # include <limits.h> | |
33262 | #else | |
33263 | # include <assert.h> | |
33264 | #endif | |
ac1cb8d3 VS |
33265 | |
33266 | #undef $ac_func | |
33267 | ||
a848cd7e SC |
33268 | /* Override any gcc2 internal prototype to avoid an error. */ |
33269 | #ifdef __cplusplus | |
33270 | extern "C" | |
33271 | { | |
33272 | #endif | |
33273 | /* We use char because int might match the return type of a gcc2 | |
33274 | builtin and then its argument prototype would still apply. */ | |
33275 | char $ac_func (); | |
33276 | /* The GNU C library defines this for functions which it implements | |
33277 | to always fail with ENOSYS. Some functions are actually named | |
33278 | something starting with __ and the normal name is an alias. */ | |
33279 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33280 | choke me | |
33281 | #else | |
33282 | char (*f) () = $ac_func; | |
33283 | #endif | |
33284 | #ifdef __cplusplus | |
33285 | } | |
33286 | #endif | |
33287 | ||
33288 | int | |
33289 | main () | |
33290 | { | |
33291 | return f != $ac_func; | |
33292 | ; | |
33293 | return 0; | |
33294 | } | |
33295 | _ACEOF | |
33296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33298 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33299 | ac_status=$? |
ac1cb8d3 VS |
33300 | grep -v '^ *+' conftest.er1 >conftest.err |
33301 | rm -f conftest.er1 | |
33302 | cat conftest.err >&5 | |
a848cd7e SC |
33303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33304 | (exit $ac_status); } && | |
5dcf30a0 RN |
33305 | { ac_try='test -z "$ac_c_werror_flag" |
33306 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33308 | (eval $ac_try) 2>&5 | |
33309 | ac_status=$? | |
33310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33311 | (exit $ac_status); }; } && | |
33312 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33314 | (eval $ac_try) 2>&5 | |
33315 | ac_status=$? | |
33316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33317 | (exit $ac_status); }; }; then | |
33318 | eval "$as_ac_var=yes" | |
33319 | else | |
33320 | echo "$as_me: failed program was:" >&5 | |
33321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33322 | ||
33323 | eval "$as_ac_var=no" | |
33324 | fi | |
ac1cb8d3 VS |
33325 | rm -f conftest.err conftest.$ac_objext \ |
33326 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33327 | fi |
33328 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33329 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33330 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33331 | cat >>confdefs.h <<_ACEOF | |
33332 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33333 | _ACEOF | |
33334 | ||
33335 | cat >>confdefs.h <<\_ACEOF | |
33336 | #define HAVE_DLOPEN 1 | |
33337 | _ACEOF | |
33338 | ||
33339 | HAVE_DL_FUNCS=1 | |
33340 | ||
33341 | else | |
33342 | ||
33343 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33344 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33345 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33347 | else | |
33348 | ac_check_lib_save_LIBS=$LIBS | |
33349 | LIBS="-ldl $LIBS" | |
33350 | cat >conftest.$ac_ext <<_ACEOF | |
33351 | /* confdefs.h. */ | |
33352 | _ACEOF | |
33353 | cat confdefs.h >>conftest.$ac_ext | |
33354 | cat >>conftest.$ac_ext <<_ACEOF | |
33355 | /* end confdefs.h. */ | |
33356 | ||
33357 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33358 | #ifdef __cplusplus | |
33359 | extern "C" | |
33360 | #endif | |
33361 | /* We use char because int might match the return type of a gcc2 | |
33362 | builtin and then its argument prototype would still apply. */ | |
33363 | char dlopen (); | |
33364 | int | |
33365 | main () | |
33366 | { | |
33367 | dlopen (); | |
33368 | ; | |
33369 | return 0; | |
33370 | } | |
33371 | _ACEOF | |
33372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33374 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33375 | ac_status=$? |
ac1cb8d3 VS |
33376 | grep -v '^ *+' conftest.er1 >conftest.err |
33377 | rm -f conftest.er1 | |
33378 | cat conftest.err >&5 | |
a848cd7e SC |
33379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33380 | (exit $ac_status); } && | |
5dcf30a0 RN |
33381 | { ac_try='test -z "$ac_c_werror_flag" |
33382 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33384 | (eval $ac_try) 2>&5 | |
33385 | ac_status=$? | |
33386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33387 | (exit $ac_status); }; } && | |
33388 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33390 | (eval $ac_try) 2>&5 | |
33391 | ac_status=$? | |
33392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33393 | (exit $ac_status); }; }; then | |
33394 | ac_cv_lib_dl_dlopen=yes | |
33395 | else | |
33396 | echo "$as_me: failed program was:" >&5 | |
33397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33398 | ||
33399 | ac_cv_lib_dl_dlopen=no | |
33400 | fi | |
ac1cb8d3 VS |
33401 | rm -f conftest.err conftest.$ac_objext \ |
33402 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33403 | LIBS=$ac_check_lib_save_LIBS |
33404 | fi | |
33405 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33406 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33407 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33408 | ||
33409 | cat >>confdefs.h <<\_ACEOF | |
33410 | #define HAVE_DLOPEN 1 | |
33411 | _ACEOF | |
33412 | ||
33413 | HAVE_DL_FUNCS=1 | |
33414 | DL_LINK=" -ldl$DL_LINK" | |
33415 | ||
33416 | else | |
33417 | ||
33418 | ||
33419 | for ac_func in shl_load | |
33420 | do | |
33421 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33422 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33423 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33424 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33426 | else | |
33427 | cat >conftest.$ac_ext <<_ACEOF | |
33428 | /* confdefs.h. */ | |
33429 | _ACEOF | |
33430 | cat confdefs.h >>conftest.$ac_ext | |
33431 | cat >>conftest.$ac_ext <<_ACEOF | |
33432 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33433 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33434 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33435 | #define $ac_func innocuous_$ac_func | |
33436 | ||
a848cd7e SC |
33437 | /* System header to define __stub macros and hopefully few prototypes, |
33438 | which can conflict with char $ac_func (); below. | |
33439 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33440 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33441 | |
a848cd7e SC |
33442 | #ifdef __STDC__ |
33443 | # include <limits.h> | |
33444 | #else | |
33445 | # include <assert.h> | |
33446 | #endif | |
ac1cb8d3 VS |
33447 | |
33448 | #undef $ac_func | |
33449 | ||
a848cd7e SC |
33450 | /* Override any gcc2 internal prototype to avoid an error. */ |
33451 | #ifdef __cplusplus | |
33452 | extern "C" | |
33453 | { | |
33454 | #endif | |
33455 | /* We use char because int might match the return type of a gcc2 | |
33456 | builtin and then its argument prototype would still apply. */ | |
33457 | char $ac_func (); | |
33458 | /* The GNU C library defines this for functions which it implements | |
33459 | to always fail with ENOSYS. Some functions are actually named | |
33460 | something starting with __ and the normal name is an alias. */ | |
33461 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33462 | choke me | |
33463 | #else | |
33464 | char (*f) () = $ac_func; | |
33465 | #endif | |
33466 | #ifdef __cplusplus | |
33467 | } | |
33468 | #endif | |
33469 | ||
33470 | int | |
33471 | main () | |
33472 | { | |
33473 | return f != $ac_func; | |
33474 | ; | |
33475 | return 0; | |
33476 | } | |
33477 | _ACEOF | |
33478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33480 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33481 | ac_status=$? |
ac1cb8d3 VS |
33482 | grep -v '^ *+' conftest.er1 >conftest.err |
33483 | rm -f conftest.er1 | |
33484 | cat conftest.err >&5 | |
a848cd7e SC |
33485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33486 | (exit $ac_status); } && | |
5dcf30a0 RN |
33487 | { ac_try='test -z "$ac_c_werror_flag" |
33488 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33490 | (eval $ac_try) 2>&5 | |
33491 | ac_status=$? | |
33492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33493 | (exit $ac_status); }; } && | |
33494 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33496 | (eval $ac_try) 2>&5 | |
33497 | ac_status=$? | |
33498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33499 | (exit $ac_status); }; }; then | |
33500 | eval "$as_ac_var=yes" | |
33501 | else | |
33502 | echo "$as_me: failed program was:" >&5 | |
33503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33504 | ||
33505 | eval "$as_ac_var=no" | |
33506 | fi | |
ac1cb8d3 VS |
33507 | rm -f conftest.err conftest.$ac_objext \ |
33508 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33509 | fi |
33510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33511 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33512 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33513 | cat >>confdefs.h <<_ACEOF | |
33514 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33515 | _ACEOF | |
33516 | ||
33517 | cat >>confdefs.h <<\_ACEOF | |
33518 | #define HAVE_SHL_LOAD 1 | |
33519 | _ACEOF | |
33520 | ||
33521 | HAVE_SHL_FUNCS=1 | |
33522 | ||
33523 | else | |
33524 | ||
33525 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33526 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33527 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33529 | else | |
33530 | ac_check_lib_save_LIBS=$LIBS | |
33531 | LIBS="-lshl_load $LIBS" | |
33532 | cat >conftest.$ac_ext <<_ACEOF | |
33533 | /* confdefs.h. */ | |
33534 | _ACEOF | |
33535 | cat confdefs.h >>conftest.$ac_ext | |
33536 | cat >>conftest.$ac_ext <<_ACEOF | |
33537 | /* end confdefs.h. */ | |
33538 | ||
33539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33540 | #ifdef __cplusplus | |
33541 | extern "C" | |
33542 | #endif | |
33543 | /* We use char because int might match the return type of a gcc2 | |
33544 | builtin and then its argument prototype would still apply. */ | |
33545 | char dld (); | |
33546 | int | |
33547 | main () | |
33548 | { | |
33549 | dld (); | |
33550 | ; | |
33551 | return 0; | |
33552 | } | |
33553 | _ACEOF | |
33554 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33556 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33557 | ac_status=$? |
ac1cb8d3 VS |
33558 | grep -v '^ *+' conftest.er1 >conftest.err |
33559 | rm -f conftest.er1 | |
33560 | cat conftest.err >&5 | |
a848cd7e SC |
33561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33562 | (exit $ac_status); } && | |
5dcf30a0 RN |
33563 | { ac_try='test -z "$ac_c_werror_flag" |
33564 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33566 | (eval $ac_try) 2>&5 | |
33567 | ac_status=$? | |
33568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33569 | (exit $ac_status); }; } && | |
33570 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33572 | (eval $ac_try) 2>&5 | |
33573 | ac_status=$? | |
33574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33575 | (exit $ac_status); }; }; then | |
33576 | ac_cv_lib_shl_load_dld=yes | |
33577 | else | |
33578 | echo "$as_me: failed program was:" >&5 | |
33579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33580 | ||
33581 | ac_cv_lib_shl_load_dld=no | |
33582 | fi | |
ac1cb8d3 VS |
33583 | rm -f conftest.err conftest.$ac_objext \ |
33584 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33585 | LIBS=$ac_check_lib_save_LIBS |
33586 | fi | |
33587 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33588 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33589 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33590 | ||
33591 | HAVE_SHL_FUNCS=1 | |
33592 | DL_LINK=" -ldld$DL_LINK" | |
33593 | ||
33594 | fi | |
33595 | ||
33596 | ||
33597 | fi | |
33598 | done | |
33599 | ||
33600 | ||
33601 | fi | |
33602 | ||
33603 | ||
33604 | fi | |
33605 | done | |
33606 | ||
33607 | ||
33608 | if test "$HAVE_DL_FUNCS" = 1; then | |
33609 | ||
33610 | for ac_func in dlerror | |
33611 | do | |
33612 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33613 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33614 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33615 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33617 | else | |
33618 | cat >conftest.$ac_ext <<_ACEOF | |
33619 | /* confdefs.h. */ | |
33620 | _ACEOF | |
33621 | cat confdefs.h >>conftest.$ac_ext | |
33622 | cat >>conftest.$ac_ext <<_ACEOF | |
33623 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33624 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33625 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33626 | #define $ac_func innocuous_$ac_func | |
33627 | ||
a848cd7e SC |
33628 | /* System header to define __stub macros and hopefully few prototypes, |
33629 | which can conflict with char $ac_func (); below. | |
33630 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33631 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33632 | |
a848cd7e SC |
33633 | #ifdef __STDC__ |
33634 | # include <limits.h> | |
33635 | #else | |
33636 | # include <assert.h> | |
33637 | #endif | |
ac1cb8d3 VS |
33638 | |
33639 | #undef $ac_func | |
33640 | ||
a848cd7e SC |
33641 | /* Override any gcc2 internal prototype to avoid an error. */ |
33642 | #ifdef __cplusplus | |
33643 | extern "C" | |
33644 | { | |
33645 | #endif | |
33646 | /* We use char because int might match the return type of a gcc2 | |
33647 | builtin and then its argument prototype would still apply. */ | |
33648 | char $ac_func (); | |
33649 | /* The GNU C library defines this for functions which it implements | |
33650 | to always fail with ENOSYS. Some functions are actually named | |
33651 | something starting with __ and the normal name is an alias. */ | |
33652 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33653 | choke me | |
33654 | #else | |
33655 | char (*f) () = $ac_func; | |
33656 | #endif | |
33657 | #ifdef __cplusplus | |
33658 | } | |
33659 | #endif | |
33660 | ||
33661 | int | |
33662 | main () | |
33663 | { | |
33664 | return f != $ac_func; | |
33665 | ; | |
33666 | return 0; | |
33667 | } | |
33668 | _ACEOF | |
33669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33671 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33672 | ac_status=$? |
ac1cb8d3 VS |
33673 | grep -v '^ *+' conftest.er1 >conftest.err |
33674 | rm -f conftest.er1 | |
33675 | cat conftest.err >&5 | |
a848cd7e SC |
33676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33677 | (exit $ac_status); } && | |
5dcf30a0 RN |
33678 | { ac_try='test -z "$ac_c_werror_flag" |
33679 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33681 | (eval $ac_try) 2>&5 | |
33682 | ac_status=$? | |
33683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33684 | (exit $ac_status); }; } && | |
33685 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33687 | (eval $ac_try) 2>&5 | |
33688 | ac_status=$? | |
33689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33690 | (exit $ac_status); }; }; then | |
33691 | eval "$as_ac_var=yes" | |
33692 | else | |
33693 | echo "$as_me: failed program was:" >&5 | |
33694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33695 | ||
33696 | eval "$as_ac_var=no" | |
33697 | fi | |
ac1cb8d3 VS |
33698 | rm -f conftest.err conftest.$ac_objext \ |
33699 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33700 | fi |
33701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33702 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33703 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33704 | cat >>confdefs.h <<_ACEOF | |
33705 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33706 | _ACEOF | |
33707 | cat >>confdefs.h <<\_ACEOF | |
33708 | #define HAVE_DLERROR 1 | |
33709 | _ACEOF | |
33710 | ||
33711 | else | |
33712 | ||
33713 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33714 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33715 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33717 | else | |
33718 | ac_check_lib_save_LIBS=$LIBS | |
33719 | LIBS="-ldl $LIBS" | |
33720 | cat >conftest.$ac_ext <<_ACEOF | |
33721 | /* confdefs.h. */ | |
33722 | _ACEOF | |
33723 | cat confdefs.h >>conftest.$ac_ext | |
33724 | cat >>conftest.$ac_ext <<_ACEOF | |
33725 | /* end confdefs.h. */ | |
33726 | ||
33727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33728 | #ifdef __cplusplus | |
33729 | extern "C" | |
33730 | #endif | |
33731 | /* We use char because int might match the return type of a gcc2 | |
33732 | builtin and then its argument prototype would still apply. */ | |
33733 | char dlerror (); | |
33734 | int | |
33735 | main () | |
33736 | { | |
33737 | dlerror (); | |
33738 | ; | |
33739 | return 0; | |
33740 | } | |
33741 | _ACEOF | |
33742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33744 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33745 | ac_status=$? |
ac1cb8d3 VS |
33746 | grep -v '^ *+' conftest.er1 >conftest.err |
33747 | rm -f conftest.er1 | |
33748 | cat conftest.err >&5 | |
a848cd7e SC |
33749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33750 | (exit $ac_status); } && | |
5dcf30a0 RN |
33751 | { ac_try='test -z "$ac_c_werror_flag" |
33752 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33754 | (eval $ac_try) 2>&5 | |
33755 | ac_status=$? | |
33756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33757 | (exit $ac_status); }; } && | |
33758 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33760 | (eval $ac_try) 2>&5 | |
33761 | ac_status=$? | |
33762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33763 | (exit $ac_status); }; }; then | |
33764 | ac_cv_lib_dl_dlerror=yes | |
33765 | else | |
33766 | echo "$as_me: failed program was:" >&5 | |
33767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33768 | ||
33769 | ac_cv_lib_dl_dlerror=no | |
33770 | fi | |
ac1cb8d3 VS |
33771 | rm -f conftest.err conftest.$ac_objext \ |
33772 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33773 | LIBS=$ac_check_lib_save_LIBS |
33774 | fi | |
33775 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33776 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33777 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33778 | cat >>confdefs.h <<\_ACEOF | |
33779 | #define HAVE_DLERROR 1 | |
33780 | _ACEOF | |
33781 | ||
33782 | fi | |
33783 | ||
33784 | ||
33785 | ||
33786 | fi | |
33787 | done | |
33788 | ||
33789 | fi | |
33790 | fi | |
33791 | ||
33792 | if test "$HAVE_DL_FUNCS" = 0; then | |
33793 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33794 | if test "$USE_UNIX" = 1; then | |
33795 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33796 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33797 | wxUSE_DYNAMIC_LOADER=no | |
33798 | wxUSE_DYNLIB_CLASS=no | |
33799 | else | |
33800 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33801 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33802 | fi | |
33803 | fi | |
33804 | fi | |
33805 | fi | |
33806 | fi | |
33807 | ||
33808 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
33809 | cat >>confdefs.h <<\_ACEOF | |
33810 | #define wxUSE_DYNAMIC_LOADER 1 | |
33811 | _ACEOF | |
33812 | ||
33813 | fi | |
33814 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33815 | cat >>confdefs.h <<\_ACEOF | |
33816 | #define wxUSE_DYNLIB_CLASS 1 | |
33817 | _ACEOF | |
33818 | ||
33819 | fi | |
33820 | ||
33821 | ||
33822 | ||
33823 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33824 | if test "$wxUSE_SHARED" = "no" ; then | |
33825 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
33826 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
33827 | wxUSE_PLUGINS=no | |
33828 | fi | |
33829 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
33830 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
33831 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
33832 | wxUSE_PLUGINS=no | |
33833 | fi | |
33834 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
33835 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
33836 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
33837 | wxUSE_PLUGINS=no | |
33838 | fi | |
33839 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33840 | cat >>confdefs.h <<\_ACEOF | |
33841 | #define wxUSE_PLUGINS 1 | |
33842 | _ACEOF | |
33843 | ||
33844 | fi | |
33845 | fi | |
33846 | ||
33847 | ||
33848 | if test "$wxUSE_STL" = "yes"; then | |
33849 | cat >>confdefs.h <<\_ACEOF | |
33850 | #define wxUSE_STL 1 | |
33851 | _ACEOF | |
33852 | ||
33853 | fi | |
33854 | ||
33855 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
33856 | cat >>confdefs.h <<\_ACEOF | |
33857 | #define wxUSE_APPLE_IEEE 1 | |
33858 | _ACEOF | |
33859 | ||
33860 | fi | |
33861 | ||
33862 | if test "$wxUSE_TIMER" = "yes"; then | |
33863 | cat >>confdefs.h <<\_ACEOF | |
33864 | #define wxUSE_TIMER 1 | |
33865 | _ACEOF | |
33866 | ||
33867 | fi | |
33868 | ||
33869 | WITH_PLUGIN_SDL=0 | |
33870 | if test "$wxUSE_SOUND" = "yes"; then | |
33871 | if test "$USE_UNIX" = "1" ; then | |
33872 | ||
33873 | for ac_header in sys/soundcard.h | |
33874 | do | |
33875 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33877 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33881 | fi | |
33882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33884 | else | |
33885 | # Is the header compilable? | |
33886 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33887 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33888 | cat >conftest.$ac_ext <<_ACEOF | |
33889 | /* confdefs.h. */ | |
33890 | _ACEOF | |
33891 | cat confdefs.h >>conftest.$ac_ext | |
33892 | cat >>conftest.$ac_ext <<_ACEOF | |
33893 | /* end confdefs.h. */ | |
33894 | $ac_includes_default | |
33895 | #include <$ac_header> | |
33896 | _ACEOF | |
33897 | rm -f conftest.$ac_objext | |
33898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33899 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33900 | ac_status=$? |
ac1cb8d3 VS |
33901 | grep -v '^ *+' conftest.er1 >conftest.err |
33902 | rm -f conftest.er1 | |
33903 | cat conftest.err >&5 | |
a848cd7e SC |
33904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33905 | (exit $ac_status); } && | |
5dcf30a0 RN |
33906 | { ac_try='test -z "$ac_c_werror_flag" |
33907 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33909 | (eval $ac_try) 2>&5 | |
33910 | ac_status=$? | |
33911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33912 | (exit $ac_status); }; } && | |
33913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33915 | (eval $ac_try) 2>&5 | |
33916 | ac_status=$? | |
33917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33918 | (exit $ac_status); }; }; then | |
33919 | ac_header_compiler=yes | |
33920 | else | |
33921 | echo "$as_me: failed program was:" >&5 | |
33922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33923 | ||
33924 | ac_header_compiler=no | |
33925 | fi | |
ac1cb8d3 | 33926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33927 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33928 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33929 | ||
33930 | # Is the header present? | |
33931 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33933 | cat >conftest.$ac_ext <<_ACEOF | |
33934 | /* confdefs.h. */ | |
33935 | _ACEOF | |
33936 | cat confdefs.h >>conftest.$ac_ext | |
33937 | cat >>conftest.$ac_ext <<_ACEOF | |
33938 | /* end confdefs.h. */ | |
33939 | #include <$ac_header> | |
33940 | _ACEOF | |
33941 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33942 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33943 | ac_status=$? | |
33944 | grep -v '^ *+' conftest.er1 >conftest.err | |
33945 | rm -f conftest.er1 | |
33946 | cat conftest.err >&5 | |
33947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33948 | (exit $ac_status); } >/dev/null; then | |
33949 | if test -s conftest.err; then | |
33950 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33951 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33952 | else |
33953 | ac_cpp_err= | |
33954 | fi | |
33955 | else | |
33956 | ac_cpp_err=yes | |
33957 | fi | |
33958 | if test -z "$ac_cpp_err"; then | |
33959 | ac_header_preproc=yes | |
33960 | else | |
33961 | echo "$as_me: failed program was:" >&5 | |
33962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33963 | ||
33964 | ac_header_preproc=no | |
33965 | fi | |
33966 | rm -f conftest.err conftest.$ac_ext | |
33967 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33968 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33969 | ||
33970 | # So? What about this header? | |
ac1cb8d3 VS |
33971 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33972 | yes:no: ) | |
a848cd7e SC |
33973 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33974 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33976 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33977 | ac_header_preproc=yes | |
a848cd7e | 33978 | ;; |
ac1cb8d3 | 33979 | no:yes:* ) |
a848cd7e SC |
33980 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33981 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33982 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33983 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33984 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33985 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33986 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33987 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33988 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33989 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33990 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33991 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33992 | ( |
33993 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33994 | ## ----------------------------------------- ## |
33995 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33996 | ## ----------------------------------------- ## | |
a848cd7e SC |
33997 | _ASBOX |
33998 | ) | | |
33999 | sed "s/^/$as_me: WARNING: /" >&2 | |
34000 | ;; | |
34001 | esac | |
34002 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34003 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34006 | else | |
ac1cb8d3 | 34007 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34008 | fi |
34009 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34010 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34011 | ||
34012 | fi | |
34013 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34014 | cat >>confdefs.h <<_ACEOF | |
34015 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34016 | _ACEOF | |
34017 | ||
34018 | fi | |
34019 | ||
34020 | done | |
34021 | ||
34022 | ||
34023 | if test "$wxUSE_LIBSDL" != "no"; then | |
34024 | ||
34025 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34026 | if test "${with_sdl_prefix+set}" = set; then | |
34027 | withval="$with_sdl_prefix" | |
34028 | sdl_prefix="$withval" | |
34029 | else | |
34030 | sdl_prefix="" | |
34031 | fi; | |
34032 | ||
34033 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34034 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34035 | withval="$with_sdl_exec_prefix" | |
34036 | sdl_exec_prefix="$withval" | |
34037 | else | |
34038 | sdl_exec_prefix="" | |
34039 | fi; | |
34040 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34041 | if test "${enable_sdltest+set}" = set; then | |
34042 | enableval="$enable_sdltest" | |
34043 | ||
34044 | else | |
34045 | enable_sdltest=yes | |
34046 | fi; | |
34047 | ||
34048 | if test x$sdl_exec_prefix != x ; then | |
34049 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34050 | if test x${SDL_CONFIG+set} != xset ; then | |
34051 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34052 | fi | |
34053 | fi | |
34054 | if test x$sdl_prefix != x ; then | |
34055 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34056 | if test x${SDL_CONFIG+set} != xset ; then | |
34057 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34058 | fi | |
34059 | fi | |
34060 | ||
34061 | ||
34062 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34063 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34064 | set dummy sdl-config; ac_word=$2 | |
34065 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34067 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34069 | else | |
34070 | case $SDL_CONFIG in | |
34071 | [\\/]* | ?:[\\/]*) | |
34072 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34073 | ;; | |
34074 | *) | |
34075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34076 | for as_dir in $PATH | |
34077 | do | |
34078 | IFS=$as_save_IFS | |
34079 | test -z "$as_dir" && as_dir=. | |
34080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34082 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34084 | break 2 | |
34085 | fi | |
34086 | done | |
34087 | done | |
34088 | ||
34089 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34090 | ;; | |
34091 | esac | |
34092 | fi | |
34093 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34094 | ||
34095 | if test -n "$SDL_CONFIG"; then | |
34096 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34097 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34098 | else | |
34099 | echo "$as_me:$LINENO: result: no" >&5 | |
34100 | echo "${ECHO_T}no" >&6 | |
34101 | fi | |
34102 | ||
34103 | min_sdl_version=1.2.0 | |
34104 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34105 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34106 | no_sdl="" | |
34107 | if test "$SDL_CONFIG" = "no" ; then | |
34108 | no_sdl=yes | |
34109 | else | |
34110 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34111 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34112 | ||
34113 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34114 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34115 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34116 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34117 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34118 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34119 | if test "x$enable_sdltest" = "xyes" ; then | |
34120 | ac_save_CFLAGS="$CFLAGS" | |
34121 | ac_save_LIBS="$LIBS" | |
34122 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34123 | LIBS="$LIBS $SDL_LIBS" | |
34124 | rm -f conf.sdltest | |
34125 | if test "$cross_compiling" = yes; then | |
34126 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34127 | else | |
34128 | cat >conftest.$ac_ext <<_ACEOF | |
34129 | /* confdefs.h. */ | |
34130 | _ACEOF | |
34131 | cat confdefs.h >>conftest.$ac_ext | |
34132 | cat >>conftest.$ac_ext <<_ACEOF | |
34133 | /* end confdefs.h. */ | |
34134 | ||
34135 | #include <stdio.h> | |
34136 | #include <stdlib.h> | |
34137 | #include <string.h> | |
34138 | #include "SDL.h" | |
34139 | ||
34140 | char* | |
34141 | my_strdup (char *str) | |
34142 | { | |
34143 | char *new_str; | |
34144 | ||
34145 | if (str) | |
34146 | { | |
34147 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34148 | strcpy (new_str, str); | |
34149 | } | |
34150 | else | |
34151 | new_str = NULL; | |
34152 | ||
34153 | return new_str; | |
34154 | } | |
34155 | ||
34156 | int main (int argc, char *argv[]) | |
34157 | { | |
34158 | int major, minor, micro; | |
34159 | char *tmp_version; | |
34160 | ||
34161 | /* This hangs on some systems (?) | |
34162 | system ("touch conf.sdltest"); | |
34163 | */ | |
34164 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34165 | ||
34166 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34167 | tmp_version = my_strdup("$min_sdl_version"); | |
34168 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34169 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34170 | exit(1); | |
34171 | } | |
34172 | ||
34173 | if (($sdl_major_version > major) || | |
34174 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34175 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34176 | { | |
34177 | return 0; | |
34178 | } | |
34179 | else | |
34180 | { | |
34181 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34182 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34183 | printf("*** best to upgrade to the required version.\n"); | |
34184 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34185 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34186 | printf("*** config.cache before re-running configure\n"); | |
34187 | return 1; | |
34188 | } | |
34189 | } | |
34190 | ||
34191 | ||
34192 | _ACEOF | |
34193 | rm -f conftest$ac_exeext | |
34194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34195 | (eval $ac_link) 2>&5 | |
34196 | ac_status=$? | |
34197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34198 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34200 | (eval $ac_try) 2>&5 | |
34201 | ac_status=$? | |
34202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34203 | (exit $ac_status); }; }; then | |
34204 | : | |
34205 | else | |
34206 | echo "$as_me: program exited with status $ac_status" >&5 | |
34207 | echo "$as_me: failed program was:" >&5 | |
34208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34209 | ||
34210 | ( exit $ac_status ) | |
34211 | no_sdl=yes | |
34212 | fi | |
ac1cb8d3 | 34213 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34214 | fi |
34215 | CFLAGS="$ac_save_CFLAGS" | |
34216 | LIBS="$ac_save_LIBS" | |
34217 | fi | |
34218 | fi | |
34219 | if test "x$no_sdl" = x ; then | |
34220 | echo "$as_me:$LINENO: result: yes" >&5 | |
34221 | echo "${ECHO_T}yes" >&6 | |
34222 | ||
34223 | EXTRALIBS_SDL="$SDL_LIBS" | |
34224 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34225 | cat >>confdefs.h <<\_ACEOF | |
34226 | #define wxUSE_LIBSDL 1 | |
34227 | _ACEOF | |
34228 | ||
34229 | ||
34230 | else | |
34231 | echo "$as_me:$LINENO: result: no" >&5 | |
34232 | echo "${ECHO_T}no" >&6 | |
34233 | if test "$SDL_CONFIG" = "no" ; then | |
34234 | echo "*** The sdl-config script installed by SDL could not be found" | |
34235 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34236 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34237 | echo "*** full path to sdl-config." | |
34238 | else | |
34239 | if test -f conf.sdltest ; then | |
34240 | : | |
34241 | else | |
34242 | echo "*** Could not run SDL test program, checking why..." | |
34243 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34244 | LIBS="$LIBS $SDL_LIBS" | |
34245 | cat >conftest.$ac_ext <<_ACEOF | |
34246 | /* confdefs.h. */ | |
34247 | _ACEOF | |
34248 | cat confdefs.h >>conftest.$ac_ext | |
34249 | cat >>conftest.$ac_ext <<_ACEOF | |
34250 | /* end confdefs.h. */ | |
34251 | ||
34252 | #include <stdio.h> | |
34253 | #include "SDL.h" | |
34254 | ||
34255 | int main(int argc, char *argv[]) | |
34256 | { return 0; } | |
34257 | #undef main | |
34258 | #define main K_and_R_C_main | |
34259 | ||
34260 | int | |
34261 | main () | |
34262 | { | |
34263 | return 0; | |
34264 | ; | |
34265 | return 0; | |
34266 | } | |
34267 | _ACEOF | |
34268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34270 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34271 | ac_status=$? |
ac1cb8d3 VS |
34272 | grep -v '^ *+' conftest.er1 >conftest.err |
34273 | rm -f conftest.er1 | |
34274 | cat conftest.err >&5 | |
a848cd7e SC |
34275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34276 | (exit $ac_status); } && | |
5dcf30a0 RN |
34277 | { ac_try='test -z "$ac_c_werror_flag" |
34278 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34280 | (eval $ac_try) 2>&5 | |
34281 | ac_status=$? | |
34282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34283 | (exit $ac_status); }; } && | |
34284 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34286 | (eval $ac_try) 2>&5 | |
34287 | ac_status=$? | |
34288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34289 | (exit $ac_status); }; }; then | |
34290 | echo "*** The test program compiled, but did not run. This usually means" | |
34291 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34292 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34293 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34294 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34295 | echo "*** is required on your system" | |
34296 | echo "***" | |
34297 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34298 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34299 | else | |
34300 | echo "$as_me: failed program was:" >&5 | |
34301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34302 | ||
34303 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34304 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34305 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34306 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34307 | fi | |
ac1cb8d3 VS |
34308 | rm -f conftest.err conftest.$ac_objext \ |
34309 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34310 | CFLAGS="$ac_save_CFLAGS" |
34311 | LIBS="$ac_save_LIBS" | |
34312 | fi | |
34313 | fi | |
34314 | SDL_CFLAGS="" | |
34315 | SDL_LIBS="" | |
34316 | wxUSE_LIBSDL="no" | |
34317 | fi | |
34318 | ||
34319 | ||
34320 | rm -f conf.sdltest | |
34321 | ||
34322 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34323 | WITH_PLUGIN_SDL=1 | |
34324 | fi | |
34325 | fi | |
34326 | fi | |
34327 | ||
34328 | cat >>confdefs.h <<\_ACEOF | |
34329 | #define wxUSE_SOUND 1 | |
34330 | _ACEOF | |
34331 | ||
34332 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34333 | fi | |
34334 | ||
34335 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
34336 | cat >>confdefs.h <<\_ACEOF | |
34337 | #define wxUSE_CMDLINE_PARSER 1 | |
34338 | _ACEOF | |
34339 | ||
34340 | fi | |
34341 | ||
34342 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34343 | cat >>confdefs.h <<\_ACEOF | |
34344 | #define wxUSE_STOPWATCH 1 | |
34345 | _ACEOF | |
34346 | ||
34347 | fi | |
34348 | ||
34349 | if test "$wxUSE_DATETIME" = "yes"; then | |
34350 | cat >>confdefs.h <<\_ACEOF | |
34351 | #define wxUSE_DATETIME 1 | |
34352 | _ACEOF | |
34353 | ||
34354 | fi | |
34355 | ||
34356 | if test "$wxUSE_FILE" = "yes"; then | |
34357 | cat >>confdefs.h <<\_ACEOF | |
34358 | #define wxUSE_FILE 1 | |
34359 | _ACEOF | |
34360 | ||
34361 | fi | |
34362 | ||
34363 | if test "$wxUSE_FFILE" = "yes"; then | |
34364 | cat >>confdefs.h <<\_ACEOF | |
34365 | #define wxUSE_FFILE 1 | |
34366 | _ACEOF | |
34367 | ||
34368 | fi | |
34369 | ||
34370 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34371 | cat >>confdefs.h <<\_ACEOF | |
34372 | #define wxUSE_FILESYSTEM 1 | |
34373 | _ACEOF | |
34374 | ||
34375 | fi | |
34376 | ||
34377 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34378 | cat >>confdefs.h <<\_ACEOF | |
34379 | #define wxUSE_FS_ZIP 1 | |
34380 | _ACEOF | |
34381 | ||
34382 | fi | |
34383 | ||
34384 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34385 | cat >>confdefs.h <<\_ACEOF | |
34386 | #define wxUSE_ZIPSTREAM 1 | |
34387 | _ACEOF | |
34388 | ||
34389 | fi | |
34390 | ||
a848cd7e SC |
34391 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34392 | cat >>confdefs.h <<\_ACEOF | |
34393 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34394 | _ACEOF | |
34395 | ||
34396 | fi | |
34397 | ||
34398 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34399 | cat >>confdefs.h <<\_ACEOF | |
34400 | #define wxUSE_SNGLINST_CHECKER 1 | |
34401 | _ACEOF | |
34402 | ||
34403 | fi | |
34404 | ||
34405 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34406 | cat >>confdefs.h <<\_ACEOF | |
34407 | #define wxUSE_BUSYINFO 1 | |
34408 | _ACEOF | |
34409 | ||
34410 | fi | |
34411 | ||
34412 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34413 | cat >>confdefs.h <<\_ACEOF | |
34414 | #define wxUSE_STD_IOSTREAM 1 | |
34415 | _ACEOF | |
34416 | ||
34417 | fi | |
34418 | ||
34419 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34420 | cat >>confdefs.h <<\_ACEOF | |
34421 | #define wxUSE_TEXTBUFFER 1 | |
34422 | _ACEOF | |
34423 | ||
34424 | fi | |
34425 | ||
34426 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34427 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34428 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34429 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34430 | else | |
34431 | cat >>confdefs.h <<\_ACEOF | |
34432 | #define wxUSE_TEXTFILE 1 | |
34433 | _ACEOF | |
34434 | ||
34435 | fi | |
34436 | fi | |
34437 | ||
34438 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34439 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34440 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34441 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34442 | else | |
34443 | cat >>confdefs.h <<\_ACEOF | |
34444 | #define wxUSE_CONFIG 1 | |
34445 | _ACEOF | |
34446 | ||
34447 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34448 | fi | |
34449 | fi | |
34450 | ||
34451 | if test "$wxUSE_INTL" = "yes" ; then | |
34452 | if test "$wxUSE_FILE" != "yes"; then | |
34453 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34454 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34455 | else | |
34456 | cat >>confdefs.h <<\_ACEOF | |
34457 | #define wxUSE_INTL 1 | |
34458 | _ACEOF | |
34459 | ||
34460 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34461 | GUIDIST="$GUIDIST INTL_DIST" | |
34462 | fi | |
34463 | fi | |
34464 | ||
34465 | if test "$wxUSE_LOG" = "yes"; then | |
34466 | cat >>confdefs.h <<\_ACEOF | |
34467 | #define wxUSE_LOG 1 | |
34468 | _ACEOF | |
34469 | ||
34470 | ||
34471 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34472 | cat >>confdefs.h <<\_ACEOF | |
34473 | #define wxUSE_LOGGUI 1 | |
34474 | _ACEOF | |
34475 | ||
34476 | fi | |
34477 | ||
34478 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34479 | cat >>confdefs.h <<\_ACEOF | |
34480 | #define wxUSE_LOGWINDOW 1 | |
34481 | _ACEOF | |
34482 | ||
34483 | fi | |
34484 | ||
34485 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34486 | cat >>confdefs.h <<\_ACEOF | |
34487 | #define wxUSE_LOG_DIALOG 1 | |
34488 | _ACEOF | |
34489 | ||
34490 | fi | |
34491 | fi | |
34492 | ||
34493 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34494 | cat >>confdefs.h <<\_ACEOF | |
34495 | #define wxUSE_LONGLONG 1 | |
34496 | _ACEOF | |
34497 | ||
34498 | fi | |
34499 | ||
34500 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34501 | cat >>confdefs.h <<\_ACEOF | |
34502 | #define wxUSE_GEOMETRY 1 | |
34503 | _ACEOF | |
34504 | ||
34505 | fi | |
34506 | ||
34507 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34508 | cat >>confdefs.h <<\_ACEOF | |
34509 | #define wxUSE_DIALUP_MANAGER 1 | |
34510 | _ACEOF | |
34511 | ||
34512 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34513 | fi | |
34514 | ||
34515 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34516 | cat >>confdefs.h <<\_ACEOF | |
34517 | #define wxUSE_STREAMS 1 | |
34518 | _ACEOF | |
34519 | ||
34520 | fi | |
34521 | ||
34522 | ||
34523 | if test "$wxUSE_DATETIME" = "yes"; then | |
34524 | ||
34525 | for ac_func in strptime | |
34526 | do | |
34527 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34528 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34529 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34530 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34532 | else | |
34533 | cat >conftest.$ac_ext <<_ACEOF | |
34534 | /* confdefs.h. */ | |
34535 | _ACEOF | |
34536 | cat confdefs.h >>conftest.$ac_ext | |
34537 | cat >>conftest.$ac_ext <<_ACEOF | |
34538 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34539 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34540 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34541 | #define $ac_func innocuous_$ac_func | |
34542 | ||
a848cd7e SC |
34543 | /* System header to define __stub macros and hopefully few prototypes, |
34544 | which can conflict with char $ac_func (); below. | |
34545 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34546 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34547 | |
a848cd7e SC |
34548 | #ifdef __STDC__ |
34549 | # include <limits.h> | |
34550 | #else | |
34551 | # include <assert.h> | |
34552 | #endif | |
ac1cb8d3 VS |
34553 | |
34554 | #undef $ac_func | |
34555 | ||
a848cd7e SC |
34556 | /* Override any gcc2 internal prototype to avoid an error. */ |
34557 | #ifdef __cplusplus | |
34558 | extern "C" | |
34559 | { | |
34560 | #endif | |
34561 | /* We use char because int might match the return type of a gcc2 | |
34562 | builtin and then its argument prototype would still apply. */ | |
34563 | char $ac_func (); | |
34564 | /* The GNU C library defines this for functions which it implements | |
34565 | to always fail with ENOSYS. Some functions are actually named | |
34566 | something starting with __ and the normal name is an alias. */ | |
34567 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34568 | choke me | |
34569 | #else | |
34570 | char (*f) () = $ac_func; | |
34571 | #endif | |
34572 | #ifdef __cplusplus | |
34573 | } | |
34574 | #endif | |
34575 | ||
34576 | int | |
34577 | main () | |
34578 | { | |
34579 | return f != $ac_func; | |
34580 | ; | |
34581 | return 0; | |
34582 | } | |
34583 | _ACEOF | |
34584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34586 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34587 | ac_status=$? |
ac1cb8d3 VS |
34588 | grep -v '^ *+' conftest.er1 >conftest.err |
34589 | rm -f conftest.er1 | |
34590 | cat conftest.err >&5 | |
a848cd7e SC |
34591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34592 | (exit $ac_status); } && | |
5dcf30a0 RN |
34593 | { ac_try='test -z "$ac_c_werror_flag" |
34594 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34596 | (eval $ac_try) 2>&5 | |
34597 | ac_status=$? | |
34598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34599 | (exit $ac_status); }; } && | |
34600 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34602 | (eval $ac_try) 2>&5 | |
34603 | ac_status=$? | |
34604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34605 | (exit $ac_status); }; }; then | |
34606 | eval "$as_ac_var=yes" | |
34607 | else | |
34608 | echo "$as_me: failed program was:" >&5 | |
34609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34610 | ||
34611 | eval "$as_ac_var=no" | |
34612 | fi | |
ac1cb8d3 VS |
34613 | rm -f conftest.err conftest.$ac_objext \ |
34614 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34615 | fi |
34616 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34617 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34618 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34619 | cat >>confdefs.h <<_ACEOF | |
34620 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34621 | _ACEOF | |
34622 | ||
34623 | fi | |
34624 | done | |
34625 | ||
34626 | ||
34627 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34628 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34629 | if test "${wx_cv_var_timezone+set}" = set; then | |
34630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34631 | else | |
34632 | ||
34633 | cat >conftest.$ac_ext <<_ACEOF | |
34634 | /* confdefs.h. */ | |
34635 | _ACEOF | |
34636 | cat confdefs.h >>conftest.$ac_ext | |
34637 | cat >>conftest.$ac_ext <<_ACEOF | |
34638 | /* end confdefs.h. */ | |
34639 | ||
34640 | #include <time.h> | |
34641 | ||
34642 | int | |
34643 | main () | |
34644 | { | |
34645 | ||
34646 | int tz; | |
34647 | tz = timezone; | |
34648 | ||
34649 | ; | |
34650 | return 0; | |
34651 | } | |
34652 | _ACEOF | |
34653 | rm -f conftest.$ac_objext | |
34654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34655 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34656 | ac_status=$? |
ac1cb8d3 VS |
34657 | grep -v '^ *+' conftest.er1 >conftest.err |
34658 | rm -f conftest.er1 | |
34659 | cat conftest.err >&5 | |
a848cd7e SC |
34660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34661 | (exit $ac_status); } && | |
5dcf30a0 RN |
34662 | { ac_try='test -z "$ac_c_werror_flag" |
34663 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34665 | (eval $ac_try) 2>&5 | |
34666 | ac_status=$? | |
34667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34668 | (exit $ac_status); }; } && | |
34669 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34671 | (eval $ac_try) 2>&5 | |
34672 | ac_status=$? | |
34673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34674 | (exit $ac_status); }; }; then | |
34675 | ||
34676 | wx_cv_var_timezone=timezone | |
34677 | ||
34678 | else | |
34679 | echo "$as_me: failed program was:" >&5 | |
34680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34681 | ||
34682 | ||
34683 | cat >conftest.$ac_ext <<_ACEOF | |
34684 | /* confdefs.h. */ | |
34685 | _ACEOF | |
34686 | cat confdefs.h >>conftest.$ac_ext | |
34687 | cat >>conftest.$ac_ext <<_ACEOF | |
34688 | /* end confdefs.h. */ | |
34689 | ||
34690 | #include <time.h> | |
34691 | ||
34692 | int | |
34693 | main () | |
34694 | { | |
34695 | ||
34696 | int tz; | |
34697 | tz = _timezone; | |
34698 | ||
34699 | ; | |
34700 | return 0; | |
34701 | } | |
34702 | _ACEOF | |
34703 | rm -f conftest.$ac_objext | |
34704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34705 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34706 | ac_status=$? |
ac1cb8d3 VS |
34707 | grep -v '^ *+' conftest.er1 >conftest.err |
34708 | rm -f conftest.er1 | |
34709 | cat conftest.err >&5 | |
a848cd7e SC |
34710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34711 | (exit $ac_status); } && | |
5dcf30a0 RN |
34712 | { ac_try='test -z "$ac_c_werror_flag" |
34713 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34715 | (eval $ac_try) 2>&5 | |
34716 | ac_status=$? | |
34717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34718 | (exit $ac_status); }; } && | |
34719 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34721 | (eval $ac_try) 2>&5 | |
34722 | ac_status=$? | |
34723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34724 | (exit $ac_status); }; }; then | |
34725 | ||
34726 | wx_cv_var_timezone=_timezone | |
34727 | ||
34728 | else | |
34729 | echo "$as_me: failed program was:" >&5 | |
34730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34731 | ||
34732 | ||
34733 | cat >conftest.$ac_ext <<_ACEOF | |
34734 | /* confdefs.h. */ | |
34735 | _ACEOF | |
34736 | cat confdefs.h >>conftest.$ac_ext | |
34737 | cat >>conftest.$ac_ext <<_ACEOF | |
34738 | /* end confdefs.h. */ | |
34739 | ||
34740 | #include <time.h> | |
34741 | ||
34742 | int | |
34743 | main () | |
34744 | { | |
34745 | ||
34746 | int tz; | |
34747 | tz = __timezone; | |
34748 | ||
34749 | ; | |
34750 | return 0; | |
34751 | } | |
34752 | _ACEOF | |
34753 | rm -f conftest.$ac_objext | |
34754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34755 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34756 | ac_status=$? |
ac1cb8d3 VS |
34757 | grep -v '^ *+' conftest.er1 >conftest.err |
34758 | rm -f conftest.er1 | |
34759 | cat conftest.err >&5 | |
a848cd7e SC |
34760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34761 | (exit $ac_status); } && | |
5dcf30a0 RN |
34762 | { ac_try='test -z "$ac_c_werror_flag" |
34763 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34765 | (eval $ac_try) 2>&5 | |
34766 | ac_status=$? | |
34767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34768 | (exit $ac_status); }; } && | |
34769 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34771 | (eval $ac_try) 2>&5 | |
34772 | ac_status=$? | |
34773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34774 | (exit $ac_status); }; }; then | |
34775 | ||
34776 | wx_cv_var_timezone=__timezone | |
34777 | ||
34778 | else | |
34779 | echo "$as_me: failed program was:" >&5 | |
34780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34781 | ||
34782 | ||
34783 | if test "$USE_DOS" = 0 ; then | |
34784 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
34785 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
34786 | fi | |
34787 | ||
34788 | ||
34789 | fi | |
ac1cb8d3 | 34790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34791 | |
34792 | ||
34793 | fi | |
ac1cb8d3 | 34794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34795 | |
34796 | ||
34797 | fi | |
ac1cb8d3 | 34798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34799 | |
34800 | ||
34801 | fi | |
34802 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
34803 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
34804 | ||
34805 | if test "x$wx_cv_var_timezone" != x ; then | |
34806 | cat >>confdefs.h <<_ACEOF | |
34807 | #define WX_TIMEZONE $wx_cv_var_timezone | |
34808 | _ACEOF | |
34809 | ||
34810 | fi | |
34811 | ||
34812 | ||
34813 | for ac_func in localtime | |
34814 | do | |
34815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34816 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34818 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34820 | else | |
34821 | cat >conftest.$ac_ext <<_ACEOF | |
34822 | /* confdefs.h. */ | |
34823 | _ACEOF | |
34824 | cat confdefs.h >>conftest.$ac_ext | |
34825 | cat >>conftest.$ac_ext <<_ACEOF | |
34826 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34829 | #define $ac_func innocuous_$ac_func | |
34830 | ||
a848cd7e SC |
34831 | /* System header to define __stub macros and hopefully few prototypes, |
34832 | which can conflict with char $ac_func (); below. | |
34833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34834 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34835 | |
a848cd7e SC |
34836 | #ifdef __STDC__ |
34837 | # include <limits.h> | |
34838 | #else | |
34839 | # include <assert.h> | |
34840 | #endif | |
ac1cb8d3 VS |
34841 | |
34842 | #undef $ac_func | |
34843 | ||
a848cd7e SC |
34844 | /* Override any gcc2 internal prototype to avoid an error. */ |
34845 | #ifdef __cplusplus | |
34846 | extern "C" | |
34847 | { | |
34848 | #endif | |
34849 | /* We use char because int might match the return type of a gcc2 | |
34850 | builtin and then its argument prototype would still apply. */ | |
34851 | char $ac_func (); | |
34852 | /* The GNU C library defines this for functions which it implements | |
34853 | to always fail with ENOSYS. Some functions are actually named | |
34854 | something starting with __ and the normal name is an alias. */ | |
34855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34856 | choke me | |
34857 | #else | |
34858 | char (*f) () = $ac_func; | |
34859 | #endif | |
34860 | #ifdef __cplusplus | |
34861 | } | |
34862 | #endif | |
34863 | ||
34864 | int | |
34865 | main () | |
34866 | { | |
34867 | return f != $ac_func; | |
34868 | ; | |
34869 | return 0; | |
34870 | } | |
34871 | _ACEOF | |
34872 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34874 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34875 | ac_status=$? |
ac1cb8d3 VS |
34876 | grep -v '^ *+' conftest.er1 >conftest.err |
34877 | rm -f conftest.er1 | |
34878 | cat conftest.err >&5 | |
a848cd7e SC |
34879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34880 | (exit $ac_status); } && | |
5dcf30a0 RN |
34881 | { ac_try='test -z "$ac_c_werror_flag" |
34882 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34884 | (eval $ac_try) 2>&5 | |
34885 | ac_status=$? | |
34886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34887 | (exit $ac_status); }; } && | |
34888 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34890 | (eval $ac_try) 2>&5 | |
34891 | ac_status=$? | |
34892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34893 | (exit $ac_status); }; }; then | |
34894 | eval "$as_ac_var=yes" | |
34895 | else | |
34896 | echo "$as_me: failed program was:" >&5 | |
34897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34898 | ||
34899 | eval "$as_ac_var=no" | |
34900 | fi | |
ac1cb8d3 VS |
34901 | rm -f conftest.err conftest.$ac_objext \ |
34902 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34903 | fi |
34904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34905 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34906 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34907 | cat >>confdefs.h <<_ACEOF | |
34908 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34909 | _ACEOF | |
34910 | ||
34911 | fi | |
34912 | done | |
34913 | ||
34914 | ||
34915 | if test "$ac_cv_func_localtime" = "yes"; then | |
34916 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
34917 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
34918 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
34919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34920 | else | |
34921 | ||
34922 | cat >conftest.$ac_ext <<_ACEOF | |
34923 | /* confdefs.h. */ | |
34924 | _ACEOF | |
34925 | cat confdefs.h >>conftest.$ac_ext | |
34926 | cat >>conftest.$ac_ext <<_ACEOF | |
34927 | /* end confdefs.h. */ | |
34928 | ||
34929 | #include <time.h> | |
34930 | ||
34931 | int | |
34932 | main () | |
34933 | { | |
34934 | ||
34935 | struct tm tm; | |
34936 | tm.tm_gmtoff++; | |
34937 | ||
34938 | ; | |
34939 | return 0; | |
34940 | } | |
34941 | _ACEOF | |
34942 | rm -f conftest.$ac_objext | |
34943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34944 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34945 | ac_status=$? |
ac1cb8d3 VS |
34946 | grep -v '^ *+' conftest.er1 >conftest.err |
34947 | rm -f conftest.er1 | |
34948 | cat conftest.err >&5 | |
a848cd7e SC |
34949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34950 | (exit $ac_status); } && | |
5dcf30a0 RN |
34951 | { ac_try='test -z "$ac_c_werror_flag" |
34952 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34954 | (eval $ac_try) 2>&5 | |
34955 | ac_status=$? | |
34956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34957 | (exit $ac_status); }; } && | |
34958 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34960 | (eval $ac_try) 2>&5 | |
34961 | ac_status=$? | |
34962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34963 | (exit $ac_status); }; }; then | |
34964 | ||
34965 | wx_cv_struct_tm_has_gmtoff=yes | |
34966 | ||
34967 | else | |
34968 | echo "$as_me: failed program was:" >&5 | |
34969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34970 | ||
34971 | wx_cv_struct_tm_has_gmtoff=no | |
34972 | ||
34973 | fi | |
ac1cb8d3 | 34974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34975 | |
34976 | fi | |
34977 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
34978 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
34979 | fi | |
34980 | ||
34981 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
34982 | cat >>confdefs.h <<\_ACEOF | |
34983 | #define WX_GMTOFF_IN_TM 1 | |
34984 | _ACEOF | |
34985 | ||
34986 | fi | |
34987 | ||
34988 | ||
34989 | ||
34990 | for ac_func in gettimeofday ftime | |
34991 | do | |
34992 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34993 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34994 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34995 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34997 | else | |
34998 | cat >conftest.$ac_ext <<_ACEOF | |
34999 | /* confdefs.h. */ | |
35000 | _ACEOF | |
35001 | cat confdefs.h >>conftest.$ac_ext | |
35002 | cat >>conftest.$ac_ext <<_ACEOF | |
35003 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35004 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35005 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35006 | #define $ac_func innocuous_$ac_func | |
35007 | ||
a848cd7e SC |
35008 | /* System header to define __stub macros and hopefully few prototypes, |
35009 | which can conflict with char $ac_func (); below. | |
35010 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35011 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35012 | |
a848cd7e SC |
35013 | #ifdef __STDC__ |
35014 | # include <limits.h> | |
35015 | #else | |
35016 | # include <assert.h> | |
35017 | #endif | |
ac1cb8d3 VS |
35018 | |
35019 | #undef $ac_func | |
35020 | ||
a848cd7e SC |
35021 | /* Override any gcc2 internal prototype to avoid an error. */ |
35022 | #ifdef __cplusplus | |
35023 | extern "C" | |
35024 | { | |
35025 | #endif | |
35026 | /* We use char because int might match the return type of a gcc2 | |
35027 | builtin and then its argument prototype would still apply. */ | |
35028 | char $ac_func (); | |
35029 | /* The GNU C library defines this for functions which it implements | |
35030 | to always fail with ENOSYS. Some functions are actually named | |
35031 | something starting with __ and the normal name is an alias. */ | |
35032 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35033 | choke me | |
35034 | #else | |
35035 | char (*f) () = $ac_func; | |
35036 | #endif | |
35037 | #ifdef __cplusplus | |
35038 | } | |
35039 | #endif | |
35040 | ||
35041 | int | |
35042 | main () | |
35043 | { | |
35044 | return f != $ac_func; | |
35045 | ; | |
35046 | return 0; | |
35047 | } | |
35048 | _ACEOF | |
35049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35051 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35052 | ac_status=$? |
ac1cb8d3 VS |
35053 | grep -v '^ *+' conftest.er1 >conftest.err |
35054 | rm -f conftest.er1 | |
35055 | cat conftest.err >&5 | |
a848cd7e SC |
35056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35057 | (exit $ac_status); } && | |
5dcf30a0 RN |
35058 | { ac_try='test -z "$ac_c_werror_flag" |
35059 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35061 | (eval $ac_try) 2>&5 | |
35062 | ac_status=$? | |
35063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35064 | (exit $ac_status); }; } && | |
35065 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35067 | (eval $ac_try) 2>&5 | |
35068 | ac_status=$? | |
35069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35070 | (exit $ac_status); }; }; then | |
35071 | eval "$as_ac_var=yes" | |
35072 | else | |
35073 | echo "$as_me: failed program was:" >&5 | |
35074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35075 | ||
35076 | eval "$as_ac_var=no" | |
35077 | fi | |
ac1cb8d3 VS |
35078 | rm -f conftest.err conftest.$ac_objext \ |
35079 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35080 | fi |
35081 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35082 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35083 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35084 | cat >>confdefs.h <<_ACEOF | |
35085 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35086 | _ACEOF | |
35087 | break | |
35088 | fi | |
35089 | done | |
35090 | ||
35091 | ||
35092 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35093 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35094 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35095 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35097 | else | |
35098 | ||
35099 | ||
35100 | ||
35101 | ac_ext=cc | |
35102 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35103 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35104 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35105 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35106 | ||
35107 | ||
35108 | cat >conftest.$ac_ext <<_ACEOF | |
35109 | /* confdefs.h. */ | |
35110 | _ACEOF | |
35111 | cat confdefs.h >>conftest.$ac_ext | |
35112 | cat >>conftest.$ac_ext <<_ACEOF | |
35113 | /* end confdefs.h. */ | |
35114 | ||
35115 | #include <sys/time.h> | |
35116 | #include <unistd.h> | |
35117 | ||
35118 | int | |
35119 | main () | |
35120 | { | |
35121 | ||
35122 | struct timeval tv; | |
35123 | gettimeofday(&tv, NULL); | |
35124 | ||
35125 | ; | |
35126 | return 0; | |
35127 | } | |
35128 | _ACEOF | |
35129 | rm -f conftest.$ac_objext | |
35130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35131 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35132 | ac_status=$? |
ac1cb8d3 VS |
35133 | grep -v '^ *+' conftest.er1 >conftest.err |
35134 | rm -f conftest.er1 | |
35135 | cat conftest.err >&5 | |
a848cd7e SC |
35136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35137 | (exit $ac_status); } && | |
5dcf30a0 RN |
35138 | { ac_try='test -z "$ac_cxx_werror_flag" |
35139 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35141 | (eval $ac_try) 2>&5 | |
35142 | ac_status=$? | |
35143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35144 | (exit $ac_status); }; } && | |
35145 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35147 | (eval $ac_try) 2>&5 | |
35148 | ac_status=$? | |
35149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35150 | (exit $ac_status); }; }; then | |
35151 | wx_cv_func_gettimeofday_has_2_args=yes | |
35152 | else | |
35153 | echo "$as_me: failed program was:" >&5 | |
35154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35155 | ||
35156 | cat >conftest.$ac_ext <<_ACEOF | |
35157 | /* confdefs.h. */ | |
35158 | _ACEOF | |
35159 | cat confdefs.h >>conftest.$ac_ext | |
35160 | cat >>conftest.$ac_ext <<_ACEOF | |
35161 | /* end confdefs.h. */ | |
35162 | ||
35163 | #include <sys/time.h> | |
35164 | #include <unistd.h> | |
35165 | ||
35166 | int | |
35167 | main () | |
35168 | { | |
35169 | ||
35170 | struct timeval tv; | |
35171 | gettimeofday(&tv); | |
35172 | ||
35173 | ; | |
35174 | return 0; | |
35175 | } | |
35176 | _ACEOF | |
35177 | rm -f conftest.$ac_objext | |
35178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35179 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35180 | ac_status=$? |
ac1cb8d3 VS |
35181 | grep -v '^ *+' conftest.er1 >conftest.err |
35182 | rm -f conftest.er1 | |
35183 | cat conftest.err >&5 | |
a848cd7e SC |
35184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35185 | (exit $ac_status); } && | |
5dcf30a0 RN |
35186 | { ac_try='test -z "$ac_cxx_werror_flag" |
35187 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35189 | (eval $ac_try) 2>&5 | |
35190 | ac_status=$? | |
35191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35192 | (exit $ac_status); }; } && | |
35193 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35195 | (eval $ac_try) 2>&5 | |
35196 | ac_status=$? | |
35197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35198 | (exit $ac_status); }; }; then | |
35199 | wx_cv_func_gettimeofday_has_2_args=no | |
35200 | else | |
35201 | echo "$as_me: failed program was:" >&5 | |
35202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35203 | ||
35204 | ||
35205 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35206 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35207 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35208 | ||
35209 | ||
35210 | fi | |
ac1cb8d3 | 35211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35212 | |
35213 | fi | |
ac1cb8d3 | 35214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35215 | ac_ext=c |
35216 | ac_cpp='$CPP $CPPFLAGS' | |
35217 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35218 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35219 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35220 | ||
35221 | ||
35222 | fi | |
35223 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35224 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35225 | ||
35226 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35227 | cat >>confdefs.h <<\_ACEOF | |
35228 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35229 | _ACEOF | |
35230 | ||
35231 | fi | |
35232 | fi | |
35233 | ||
35234 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35235 | fi | |
35236 | ||
35237 | ||
35238 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35239 | if test "$wxUSE_MGL" = "1"; then | |
35240 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35241 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35242 | wxUSE_SOCKETS="no" | |
35243 | fi | |
35244 | fi | |
35245 | ||
35246 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35247 | if test "$TOOLKIT" != "MSW"; then | |
35248 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35249 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35250 | if test "${ac_cv_func_socket+set}" = set; then | |
35251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35252 | else | |
35253 | cat >conftest.$ac_ext <<_ACEOF | |
35254 | /* confdefs.h. */ | |
35255 | _ACEOF | |
35256 | cat confdefs.h >>conftest.$ac_ext | |
35257 | cat >>conftest.$ac_ext <<_ACEOF | |
35258 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35259 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35260 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35261 | #define socket innocuous_socket | |
35262 | ||
a848cd7e SC |
35263 | /* System header to define __stub macros and hopefully few prototypes, |
35264 | which can conflict with char socket (); below. | |
35265 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35266 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35267 | |
a848cd7e SC |
35268 | #ifdef __STDC__ |
35269 | # include <limits.h> | |
35270 | #else | |
35271 | # include <assert.h> | |
35272 | #endif | |
ac1cb8d3 VS |
35273 | |
35274 | #undef socket | |
35275 | ||
a848cd7e SC |
35276 | /* Override any gcc2 internal prototype to avoid an error. */ |
35277 | #ifdef __cplusplus | |
35278 | extern "C" | |
35279 | { | |
35280 | #endif | |
35281 | /* We use char because int might match the return type of a gcc2 | |
35282 | builtin and then its argument prototype would still apply. */ | |
35283 | char socket (); | |
35284 | /* The GNU C library defines this for functions which it implements | |
35285 | to always fail with ENOSYS. Some functions are actually named | |
35286 | something starting with __ and the normal name is an alias. */ | |
35287 | #if defined (__stub_socket) || defined (__stub___socket) | |
35288 | choke me | |
35289 | #else | |
35290 | char (*f) () = socket; | |
35291 | #endif | |
35292 | #ifdef __cplusplus | |
35293 | } | |
35294 | #endif | |
35295 | ||
35296 | int | |
35297 | main () | |
35298 | { | |
35299 | return f != socket; | |
35300 | ; | |
35301 | return 0; | |
35302 | } | |
35303 | _ACEOF | |
35304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35306 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35307 | ac_status=$? |
ac1cb8d3 VS |
35308 | grep -v '^ *+' conftest.er1 >conftest.err |
35309 | rm -f conftest.er1 | |
35310 | cat conftest.err >&5 | |
a848cd7e SC |
35311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35312 | (exit $ac_status); } && | |
5dcf30a0 RN |
35313 | { ac_try='test -z "$ac_c_werror_flag" |
35314 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35316 | (eval $ac_try) 2>&5 | |
35317 | ac_status=$? | |
35318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35319 | (exit $ac_status); }; } && | |
35320 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35322 | (eval $ac_try) 2>&5 | |
35323 | ac_status=$? | |
35324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35325 | (exit $ac_status); }; }; then | |
35326 | ac_cv_func_socket=yes | |
35327 | else | |
35328 | echo "$as_me: failed program was:" >&5 | |
35329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35330 | ||
35331 | ac_cv_func_socket=no | |
35332 | fi | |
ac1cb8d3 VS |
35333 | rm -f conftest.err conftest.$ac_objext \ |
35334 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35335 | fi |
35336 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35337 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35338 | if test $ac_cv_func_socket = yes; then | |
35339 | : | |
35340 | else | |
35341 | ||
35342 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35343 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35344 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35346 | else | |
35347 | ac_check_lib_save_LIBS=$LIBS | |
35348 | LIBS="-lsocket $LIBS" | |
35349 | cat >conftest.$ac_ext <<_ACEOF | |
35350 | /* confdefs.h. */ | |
35351 | _ACEOF | |
35352 | cat confdefs.h >>conftest.$ac_ext | |
35353 | cat >>conftest.$ac_ext <<_ACEOF | |
35354 | /* end confdefs.h. */ | |
35355 | ||
35356 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35357 | #ifdef __cplusplus | |
35358 | extern "C" | |
35359 | #endif | |
35360 | /* We use char because int might match the return type of a gcc2 | |
35361 | builtin and then its argument prototype would still apply. */ | |
35362 | char socket (); | |
35363 | int | |
35364 | main () | |
35365 | { | |
35366 | socket (); | |
35367 | ; | |
35368 | return 0; | |
35369 | } | |
35370 | _ACEOF | |
35371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35373 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35374 | ac_status=$? |
ac1cb8d3 VS |
35375 | grep -v '^ *+' conftest.er1 >conftest.err |
35376 | rm -f conftest.er1 | |
35377 | cat conftest.err >&5 | |
a848cd7e SC |
35378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35379 | (exit $ac_status); } && | |
5dcf30a0 RN |
35380 | { ac_try='test -z "$ac_c_werror_flag" |
35381 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35383 | (eval $ac_try) 2>&5 | |
35384 | ac_status=$? | |
35385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35386 | (exit $ac_status); }; } && | |
35387 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35389 | (eval $ac_try) 2>&5 | |
35390 | ac_status=$? | |
35391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35392 | (exit $ac_status); }; }; then | |
35393 | ac_cv_lib_socket_socket=yes | |
35394 | else | |
35395 | echo "$as_me: failed program was:" >&5 | |
35396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35397 | ||
35398 | ac_cv_lib_socket_socket=no | |
35399 | fi | |
ac1cb8d3 VS |
35400 | rm -f conftest.err conftest.$ac_objext \ |
35401 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35402 | LIBS=$ac_check_lib_save_LIBS |
35403 | fi | |
35404 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35405 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35406 | if test $ac_cv_lib_socket_socket = yes; then | |
35407 | if test "$INET_LINK" != " -lsocket"; then | |
35408 | INET_LINK="$INET_LINK -lsocket" | |
35409 | fi | |
35410 | else | |
35411 | ||
35412 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35413 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35414 | wxUSE_SOCKETS=no | |
35415 | ||
35416 | ||
35417 | fi | |
35418 | ||
35419 | ||
35420 | ||
35421 | fi | |
35422 | ||
35423 | fi | |
35424 | fi | |
35425 | ||
35426 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35427 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
35428 | ac_ext=cc |
35429 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35430 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35431 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35432 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35433 | ||
35434 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
35435 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
35436 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35438 | else | |
35439 | ||
35440 | cat >conftest.$ac_ext <<_ACEOF | |
35441 | /* confdefs.h. */ | |
35442 | _ACEOF | |
35443 | cat confdefs.h >>conftest.$ac_ext | |
35444 | cat >>conftest.$ac_ext <<_ACEOF | |
35445 | /* end confdefs.h. */ | |
35446 | ||
35447 | #include <sys/types.h> | |
35448 | #include <sys/socket.h> | |
35449 | ||
35450 | int | |
35451 | main () | |
35452 | { | |
35453 | ||
35454 | socklen_t len; | |
35455 | getsockname(0, 0, &len); | |
35456 | ||
35457 | ; | |
35458 | return 0; | |
35459 | } | |
35460 | _ACEOF | |
35461 | rm -f conftest.$ac_objext | |
35462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35463 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35464 | ac_status=$? |
ac1cb8d3 VS |
35465 | grep -v '^ *+' conftest.er1 >conftest.err |
35466 | rm -f conftest.er1 | |
35467 | cat conftest.err >&5 | |
a848cd7e SC |
35468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35469 | (exit $ac_status); } && | |
5dcf30a0 RN |
35470 | { ac_try='test -z "$ac_cxx_werror_flag" |
35471 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35473 | (eval $ac_try) 2>&5 | |
35474 | ac_status=$? | |
35475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35476 | (exit $ac_status); }; } && | |
35477 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35479 | (eval $ac_try) 2>&5 | |
35480 | ac_status=$? | |
35481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35482 | (exit $ac_status); }; }; then | |
35483 | wx_cv_type_getsockname3=socklen_t | |
35484 | else | |
35485 | echo "$as_me: failed program was:" >&5 | |
35486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35487 | ||
35488 | ||
35489 | CFLAGS_OLD="$CFLAGS" | |
35490 | if test "$GCC" = yes ; then | |
35491 | CFLAGS="$CFLAGS -Werror" | |
35492 | fi | |
35493 | ||
35494 | cat >conftest.$ac_ext <<_ACEOF | |
35495 | /* confdefs.h. */ | |
35496 | _ACEOF | |
35497 | cat confdefs.h >>conftest.$ac_ext | |
35498 | cat >>conftest.$ac_ext <<_ACEOF | |
35499 | /* end confdefs.h. */ | |
35500 | ||
35501 | #include <sys/types.h> | |
35502 | #include <sys/socket.h> | |
35503 | ||
35504 | int | |
35505 | main () | |
35506 | { | |
35507 | ||
35508 | size_t len; | |
35509 | getsockname(0, 0, &len); | |
35510 | ||
35511 | ; | |
35512 | return 0; | |
35513 | } | |
35514 | _ACEOF | |
35515 | rm -f conftest.$ac_objext | |
35516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35517 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35518 | ac_status=$? |
ac1cb8d3 VS |
35519 | grep -v '^ *+' conftest.er1 >conftest.err |
35520 | rm -f conftest.er1 | |
35521 | cat conftest.err >&5 | |
a848cd7e SC |
35522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35523 | (exit $ac_status); } && | |
5dcf30a0 RN |
35524 | { ac_try='test -z "$ac_cxx_werror_flag" |
35525 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35527 | (eval $ac_try) 2>&5 | |
35528 | ac_status=$? | |
35529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35530 | (exit $ac_status); }; } && | |
35531 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35533 | (eval $ac_try) 2>&5 | |
35534 | ac_status=$? | |
35535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35536 | (exit $ac_status); }; }; then | |
35537 | wx_cv_type_getsockname3=size_t | |
35538 | else | |
35539 | echo "$as_me: failed program was:" >&5 | |
35540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35541 | ||
35542 | cat >conftest.$ac_ext <<_ACEOF | |
35543 | /* confdefs.h. */ | |
35544 | _ACEOF | |
35545 | cat confdefs.h >>conftest.$ac_ext | |
35546 | cat >>conftest.$ac_ext <<_ACEOF | |
35547 | /* end confdefs.h. */ | |
35548 | ||
35549 | #include <sys/types.h> | |
35550 | #include <sys/socket.h> | |
35551 | ||
35552 | int | |
35553 | main () | |
35554 | { | |
35555 | ||
35556 | int len; | |
35557 | getsockname(0, 0, &len); | |
35558 | ||
35559 | ; | |
35560 | return 0; | |
35561 | } | |
35562 | _ACEOF | |
35563 | rm -f conftest.$ac_objext | |
35564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35566 | ac_status=$? |
ac1cb8d3 VS |
35567 | grep -v '^ *+' conftest.er1 >conftest.err |
35568 | rm -f conftest.er1 | |
35569 | cat conftest.err >&5 | |
a848cd7e SC |
35570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35571 | (exit $ac_status); } && | |
5dcf30a0 RN |
35572 | { ac_try='test -z "$ac_cxx_werror_flag" |
35573 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35575 | (eval $ac_try) 2>&5 | |
35576 | ac_status=$? | |
35577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35578 | (exit $ac_status); }; } && | |
35579 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35581 | (eval $ac_try) 2>&5 | |
35582 | ac_status=$? | |
35583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35584 | (exit $ac_status); }; }; then | |
35585 | wx_cv_type_getsockname3=int | |
35586 | else | |
35587 | echo "$as_me: failed program was:" >&5 | |
35588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35589 | ||
35590 | wx_cv_type_getsockname3=unknown | |
35591 | ||
35592 | fi | |
ac1cb8d3 | 35593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35594 | |
35595 | fi | |
ac1cb8d3 | 35596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35597 | |
35598 | CFLAGS="$CFLAGS_OLD" | |
35599 | ||
35600 | ||
35601 | fi | |
ac1cb8d3 | 35602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35603 | |
35604 | fi | |
35605 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35606 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35607 | ||
35608 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35609 | wxUSE_SOCKETS=no | |
35610 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35611 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35612 | else | |
35613 | cat >>confdefs.h <<_ACEOF | |
35614 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35615 | _ACEOF | |
35616 | ||
35617 | fi | |
4d4ff94c VZ |
35618 | ac_ext=c |
35619 | ac_cpp='$CPP $CPPFLAGS' | |
35620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35623 | ||
a848cd7e SC |
35624 | fi |
35625 | fi | |
35626 | ||
35627 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35628 | cat >>confdefs.h <<\_ACEOF | |
35629 | #define wxUSE_SOCKETS 1 | |
35630 | _ACEOF | |
35631 | ||
35632 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35633 | fi | |
35634 | ||
35635 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35636 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35637 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35638 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35639 | wxUSE_PROTOCOL=no | |
35640 | fi | |
35641 | fi | |
35642 | ||
35643 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35644 | cat >>confdefs.h <<\_ACEOF | |
35645 | #define wxUSE_PROTOCOL 1 | |
35646 | _ACEOF | |
35647 | ||
35648 | ||
35649 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35650 | cat >>confdefs.h <<\_ACEOF | |
35651 | #define wxUSE_PROTOCOL_HTTP 1 | |
35652 | _ACEOF | |
35653 | ||
35654 | fi | |
35655 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35656 | cat >>confdefs.h <<\_ACEOF | |
35657 | #define wxUSE_PROTOCOL_FTP 1 | |
35658 | _ACEOF | |
35659 | ||
35660 | fi | |
35661 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35662 | cat >>confdefs.h <<\_ACEOF | |
35663 | #define wxUSE_PROTOCOL_FILE 1 | |
35664 | _ACEOF | |
35665 | ||
35666 | fi | |
35667 | else | |
35668 | if test "$wxUSE_FS_INET" = "yes"; then | |
35669 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35670 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35671 | wxUSE_FS_INET="no" | |
35672 | fi | |
35673 | fi | |
35674 | ||
35675 | if test "$wxUSE_URL" = "yes"; then | |
35676 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35677 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35678 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35679 | wxUSE_URL=no | |
35680 | fi | |
35681 | if test "$wxUSE_URL" = "yes"; then | |
35682 | cat >>confdefs.h <<\_ACEOF | |
35683 | #define wxUSE_URL 1 | |
35684 | _ACEOF | |
35685 | ||
35686 | fi | |
35687 | fi | |
35688 | ||
35689 | if test "$wxUSE_FS_INET" = "yes"; then | |
35690 | cat >>confdefs.h <<\_ACEOF | |
35691 | #define wxUSE_FS_INET 1 | |
35692 | _ACEOF | |
35693 | ||
35694 | fi | |
35695 | ||
35696 | ||
35697 | if test "$wxUSE_GUI" = "yes"; then | |
35698 | ||
35699 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35700 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35701 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35702 | wxUSE_JOYSTICK=no | |
35703 | fi | |
35704 | ||
35705 | if test "$TOOLKIT" != "MSW"; then | |
35706 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35707 | ||
35708 | for ac_header in linux/joystick.h | |
35709 | do | |
35710 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35711 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35712 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35716 | fi | |
35717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35718 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35719 | else | |
35720 | # Is the header compilable? | |
35721 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35722 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35723 | cat >conftest.$ac_ext <<_ACEOF | |
35724 | /* confdefs.h. */ | |
35725 | _ACEOF | |
35726 | cat confdefs.h >>conftest.$ac_ext | |
35727 | cat >>conftest.$ac_ext <<_ACEOF | |
35728 | /* end confdefs.h. */ | |
35729 | $ac_includes_default | |
35730 | #include <$ac_header> | |
35731 | _ACEOF | |
35732 | rm -f conftest.$ac_objext | |
35733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35734 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35735 | ac_status=$? |
ac1cb8d3 VS |
35736 | grep -v '^ *+' conftest.er1 >conftest.err |
35737 | rm -f conftest.er1 | |
35738 | cat conftest.err >&5 | |
a848cd7e SC |
35739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35740 | (exit $ac_status); } && | |
5dcf30a0 RN |
35741 | { ac_try='test -z "$ac_c_werror_flag" |
35742 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35744 | (eval $ac_try) 2>&5 | |
35745 | ac_status=$? | |
35746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35747 | (exit $ac_status); }; } && | |
35748 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35750 | (eval $ac_try) 2>&5 | |
35751 | ac_status=$? | |
35752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35753 | (exit $ac_status); }; }; then | |
35754 | ac_header_compiler=yes | |
35755 | else | |
35756 | echo "$as_me: failed program was:" >&5 | |
35757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35758 | ||
35759 | ac_header_compiler=no | |
35760 | fi | |
ac1cb8d3 | 35761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35762 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35763 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35764 | ||
35765 | # Is the header present? | |
35766 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35767 | echo $ECHO_N "checking $ac_header presence... $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 | #include <$ac_header> | |
35775 | _ACEOF | |
35776 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35777 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35778 | ac_status=$? | |
35779 | grep -v '^ *+' conftest.er1 >conftest.err | |
35780 | rm -f conftest.er1 | |
35781 | cat conftest.err >&5 | |
35782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35783 | (exit $ac_status); } >/dev/null; then | |
35784 | if test -s conftest.err; then | |
35785 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35786 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35787 | else |
35788 | ac_cpp_err= | |
35789 | fi | |
35790 | else | |
35791 | ac_cpp_err=yes | |
35792 | fi | |
35793 | if test -z "$ac_cpp_err"; then | |
35794 | ac_header_preproc=yes | |
35795 | else | |
35796 | echo "$as_me: failed program was:" >&5 | |
35797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35798 | ||
35799 | ac_header_preproc=no | |
35800 | fi | |
35801 | rm -f conftest.err conftest.$ac_ext | |
35802 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35803 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35804 | ||
35805 | # So? What about this header? | |
ac1cb8d3 VS |
35806 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35807 | yes:no: ) | |
a848cd7e SC |
35808 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35809 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35810 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35811 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35812 | ac_header_preproc=yes | |
a848cd7e | 35813 | ;; |
ac1cb8d3 | 35814 | no:yes:* ) |
a848cd7e SC |
35815 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35816 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35817 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35818 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35819 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35820 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35821 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35822 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35823 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35824 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35825 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35826 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35827 | ( |
35828 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35829 | ## ----------------------------------------- ## |
35830 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35831 | ## ----------------------------------------- ## | |
a848cd7e SC |
35832 | _ASBOX |
35833 | ) | | |
35834 | sed "s/^/$as_me: WARNING: /" >&2 | |
35835 | ;; | |
35836 | esac | |
35837 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35838 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35839 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35841 | else | |
ac1cb8d3 | 35842 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35843 | fi |
35844 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35845 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35846 | ||
35847 | fi | |
35848 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35849 | cat >>confdefs.h <<_ACEOF | |
35850 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35851 | _ACEOF | |
35852 | ||
35853 | fi | |
35854 | ||
35855 | done | |
35856 | ||
35857 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
35858 | wxUSE_JOYSTICK=no | |
35859 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
35860 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
35861 | fi | |
35862 | fi | |
35863 | fi | |
35864 | ||
35865 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35866 | cat >>confdefs.h <<\_ACEOF | |
35867 | #define wxUSE_JOYSTICK 1 | |
35868 | _ACEOF | |
35869 | ||
35870 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
35871 | fi | |
35872 | fi | |
35873 | ||
35874 | ||
35875 | ||
35876 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
35877 | cat >>confdefs.h <<\_ACEOF | |
35878 | #define wxUSE_FONTMAP 1 | |
35879 | _ACEOF | |
35880 | ||
35881 | fi | |
35882 | ||
35883 | if test "$wxUSE_UNICODE" = "yes" ; then | |
35884 | cat >>confdefs.h <<\_ACEOF | |
35885 | #define wxUSE_UNICODE 1 | |
35886 | _ACEOF | |
35887 | ||
35888 | ||
35889 | if test "$USE_WIN32" != 1; then | |
35890 | wxUSE_UNICODE_MSLU=no | |
35891 | fi | |
35892 | ||
35893 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
35894 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
35895 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
35896 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
35897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35898 | else | |
35899 | ac_check_lib_save_LIBS=$LIBS | |
35900 | LIBS="-lunicows $LIBS" | |
35901 | cat >conftest.$ac_ext <<_ACEOF | |
35902 | /* confdefs.h. */ | |
35903 | _ACEOF | |
35904 | cat confdefs.h >>conftest.$ac_ext | |
35905 | cat >>conftest.$ac_ext <<_ACEOF | |
35906 | /* end confdefs.h. */ | |
35907 | ||
35908 | ||
35909 | int | |
35910 | main () | |
35911 | { | |
35912 | main (); | |
35913 | ; | |
35914 | return 0; | |
35915 | } | |
35916 | _ACEOF | |
35917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35919 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35920 | ac_status=$? |
ac1cb8d3 VS |
35921 | grep -v '^ *+' conftest.er1 >conftest.err |
35922 | rm -f conftest.er1 | |
35923 | cat conftest.err >&5 | |
a848cd7e SC |
35924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35925 | (exit $ac_status); } && | |
5dcf30a0 RN |
35926 | { ac_try='test -z "$ac_c_werror_flag" |
35927 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35929 | (eval $ac_try) 2>&5 | |
35930 | ac_status=$? | |
35931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35932 | (exit $ac_status); }; } && | |
35933 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35935 | (eval $ac_try) 2>&5 | |
35936 | ac_status=$? | |
35937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35938 | (exit $ac_status); }; }; then | |
35939 | ac_cv_lib_unicows_main=yes | |
35940 | else | |
35941 | echo "$as_me: failed program was:" >&5 | |
35942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35943 | ||
35944 | ac_cv_lib_unicows_main=no | |
35945 | fi | |
ac1cb8d3 VS |
35946 | rm -f conftest.err conftest.$ac_objext \ |
35947 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35948 | LIBS=$ac_check_lib_save_LIBS |
35949 | fi | |
35950 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
35951 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
35952 | if test $ac_cv_lib_unicows_main = yes; then | |
35953 | ||
35954 | cat >>confdefs.h <<\_ACEOF | |
35955 | #define wxUSE_UNICODE_MSLU 1 | |
35956 | _ACEOF | |
35957 | ||
35958 | ||
35959 | else | |
35960 | ||
35961 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35962 | Applications will only run on Windows NT/2000/XP!" >&5 | |
35963 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35964 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
35965 | wxUSE_UNICODE_MSLU=no | |
35966 | ||
35967 | fi | |
35968 | ||
35969 | fi | |
35970 | fi | |
35971 | ||
35972 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
35973 | cat >>confdefs.h <<\_ACEOF | |
35974 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
35975 | _ACEOF | |
35976 | ||
35977 | fi | |
35978 | ||
35979 | ||
35980 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
35981 | cat >>confdefs.h <<\_ACEOF | |
35982 | #define wxUSE_POSTSCRIPT 1 | |
35983 | _ACEOF | |
35984 | ||
35985 | fi | |
35986 | ||
35987 | cat >>confdefs.h <<\_ACEOF | |
35988 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
35989 | _ACEOF | |
35990 | ||
35991 | ||
35992 | cat >>confdefs.h <<\_ACEOF | |
35993 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
35994 | _ACEOF | |
35995 | ||
35996 | ||
35997 | ||
35998 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
35999 | cat >>confdefs.h <<\_ACEOF | |
36000 | #define wxUSE_CONSTRAINTS 1 | |
36001 | _ACEOF | |
36002 | ||
36003 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36004 | fi | |
36005 | ||
8a7b1113 VZ |
36006 | if test "$wxUSE_MDI" = "yes"; then |
36007 | cat >>confdefs.h <<\_ACEOF | |
36008 | #define wxUSE_MDI 1 | |
36009 | _ACEOF | |
36010 | ||
36011 | ||
36012 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36013 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36014 | #define wxUSE_MDI_ARCHITECTURE 1 |
36015 | _ACEOF | |
36016 | ||
8a7b1113 VZ |
36017 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
36018 | fi | |
a848cd7e SC |
36019 | fi |
36020 | ||
36021 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
36022 | cat >>confdefs.h <<\_ACEOF | |
36023 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
36024 | _ACEOF | |
36025 | ||
36026 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36027 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36028 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36029 | fi | |
36030 | fi | |
36031 | ||
36032 | if test "$wxUSE_HELP" = "yes"; then | |
36033 | cat >>confdefs.h <<\_ACEOF | |
36034 | #define wxUSE_HELP 1 | |
36035 | _ACEOF | |
36036 | ||
36037 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
36038 | ||
36039 | if test "$wxUSE_MSW" = 1; then | |
36040 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
36041 | cat >>confdefs.h <<\_ACEOF | |
36042 | #define wxUSE_MS_HTML_HELP 1 | |
36043 | _ACEOF | |
36044 | ||
36045 | fi | |
36046 | fi | |
36047 | ||
36048 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36049 | if test "$wxUSE_HTML" = "yes"; then | |
36050 | cat >>confdefs.h <<\_ACEOF | |
36051 | #define wxUSE_WXHTML_HELP 1 | |
36052 | _ACEOF | |
36053 | ||
36054 | else | |
36055 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
36056 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
36057 | wxUSE_WXHTML_HELP=no | |
36058 | fi | |
36059 | fi | |
36060 | fi | |
36061 | ||
36062 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36063 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36064 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
36065 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
36066 | else | |
36067 | cat >>confdefs.h <<\_ACEOF | |
36068 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
36069 | _ACEOF | |
36070 | ||
36071 | fi | |
36072 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36073 | fi | |
36074 | ||
36075 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
36076 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36077 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36078 | { (exit 1); exit 1; }; } | |
36079 | fi | |
36080 | ||
36081 | ||
36082 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
36083 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
36084 | -o "$wxUSE_OLE" = "yes" \ | |
36085 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36086 | ||
36087 | for ac_header in ole2.h | |
36088 | do | |
36089 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36090 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36091 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36095 | fi | |
36096 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36097 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36098 | else | |
36099 | # Is the header compilable? | |
36100 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36101 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36102 | cat >conftest.$ac_ext <<_ACEOF | |
36103 | /* confdefs.h. */ | |
36104 | _ACEOF | |
36105 | cat confdefs.h >>conftest.$ac_ext | |
36106 | cat >>conftest.$ac_ext <<_ACEOF | |
36107 | /* end confdefs.h. */ | |
36108 | $ac_includes_default | |
36109 | #include <$ac_header> | |
36110 | _ACEOF | |
36111 | rm -f conftest.$ac_objext | |
36112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36113 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36114 | ac_status=$? |
ac1cb8d3 VS |
36115 | grep -v '^ *+' conftest.er1 >conftest.err |
36116 | rm -f conftest.er1 | |
36117 | cat conftest.err >&5 | |
a848cd7e SC |
36118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36119 | (exit $ac_status); } && | |
5dcf30a0 RN |
36120 | { ac_try='test -z "$ac_c_werror_flag" |
36121 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36123 | (eval $ac_try) 2>&5 | |
36124 | ac_status=$? | |
36125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36126 | (exit $ac_status); }; } && | |
36127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36129 | (eval $ac_try) 2>&5 | |
36130 | ac_status=$? | |
36131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36132 | (exit $ac_status); }; }; then | |
36133 | ac_header_compiler=yes | |
36134 | else | |
36135 | echo "$as_me: failed program was:" >&5 | |
36136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36137 | ||
36138 | ac_header_compiler=no | |
36139 | fi | |
ac1cb8d3 | 36140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36141 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36142 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36143 | ||
36144 | # Is the header present? | |
36145 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36146 | echo $ECHO_N "checking $ac_header presence... $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 | #include <$ac_header> | |
36154 | _ACEOF | |
36155 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36156 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36157 | ac_status=$? | |
36158 | grep -v '^ *+' conftest.er1 >conftest.err | |
36159 | rm -f conftest.er1 | |
36160 | cat conftest.err >&5 | |
36161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36162 | (exit $ac_status); } >/dev/null; then | |
36163 | if test -s conftest.err; then | |
36164 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36165 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36166 | else |
36167 | ac_cpp_err= | |
36168 | fi | |
36169 | else | |
36170 | ac_cpp_err=yes | |
36171 | fi | |
36172 | if test -z "$ac_cpp_err"; then | |
36173 | ac_header_preproc=yes | |
36174 | else | |
36175 | echo "$as_me: failed program was:" >&5 | |
36176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36177 | ||
36178 | ac_header_preproc=no | |
36179 | fi | |
36180 | rm -f conftest.err conftest.$ac_ext | |
36181 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36182 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36183 | ||
36184 | # So? What about this header? | |
ac1cb8d3 VS |
36185 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36186 | yes:no: ) | |
a848cd7e SC |
36187 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36188 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36189 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36190 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36191 | ac_header_preproc=yes | |
a848cd7e | 36192 | ;; |
ac1cb8d3 | 36193 | no:yes:* ) |
a848cd7e SC |
36194 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36195 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36196 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36197 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36198 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36199 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36200 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36201 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36202 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36203 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36204 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36205 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36206 | ( |
36207 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36208 | ## ----------------------------------------- ## |
36209 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36210 | ## ----------------------------------------- ## | |
a848cd7e SC |
36211 | _ASBOX |
36212 | ) | | |
36213 | sed "s/^/$as_me: WARNING: /" >&2 | |
36214 | ;; | |
36215 | esac | |
36216 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36217 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36220 | else | |
ac1cb8d3 | 36221 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36222 | fi |
36223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36224 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36225 | ||
36226 | fi | |
36227 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36228 | cat >>confdefs.h <<_ACEOF | |
36229 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36230 | _ACEOF | |
36231 | ||
36232 | fi | |
36233 | ||
36234 | done | |
36235 | ||
36236 | ||
36237 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36238 | if test "$GCC" = yes ; then | |
36239 | ||
36240 | ||
36241 | ac_ext=cc | |
36242 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36243 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36244 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36245 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36246 | ||
36247 | ||
36248 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36249 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36250 | cat >conftest.$ac_ext <<_ACEOF | |
36251 | /* confdefs.h. */ | |
36252 | _ACEOF | |
36253 | cat confdefs.h >>conftest.$ac_ext | |
36254 | cat >>conftest.$ac_ext <<_ACEOF | |
36255 | /* end confdefs.h. */ | |
36256 | #include <windows.h> | |
36257 | #include <ole2.h> | |
36258 | int | |
36259 | main () | |
36260 | { | |
36261 | ||
36262 | ; | |
36263 | return 0; | |
36264 | } | |
36265 | _ACEOF | |
36266 | rm -f conftest.$ac_objext | |
36267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36268 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36269 | ac_status=$? |
ac1cb8d3 VS |
36270 | grep -v '^ *+' conftest.er1 >conftest.err |
36271 | rm -f conftest.er1 | |
36272 | cat conftest.err >&5 | |
a848cd7e SC |
36273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36274 | (exit $ac_status); } && | |
5dcf30a0 RN |
36275 | { ac_try='test -z "$ac_cxx_werror_flag" |
36276 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36278 | (eval $ac_try) 2>&5 | |
36279 | ac_status=$? | |
36280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36281 | (exit $ac_status); }; } && | |
36282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36284 | (eval $ac_try) 2>&5 | |
36285 | ac_status=$? | |
36286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36287 | (exit $ac_status); }; }; then | |
36288 | echo "$as_me:$LINENO: result: no" >&5 | |
36289 | echo "${ECHO_T}no" >&6 | |
36290 | else | |
36291 | echo "$as_me: failed program was:" >&5 | |
36292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36293 | ||
36294 | echo "$as_me:$LINENO: result: yes" >&5 | |
36295 | echo "${ECHO_T}yes" >&6 | |
36296 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36297 | fi | |
ac1cb8d3 | 36298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36299 | ac_ext=c |
36300 | ac_cpp='$CPP $CPPFLAGS' | |
36301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36304 | ||
a848cd7e SC |
36305 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
36306 | if test "$wxUSE_OLE" = "yes" ; then | |
36307 | cat >>confdefs.h <<\_ACEOF | |
36308 | #define wxUSE_OLE 1 | |
36309 | _ACEOF | |
36310 | ||
36311 | fi | |
36312 | fi | |
36313 | ||
36314 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36315 | cat >>confdefs.h <<\_ACEOF | |
36316 | #define wxUSE_DATAOBJ 1 | |
36317 | _ACEOF | |
36318 | ||
36319 | fi | |
36320 | else | |
36321 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36322 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36323 | ||
36324 | wxUSE_CLIPBOARD=no | |
36325 | wxUSE_DRAG_AND_DROP=no | |
36326 | wxUSE_DATAOBJ=no | |
36327 | wxUSE_OLE=no | |
36328 | fi | |
36329 | ||
36330 | if test "$wxUSE_METAFILE" = "yes"; then | |
36331 | cat >>confdefs.h <<\_ACEOF | |
36332 | #define wxUSE_METAFILE 1 | |
36333 | _ACEOF | |
36334 | ||
36335 | ||
36336 | cat >>confdefs.h <<\_ACEOF | |
36337 | #define wxUSE_ENH_METAFILE 1 | |
36338 | _ACEOF | |
36339 | ||
36340 | fi | |
36341 | fi | |
36342 | ||
36343 | if test "$wxUSE_IPC" = "yes"; then | |
36344 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36345 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36346 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36347 | fi |
36348 | ||
36349 | cat >>confdefs.h <<\_ACEOF | |
36350 | #define wxUSE_IPC 1 | |
36351 | _ACEOF | |
36352 | ||
36353 | fi | |
36354 | ||
36355 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36356 | if test "$wxUSE_MGL" = 1; then | |
36357 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36358 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36359 | wxUSE_CLIPBOARD=no | |
36360 | fi | |
36361 | ||
36362 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36363 | cat >>confdefs.h <<\_ACEOF | |
36364 | #define wxUSE_CLIPBOARD 1 | |
36365 | _ACEOF | |
36366 | ||
36367 | ||
36368 | cat >>confdefs.h <<\_ACEOF | |
36369 | #define wxUSE_DATAOBJ 1 | |
36370 | _ACEOF | |
36371 | ||
36372 | fi | |
36373 | fi | |
36374 | ||
36375 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36376 | if test "$wxUSE_GTK" = 1; then | |
36377 | if test "$WXGTK12" != 1; then | |
36378 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36379 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36380 | wxUSE_DRAG_AND_DROP=no | |
36381 | fi | |
36382 | fi | |
36383 | ||
36384 | if test "$wxUSE_MOTIF" = 1; then | |
36385 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36386 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36387 | wxUSE_DRAG_AND_DROP=no | |
36388 | fi | |
36389 | ||
36390 | if test "$wxUSE_X11" = 1; then | |
36391 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36392 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36393 | wxUSE_DRAG_AND_DROP=no | |
36394 | fi | |
36395 | ||
36396 | if test "$wxUSE_MGL" = 1; then | |
36397 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36398 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36399 | wxUSE_DRAG_AND_DROP=no | |
36400 | fi | |
36401 | ||
36402 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36403 | cat >>confdefs.h <<\_ACEOF | |
36404 | #define wxUSE_DRAG_AND_DROP 1 | |
36405 | _ACEOF | |
36406 | ||
36407 | fi | |
36408 | ||
36409 | fi | |
36410 | ||
36411 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36412 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36413 | fi | |
36414 | ||
36415 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36416 | cat >>confdefs.h <<\_ACEOF | |
36417 | #define wxUSE_SPLINES 1 | |
36418 | _ACEOF | |
36419 | ||
36420 | fi | |
36421 | ||
36422 | ||
36423 | USES_CONTROLS=0 | |
36424 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36425 | USES_CONTROLS=1 | |
36426 | fi | |
36427 | ||
36428 | if test "$wxUSE_ACCEL" = "yes"; then | |
36429 | cat >>confdefs.h <<\_ACEOF | |
36430 | #define wxUSE_ACCEL 1 | |
36431 | _ACEOF | |
36432 | ||
36433 | USES_CONTROLS=1 | |
36434 | fi | |
36435 | ||
36436 | if test "$wxUSE_BUTTON" = "yes"; then | |
36437 | cat >>confdefs.h <<\_ACEOF | |
36438 | #define wxUSE_BUTTON 1 | |
36439 | _ACEOF | |
36440 | ||
36441 | USES_CONTROLS=1 | |
36442 | fi | |
36443 | ||
36444 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36445 | cat >>confdefs.h <<\_ACEOF | |
36446 | #define wxUSE_BMPBUTTON 1 | |
36447 | _ACEOF | |
36448 | ||
36449 | USES_CONTROLS=1 | |
36450 | fi | |
36451 | ||
36452 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36453 | cat >>confdefs.h <<\_ACEOF | |
36454 | #define wxUSE_CALENDARCTRL 1 | |
36455 | _ACEOF | |
36456 | ||
36457 | USES_CONTROLS=1 | |
36458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36459 | fi | |
36460 | ||
36461 | if test "$wxUSE_CARET" = "yes"; then | |
36462 | cat >>confdefs.h <<\_ACEOF | |
36463 | #define wxUSE_CARET 1 | |
36464 | _ACEOF | |
36465 | ||
36466 | USES_CONTROLS=1 | |
36467 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36468 | fi | |
36469 | ||
36470 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36471 | cat >>confdefs.h <<\_ACEOF | |
36472 | #define wxUSE_COMBOBOX 1 | |
36473 | _ACEOF | |
36474 | ||
36475 | USES_CONTROLS=1 | |
36476 | fi | |
36477 | ||
36478 | if test "$wxUSE_CHOICE" = "yes"; then | |
36479 | cat >>confdefs.h <<\_ACEOF | |
36480 | #define wxUSE_CHOICE 1 | |
36481 | _ACEOF | |
36482 | ||
36483 | USES_CONTROLS=1 | |
36484 | fi | |
36485 | ||
92bbdbcd WS |
36486 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
36487 | cat >>confdefs.h <<\_ACEOF | |
36488 | #define wxUSE_CHOICEBOOK 1 | |
36489 | _ACEOF | |
36490 | ||
36491 | USES_CONTROLS=1 | |
36492 | fi | |
36493 | ||
a848cd7e SC |
36494 | if test "$wxUSE_CHECKBOX" = "yes"; then |
36495 | cat >>confdefs.h <<\_ACEOF | |
36496 | #define wxUSE_CHECKBOX 1 | |
36497 | _ACEOF | |
36498 | ||
36499 | USES_CONTROLS=1 | |
36500 | fi | |
36501 | ||
36502 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36503 | cat >>confdefs.h <<\_ACEOF | |
36504 | #define wxUSE_CHECKLISTBOX 1 | |
36505 | _ACEOF | |
36506 | ||
36507 | USES_CONTROLS=1 | |
36508 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36509 | fi | |
36510 | ||
36511 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36512 | cat >>confdefs.h <<\_ACEOF | |
36513 | #define wxUSE_DISPLAY 1 | |
36514 | _ACEOF | |
36515 | ||
36516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36517 | fi | |
36518 | ||
36519 | if test "$wxUSE_GAUGE" = "yes"; then | |
36520 | cat >>confdefs.h <<\_ACEOF | |
36521 | #define wxUSE_GAUGE 1 | |
36522 | _ACEOF | |
36523 | ||
36524 | USES_CONTROLS=1 | |
36525 | fi | |
36526 | ||
36527 | if test "$wxUSE_GRID" = "yes"; then | |
36528 | cat >>confdefs.h <<\_ACEOF | |
36529 | #define wxUSE_GRID 1 | |
36530 | _ACEOF | |
36531 | ||
36532 | USES_CONTROLS=1 | |
36533 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36534 | fi | |
36535 | ||
36536 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36537 | cat >>confdefs.h <<\_ACEOF | |
36538 | #define wxUSE_IMAGLIST 1 | |
36539 | _ACEOF | |
36540 | ||
36541 | fi | |
36542 | ||
36543 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36544 | cat >>confdefs.h <<\_ACEOF | |
36545 | #define wxUSE_LISTBOOK 1 | |
36546 | _ACEOF | |
36547 | ||
36548 | USES_CONTROLS=1 | |
36549 | fi | |
36550 | ||
36551 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36552 | cat >>confdefs.h <<\_ACEOF | |
36553 | #define wxUSE_LISTBOX 1 | |
36554 | _ACEOF | |
36555 | ||
36556 | USES_CONTROLS=1 | |
36557 | fi | |
36558 | ||
36559 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36560 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36561 | cat >>confdefs.h <<\_ACEOF | |
36562 | #define wxUSE_LISTCTRL 1 | |
36563 | _ACEOF | |
36564 | ||
36565 | USES_CONTROLS=1 | |
36566 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36567 | else | |
36568 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36569 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36570 | fi | |
36571 | fi | |
36572 | ||
36573 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36574 | cat >>confdefs.h <<\_ACEOF | |
36575 | #define wxUSE_NOTEBOOK 1 | |
36576 | _ACEOF | |
36577 | ||
36578 | USES_CONTROLS=1 | |
36579 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36580 | fi | |
36581 | ||
36582 | ||
36583 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36584 | cat >>confdefs.h <<\_ACEOF | |
36585 | #define wxUSE_RADIOBOX 1 | |
36586 | _ACEOF | |
36587 | ||
36588 | USES_CONTROLS=1 | |
36589 | fi | |
36590 | ||
36591 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36592 | cat >>confdefs.h <<\_ACEOF | |
36593 | #define wxUSE_RADIOBTN 1 | |
36594 | _ACEOF | |
36595 | ||
36596 | USES_CONTROLS=1 | |
36597 | fi | |
36598 | ||
36599 | if test "$wxUSE_SASH" = "yes"; then | |
36600 | cat >>confdefs.h <<\_ACEOF | |
36601 | #define wxUSE_SASH 1 | |
36602 | _ACEOF | |
36603 | ||
36604 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36605 | fi | |
36606 | ||
36607 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36608 | cat >>confdefs.h <<\_ACEOF | |
36609 | #define wxUSE_SCROLLBAR 1 | |
36610 | _ACEOF | |
36611 | ||
36612 | USES_CONTROLS=1 | |
36613 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36614 | fi | |
36615 | ||
36616 | if test "$wxUSE_SLIDER" = "yes"; then | |
36617 | cat >>confdefs.h <<\_ACEOF | |
36618 | #define wxUSE_SLIDER 1 | |
36619 | _ACEOF | |
36620 | ||
36621 | USES_CONTROLS=1 | |
36622 | fi | |
36623 | ||
36624 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36625 | cat >>confdefs.h <<\_ACEOF | |
36626 | #define wxUSE_SPINBTN 1 | |
36627 | _ACEOF | |
36628 | ||
36629 | USES_CONTROLS=1 | |
36630 | fi | |
36631 | ||
36632 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36633 | cat >>confdefs.h <<\_ACEOF | |
36634 | #define wxUSE_SPINCTRL 1 | |
36635 | _ACEOF | |
36636 | ||
36637 | USES_CONTROLS=1 | |
36638 | fi | |
36639 | ||
36640 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36641 | cat >>confdefs.h <<\_ACEOF | |
36642 | #define wxUSE_SPLITTER 1 | |
36643 | _ACEOF | |
36644 | ||
36645 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36646 | fi | |
36647 | ||
36648 | if test "$wxUSE_STATBMP" = "yes"; then | |
36649 | cat >>confdefs.h <<\_ACEOF | |
36650 | #define wxUSE_STATBMP 1 | |
36651 | _ACEOF | |
36652 | ||
36653 | USES_CONTROLS=1 | |
36654 | fi | |
36655 | ||
36656 | if test "$wxUSE_STATBOX" = "yes"; then | |
36657 | cat >>confdefs.h <<\_ACEOF | |
36658 | #define wxUSE_STATBOX 1 | |
36659 | _ACEOF | |
36660 | ||
36661 | USES_CONTROLS=1 | |
36662 | fi | |
36663 | ||
36664 | if test "$wxUSE_STATTEXT" = "yes"; then | |
36665 | cat >>confdefs.h <<\_ACEOF | |
36666 | #define wxUSE_STATTEXT 1 | |
36667 | _ACEOF | |
36668 | ||
36669 | USES_CONTROLS=1 | |
36670 | fi | |
36671 | ||
36672 | if test "$wxUSE_STATLINE" = "yes"; then | |
36673 | cat >>confdefs.h <<\_ACEOF | |
36674 | #define wxUSE_STATLINE 1 | |
36675 | _ACEOF | |
36676 | ||
36677 | USES_CONTROLS=1 | |
36678 | fi | |
36679 | ||
36680 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
36681 | cat >>confdefs.h <<\_ACEOF | |
36682 | #define wxUSE_STATUSBAR 1 | |
36683 | _ACEOF | |
36684 | ||
36685 | USES_CONTROLS=1 | |
36686 | ||
36687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
36688 | fi | |
36689 | ||
36690 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
36691 | cat >>confdefs.h <<\_ACEOF | |
36692 | #define wxUSE_TAB_DIALOG 1 | |
36693 | _ACEOF | |
36694 | ||
36695 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36696 | fi | |
36697 | ||
36698 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
36699 | cat >>confdefs.h <<\_ACEOF | |
36700 | #define wxUSE_TEXTCTRL 1 | |
36701 | _ACEOF | |
36702 | ||
36703 | USES_CONTROLS=1 | |
36704 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36705 | fi | |
36706 | ||
36707 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36708 | if test "$wxUSE_COCOA" = 1 ; then | |
36709 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
36710 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
36711 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
36712 | else |
36713 | if test "$wxUSE_PM" = 1; then | |
36714 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
36715 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
36716 | wxUSE_TOGGLEBTN=no | |
36717 | fi | |
a848cd7e SC |
36718 | fi |
36719 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36720 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
36721 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
36722 | wxUSE_TOGGLEBTN=no | |
36723 | fi | |
36724 | ||
36725 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36726 | cat >>confdefs.h <<\_ACEOF | |
36727 | #define wxUSE_TOGGLEBTN 1 | |
36728 | _ACEOF | |
36729 | ||
36730 | USES_CONTROLS=1 | |
36731 | fi | |
36732 | fi | |
36733 | ||
36734 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
36735 | cat >>confdefs.h <<\_ACEOF | |
36736 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
36737 | _ACEOF | |
36738 | ||
36739 | wxUSE_TOOLBAR="yes" | |
36740 | USES_CONTROLS=1 | |
36741 | fi | |
36742 | ||
36743 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
36744 | cat >>confdefs.h <<\_ACEOF | |
36745 | #define wxUSE_TOOLBAR 1 | |
36746 | _ACEOF | |
36747 | ||
36748 | USES_CONTROLS=1 | |
36749 | ||
36750 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
36751 | wxUSE_TOOLBAR_NATIVE="yes" | |
36752 | fi | |
36753 | ||
36754 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
36755 | cat >>confdefs.h <<\_ACEOF | |
36756 | #define wxUSE_TOOLBAR_NATIVE 1 | |
36757 | _ACEOF | |
36758 | ||
36759 | USES_CONTROLS=1 | |
36760 | fi | |
36761 | ||
36762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
36763 | fi | |
36764 | ||
36765 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
36766 | if test "$wxUSE_MOTIF" = 1; then | |
36767 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
36768 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
36769 | else | |
36770 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36771 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
36772 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
36773 | else | |
36774 | cat >>confdefs.h <<\_ACEOF | |
36775 | #define wxUSE_TOOLTIPS 1 | |
36776 | _ACEOF | |
36777 | ||
36778 | fi | |
36779 | fi | |
36780 | fi | |
36781 | ||
36782 | if test "$wxUSE_TREECTRL" = "yes"; then | |
36783 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36784 | cat >>confdefs.h <<\_ACEOF | |
36785 | #define wxUSE_TREECTRL 1 | |
36786 | _ACEOF | |
36787 | ||
36788 | USES_CONTROLS=1 | |
36789 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
36790 | else | |
36791 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
36792 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36793 | fi | |
36794 | fi | |
36795 | ||
36796 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
36797 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
36798 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
36799 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
36800 | else | |
36801 | if test "$wxUSE_PM" = 1; then | |
36802 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
36803 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
36804 | else | |
36805 | cat >>confdefs.h <<\_ACEOF | |
36806 | #define wxUSE_POPUPWIN 1 | |
36807 | _ACEOF | |
36808 | ||
36809 | ||
36810 | USES_CONTROLS=1 | |
36811 | fi | |
36812 | fi | |
36813 | fi | |
36814 | ||
36815 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
36816 | if test "$wxUSE_PM" = 1; then | |
36817 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
36818 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
36819 | else | |
36820 | cat >>confdefs.h <<\_ACEOF | |
36821 | #define wxUSE_TIPWINDOW 1 | |
36822 | _ACEOF | |
36823 | ||
36824 | fi | |
36825 | fi | |
36826 | ||
36827 | if test "$USES_CONTROLS" = 1; then | |
36828 | cat >>confdefs.h <<\_ACEOF | |
36829 | #define wxUSE_CONTROLS 1 | |
36830 | _ACEOF | |
36831 | ||
36832 | fi | |
36833 | ||
36834 | ||
36835 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
36836 | cat >>confdefs.h <<\_ACEOF | |
36837 | #define wxUSE_ACCESSIBILITY 1 | |
36838 | _ACEOF | |
36839 | ||
36840 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36841 | fi | |
36842 | ||
36843 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
36844 | cat >>confdefs.h <<\_ACEOF | |
36845 | #define wxUSE_DRAGIMAGE 1 | |
36846 | _ACEOF | |
36847 | ||
36848 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36849 | fi | |
36850 | ||
36851 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
36852 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
36853 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
36854 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
36855 | else | |
36856 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36857 | #define wxUSE_EXCEPTIONS 1 |
36858 | _ACEOF | |
36859 | ||
07bea8f0 VS |
36860 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
36861 | fi | |
a848cd7e SC |
36862 | fi |
36863 | ||
36864 | USE_HTML=0 | |
36865 | if test "$wxUSE_HTML" = "yes"; then | |
36866 | cat >>confdefs.h <<\_ACEOF | |
36867 | #define wxUSE_HTML 1 | |
36868 | _ACEOF | |
36869 | ||
36870 | USE_HTML=1 | |
36871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
36872 | if test "$wxUSE_MAC" = 1; then |
36873 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
36874 | fi | |
a848cd7e | 36875 | fi |
646b6ec1 | 36876 | if test "$wxUSE_WEBKIT" = "yes"; then |
07bea8f0 VS |
36877 | if test "$wxUSE_MAC" = 1; then |
36878 | old_CPPFLAGS="$CPPFLAGS" | |
36879 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
36880 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
36881 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
36882 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
36883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36884 | else | |
36885 | cat >conftest.$ac_ext <<_ACEOF | |
36886 | /* confdefs.h. */ | |
36887 | _ACEOF | |
36888 | cat confdefs.h >>conftest.$ac_ext | |
36889 | cat >>conftest.$ac_ext <<_ACEOF | |
36890 | /* end confdefs.h. */ | |
36891 | #include <Carbon/Carbon.h> | |
36892 | ||
36893 | #include <WebKit/HIWebView.h> | |
36894 | _ACEOF | |
36895 | rm -f conftest.$ac_objext | |
36896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36897 | (eval $ac_compile) 2>conftest.er1 | |
36898 | ac_status=$? | |
36899 | grep -v '^ *+' conftest.er1 >conftest.err | |
36900 | rm -f conftest.er1 | |
36901 | cat conftest.err >&5 | |
36902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36903 | (exit $ac_status); } && | |
5dcf30a0 RN |
36904 | { ac_try='test -z "$ac_c_werror_flag" |
36905 | || test ! -s conftest.err' | |
07bea8f0 VS |
36906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36907 | (eval $ac_try) 2>&5 | |
36908 | ac_status=$? | |
36909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36910 | (exit $ac_status); }; } && | |
36911 | { ac_try='test -s conftest.$ac_objext' | |
36912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36913 | (eval $ac_try) 2>&5 | |
36914 | ac_status=$? | |
36915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36916 | (exit $ac_status); }; }; then | |
36917 | ac_cv_header_WebKit_HIWebView_h=yes | |
36918 | else | |
36919 | echo "$as_me: failed program was:" >&5 | |
36920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36921 | ||
36922 | ac_cv_header_WebKit_HIWebView_h=no | |
36923 | fi | |
36924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36925 | fi | |
36926 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
36927 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
36928 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
36929 | ||
36930 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
36931 | #define wxUSE_WEBKIT 1 |
36932 | _ACEOF | |
36933 | ||
07bea8f0 VS |
36934 | WEBKIT_LINK="-framework WebKit" |
36935 | ||
36936 | else | |
36937 | ||
36938 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
36939 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
36940 | wxUSE_WEBKIT=no | |
36941 | ||
646b6ec1 VS |
36942 | fi |
36943 | ||
07bea8f0 VS |
36944 | |
36945 | CPPFLAGS="$old_CPPFLAGS" | |
36946 | elif test "$wxUSE_COCOA" = 1; then | |
36947 | cat >>confdefs.h <<\_ACEOF | |
36948 | #define wxUSE_WEBKIT 1 | |
36949 | _ACEOF | |
36950 | ||
36951 | else | |
36952 | wxUSE_WEBKIT=no | |
36953 | fi | |
36954 | fi | |
36955 | ||
9a8f0513 VS |
36956 | USE_XRC=0 |
36957 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
36958 | if test "$wxUSE_XML" != "yes"; then |
36959 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
36960 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
36961 | wxUSE_XRC=no | |
36962 | else | |
36963 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
36964 | #define wxUSE_XRC 1 |
36965 | _ACEOF | |
36966 | ||
d2ebf0b7 VS |
36967 | USE_XRC=1 |
36968 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
36969 | fi | |
9a8f0513 | 36970 | fi |
07bea8f0 | 36971 | |
a848cd7e SC |
36972 | if test "$wxUSE_MENUS" = "yes"; then |
36973 | cat >>confdefs.h <<\_ACEOF | |
36974 | #define wxUSE_MENUS 1 | |
36975 | _ACEOF | |
36976 | ||
36977 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
36978 | fi | |
36979 | ||
36980 | if test "$wxUSE_METAFILE" = "yes"; then | |
36981 | cat >>confdefs.h <<\_ACEOF | |
36982 | #define wxUSE_METAFILE 1 | |
36983 | _ACEOF | |
36984 | ||
36985 | fi | |
36986 | ||
36987 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
36988 | cat >>confdefs.h <<\_ACEOF | |
36989 | #define wxUSE_MIMETYPE 1 | |
36990 | _ACEOF | |
36991 | ||
36992 | fi | |
36993 | ||
36994 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
36995 | cat >>confdefs.h <<\_ACEOF | |
36996 | #define wxUSE_MINIFRAME 1 | |
36997 | _ACEOF | |
36998 | ||
36999 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
37000 | fi | |
37001 | ||
37002 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
37003 | cat >>confdefs.h <<\_ACEOF | |
37004 | #define wxUSE_SYSTEM_OPTIONS 1 | |
37005 | _ACEOF | |
37006 | ||
37007 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
37008 | "$TOOLKIT" = "MOTIF"; then | |
37009 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
37010 | fi | |
37011 | fi | |
37012 | ||
37013 | ||
37014 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
37015 | cat >>confdefs.h <<\_ACEOF | |
37016 | #define wxUSE_VALIDATORS 1 | |
37017 | _ACEOF | |
37018 | ||
37019 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
37020 | fi | |
37021 | ||
37022 | if test "$wxUSE_PALETTE" = "yes" ; then | |
37023 | cat >>confdefs.h <<\_ACEOF | |
37024 | #define wxUSE_PALETTE 1 | |
37025 | _ACEOF | |
37026 | ||
37027 | fi | |
37028 | ||
37029 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
37030 | LIBS=" -lunicows $LIBS" | |
37031 | fi | |
37032 | ||
37033 | ||
37034 | if test "$wxUSE_IMAGE" = "yes" ; then | |
37035 | cat >>confdefs.h <<\_ACEOF | |
37036 | #define wxUSE_IMAGE 1 | |
37037 | _ACEOF | |
37038 | ||
37039 | ||
37040 | if test "$wxUSE_GIF" = "yes" ; then | |
37041 | cat >>confdefs.h <<\_ACEOF | |
37042 | #define wxUSE_GIF 1 | |
37043 | _ACEOF | |
37044 | ||
37045 | fi | |
37046 | ||
37047 | if test "$wxUSE_PCX" = "yes" ; then | |
37048 | cat >>confdefs.h <<\_ACEOF | |
37049 | #define wxUSE_PCX 1 | |
37050 | _ACEOF | |
37051 | ||
37052 | fi | |
37053 | ||
37054 | if test "$wxUSE_IFF" = "yes" ; then | |
37055 | cat >>confdefs.h <<\_ACEOF | |
37056 | #define wxUSE_IFF 1 | |
37057 | _ACEOF | |
37058 | ||
37059 | fi | |
37060 | ||
37061 | if test "$wxUSE_PNM" = "yes" ; then | |
37062 | cat >>confdefs.h <<\_ACEOF | |
37063 | #define wxUSE_PNM 1 | |
37064 | _ACEOF | |
37065 | ||
37066 | fi | |
37067 | ||
37068 | if test "$wxUSE_XPM" = "yes" ; then | |
37069 | cat >>confdefs.h <<\_ACEOF | |
37070 | #define wxUSE_XPM 1 | |
37071 | _ACEOF | |
37072 | ||
37073 | fi | |
37074 | ||
37075 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
37076 | cat >>confdefs.h <<\_ACEOF | |
37077 | #define wxUSE_ICO_CUR 1 | |
37078 | _ACEOF | |
37079 | ||
37080 | fi | |
37081 | fi | |
37082 | ||
37083 | ||
37084 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
37085 | cat >>confdefs.h <<\_ACEOF | |
37086 | #define wxUSE_CHOICEDLG 1 | |
37087 | _ACEOF | |
37088 | ||
37089 | fi | |
37090 | ||
37091 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
37092 | cat >>confdefs.h <<\_ACEOF | |
37093 | #define wxUSE_COLOURDLG 1 | |
37094 | _ACEOF | |
37095 | ||
37096 | fi | |
37097 | ||
37098 | if test "$wxUSE_FILEDLG" = "yes"; then | |
37099 | cat >>confdefs.h <<\_ACEOF | |
37100 | #define wxUSE_FILEDLG 1 | |
37101 | _ACEOF | |
37102 | ||
37103 | fi | |
37104 | ||
37105 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
37106 | cat >>confdefs.h <<\_ACEOF | |
37107 | #define wxUSE_FINDREPLDLG 1 | |
37108 | _ACEOF | |
37109 | ||
37110 | fi | |
37111 | ||
37112 | if test "$wxUSE_FONTDLG" = "yes"; then | |
37113 | cat >>confdefs.h <<\_ACEOF | |
37114 | #define wxUSE_FONTDLG 1 | |
37115 | _ACEOF | |
37116 | ||
37117 | fi | |
37118 | ||
37119 | if test "$wxUSE_DIRDLG" = "yes"; then | |
37120 | if test "$wxUSE_TREECTRL" != "yes"; then | |
37121 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
37122 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
37123 | else | |
37124 | cat >>confdefs.h <<\_ACEOF | |
37125 | #define wxUSE_DIRDLG 1 | |
37126 | _ACEOF | |
37127 | ||
37128 | fi | |
37129 | fi | |
37130 | ||
37131 | if test "$wxUSE_MSGDLG" = "yes"; then | |
37132 | cat >>confdefs.h <<\_ACEOF | |
37133 | #define wxUSE_MSGDLG 1 | |
37134 | _ACEOF | |
37135 | ||
37136 | fi | |
37137 | ||
37138 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
37139 | cat >>confdefs.h <<\_ACEOF | |
37140 | #define wxUSE_NUMBERDLG 1 | |
37141 | _ACEOF | |
37142 | ||
37143 | fi | |
37144 | ||
37145 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37146 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37147 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
37148 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
37149 | else | |
37150 | cat >>confdefs.h <<\_ACEOF | |
37151 | #define wxUSE_PROGRESSDLG 1 | |
37152 | _ACEOF | |
37153 | ||
37154 | fi | |
37155 | fi | |
37156 | ||
37157 | if test "$wxUSE_SPLASH" = "yes"; then | |
37158 | cat >>confdefs.h <<\_ACEOF | |
37159 | #define wxUSE_SPLASH 1 | |
37160 | _ACEOF | |
37161 | ||
2057db16 | 37162 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
37163 | fi |
37164 | ||
37165 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
37166 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37167 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
37168 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
37169 | else | |
37170 | cat >>confdefs.h <<\_ACEOF | |
37171 | #define wxUSE_STARTUP_TIPS 1 | |
37172 | _ACEOF | |
37173 | ||
37174 | fi | |
37175 | fi | |
37176 | ||
37177 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
37178 | cat >>confdefs.h <<\_ACEOF | |
37179 | #define wxUSE_TEXTDLG 1 | |
37180 | _ACEOF | |
37181 | ||
37182 | fi | |
37183 | ||
37184 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37185 | cat >>confdefs.h <<\_ACEOF | |
37186 | #define wxUSE_WIZARDDLG 1 | |
37187 | _ACEOF | |
37188 | ||
37189 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37190 | fi | |
37191 | ||
37192 | ||
37193 | if test "$cross_compiling" = "yes"; then | |
37194 | OSINFO="\"$host\"" | |
37195 | else | |
37196 | OSINFO=`uname -s -r -m` | |
37197 | OSINFO="\"$OSINFO\"" | |
37198 | fi | |
37199 | ||
37200 | cat >>confdefs.h <<_ACEOF | |
37201 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37202 | _ACEOF | |
37203 | ||
37204 | ||
37205 | ||
37206 | if test "x$prefix" != "xNONE"; then | |
37207 | wxPREFIX=$prefix | |
37208 | else | |
37209 | wxPREFIX=$ac_default_prefix | |
37210 | fi | |
37211 | ||
37212 | cat >>confdefs.h <<_ACEOF | |
37213 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37214 | _ACEOF | |
37215 | ||
37216 | ||
a848cd7e SC |
37217 | |
37218 | ||
37219 | CORE_BASE_LIBS="net base" | |
37220 | CORE_GUI_LIBS="adv core" | |
37221 | ||
37222 | if test "$wxUSE_XML" = "yes" ; then | |
37223 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37224 | fi | |
37225 | if test "$wxUSE_ODBC" != "no" ; then | |
37226 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37227 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37228 | fi | |
37229 | if test "$wxUSE_HTML" = "yes" ; then | |
37230 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37231 | fi | |
9a8f0513 VS |
37232 | if test "$wxUSE_XRC" = "yes" ; then |
37233 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
37234 | fi | |
a848cd7e SC |
37235 | |
37236 | if test "$wxUSE_GUI" != "yes"; then | |
37237 | CORE_GUI_LIBS="" | |
37238 | fi | |
37239 | ||
37240 | ||
37241 | ||
37242 | ||
37243 | ||
37244 | ||
37245 | ||
37246 | ||
37247 | if test "$wxUSE_MAC" = 1 ; then | |
07bea8f0 VS |
37248 | if test "$wxUSE_SOUND" = "yes"; then |
37249 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
37250 | fi | |
5dcf30a0 RN |
37251 | if test "$USE_DARWIN" = 1; then |
37252 | LDFLAGS="$LDFLAGS -framework IOKit" | |
37253 | fi | |
07bea8f0 | 37254 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" |
a848cd7e SC |
37255 | fi |
37256 | if test "$wxUSE_COCOA" = 1 ; then | |
37257 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
37258 | fi | |
37259 | ||
37260 | ||
37261 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37262 | ||
37263 | have_cos=0 | |
37264 | have_floor=0 | |
37265 | ||
37266 | for ac_func in cos | |
37267 | do | |
37268 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37269 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37270 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37271 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37273 | else | |
37274 | cat >conftest.$ac_ext <<_ACEOF | |
37275 | /* confdefs.h. */ | |
37276 | _ACEOF | |
37277 | cat confdefs.h >>conftest.$ac_ext | |
37278 | cat >>conftest.$ac_ext <<_ACEOF | |
37279 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37280 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37281 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37282 | #define $ac_func innocuous_$ac_func | |
37283 | ||
a848cd7e SC |
37284 | /* System header to define __stub macros and hopefully few prototypes, |
37285 | which can conflict with char $ac_func (); below. | |
37286 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37287 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37288 | |
a848cd7e SC |
37289 | #ifdef __STDC__ |
37290 | # include <limits.h> | |
37291 | #else | |
37292 | # include <assert.h> | |
37293 | #endif | |
ac1cb8d3 VS |
37294 | |
37295 | #undef $ac_func | |
37296 | ||
a848cd7e SC |
37297 | /* Override any gcc2 internal prototype to avoid an error. */ |
37298 | #ifdef __cplusplus | |
37299 | extern "C" | |
37300 | { | |
37301 | #endif | |
37302 | /* We use char because int might match the return type of a gcc2 | |
37303 | builtin and then its argument prototype would still apply. */ | |
37304 | char $ac_func (); | |
37305 | /* The GNU C library defines this for functions which it implements | |
37306 | to always fail with ENOSYS. Some functions are actually named | |
37307 | something starting with __ and the normal name is an alias. */ | |
37308 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37309 | choke me | |
37310 | #else | |
37311 | char (*f) () = $ac_func; | |
37312 | #endif | |
37313 | #ifdef __cplusplus | |
37314 | } | |
37315 | #endif | |
37316 | ||
37317 | int | |
37318 | main () | |
37319 | { | |
37320 | return f != $ac_func; | |
37321 | ; | |
37322 | return 0; | |
37323 | } | |
37324 | _ACEOF | |
37325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37327 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37328 | ac_status=$? |
ac1cb8d3 VS |
37329 | grep -v '^ *+' conftest.er1 >conftest.err |
37330 | rm -f conftest.er1 | |
37331 | cat conftest.err >&5 | |
a848cd7e SC |
37332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37333 | (exit $ac_status); } && | |
5dcf30a0 RN |
37334 | { ac_try='test -z "$ac_c_werror_flag" |
37335 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37337 | (eval $ac_try) 2>&5 | |
37338 | ac_status=$? | |
37339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37340 | (exit $ac_status); }; } && | |
37341 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37343 | (eval $ac_try) 2>&5 | |
37344 | ac_status=$? | |
37345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37346 | (exit $ac_status); }; }; then | |
37347 | eval "$as_ac_var=yes" | |
37348 | else | |
37349 | echo "$as_me: failed program was:" >&5 | |
37350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37351 | ||
37352 | eval "$as_ac_var=no" | |
37353 | fi | |
ac1cb8d3 VS |
37354 | rm -f conftest.err conftest.$ac_objext \ |
37355 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37356 | fi |
37357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37358 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37359 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37360 | cat >>confdefs.h <<_ACEOF | |
37361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37362 | _ACEOF | |
37363 | have_cos=1 | |
37364 | fi | |
37365 | done | |
37366 | ||
37367 | ||
37368 | for ac_func in floor | |
37369 | do | |
37370 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37371 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37372 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37373 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37375 | else | |
37376 | cat >conftest.$ac_ext <<_ACEOF | |
37377 | /* confdefs.h. */ | |
37378 | _ACEOF | |
37379 | cat confdefs.h >>conftest.$ac_ext | |
37380 | cat >>conftest.$ac_ext <<_ACEOF | |
37381 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37382 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37383 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37384 | #define $ac_func innocuous_$ac_func | |
37385 | ||
a848cd7e SC |
37386 | /* System header to define __stub macros and hopefully few prototypes, |
37387 | which can conflict with char $ac_func (); below. | |
37388 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37389 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37390 | |
a848cd7e SC |
37391 | #ifdef __STDC__ |
37392 | # include <limits.h> | |
37393 | #else | |
37394 | # include <assert.h> | |
37395 | #endif | |
ac1cb8d3 VS |
37396 | |
37397 | #undef $ac_func | |
37398 | ||
a848cd7e SC |
37399 | /* Override any gcc2 internal prototype to avoid an error. */ |
37400 | #ifdef __cplusplus | |
37401 | extern "C" | |
37402 | { | |
37403 | #endif | |
37404 | /* We use char because int might match the return type of a gcc2 | |
37405 | builtin and then its argument prototype would still apply. */ | |
37406 | char $ac_func (); | |
37407 | /* The GNU C library defines this for functions which it implements | |
37408 | to always fail with ENOSYS. Some functions are actually named | |
37409 | something starting with __ and the normal name is an alias. */ | |
37410 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37411 | choke me | |
37412 | #else | |
37413 | char (*f) () = $ac_func; | |
37414 | #endif | |
37415 | #ifdef __cplusplus | |
37416 | } | |
37417 | #endif | |
37418 | ||
37419 | int | |
37420 | main () | |
37421 | { | |
37422 | return f != $ac_func; | |
37423 | ; | |
37424 | return 0; | |
37425 | } | |
37426 | _ACEOF | |
37427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37429 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37430 | ac_status=$? |
ac1cb8d3 VS |
37431 | grep -v '^ *+' conftest.er1 >conftest.err |
37432 | rm -f conftest.er1 | |
37433 | cat conftest.err >&5 | |
a848cd7e SC |
37434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37435 | (exit $ac_status); } && | |
5dcf30a0 RN |
37436 | { ac_try='test -z "$ac_c_werror_flag" |
37437 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37439 | (eval $ac_try) 2>&5 | |
37440 | ac_status=$? | |
37441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37442 | (exit $ac_status); }; } && | |
37443 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37445 | (eval $ac_try) 2>&5 | |
37446 | ac_status=$? | |
37447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37448 | (exit $ac_status); }; }; then | |
37449 | eval "$as_ac_var=yes" | |
37450 | else | |
37451 | echo "$as_me: failed program was:" >&5 | |
37452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37453 | ||
37454 | eval "$as_ac_var=no" | |
37455 | fi | |
ac1cb8d3 VS |
37456 | rm -f conftest.err conftest.$ac_objext \ |
37457 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37458 | fi |
37459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37460 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37461 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37462 | cat >>confdefs.h <<_ACEOF | |
37463 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37464 | _ACEOF | |
37465 | have_floor=1 | |
37466 | fi | |
37467 | done | |
37468 | ||
37469 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37470 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37471 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37472 | echo "$as_me:$LINENO: result: yes" >&5 | |
37473 | echo "${ECHO_T}yes" >&6 | |
37474 | else | |
37475 | echo "$as_me:$LINENO: result: no" >&5 | |
37476 | echo "${ECHO_T}no" >&6 | |
37477 | LIBS="$LIBS -lm" | |
37478 | # use different functions to avoid configure caching | |
37479 | have_sin=0 | |
37480 | have_ceil=0 | |
37481 | ||
37482 | for ac_func in sin | |
37483 | do | |
37484 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37485 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37486 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37487 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37489 | else | |
37490 | cat >conftest.$ac_ext <<_ACEOF | |
37491 | /* confdefs.h. */ | |
37492 | _ACEOF | |
37493 | cat confdefs.h >>conftest.$ac_ext | |
37494 | cat >>conftest.$ac_ext <<_ACEOF | |
37495 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37496 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37497 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37498 | #define $ac_func innocuous_$ac_func | |
37499 | ||
a848cd7e SC |
37500 | /* System header to define __stub macros and hopefully few prototypes, |
37501 | which can conflict with char $ac_func (); below. | |
37502 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37503 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37504 | |
a848cd7e SC |
37505 | #ifdef __STDC__ |
37506 | # include <limits.h> | |
37507 | #else | |
37508 | # include <assert.h> | |
37509 | #endif | |
ac1cb8d3 VS |
37510 | |
37511 | #undef $ac_func | |
37512 | ||
a848cd7e SC |
37513 | /* Override any gcc2 internal prototype to avoid an error. */ |
37514 | #ifdef __cplusplus | |
37515 | extern "C" | |
37516 | { | |
37517 | #endif | |
37518 | /* We use char because int might match the return type of a gcc2 | |
37519 | builtin and then its argument prototype would still apply. */ | |
37520 | char $ac_func (); | |
37521 | /* The GNU C library defines this for functions which it implements | |
37522 | to always fail with ENOSYS. Some functions are actually named | |
37523 | something starting with __ and the normal name is an alias. */ | |
37524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37525 | choke me | |
37526 | #else | |
37527 | char (*f) () = $ac_func; | |
37528 | #endif | |
37529 | #ifdef __cplusplus | |
37530 | } | |
37531 | #endif | |
37532 | ||
37533 | int | |
37534 | main () | |
37535 | { | |
37536 | return f != $ac_func; | |
37537 | ; | |
37538 | return 0; | |
37539 | } | |
37540 | _ACEOF | |
37541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37543 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37544 | ac_status=$? |
ac1cb8d3 VS |
37545 | grep -v '^ *+' conftest.er1 >conftest.err |
37546 | rm -f conftest.er1 | |
37547 | cat conftest.err >&5 | |
a848cd7e SC |
37548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37549 | (exit $ac_status); } && | |
5dcf30a0 RN |
37550 | { ac_try='test -z "$ac_c_werror_flag" |
37551 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37553 | (eval $ac_try) 2>&5 | |
37554 | ac_status=$? | |
37555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37556 | (exit $ac_status); }; } && | |
37557 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37559 | (eval $ac_try) 2>&5 | |
37560 | ac_status=$? | |
37561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37562 | (exit $ac_status); }; }; then | |
37563 | eval "$as_ac_var=yes" | |
37564 | else | |
37565 | echo "$as_me: failed program was:" >&5 | |
37566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37567 | ||
37568 | eval "$as_ac_var=no" | |
37569 | fi | |
ac1cb8d3 VS |
37570 | rm -f conftest.err conftest.$ac_objext \ |
37571 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37572 | fi |
37573 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37574 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37575 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37576 | cat >>confdefs.h <<_ACEOF | |
37577 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37578 | _ACEOF | |
37579 | have_sin=1 | |
37580 | fi | |
37581 | done | |
37582 | ||
37583 | ||
37584 | for ac_func in ceil | |
37585 | do | |
37586 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37587 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37588 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37589 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37591 | else | |
37592 | cat >conftest.$ac_ext <<_ACEOF | |
37593 | /* confdefs.h. */ | |
37594 | _ACEOF | |
37595 | cat confdefs.h >>conftest.$ac_ext | |
37596 | cat >>conftest.$ac_ext <<_ACEOF | |
37597 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37598 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37600 | #define $ac_func innocuous_$ac_func | |
37601 | ||
a848cd7e SC |
37602 | /* System header to define __stub macros and hopefully few prototypes, |
37603 | which can conflict with char $ac_func (); below. | |
37604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37605 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37606 | |
a848cd7e SC |
37607 | #ifdef __STDC__ |
37608 | # include <limits.h> | |
37609 | #else | |
37610 | # include <assert.h> | |
37611 | #endif | |
ac1cb8d3 VS |
37612 | |
37613 | #undef $ac_func | |
37614 | ||
a848cd7e SC |
37615 | /* Override any gcc2 internal prototype to avoid an error. */ |
37616 | #ifdef __cplusplus | |
37617 | extern "C" | |
37618 | { | |
37619 | #endif | |
37620 | /* We use char because int might match the return type of a gcc2 | |
37621 | builtin and then its argument prototype would still apply. */ | |
37622 | char $ac_func (); | |
37623 | /* The GNU C library defines this for functions which it implements | |
37624 | to always fail with ENOSYS. Some functions are actually named | |
37625 | something starting with __ and the normal name is an alias. */ | |
37626 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37627 | choke me | |
37628 | #else | |
37629 | char (*f) () = $ac_func; | |
37630 | #endif | |
37631 | #ifdef __cplusplus | |
37632 | } | |
37633 | #endif | |
37634 | ||
37635 | int | |
37636 | main () | |
37637 | { | |
37638 | return f != $ac_func; | |
37639 | ; | |
37640 | return 0; | |
37641 | } | |
37642 | _ACEOF | |
37643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37645 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37646 | ac_status=$? |
ac1cb8d3 VS |
37647 | grep -v '^ *+' conftest.er1 >conftest.err |
37648 | rm -f conftest.er1 | |
37649 | cat conftest.err >&5 | |
a848cd7e SC |
37650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37651 | (exit $ac_status); } && | |
5dcf30a0 RN |
37652 | { ac_try='test -z "$ac_c_werror_flag" |
37653 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37655 | (eval $ac_try) 2>&5 | |
37656 | ac_status=$? | |
37657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37658 | (exit $ac_status); }; } && | |
37659 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37661 | (eval $ac_try) 2>&5 | |
37662 | ac_status=$? | |
37663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37664 | (exit $ac_status); }; }; then | |
37665 | eval "$as_ac_var=yes" | |
37666 | else | |
37667 | echo "$as_me: failed program was:" >&5 | |
37668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37669 | ||
37670 | eval "$as_ac_var=no" | |
37671 | fi | |
ac1cb8d3 VS |
37672 | rm -f conftest.err conftest.$ac_objext \ |
37673 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37674 | fi |
37675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37676 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37677 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37678 | cat >>confdefs.h <<_ACEOF | |
37679 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37680 | _ACEOF | |
37681 | have_ceil=1 | |
37682 | fi | |
37683 | done | |
37684 | ||
37685 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
37686 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
37687 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
37688 | echo "$as_me:$LINENO: result: yes" >&5 | |
37689 | echo "${ECHO_T}yes" >&6 | |
37690 | else | |
37691 | echo "$as_me:$LINENO: result: no" >&5 | |
37692 | echo "${ECHO_T}no" >&6 | |
37693 | # not sure we should warn the user, crash, etc. | |
37694 | fi | |
37695 | fi | |
37696 | ||
37697 | if test "$wxUSE_GUI" = "yes"; then | |
37698 | ||
37699 | ||
37700 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
37701 | drawing dynamic erase event exec font image \ | |
37702 | minimal propsize rotate shaped widgets render" | |
37703 | ||
37704 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37705 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37706 | fi | |
37707 | else | |
37708 | SAMPLES_SUBDIRS="console" | |
37709 | fi | |
37710 | ||
37711 | ||
ceec2216 | 37712 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
37713 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
37714 | ||
37715 | if test "$GXX" = yes ; then | |
37716 | CXXWARNINGS="-Wall" | |
37717 | fi | |
37718 | ||
37719 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37720 | ||
0c3c69fc VS |
37721 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
37722 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS` | |
37723 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` | |
a848cd7e SC |
37724 | |
37725 | ||
0c3c69fc | 37726 | LIBS=`echo $LIBS` |
a848cd7e SC |
37727 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
37728 | EXTRALIBS_XML="$EXPAT_LINK" | |
37729 | EXTRALIBS_HTML="$MSPACK_LINK" | |
37730 | EXTRALIBS_ODBC="$ODBC_LINK" | |
37731 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 37732 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
37733 | fi |
37734 | if test "$wxUSE_OPENGL" = "yes"; then | |
37735 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37736 | fi | |
37737 | ||
37738 | LDFLAGS="$LDFLAGS $PROFILE" | |
37739 | ||
37740 | if test "$wxUSE_GTK" = 1; then | |
37741 | WXCONFIG_INCLUDE= | |
37742 | else | |
37743 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37744 | fi | |
37745 | ||
37746 | WXCONFIG_EXTRALIBS="$LIBS" | |
37747 | ||
37748 | if test "$wxUSE_REGEX" = "builtin" ; then | |
37749 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
37750 | fi | |
37751 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37752 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37753 | fi | |
37754 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37755 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37756 | fi | |
37757 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37758 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37759 | fi | |
37760 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37761 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37762 | fi | |
37763 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37764 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37765 | fi | |
37766 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37767 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37768 | fi | |
37769 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37770 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37771 | fi | |
37772 | ||
37773 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 37774 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
37775 | done |
37776 | ||
37777 | ||
37778 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
37779 | WXUNIV=1 | |
37780 | else | |
37781 | WXUNIV=0 | |
37782 | fi | |
37783 | ||
37784 | ||
37785 | ||
37786 | ||
37787 | ||
37788 | ||
37789 | ||
37790 | ||
37791 | ||
37792 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
37793 | MONOLITHIC=1 | |
37794 | else | |
37795 | MONOLITHIC=0 | |
37796 | fi | |
37797 | ||
37798 | if test $wxUSE_PLUGINS = "yes" ; then | |
37799 | USE_PLUGINS=1 | |
37800 | else | |
37801 | USE_PLUGINS=0 | |
37802 | fi | |
37803 | ||
37804 | if test $wxUSE_ODBC != "no" ; then | |
37805 | USE_ODBC=1 | |
37806 | else | |
37807 | USE_ODBC=0 | |
37808 | fi | |
37809 | ||
37810 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
37811 | OFFICIAL_BUILD=1 | |
37812 | else | |
37813 | OFFICIAL_BUILD=0 | |
37814 | fi | |
37815 | ||
37816 | ||
37817 | ||
37818 | ||
37819 | ||
37820 | ||
37821 | ||
37822 | ||
37823 | ||
37824 | ||
37825 | ||
37826 | ||
37827 | ||
37828 | ||
37829 | ||
37830 | ||
37831 | ||
37832 | ||
37833 | ||
ceec2216 | 37834 | |
a848cd7e SC |
37835 | |
37836 | ||
37837 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
37838 | ||
37839 | ||
37840 | ||
37841 | ||
37842 | ||
37843 | ||
37844 | ||
37845 | ||
4d4ff94c VZ |
37846 | case "$TOOLKIT" in |
37847 | GTK) | |
37848 | TOOLKIT_USER="GTK+" | |
37849 | if test "$WXGTK20" = 1; then | |
37850 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
37851 | fi | |
9a8f0513 | 37852 | ;; |
4d4ff94c VZ |
37853 | |
37854 | *) | |
37855 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 37856 | ;; |
4d4ff94c | 37857 | esac |
a848cd7e | 37858 | |
9a8f0513 | 37859 | |
a848cd7e SC |
37860 | if test "x$BAKEFILE_HOST" = "x"; then |
37861 | BAKEFILE_HOST="${host}" | |
37862 | fi | |
37863 | ||
37864 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
37865 | ||
37866 | if test -n "$ac_tool_prefix"; then | |
37867 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37868 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37871 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37873 | else | |
37874 | if test -n "$RANLIB"; then | |
37875 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
37876 | else | |
37877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37878 | for as_dir in $PATH | |
37879 | do | |
37880 | IFS=$as_save_IFS | |
37881 | test -z "$as_dir" && as_dir=. | |
37882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37884 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
37885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37886 | break 2 | |
37887 | fi | |
37888 | done | |
37889 | done | |
37890 | ||
37891 | fi | |
37892 | fi | |
37893 | RANLIB=$ac_cv_prog_RANLIB | |
37894 | if test -n "$RANLIB"; then | |
37895 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
37896 | echo "${ECHO_T}$RANLIB" >&6 | |
37897 | else | |
37898 | echo "$as_me:$LINENO: result: no" >&5 | |
37899 | echo "${ECHO_T}no" >&6 | |
37900 | fi | |
37901 | ||
37902 | fi | |
37903 | if test -z "$ac_cv_prog_RANLIB"; then | |
37904 | ac_ct_RANLIB=$RANLIB | |
37905 | # Extract the first word of "ranlib", so it can be a program name with args. | |
37906 | set dummy ranlib; ac_word=$2 | |
37907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37909 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
37910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37911 | else | |
37912 | if test -n "$ac_ct_RANLIB"; then | |
37913 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
37914 | else | |
37915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37916 | for as_dir in $PATH | |
37917 | do | |
37918 | IFS=$as_save_IFS | |
37919 | test -z "$as_dir" && as_dir=. | |
37920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37922 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
37923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37924 | break 2 | |
37925 | fi | |
37926 | done | |
37927 | done | |
37928 | ||
37929 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
37930 | fi | |
37931 | fi | |
37932 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
37933 | if test -n "$ac_ct_RANLIB"; then | |
37934 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
37935 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
37936 | else | |
37937 | echo "$as_me:$LINENO: result: no" >&5 | |
37938 | echo "${ECHO_T}no" >&6 | |
37939 | fi | |
37940 | ||
37941 | RANLIB=$ac_ct_RANLIB | |
37942 | else | |
37943 | RANLIB="$ac_cv_prog_RANLIB" | |
37944 | fi | |
37945 | ||
37946 | # Find a good install program. We prefer a C program (faster), | |
37947 | # so one script is as good as another. But avoid the broken or | |
37948 | # incompatible versions: | |
37949 | # SysV /etc/install, /usr/sbin/install | |
37950 | # SunOS /usr/etc/install | |
37951 | # IRIX /sbin/install | |
37952 | # AIX /bin/install | |
37953 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
37954 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
37955 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
37956 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 37957 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
37958 | # ./install, which can be erroneously created by make from ./install.sh. |
37959 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
37960 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
37961 | if test -z "$INSTALL"; then | |
37962 | if test "${ac_cv_path_install+set}" = set; then | |
37963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37964 | else | |
37965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37966 | for as_dir in $PATH | |
37967 | do | |
37968 | IFS=$as_save_IFS | |
37969 | test -z "$as_dir" && as_dir=. | |
37970 | # Account for people who put trailing slashes in PATH elements. | |
37971 | case $as_dir/ in | |
37972 | ./ | .// | /cC/* | \ | |
37973 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 37974 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
37975 | /usr/ucb/* ) ;; |
37976 | *) | |
37977 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
37978 | # Don't use installbsd from OSF since it installs stuff as root | |
37979 | # by default. | |
37980 | for ac_prog in ginstall scoinst install; do | |
37981 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
37982 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
37983 | if test $ac_prog = install && | |
37984 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37985 | # AIX install. It has an incompatible calling convention. | |
37986 | : | |
37987 | elif test $ac_prog = install && | |
37988 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37989 | # program-specific install script used by HP pwplus--don't use. | |
37990 | : | |
37991 | else | |
37992 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
37993 | break 3 | |
37994 | fi | |
37995 | fi | |
a848cd7e SC |
37996 | done |
37997 | done | |
37998 | ;; | |
37999 | esac | |
38000 | done | |
38001 | ||
38002 | ||
38003 | fi | |
38004 | if test "${ac_cv_path_install+set}" = set; then | |
38005 | INSTALL=$ac_cv_path_install | |
38006 | else | |
38007 | # As a last resort, use the slow shell script. We don't cache a | |
38008 | # path for INSTALL within a source directory, because that will | |
38009 | # break other packages using the cache if that directory is | |
38010 | # removed, or if the path is relative. | |
38011 | INSTALL=$ac_install_sh | |
38012 | fi | |
38013 | fi | |
38014 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
38015 | echo "${ECHO_T}$INSTALL" >&6 | |
38016 | ||
38017 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
38018 | # It thinks the first close brace ends the variable substitution. | |
38019 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
38020 | ||
38021 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
38022 | ||
38023 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
38024 | ||
38025 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
38026 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
38027 | LN_S=$as_ln_s | |
38028 | if test "$LN_S" = "ln -s"; then | |
38029 | echo "$as_me:$LINENO: result: yes" >&5 | |
38030 | echo "${ECHO_T}yes" >&6 | |
38031 | else | |
38032 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
38033 | echo "${ECHO_T}no, using $LN_S" >&6 | |
38034 | fi | |
38035 | ||
38036 | ||
38037 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38038 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 38039 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
38040 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38042 | else | |
38043 | cat >conftest.make <<\_ACEOF | |
38044 | all: | |
38045 | @echo 'ac_maketemp="$(MAKE)"' | |
38046 | _ACEOF | |
38047 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38048 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38049 | if test -n "$ac_maketemp"; then | |
38050 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38051 | else | |
38052 | eval ac_cv_prog_make_${ac_make}_set=no | |
38053 | fi | |
38054 | rm -f conftest.make | |
38055 | fi | |
38056 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38057 | echo "$as_me:$LINENO: result: yes" >&5 | |
38058 | echo "${ECHO_T}yes" >&6 | |
38059 | SET_MAKE= | |
38060 | else | |
38061 | echo "$as_me:$LINENO: result: no" >&5 | |
38062 | echo "${ECHO_T}no" >&6 | |
38063 | SET_MAKE="MAKE=${MAKE-make}" | |
38064 | fi | |
38065 | ||
38066 | ||
38067 | ||
38068 | if test -n "$ac_tool_prefix"; then | |
38069 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
38070 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
38071 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38073 | if test "${ac_cv_prog_AR+set}" = set; then | |
38074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38075 | else | |
38076 | if test -n "$AR"; then | |
38077 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38078 | else | |
38079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38080 | for as_dir in $PATH | |
38081 | do | |
38082 | IFS=$as_save_IFS | |
38083 | test -z "$as_dir" && as_dir=. | |
38084 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38085 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38086 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
38087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38088 | break 2 | |
38089 | fi | |
38090 | done | |
38091 | done | |
38092 | ||
38093 | fi | |
38094 | fi | |
38095 | AR=$ac_cv_prog_AR | |
38096 | if test -n "$AR"; then | |
38097 | echo "$as_me:$LINENO: result: $AR" >&5 | |
38098 | echo "${ECHO_T}$AR" >&6 | |
38099 | else | |
38100 | echo "$as_me:$LINENO: result: no" >&5 | |
38101 | echo "${ECHO_T}no" >&6 | |
38102 | fi | |
38103 | ||
38104 | fi | |
38105 | if test -z "$ac_cv_prog_AR"; then | |
38106 | ac_ct_AR=$AR | |
38107 | # Extract the first word of "ar", so it can be a program name with args. | |
38108 | set dummy ar; ac_word=$2 | |
38109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38111 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38113 | else | |
38114 | if test -n "$ac_ct_AR"; then | |
38115 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38116 | else | |
38117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38118 | for as_dir in $PATH | |
38119 | do | |
38120 | IFS=$as_save_IFS | |
38121 | test -z "$as_dir" && as_dir=. | |
38122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38123 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38124 | ac_cv_prog_ac_ct_AR="ar" | |
38125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38126 | break 2 | |
38127 | fi | |
38128 | done | |
38129 | done | |
38130 | ||
38131 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38132 | fi | |
38133 | fi | |
38134 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38135 | if test -n "$ac_ct_AR"; then | |
38136 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38137 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38138 | else | |
38139 | echo "$as_me:$LINENO: result: no" >&5 | |
38140 | echo "${ECHO_T}no" >&6 | |
38141 | fi | |
38142 | ||
38143 | AR=$ac_ct_AR | |
38144 | else | |
38145 | AR="$ac_cv_prog_AR" | |
38146 | fi | |
38147 | ||
38148 | if test -n "$ac_tool_prefix"; then | |
38149 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38150 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
38151 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38152 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38153 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38155 | else | |
38156 | if test -n "$STRIP"; then | |
38157 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38158 | else | |
38159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38160 | for as_dir in $PATH | |
38161 | do | |
38162 | IFS=$as_save_IFS | |
38163 | test -z "$as_dir" && as_dir=. | |
38164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38165 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38166 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
38167 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38168 | break 2 | |
38169 | fi | |
38170 | done | |
38171 | done | |
38172 | ||
38173 | fi | |
38174 | fi | |
38175 | STRIP=$ac_cv_prog_STRIP | |
38176 | if test -n "$STRIP"; then | |
38177 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
38178 | echo "${ECHO_T}$STRIP" >&6 | |
38179 | else | |
38180 | echo "$as_me:$LINENO: result: no" >&5 | |
38181 | echo "${ECHO_T}no" >&6 | |
38182 | fi | |
38183 | ||
38184 | fi | |
38185 | if test -z "$ac_cv_prog_STRIP"; then | |
38186 | ac_ct_STRIP=$STRIP | |
38187 | # Extract the first word of "strip", so it can be a program name with args. | |
38188 | set dummy strip; ac_word=$2 | |
38189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38191 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38193 | else | |
38194 | if test -n "$ac_ct_STRIP"; then | |
38195 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38196 | else | |
38197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38198 | for as_dir in $PATH | |
38199 | do | |
38200 | IFS=$as_save_IFS | |
38201 | test -z "$as_dir" && as_dir=. | |
38202 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38203 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38204 | ac_cv_prog_ac_ct_STRIP="strip" | |
38205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38206 | break 2 | |
38207 | fi | |
38208 | done | |
38209 | done | |
38210 | ||
38211 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38212 | fi | |
38213 | fi | |
38214 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38215 | if test -n "$ac_ct_STRIP"; then | |
38216 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38217 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38218 | else | |
38219 | echo "$as_me:$LINENO: result: no" >&5 | |
38220 | echo "${ECHO_T}no" >&6 | |
38221 | fi | |
38222 | ||
38223 | STRIP=$ac_ct_STRIP | |
38224 | else | |
38225 | STRIP="$ac_cv_prog_STRIP" | |
38226 | fi | |
38227 | ||
38228 | if test -n "$ac_tool_prefix"; then | |
38229 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38230 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38231 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38233 | if test "${ac_cv_prog_NM+set}" = set; then | |
38234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38235 | else | |
38236 | if test -n "$NM"; then | |
38237 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38238 | else | |
38239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38240 | for as_dir in $PATH | |
38241 | do | |
38242 | IFS=$as_save_IFS | |
38243 | test -z "$as_dir" && as_dir=. | |
38244 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38245 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38246 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38247 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38248 | break 2 | |
38249 | fi | |
38250 | done | |
38251 | done | |
38252 | ||
38253 | fi | |
38254 | fi | |
38255 | NM=$ac_cv_prog_NM | |
38256 | if test -n "$NM"; then | |
38257 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38258 | echo "${ECHO_T}$NM" >&6 | |
38259 | else | |
38260 | echo "$as_me:$LINENO: result: no" >&5 | |
38261 | echo "${ECHO_T}no" >&6 | |
38262 | fi | |
38263 | ||
38264 | fi | |
38265 | if test -z "$ac_cv_prog_NM"; then | |
38266 | ac_ct_NM=$NM | |
38267 | # Extract the first word of "nm", so it can be a program name with args. | |
38268 | set dummy nm; ac_word=$2 | |
38269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38271 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38273 | else | |
38274 | if test -n "$ac_ct_NM"; then | |
38275 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38276 | else | |
38277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38278 | for as_dir in $PATH | |
38279 | do | |
38280 | IFS=$as_save_IFS | |
38281 | test -z "$as_dir" && as_dir=. | |
38282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38284 | ac_cv_prog_ac_ct_NM="nm" | |
38285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38286 | break 2 | |
38287 | fi | |
38288 | done | |
38289 | done | |
38290 | ||
38291 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38292 | fi | |
38293 | fi | |
38294 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38295 | if test -n "$ac_ct_NM"; then | |
38296 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38297 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38298 | else | |
38299 | echo "$as_me:$LINENO: result: no" >&5 | |
38300 | echo "${ECHO_T}no" >&6 | |
38301 | fi | |
38302 | ||
38303 | NM=$ac_ct_NM | |
38304 | else | |
38305 | NM="$ac_cv_prog_NM" | |
38306 | fi | |
38307 | ||
38308 | ||
38309 | case ${BAKEFILE_HOST} in | |
38310 | *-hp-hpux* ) | |
ecd16d74 | 38311 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38312 | ;; |
38313 | *) INSTALL_DIR="$INSTALL -d" | |
38314 | ;; | |
38315 | esac | |
38316 | ||
38317 | ||
38318 | LDFLAGS_GUI= | |
38319 | case ${BAKEFILE_HOST} in | |
38320 | *-*-cygwin* | *-*-mingw32* ) | |
38321 | LDFLAGS_GUI="-mwindows" | |
38322 | esac | |
38323 | ||
38324 | ||
38325 | fi | |
38326 | ||
38327 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38328 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38329 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38331 | else | |
38332 | ||
38333 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38334 | egrep -s GNU > /dev/null); then | |
38335 | bakefile_cv_prog_makeisgnu="yes" | |
38336 | else | |
38337 | bakefile_cv_prog_makeisgnu="no" | |
38338 | fi | |
38339 | ||
38340 | fi | |
38341 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38342 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38343 | ||
38344 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38345 | IF_GNU_MAKE="" | |
38346 | else | |
38347 | IF_GNU_MAKE="#" | |
38348 | fi | |
38349 | ||
38350 | ||
38351 | ||
38352 | PLATFORM_UNIX=0 | |
38353 | PLATFORM_WIN32=0 | |
38354 | PLATFORM_MSDOS=0 | |
38355 | PLATFORM_MAC=0 | |
38356 | PLATFORM_MACOSX=0 | |
38357 | PLATFORM_OS2=0 | |
38358 | ||
38359 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38360 | case "${BAKEFILE_HOST}" in | |
38361 | *-*-cygwin* | *-*-mingw32* ) | |
38362 | PLATFORM_WIN32=1 | |
38363 | ;; | |
38364 | *-pc-msdosdjgpp ) | |
38365 | PLATFORM_MSDOS=1 | |
38366 | ;; | |
38367 | *-pc-os2_emx | *-pc-os2-emx ) | |
38368 | PLATFORM_OS2=1 | |
38369 | ;; | |
38370 | powerpc-*-darwin* ) | |
38371 | PLATFORM_MAC=1 | |
38372 | PLATFORM_MACOSX=1 | |
38373 | ;; | |
38374 | * ) | |
38375 | PLATFORM_UNIX=1 | |
38376 | ;; | |
38377 | esac | |
38378 | else | |
38379 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38380 | win32 ) | |
38381 | PLATFORM_WIN32=1 | |
38382 | ;; | |
38383 | msdos ) | |
38384 | PLATFORM_MSDOS=1 | |
38385 | ;; | |
38386 | os2 ) | |
38387 | PLATFORM_OS2=1 | |
38388 | ;; | |
38389 | darwin ) | |
38390 | PLATFORM_MAC=1 | |
38391 | PLATFORM_MACOSX=1 | |
38392 | ;; | |
38393 | unix ) | |
38394 | PLATFORM_UNIX=1 | |
38395 | ;; | |
38396 | * ) | |
38397 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38398 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38399 | { (exit 1); exit 1; }; } | |
38400 | ;; | |
38401 | esac | |
38402 | fi | |
38403 | ||
38404 | ||
38405 | ||
38406 | ||
38407 | ||
38408 | ||
38409 | ||
38410 | ||
38411 | ||
38412 | # Check whether --enable-omf or --disable-omf was given. | |
38413 | if test "${enable_omf+set}" = set; then | |
38414 | enableval="$enable_omf" | |
38415 | bk_os2_use_omf="$enableval" | |
38416 | fi; | |
38417 | ||
38418 | case "${BAKEFILE_HOST}" in | |
38419 | *-*-darwin* ) | |
38420 | CFLAGS="$CFLAGS -fno-common" | |
38421 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38422 | ;; | |
38423 | ||
38424 | *-pc-os2_emx | *-pc-os2-emx ) | |
38425 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38426 | AR=emxomfar | |
38427 | RANLIB=: | |
38428 | LDFLAGS="-Zomf $LDFLAGS" | |
38429 | CFLAGS="-Zomf $CFLAGS" | |
38430 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38431 | OS2_LIBEXT="lib" | |
38432 | else | |
38433 | OS2_LIBEXT="a" | |
38434 | fi | |
38435 | ;; | |
38436 | esac | |
38437 | ||
38438 | ||
38439 | SO_SUFFIX="so" | |
38440 | SO_SUFFIX_MODULE="so" | |
38441 | EXEEXT="" | |
38442 | LIBPREFIX="lib" | |
38443 | LIBEXT=".a" | |
38444 | DLLPREFIX="lib" | |
38445 | DLLPREFIX_MODULE="" | |
38446 | DLLIMP_SUFFIX="" | |
38447 | ||
38448 | case "${BAKEFILE_HOST}" in | |
38449 | *-hp-hpux* ) | |
38450 | SO_SUFFIX="sl" | |
38451 | SO_SUFFIX_MODULE="sl" | |
38452 | ;; | |
38453 | *-*-aix* ) | |
38454 | SO_SUFFIX="a" | |
38455 | SO_SUFFIX_MODULE="a" | |
38456 | ;; | |
38457 | *-*-cygwin* | *-*-mingw32* ) | |
38458 | SO_SUFFIX="dll" | |
38459 | SO_SUFFIX_MODULE="dll" | |
38460 | DLLIMP_SUFFIX="dll.a" | |
38461 | EXEEXT=".exe" | |
38462 | DLLPREFIX="" | |
38463 | ;; | |
38464 | *-pc-msdosdjgpp ) | |
38465 | EXEEXT=".exe" | |
38466 | DLLPREFIX="" | |
38467 | ;; | |
38468 | *-pc-os2_emx | *-pc-os2-emx ) | |
38469 | SO_SUFFIX="dll" | |
38470 | SO_SUFFIX_MODULE="dll" | |
38471 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38472 | EXEEXT=".exe" | |
38473 | DLLPREFIX="" | |
38474 | LIBPREFIX="" | |
38475 | LIBEXT=".$OS2_LIBEXT" | |
38476 | ;; | |
38477 | powerpc-*-darwin* ) | |
38478 | SO_SUFFIX="dylib" | |
38479 | SO_SUFFIX_MODULE="bundle" | |
38480 | ;; | |
38481 | esac | |
38482 | ||
38483 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38484 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38485 | fi | |
38486 | ||
38487 | ||
38488 | ||
38489 | ||
38490 | ||
38491 | ||
38492 | ||
38493 | ||
38494 | ||
38495 | ||
38496 | ||
38497 | SHARED_LD_CC="\$(CC) -shared -o" | |
38498 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38499 | ||
38500 | if test "x$GCC" = "xyes"; then | |
38501 | PIC_FLAG="-fPIC" | |
38502 | fi | |
38503 | ||
38504 | case "${BAKEFILE_HOST}" in | |
38505 | *-hp-hpux* ) | |
38506 | if test "x$GCC" = "xyes"; then | |
38507 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38508 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38509 | else | |
38510 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38511 | ||
38512 | SHARED_LD_CC="${CC} -b -o" | |
38513 | SHARED_LD_CXX="${CXX} -b -o" | |
38514 | PIC_FLAG="+Z" | |
38515 | fi | |
38516 | ;; | |
38517 | ||
38518 | *-*-linux* ) | |
38519 | if test "x$GCC" != "xyes"; then | |
38520 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38521 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38522 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38524 | else | |
38525 | ||
38526 | cat >conftest.$ac_ext <<_ACEOF | |
38527 | /* confdefs.h. */ | |
38528 | _ACEOF | |
38529 | cat confdefs.h >>conftest.$ac_ext | |
38530 | cat >>conftest.$ac_ext <<_ACEOF | |
38531 | /* end confdefs.h. */ | |
38532 | ||
38533 | int | |
38534 | main () | |
38535 | { | |
38536 | ||
38537 | #ifndef __INTEL_COMPILER | |
38538 | #error Not icc | |
38539 | #endif | |
38540 | ||
38541 | ; | |
38542 | return 0; | |
38543 | } | |
38544 | _ACEOF | |
38545 | rm -f conftest.$ac_objext | |
38546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38547 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38548 | ac_status=$? |
ac1cb8d3 VS |
38549 | grep -v '^ *+' conftest.er1 >conftest.err |
38550 | rm -f conftest.er1 | |
38551 | cat conftest.err >&5 | |
a848cd7e SC |
38552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38553 | (exit $ac_status); } && | |
5dcf30a0 RN |
38554 | { ac_try='test -z "$ac_c_werror_flag" |
38555 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38557 | (eval $ac_try) 2>&5 | |
38558 | ac_status=$? | |
38559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38560 | (exit $ac_status); }; } && | |
38561 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38563 | (eval $ac_try) 2>&5 | |
38564 | ac_status=$? | |
38565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38566 | (exit $ac_status); }; }; then | |
38567 | bakefile_cv_prog_icc=yes | |
38568 | else | |
38569 | echo "$as_me: failed program was:" >&5 | |
38570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38571 | ||
38572 | bakefile_cv_prog_icc=no | |
38573 | ||
38574 | fi | |
ac1cb8d3 | 38575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38576 | |
38577 | fi | |
38578 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38579 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38580 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38581 | PIC_FLAG="-KPIC" | |
38582 | fi | |
38583 | fi | |
38584 | ;; | |
38585 | ||
38586 | *-*-solaris2* ) | |
38587 | if test "x$GCC" != xyes ; then | |
38588 | SHARED_LD_CC="${CC} -G -o" | |
38589 | SHARED_LD_CXX="${CXX} -G -o" | |
38590 | PIC_FLAG="-KPIC" | |
38591 | fi | |
38592 | ;; | |
38593 | ||
38594 | *-*-darwin* ) | |
38595 | ||
38596 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38597 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38598 | if test "${wx_cv_gcc31+set}" = set; then | |
38599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38600 | else | |
38601 | ||
38602 | cat >conftest.$ac_ext <<_ACEOF | |
38603 | /* confdefs.h. */ | |
38604 | _ACEOF | |
38605 | cat confdefs.h >>conftest.$ac_ext | |
38606 | cat >>conftest.$ac_ext <<_ACEOF | |
38607 | /* end confdefs.h. */ | |
38608 | ||
38609 | int | |
38610 | main () | |
38611 | { | |
38612 | ||
38613 | #if (__GNUC__ < 3) || \ | |
38614 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38615 | #error old gcc | |
38616 | #endif | |
38617 | ||
38618 | ; | |
38619 | return 0; | |
38620 | } | |
38621 | _ACEOF | |
38622 | rm -f conftest.$ac_objext | |
38623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38624 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38625 | ac_status=$? |
ac1cb8d3 VS |
38626 | grep -v '^ *+' conftest.er1 >conftest.err |
38627 | rm -f conftest.er1 | |
38628 | cat conftest.err >&5 | |
a848cd7e SC |
38629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38630 | (exit $ac_status); } && | |
5dcf30a0 RN |
38631 | { ac_try='test -z "$ac_c_werror_flag" |
38632 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38634 | (eval $ac_try) 2>&5 | |
38635 | ac_status=$? | |
38636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38637 | (exit $ac_status); }; } && | |
38638 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38640 | (eval $ac_try) 2>&5 | |
38641 | ac_status=$? | |
38642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38643 | (exit $ac_status); }; }; then | |
38644 | ||
38645 | wx_cv_gcc31=yes | |
38646 | ||
38647 | else | |
38648 | echo "$as_me: failed program was:" >&5 | |
38649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38650 | ||
38651 | ||
38652 | wx_cv_gcc31=no | |
38653 | ||
38654 | ||
38655 | fi | |
ac1cb8d3 | 38656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38657 | |
38658 | fi | |
38659 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38660 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
38661 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
38662 | |
38663 | D='$' | |
38664 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38665 | #!/bin/sh |
38666 | #----------------------------------------------------------------------------- | |
38667 | #-- Name: distrib/mac/shared-ld-sh | |
38668 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38669 | #-- Author: Gilles Depeyrot | |
38670 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38671 | #-- Licence: any use permitted | |
38672 | #----------------------------------------------------------------------------- | |
38673 | ||
38674 | verbose=0 | |
38675 | args="" | |
38676 | objects="" | |
38677 | linking_flag="-dynamiclib" | |
38678 | ||
473276a9 VS |
38679 | while test ${D}# -gt 0; do |
38680 | case ${D}1 in | |
a848cd7e SC |
38681 | |
38682 | -v) | |
38683 | verbose=1 | |
38684 | ;; | |
38685 | ||
38686 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38687 | # collect these options and values | |
473276a9 | 38688 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
38689 | shift |
38690 | ;; | |
38691 | ||
38692 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
38693 | # collect these options | |
473276a9 | 38694 | args="${D}{args} ${D}1" |
a848cd7e SC |
38695 | ;; |
38696 | ||
38697 | -dynamiclib|-bundle) | |
473276a9 | 38698 | linking_flag="${D}1" |
a848cd7e SC |
38699 | ;; |
38700 | ||
38701 | -*) | |
473276a9 | 38702 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
38703 | exit 1 |
38704 | ;; | |
38705 | ||
38706 | *.o | *.a | *.dylib) | |
38707 | # collect object files | |
473276a9 | 38708 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
38709 | ;; |
38710 | ||
38711 | *) | |
473276a9 | 38712 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
38713 | exit 1 |
38714 | ;; | |
38715 | ||
38716 | esac | |
38717 | shift | |
38718 | done | |
38719 | ||
38720 | # | |
38721 | # Link one module containing all the others | |
38722 | # | |
473276a9 VS |
38723 | if test ${D}{verbose} = 1; then |
38724 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 38725 | fi |
473276a9 VS |
38726 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
38727 | status=${D}? | |
38728 | if test ${D}{status} != 0; then | |
38729 | exit ${D}{status} | |
a848cd7e SC |
38730 | fi |
38731 | ||
38732 | # | |
38733 | # Link the shared library from the single module created | |
38734 | # | |
473276a9 VS |
38735 | if test ${D}{verbose} = 1; then |
38736 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 38737 | fi |
473276a9 VS |
38738 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
38739 | status=${D}? | |
38740 | if test ${D}{status} != 0; then | |
38741 | exit ${D}{status} | |
a848cd7e SC |
38742 | fi |
38743 | ||
38744 | # | |
38745 | # Remove intermediate module | |
38746 | # | |
473276a9 | 38747 | rm -f master.${D}${D}.o |
a848cd7e SC |
38748 | |
38749 | exit 0 | |
38750 | EOF | |
473276a9 | 38751 | |
a848cd7e SC |
38752 | chmod +x shared-ld-sh |
38753 | ||
38754 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
38755 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
38756 | SHARED_LD_CXX="$SHARED_LD_CC" | |
38757 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38758 | else | |
38759 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38760 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38761 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38762 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
38763 | fi | |
38764 | ||
38765 | PIC_FLAG="-dynamic -fPIC" | |
38766 | ;; | |
38767 | ||
38768 | *-*-aix* ) | |
38769 | if test "x$GCC" != "xyes"; then | |
38770 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38771 | set dummy makeC++SharedLib; ac_word=$2 | |
38772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38774 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38776 | else | |
38777 | if test -n "$AIX_CXX_LD"; then | |
38778 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38779 | else | |
38780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38781 | for as_dir in $PATH | |
38782 | do | |
38783 | IFS=$as_save_IFS | |
38784 | test -z "$as_dir" && as_dir=. | |
38785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38786 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38787 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38789 | break 2 | |
38790 | fi | |
38791 | done | |
38792 | done | |
38793 | ||
38794 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
38795 | fi | |
38796 | fi | |
38797 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
38798 | if test -n "$AIX_CXX_LD"; then | |
38799 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
38800 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
38801 | else | |
38802 | echo "$as_me:$LINENO: result: no" >&5 | |
38803 | echo "${ECHO_T}no" >&6 | |
38804 | fi | |
38805 | ||
38806 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38807 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38808 | fi | |
38809 | ;; | |
38810 | ||
38811 | *-*-beos* ) | |
38812 | SHARED_LD_CC="${LD} -shared -o" | |
38813 | SHARED_LD_CXX="${LD} -shared -o" | |
38814 | ;; | |
38815 | ||
38816 | *-*-irix* ) | |
38817 | if test "x$GCC" != "xyes"; then | |
38818 | PIC_FLAG="-KPIC" | |
38819 | fi | |
38820 | ;; | |
38821 | ||
38822 | *-*-cygwin* | *-*-mingw32* ) | |
38823 | PIC_FLAG="" | |
38824 | ;; | |
38825 | ||
38826 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
38827 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
38828 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 38829 | PIC_FLAG="" |
473276a9 VS |
38830 | |
38831 | D='$' | |
38832 | cat <<EOF >dllar.sh | |
38833 | #!/bin/sh | |
38834 | # | |
38835 | # dllar - a tool to build both a .dll and an .a file | |
38836 | # from a set of object (.o) files for EMX/OS2. | |
38837 | # | |
38838 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
38839 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
38840 | # | |
38841 | # This script will accept a set of files on the command line. | |
38842 | # All the public symbols from the .o files will be exported into | |
38843 | # a .DEF file, then linker will be run (through gcc) against them to | |
38844 | # build a shared library consisting of all given .o files. All libraries | |
38845 | # (.a) will be first decompressed into component .o files then act as | |
38846 | # described above. You can optionally give a description (-d "description") | |
38847 | # which will be put into .DLL. To see the list of accepted options (as well | |
38848 | # as command-line format) simply run this program without options. The .DLL | |
38849 | # is built to be imported by name (there is no guarantee that new versions | |
38850 | # of the library you build will have same ordinals for same symbols). | |
38851 | # | |
38852 | # dllar is free software; you can redistribute it and/or modify | |
38853 | # it under the terms of the GNU General Public License as published by | |
38854 | # the Free Software Foundation; either version 2, or (at your option) | |
38855 | # any later version. | |
38856 | # | |
38857 | # dllar is distributed in the hope that it will be useful, | |
38858 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
38859 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
38860 | # GNU General Public License for more details. | |
38861 | # | |
38862 | # You should have received a copy of the GNU General Public License | |
38863 | # along with dllar; see the file COPYING. If not, write to the Free | |
38864 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
38865 | # 02111-1307, USA. | |
38866 | ||
38867 | # To successfuly run this program you will need: | |
38868 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
38869 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
38870 | # - gcc | |
38871 | # (used to build the .dll) | |
38872 | # - emxexp | |
38873 | # (used to create .def file from .o files) | |
38874 | # - emximp | |
38875 | # (used to create .a file from .def file) | |
38876 | # - GNU text utilites (cat, sort, uniq) | |
38877 | # used to process emxexp output | |
38878 | # - GNU file utilities (mv, rm) | |
38879 | # - GNU sed | |
38880 | # - lxlite (optional, see flag below) | |
38881 | # (used for general .dll cleanup) | |
38882 | # | |
38883 | ||
38884 | flag_USE_LXLITE=1; | |
38885 | ||
38886 | # | |
38887 | # helper functions | |
38888 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
38889 | # second argument (suffix to remove) is given | |
38890 | basnam(){ | |
38891 | case ${D}# in | |
38892 | 1) | |
38893 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
38894 | ;; | |
38895 | 2) | |
38896 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
38897 | ;; | |
38898 | *) | |
38899 | echo "error in basnam ${D}*" | |
38900 | exit 8 | |
38901 | ;; | |
38902 | esac | |
38903 | } | |
38904 | ||
38905 | # Cleanup temporary files and output | |
38906 | CleanUp() { | |
38907 | cd ${D}curDir | |
38908 | for i in ${D}inputFiles ; do | |
38909 | case ${D}i in | |
38910 | *!) | |
38911 | rm -rf \`basnam ${D}i !\` | |
38912 | ;; | |
38913 | *) | |
38914 | ;; | |
38915 | esac | |
38916 | done | |
38917 | ||
38918 | # Kill result in case of failure as there is just to many stupid make/nmake | |
38919 | # things out there which doesn't do this. | |
2057db16 | 38920 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
38921 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
38922 | fi | |
38923 | } | |
38924 | ||
38925 | # Print usage and exit script with rc=1. | |
38926 | PrintHelp() { | |
2057db16 VS |
38927 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
38928 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
38929 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
38930 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
38931 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
38932 | echo '*> "output_file" should have no extension.' |
38933 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
38934 | echo ' The import library name is derived from this and is set to "name".a,' | |
38935 | echo ' unless overridden by -import' | |
38936 | echo '*> "importlib_name" should have no extension.' | |
38937 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
38938 | echo ' This name is used as the import library name and may be longer and' | |
38939 | echo ' more descriptive than the DLL name which has to follow the old ' | |
38940 | echo ' 8.3 convention of FAT.' | |
38941 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
38942 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
38943 | echo ' These flags will be put at the start of GCC command line.' | |
2057db16 VS |
38944 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
38945 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
38946 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
38947 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
38948 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
2057db16 | 38949 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 38950 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
2057db16 | 38951 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 38952 | echo ' C runtime DLLs.' |
2057db16 | 38953 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
38954 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
38955 | echo ' unchanged to GCC at the end of command line.' | |
38956 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
38957 | echo ' the basename for DLL and import library will be set to library name,' | |
38958 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
38959 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
38960 | echo ' library will be renamed into gcc_s.a.' | |
38961 | echo '--------' | |
38962 | echo 'Example:' | |
38963 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
38964 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
38965 | CleanUp | |
38966 | exit 1 | |
38967 | } | |
38968 | ||
38969 | # Execute a command. | |
38970 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
38971 | # @Uses Whatever CleanUp() uses. | |
38972 | doCommand() { | |
38973 | echo "${D}*" | |
38974 | eval ${D}* | |
38975 | rcCmd=${D}? | |
38976 | ||
2057db16 | 38977 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
38978 | echo "command failed, exit code="${D}rcCmd |
38979 | CleanUp | |
38980 | exit ${D}rcCmd | |
38981 | fi | |
38982 | } | |
38983 | ||
38984 | # main routine | |
38985 | # setup globals | |
38986 | cmdLine=${D}* | |
38987 | outFile="" | |
38988 | outimpFile="" | |
38989 | inputFiles="" | |
38990 | description="" | |
38991 | CC=gcc.exe | |
38992 | CFLAGS="-s -Zcrtdll" | |
38993 | EXTRA_CFLAGS="" | |
38994 | EXPORT_BY_ORDINALS=0 | |
38995 | exclude_symbols="" | |
38996 | library_flags="" | |
38997 | curDir=\`pwd\` | |
38998 | curDirS=curDir | |
38999 | case ${D}curDirS in | |
39000 | */) | |
39001 | ;; | |
39002 | *) | |
39003 | curDirS=${D}{curDirS}"/" | |
39004 | ;; | |
39005 | esac | |
39006 | # Parse commandline | |
39007 | libsToLink=0 | |
2057db16 | 39008 | while [] ${D}1 []; do |
473276a9 VS |
39009 | case ${D}1 in |
39010 | -ord*) | |
39011 | EXPORT_BY_ORDINALS=1; | |
39012 | ;; | |
39013 | -o*) | |
39014 | shift | |
39015 | outFile=${D}1 | |
39016 | ;; | |
39017 | -i*) | |
39018 | shift | |
39019 | outimpFile=${D}1 | |
39020 | ;; | |
39021 | -d*) | |
39022 | shift | |
39023 | description=${D}1 | |
39024 | ;; | |
39025 | -f*) | |
39026 | shift | |
39027 | CFLAGS=${D}1 | |
39028 | ;; | |
39029 | -c*) | |
39030 | shift | |
39031 | CC=${D}1 | |
39032 | ;; | |
39033 | -h*) | |
39034 | PrintHelp | |
39035 | ;; | |
39036 | -ex*) | |
39037 | shift | |
39038 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
39039 | ;; | |
39040 | -libf*) | |
39041 | shift | |
39042 | library_flags=${D}{library_flags}${D}1" " | |
39043 | ;; | |
39044 | -nocrt*) | |
39045 | CFLAGS="-s" | |
39046 | ;; | |
39047 | -nolxl*) | |
39048 | flag_USE_LXLITE=0 | |
39049 | ;; | |
39050 | -* | /*) | |
39051 | case ${D}1 in | |
39052 | -L* | -l*) | |
39053 | libsToLink=1 | |
39054 | ;; | |
39055 | *) | |
39056 | ;; | |
39057 | esac | |
39058 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
39059 | ;; | |
39060 | *) | |
39061 | found=0; | |
2057db16 | 39062 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
39063 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
39064 | else | |
39065 | for file in ${D}1 ; do | |
2057db16 | 39066 | if [] -f ${D}file []; then |
473276a9 VS |
39067 | inputFiles="${D}{inputFiles} ${D}file" |
39068 | found=1 | |
39069 | fi | |
39070 | done | |
2057db16 | 39071 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39072 | echo "ERROR: No file(s) found: "${D}1 |
39073 | exit 8 | |
39074 | fi | |
39075 | fi | |
39076 | ;; | |
39077 | esac | |
39078 | shift | |
39079 | done # iterate cmdline words | |
39080 | ||
39081 | # | |
2057db16 | 39082 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
39083 | echo "dllar: no input files" |
39084 | PrintHelp | |
39085 | fi | |
39086 | ||
39087 | # Now extract all .o files from .a files | |
39088 | newInputFiles="" | |
39089 | for file in ${D}inputFiles ; do | |
39090 | case ${D}file in | |
39091 | *.a | *.lib) | |
39092 | case ${D}file in | |
39093 | *.a) | |
39094 | suffix=".a" | |
39095 | AR="ar" | |
39096 | ;; | |
39097 | *.lib) | |
39098 | suffix=".lib" | |
39099 | AR="emxomfar" | |
39100 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39101 | ;; | |
39102 | *) | |
39103 | ;; | |
39104 | esac | |
39105 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39106 | mkdir ${D}dirname | |
2057db16 | 39107 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
39108 | echo "Failed to create subdirectory ./${D}dirname" |
39109 | CleanUp | |
39110 | exit 8; | |
39111 | fi | |
39112 | # Append '!' to indicate archive | |
39113 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39114 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39115 | cd ${D}curDir | |
39116 | found=0; | |
39117 | for subfile in ${D}dirname/*.o* ; do | |
2057db16 | 39118 | if [] -f ${D}subfile []; then |
473276a9 | 39119 | found=1 |
2057db16 | 39120 | if [] -s ${D}subfile []; then |
473276a9 VS |
39121 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39122 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39123 | fi | |
39124 | fi | |
39125 | done | |
2057db16 | 39126 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39127 | echo "WARNING: there are no files in archive \'${D}file\'" |
39128 | fi | |
39129 | ;; | |
39130 | *) | |
39131 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39132 | ;; | |
39133 | esac | |
39134 | done | |
39135 | inputFiles="${D}newInputFiles" | |
39136 | ||
39137 | # Output filename(s). | |
39138 | do_backup=0; | |
2057db16 | 39139 | if [] -z ${D}outFile []; then |
473276a9 VS |
39140 | do_backup=1; |
39141 | set outFile ${D}inputFiles; outFile=${D}2 | |
39142 | fi | |
39143 | ||
39144 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39145 | case ${D}outFile in | |
39146 | *_%!) | |
39147 | outFile=\`basnam ${D}outFile _%!\` | |
39148 | ;; | |
39149 | *) | |
39150 | ;; | |
39151 | esac | |
39152 | case ${D}outFile in | |
39153 | *.dll) | |
39154 | outFile=\`basnam ${D}outFile .dll\` | |
39155 | ;; | |
39156 | *.DLL) | |
39157 | outFile=\`basnam ${D}outFile .DLL\` | |
39158 | ;; | |
39159 | *.o) | |
39160 | outFile=\`basnam ${D}outFile .o\` | |
39161 | ;; | |
39162 | *.obj) | |
39163 | outFile=\`basnam ${D}outFile .obj\` | |
39164 | ;; | |
39165 | *.a) | |
39166 | outFile=\`basnam ${D}outFile .a\` | |
39167 | ;; | |
39168 | *.lib) | |
39169 | outFile=\`basnam ${D}outFile .lib\` | |
39170 | ;; | |
39171 | *) | |
39172 | ;; | |
39173 | esac | |
39174 | case ${D}outimpFile in | |
39175 | *.a) | |
39176 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39177 | ;; | |
39178 | *.lib) | |
39179 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39180 | ;; | |
39181 | *) | |
39182 | ;; | |
39183 | esac | |
2057db16 | 39184 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
39185 | outimpFile=${D}outFile |
39186 | fi | |
39187 | defFile="${D}{outFile}.def" | |
39188 | arcFile="${D}{outimpFile}.a" | |
39189 | arcFile2="${D}{outimpFile}.lib" | |
39190 | dllFile="${D}outFile" | |
39191 | # Add suffix to dllFile later, first we need a version to use as | |
39192 | # name in .def file. | |
39193 | ||
2057db16 VS |
39194 | if [] ${D}do_backup -ne 0 [] ; then |
39195 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
39196 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39197 | fi | |
2057db16 | 39198 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
39199 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39200 | fi | |
39201 | fi | |
39202 | ||
39203 | # Extract public symbols from all the object files. | |
39204 | tmpdefFile=${D}{defFile}_% | |
39205 | rm -f ${D}tmpdefFile | |
39206 | for file in ${D}inputFiles ; do | |
39207 | case ${D}file in | |
39208 | *!) | |
39209 | ;; | |
39210 | *) | |
39211 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39212 | ;; | |
39213 | esac | |
39214 | done | |
39215 | ||
39216 | # Create the def file. | |
39217 | rm -f ${D}defFile | |
39218 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39219 | dllFile="${D}dllFile.dll" | |
2057db16 | 39220 | if [] -n ${D}description []; then |
473276a9 VS |
39221 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
39222 | fi | |
39223 | echo "EXPORTS" >> ${D}defFile | |
39224 | ||
39225 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39226 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39227 | ||
39228 | # Checks if the export is ok or not. | |
39229 | for word in ${D}exclude_symbols; do | |
39230 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39231 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39232 | done | |
39233 | ||
39234 | ||
2057db16 | 39235 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39236 | sed "=" < ${D}tmpdefFile | \ |
39237 | sed ' | |
39238 | N | |
39239 | : loop | |
2057db16 | 39240 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
39241 | t loop |
39242 | ' > ${D}{tmpdefFile}% | |
39243 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39244 | else | |
39245 | rm -f ${D}{tmpdefFile}% | |
39246 | fi | |
39247 | cat ${D}tmpdefFile >> ${D}defFile | |
39248 | rm -f ${D}tmpdefFile | |
39249 | ||
39250 | # Do linking, create implib, and apply lxlite. | |
39251 | gccCmdl=""; | |
39252 | for file in ${D}inputFiles ; do | |
39253 | case ${D}file in | |
39254 | *!) | |
39255 | ;; | |
39256 | *) | |
39257 | gccCmdl="${D}gccCmdl ${D}file" | |
39258 | ;; | |
39259 | esac | |
39260 | done | |
39261 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39262 | touch "${D}{outFile}.dll" | |
39263 | ||
39264 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
2057db16 | 39265 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39266 | add_flags=""; |
2057db16 | 39267 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39268 | add_flags="-ynd" |
39269 | fi | |
39270 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39271 | fi | |
39272 | doCommand "emxomf -s -l ${D}arcFile" | |
39273 | ||
39274 | # Successful exit. | |
39275 | CleanUp 1 | |
39276 | exit 0 | |
39277 | EOF | |
39278 | ||
39279 | chmod +x dllar.sh | |
a848cd7e SC |
39280 | ;; |
39281 | ||
39282 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39283 | *-*-sunos4* | \ | |
39284 | *-*-osf* | \ | |
39285 | *-*-dgux5* | \ | |
39286 | *-*-sysv5* ) | |
39287 | ;; | |
39288 | ||
39289 | *) | |
39290 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39291 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39292 | { (exit 1); exit 1; }; } | |
39293 | esac | |
39294 | ||
2057db16 VS |
39295 | if test "x$PIC_FLAG" != "x" ; then |
39296 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39297 | fi | |
39298 | ||
a848cd7e SC |
39299 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39300 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39301 | fi | |
39302 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39303 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39304 | fi | |
39305 | ||
39306 | ||
39307 | ||
39308 | ||
39309 | ||
39310 | ||
39311 | ||
39312 | ||
39313 | USE_SOVERSION=0 | |
39314 | USE_SOVERLINUX=0 | |
39315 | USE_SOVERSOLARIS=0 | |
39316 | USE_SOSYMLINKS=0 | |
39317 | USE_MACVERSION=0 | |
39318 | SONAME_FLAG= | |
39319 | ||
39320 | case "${BAKEFILE_HOST}" in | |
39321 | *-*-linux* ) | |
39322 | SONAME_FLAG="-Wl,-soname," | |
39323 | USE_SOVERSION=1 | |
39324 | USE_SOVERLINUX=1 | |
39325 | USE_SOSYMLINKS=1 | |
39326 | ;; | |
39327 | ||
39328 | *-*-solaris2* ) | |
39329 | SONAME_FLAG="-h " | |
39330 | USE_SOVERSION=1 | |
39331 | USE_SOVERSOLARIS=1 | |
39332 | USE_SOSYMLINKS=1 | |
39333 | ;; | |
39334 | ||
39335 | *-*-darwin* ) | |
39336 | USE_MACVERSION=1 | |
39337 | USE_SOVERSION=1 | |
39338 | USE_SOSYMLINKS=1 | |
39339 | ;; | |
39340 | esac | |
39341 | ||
39342 | ||
39343 | ||
39344 | ||
39345 | ||
39346 | ||
39347 | ||
39348 | ||
39349 | ||
39350 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39351 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39352 | DEPS_TRACKING=0 | |
39353 | ||
39354 | if test "x$GCC" = "xyes"; then | |
39355 | DEPSMODE=gcc | |
39356 | DEPS_TRACKING=1 | |
39357 | case "${BAKEFILE_HOST}" in | |
39358 | powerpc-*-darwin* ) | |
39359 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39360 | ;; | |
39361 | * ) | |
39362 | DEPSFLAG_GCC="-MMD" | |
39363 | ;; | |
39364 | esac | |
39365 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39366 | echo "${ECHO_T}gcc" >&6 | |
39367 | else | |
39368 | echo "$as_me:$LINENO: result: none" >&5 | |
39369 | echo "${ECHO_T}none" >&6 | |
39370 | fi | |
39371 | ||
39372 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39373 | |
39374 | D='$' | |
39375 | cat <<EOF >bk-deps | |
a848cd7e SC |
39376 | #!/bin/sh |
39377 | ||
39378 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39379 | # script. It is used to track C/C++ files dependencies in portable way. | |
39380 | # | |
39381 | # Permission is given to use this file in any way. | |
39382 | ||
473276a9 | 39383 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39384 | DEPSDIR=.deps |
473276a9 | 39385 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39386 | |
473276a9 | 39387 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39388 | |
473276a9 VS |
39389 | if test ${D}DEPSMODE = gcc ; then |
39390 | ${D}* ${D}{DEPSFLAG_GCC} | |
39391 | status=${D}? | |
39392 | if test ${D}{status} != 0 ; then | |
39393 | exit ${D}{status} | |
a848cd7e SC |
39394 | fi |
39395 | # move created file to the location we want it in: | |
473276a9 VS |
39396 | while test ${D}# -gt 0; do |
39397 | case "${D}1" in | |
a848cd7e SC |
39398 | -o ) |
39399 | shift | |
473276a9 | 39400 | objfile=${D}1 |
a848cd7e SC |
39401 | ;; |
39402 | -* ) | |
39403 | ;; | |
39404 | * ) | |
473276a9 | 39405 | srcfile=${D}1 |
a848cd7e SC |
39406 | ;; |
39407 | esac | |
39408 | shift | |
39409 | done | |
473276a9 VS |
39410 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39411 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39412 | if test -f ${D}depfile ; then | |
39413 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39414 | rm -f ${D}depfile | |
a848cd7e | 39415 | else |
473276a9 VS |
39416 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39417 | if test -f ${D}depfile ; then | |
39418 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39419 | rm -f ${D}depfile | |
a848cd7e SC |
39420 | fi |
39421 | fi | |
39422 | exit 0 | |
39423 | else | |
473276a9 VS |
39424 | ${D}* |
39425 | exit ${D}? | |
a848cd7e SC |
39426 | fi |
39427 | EOF | |
473276a9 | 39428 | |
a848cd7e SC |
39429 | chmod +x bk-deps |
39430 | fi | |
39431 | ||
39432 | ||
39433 | ||
39434 | ||
39435 | RESCOMP= | |
39436 | SETFILE= | |
39437 | ||
39438 | case ${BAKEFILE_HOST} in | |
39439 | *-*-cygwin* | *-*-mingw32* ) | |
39440 | if test "$build" != "$host" ; then | |
39441 | RESCOMP=$host_alias-windres | |
39442 | else | |
39443 | # Extract the first word of "windres", so it can be a program name with args. | |
39444 | set dummy windres; ac_word=$2 | |
39445 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39447 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39449 | else | |
39450 | if test -n "$RESCOMP"; then | |
39451 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39452 | else | |
39453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39454 | for as_dir in $PATH | |
39455 | do | |
39456 | IFS=$as_save_IFS | |
39457 | test -z "$as_dir" && as_dir=. | |
39458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39459 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39460 | ac_cv_prog_RESCOMP="windres" | |
39461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39462 | break 2 | |
39463 | fi | |
39464 | done | |
39465 | done | |
39466 | ||
39467 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39468 | fi | |
39469 | fi | |
39470 | RESCOMP=$ac_cv_prog_RESCOMP | |
39471 | if test -n "$RESCOMP"; then | |
39472 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39473 | echo "${ECHO_T}$RESCOMP" >&6 | |
39474 | else | |
39475 | echo "$as_me:$LINENO: result: no" >&5 | |
39476 | echo "${ECHO_T}no" >&6 | |
39477 | fi | |
39478 | ||
39479 | fi | |
39480 | ;; | |
39481 | ||
39482 | *-*-darwin* ) | |
39483 | # Extract the first word of "Rez", so it can be a program name with args. | |
39484 | set dummy Rez; ac_word=$2 | |
39485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39487 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39489 | else | |
39490 | if test -n "$RESCOMP"; then | |
39491 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39492 | else | |
39493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39494 | for as_dir in $PATH | |
39495 | do | |
39496 | IFS=$as_save_IFS | |
39497 | test -z "$as_dir" && as_dir=. | |
39498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39499 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39500 | ac_cv_prog_RESCOMP="Rez" | |
39501 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39502 | break 2 | |
39503 | fi | |
39504 | done | |
39505 | done | |
39506 | ||
39507 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39508 | fi | |
39509 | fi | |
39510 | RESCOMP=$ac_cv_prog_RESCOMP | |
39511 | if test -n "$RESCOMP"; then | |
39512 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39513 | echo "${ECHO_T}$RESCOMP" >&6 | |
39514 | else | |
39515 | echo "$as_me:$LINENO: result: no" >&5 | |
39516 | echo "${ECHO_T}no" >&6 | |
39517 | fi | |
39518 | ||
39519 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39520 | set dummy SetFile; ac_word=$2 | |
39521 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39523 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39525 | else | |
39526 | if test -n "$SETFILE"; then | |
39527 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39528 | else | |
39529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39530 | for as_dir in $PATH | |
39531 | do | |
39532 | IFS=$as_save_IFS | |
39533 | test -z "$as_dir" && as_dir=. | |
39534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39536 | ac_cv_prog_SETFILE="SetFile" | |
39537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39538 | break 2 | |
39539 | fi | |
39540 | done | |
39541 | done | |
39542 | ||
39543 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39544 | fi | |
39545 | fi | |
39546 | SETFILE=$ac_cv_prog_SETFILE | |
39547 | if test -n "$SETFILE"; then | |
39548 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39549 | echo "${ECHO_T}$SETFILE" >&6 | |
39550 | else | |
39551 | echo "$as_me:$LINENO: result: no" >&5 | |
39552 | echo "${ECHO_T}no" >&6 | |
39553 | fi | |
39554 | ||
39555 | ;; | |
39556 | esac | |
39557 | ||
39558 | ||
39559 | ||
39560 | ||
39561 | ||
2057db16 | 39562 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39563 | |
dcc1b6ad | 39564 | |
ceec2216 RL |
39565 | |
39566 | ||
39567 | ||
9f45f08e | 39568 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39569 | |
646b6ec1 | 39570 | |
74b84332 | 39571 | |
a848cd7e SC |
39572 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39573 | if test "${enable_precomp_headers+set}" = set; then | |
39574 | enableval="$enable_precomp_headers" | |
39575 | bk_use_pch="$enableval" | |
39576 | fi; | |
39577 | ||
39578 | GCC_PCH=0 | |
39579 | ||
39580 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39581 | if test "x$GCC" = "xyes"; then | |
39582 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39583 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39584 | cat >conftest.$ac_ext <<_ACEOF | |
39585 | /* confdefs.h. */ | |
39586 | _ACEOF | |
39587 | cat confdefs.h >>conftest.$ac_ext | |
39588 | cat >>conftest.$ac_ext <<_ACEOF | |
39589 | /* end confdefs.h. */ | |
39590 | ||
39591 | int | |
39592 | main () | |
39593 | { | |
39594 | ||
39595 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39596 | #error "no pch support" | |
39597 | #endif | |
39598 | #if (__GNUC__ < 3) | |
39599 | #error "no pch support" | |
39600 | #endif | |
39601 | #if (__GNUC__ == 3) && \ | |
39602 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39603 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39604 | #error "no pch support" | |
39605 | #endif | |
39606 | ||
39607 | ; | |
39608 | return 0; | |
39609 | } | |
39610 | _ACEOF | |
39611 | rm -f conftest.$ac_objext | |
39612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39613 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39614 | ac_status=$? |
ac1cb8d3 VS |
39615 | grep -v '^ *+' conftest.er1 >conftest.err |
39616 | rm -f conftest.er1 | |
39617 | cat conftest.err >&5 | |
a848cd7e SC |
39618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39619 | (exit $ac_status); } && | |
5dcf30a0 RN |
39620 | { ac_try='test -z "$ac_c_werror_flag" |
39621 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39623 | (eval $ac_try) 2>&5 | |
39624 | ac_status=$? | |
39625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39626 | (exit $ac_status); }; } && | |
39627 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39629 | (eval $ac_try) 2>&5 | |
39630 | ac_status=$? | |
39631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39632 | (exit $ac_status); }; }; then | |
39633 | ||
39634 | echo "$as_me:$LINENO: result: yes" >&5 | |
39635 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
39636 | GCC_PCH=1 |
39637 | ||
39638 | else | |
39639 | echo "$as_me: failed program was:" >&5 | |
39640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39641 | ||
39642 | ||
39643 | echo "$as_me:$LINENO: result: no" >&5 | |
39644 | echo "${ECHO_T}no" >&6 | |
39645 | ||
39646 | fi | |
ac1cb8d3 | 39647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39648 | if test $GCC_PCH = 1 ; then |
39649 | cat <<EOF >bk-make-pch | |
39650 | #!/bin/sh | |
39651 | ||
39652 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39653 | # script. It is used to generated precompiled headers. | |
39654 | # | |
39655 | # Permission is given to use this file in any way. | |
39656 | ||
39657 | outfile="\${1}" | |
39658 | header="\${2}" | |
39659 | shift | |
39660 | shift | |
39661 | ||
39662 | compiler= | |
39663 | headerfile= | |
39664 | while test \${#} -gt 0; do | |
39665 | case "\${1}" in | |
39666 | -I* ) | |
39667 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39668 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39669 | headerfile="\${incdir}/\${header}" | |
39670 | fi | |
39671 | ;; | |
39672 | esac | |
39673 | compiler="\${compiler} \${1}" | |
39674 | shift | |
39675 | done | |
39676 | ||
39677 | if test "x\${headerfile}" = "x" ; then | |
39678 | echo "error: can't find header \${header} in include paths" >2 | |
39679 | else | |
39680 | if test -f \${outfile} ; then | |
39681 | rm -f \${outfile} | |
39682 | else | |
39683 | mkdir -p \`dirname \${outfile}\` | |
39684 | fi | |
39685 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39686 | mkdir -p .deps | |
39687 | # can do this because gcc is >= 3.4: | |
39688 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39689 | exit \${?} | |
39690 | fi | |
39691 | EOF | |
39692 | chmod +x bk-make-pch | |
39693 | fi | |
39694 | fi | |
39695 | fi | |
39696 | ||
39697 | ||
39698 | ||
39699 | ||
39700 | ||
dcc1b6ad VS |
39701 | |
39702 | ||
39703 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
39704 | if test "${enable_precomp_headers+set}" = set; then | |
39705 | enableval="$enable_precomp_headers" | |
39706 | bk_use_pch="$enableval" | |
39707 | fi; | |
39708 | ||
39709 | GCC_PCH=0 | |
39710 | ||
39711 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39712 | if test "x$GCC" = "xyes"; then | |
39713 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39714 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39715 | cat >conftest.$ac_ext <<_ACEOF | |
39716 | /* confdefs.h. */ | |
39717 | _ACEOF | |
39718 | cat confdefs.h >>conftest.$ac_ext | |
39719 | cat >>conftest.$ac_ext <<_ACEOF | |
39720 | /* end confdefs.h. */ | |
39721 | ||
39722 | int | |
39723 | main () | |
39724 | { | |
39725 | ||
39726 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39727 | #error "no pch support" | |
39728 | #endif | |
39729 | #if (__GNUC__ < 3) | |
39730 | #error "no pch support" | |
39731 | #endif | |
39732 | #if (__GNUC__ == 3) && \ | |
39733 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39734 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39735 | #error "no pch support" | |
39736 | #endif | |
39737 | ||
39738 | ; | |
39739 | return 0; | |
39740 | } | |
39741 | _ACEOF | |
39742 | rm -f conftest.$ac_objext | |
39743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39744 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 39745 | ac_status=$? |
ac1cb8d3 VS |
39746 | grep -v '^ *+' conftest.er1 >conftest.err |
39747 | rm -f conftest.er1 | |
39748 | cat conftest.err >&5 | |
dcc1b6ad VS |
39749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39750 | (exit $ac_status); } && | |
5dcf30a0 RN |
39751 | { ac_try='test -z "$ac_c_werror_flag" |
39752 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39754 | (eval $ac_try) 2>&5 | |
39755 | ac_status=$? | |
39756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39757 | (exit $ac_status); }; } && | |
39758 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
39759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39760 | (eval $ac_try) 2>&5 | |
39761 | ac_status=$? | |
39762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39763 | (exit $ac_status); }; }; then | |
39764 | ||
39765 | echo "$as_me:$LINENO: result: yes" >&5 | |
39766 | echo "${ECHO_T}yes" >&6 | |
dcc1b6ad VS |
39767 | GCC_PCH=1 |
39768 | ||
39769 | else | |
39770 | echo "$as_me: failed program was:" >&5 | |
39771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39772 | ||
39773 | ||
39774 | echo "$as_me:$LINENO: result: no" >&5 | |
39775 | echo "${ECHO_T}no" >&6 | |
39776 | ||
39777 | fi | |
ac1cb8d3 | 39778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
39779 | if test $GCC_PCH = 1 ; then |
39780 | cat <<EOF >bk-make-pch | |
39781 | #!/bin/sh | |
39782 | ||
39783 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39784 | # script. It is used to generated precompiled headers. | |
39785 | # | |
39786 | # Permission is given to use this file in any way. | |
39787 | ||
39788 | outfile="\${1}" | |
39789 | header="\${2}" | |
39790 | shift | |
39791 | shift | |
39792 | ||
39793 | compiler= | |
39794 | headerfile= | |
39795 | while test \${#} -gt 0; do | |
39796 | case "\${1}" in | |
39797 | -I* ) | |
39798 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39799 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39800 | headerfile="\${incdir}/\${header}" | |
39801 | fi | |
39802 | ;; | |
39803 | esac | |
39804 | compiler="\${compiler} \${1}" | |
39805 | shift | |
39806 | done | |
39807 | ||
39808 | if test "x\${headerfile}" = "x" ; then | |
39809 | echo "error: can't find header \${header} in include paths" >2 | |
39810 | else | |
39811 | if test -f \${outfile} ; then | |
39812 | rm -f \${outfile} | |
39813 | else | |
39814 | mkdir -p \`dirname \${outfile}\` | |
39815 | fi | |
39816 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39817 | mkdir -p .deps | |
39818 | # can do this because gcc is >= 3.4: | |
39819 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39820 | exit \${?} | |
39821 | fi | |
39822 | EOF | |
39823 | chmod +x bk-make-pch | |
39824 | fi | |
39825 | fi | |
39826 | fi | |
39827 | ||
39828 | ||
39829 | ||
a848cd7e SC |
39830 | COND_BUILD_DEBUG="#" |
39831 | if test "x$BUILD" = "xdebug" ; then | |
39832 | COND_BUILD_DEBUG="" | |
39833 | fi | |
39834 | ||
39835 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
39836 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39837 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39838 | fi | |
39839 | ||
39840 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39841 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39842 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39843 | fi | |
39844 | ||
39845 | COND_BUILD_DEBUG_UNICODE_0="#" | |
39846 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39847 | COND_BUILD_DEBUG_UNICODE_0="" | |
39848 | fi | |
39849 | ||
39850 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39851 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39852 | COND_BUILD_DEBUG_UNICODE_1="" | |
39853 | fi | |
39854 | ||
39855 | COND_BUILD_RELEASE="#" | |
39856 | if test "x$BUILD" = "xrelease" ; then | |
39857 | COND_BUILD_RELEASE="" | |
39858 | fi | |
39859 | ||
39860 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
39861 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39862 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39863 | fi | |
39864 | ||
39865 | COND_BUILD_RELEASE_UNICODE_0="#" | |
39866 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39867 | COND_BUILD_RELEASE_UNICODE_0="" | |
39868 | fi | |
39869 | ||
39870 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39871 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39872 | COND_BUILD_RELEASE_UNICODE_1="" | |
39873 | fi | |
39874 | ||
39875 | COND_DEBUG_FLAG_1="#" | |
39876 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39877 | COND_DEBUG_FLAG_1="" | |
39878 | fi | |
39879 | ||
39880 | COND_DEBUG_INFO_0="#" | |
39881 | if test "x$DEBUG_INFO" = "x0" ; then | |
39882 | COND_DEBUG_INFO_0="" | |
39883 | fi | |
39884 | ||
39885 | COND_DEBUG_INFO_1="#" | |
39886 | if test "x$DEBUG_INFO" = "x1" ; then | |
39887 | COND_DEBUG_INFO_1="" | |
39888 | fi | |
39889 | ||
39890 | COND_DEPS_TRACKING_0="#" | |
39891 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39892 | COND_DEPS_TRACKING_0="" | |
39893 | fi | |
39894 | ||
39895 | COND_DEPS_TRACKING_1="#" | |
39896 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39897 | COND_DEPS_TRACKING_1="" | |
39898 | fi | |
39899 | ||
39900 | COND_GCC_PCH_1="#" | |
39901 | if test "x$GCC_PCH" = "x1" ; then | |
39902 | COND_GCC_PCH_1="" | |
39903 | fi | |
39904 | ||
39905 | COND_MONOLITHIC_0="#" | |
39906 | if test "x$MONOLITHIC" = "x0" ; then | |
39907 | COND_MONOLITHIC_0="" | |
39908 | fi | |
39909 | ||
39910 | COND_MONOLITHIC_0_SHARED_0="#" | |
39911 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39912 | COND_MONOLITHIC_0_SHARED_0="" | |
39913 | fi | |
39914 | ||
39915 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39916 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39917 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
39918 | fi | |
39919 | ||
39920 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
39921 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39922 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39923 | fi | |
39924 | ||
39925 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
39926 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39927 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39928 | fi | |
39929 | ||
39930 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
39931 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39932 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39933 | fi | |
39934 | ||
ceec2216 RL |
39935 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
39936 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
39937 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
39938 | fi | |
39939 | ||
a848cd7e SC |
39940 | COND_MONOLITHIC_0_SHARED_1="#" |
39941 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39942 | COND_MONOLITHIC_0_SHARED_1="" | |
39943 | fi | |
39944 | ||
39945 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
39946 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39947 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
39948 | fi | |
39949 | ||
39950 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
39951 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39952 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
39953 | fi | |
39954 | ||
39955 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
39956 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
39957 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
39958 | fi | |
39959 | ||
39960 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
39961 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39962 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
39963 | fi | |
39964 | ||
ceec2216 RL |
39965 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
39966 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
39967 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
39968 | fi | |
39969 | ||
a848cd7e SC |
39970 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
39971 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39972 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
39973 | fi | |
39974 | ||
39975 | COND_MONOLITHIC_1="#" | |
39976 | if test "x$MONOLITHIC" = "x1" ; then | |
39977 | COND_MONOLITHIC_1="" | |
39978 | fi | |
39979 | ||
39980 | COND_MONOLITHIC_1_SHARED_0="#" | |
39981 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
39982 | COND_MONOLITHIC_1_SHARED_0="" | |
39983 | fi | |
39984 | ||
39985 | COND_MONOLITHIC_1_SHARED_1="#" | |
39986 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
39987 | COND_MONOLITHIC_1_SHARED_1="" | |
39988 | fi | |
39989 | ||
39990 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
39991 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39992 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
39993 | fi | |
39994 | ||
39995 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
39996 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39997 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
39998 | fi | |
39999 | ||
40000 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40001 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40002 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40003 | fi | |
40004 | ||
40005 | COND_PLATFORM_MACOSX_1="#" | |
40006 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40007 | COND_PLATFORM_MACOSX_1="" | |
40008 | fi | |
40009 | ||
40010 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40011 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40012 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40013 | fi | |
40014 | ||
40015 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40016 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40017 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40018 | fi | |
40019 | ||
40020 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40021 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40022 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40023 | fi | |
40024 | ||
ebee3cd0 VS |
40025 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40026 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40027 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40028 | fi | |
40029 | ||
40030 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40031 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40032 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40033 | fi | |
40034 | ||
a848cd7e SC |
40035 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40036 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40037 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40038 | fi | |
40039 | ||
40040 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40041 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40042 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40043 | fi | |
40044 | ||
40045 | COND_PLATFORM_MAC_1="#" | |
40046 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40047 | COND_PLATFORM_MAC_1="" | |
40048 | fi | |
40049 | ||
40050 | COND_PLATFORM_OS2_1="#" | |
40051 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40052 | COND_PLATFORM_OS2_1="" | |
40053 | fi | |
40054 | ||
40055 | COND_PLATFORM_UNIX_0="#" | |
40056 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40057 | COND_PLATFORM_UNIX_0="" | |
40058 | fi | |
40059 | ||
40060 | COND_PLATFORM_UNIX_1="#" | |
40061 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40062 | COND_PLATFORM_UNIX_1="" | |
40063 | fi | |
40064 | ||
40065 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40066 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40067 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40068 | fi | |
40069 | ||
40070 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40071 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40072 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40073 | fi | |
40074 | ||
40075 | COND_PLATFORM_WIN32_0="#" | |
40076 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40077 | COND_PLATFORM_WIN32_0="" | |
40078 | fi | |
40079 | ||
40080 | COND_PLATFORM_WIN32_1="#" | |
40081 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40082 | COND_PLATFORM_WIN32_1="" | |
40083 | fi | |
40084 | ||
40085 | COND_SHARED_0="#" | |
40086 | if test "x$SHARED" = "x0" ; then | |
40087 | COND_SHARED_0="" | |
40088 | fi | |
40089 | ||
ceec2216 RL |
40090 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
40091 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40092 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
40093 | fi | |
40094 | ||
40095 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
40096 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40097 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
40098 | fi | |
40099 | ||
40100 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
40101 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40102 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
40103 | fi | |
40104 | ||
a848cd7e SC |
40105 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
40106 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40107 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40108 | fi | |
40109 | ||
40110 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40111 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40112 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40113 | fi | |
40114 | ||
40115 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40116 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40117 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40118 | fi | |
40119 | ||
40120 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40121 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40122 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40123 | fi | |
40124 | ||
40125 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40126 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40127 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40128 | fi | |
40129 | ||
40130 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40131 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40132 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40133 | fi | |
40134 | ||
40135 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40136 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40137 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40138 | fi | |
40139 | ||
40140 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40141 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40142 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40143 | fi | |
40144 | ||
40145 | COND_SHARED_1="#" | |
40146 | if test "x$SHARED" = "x1" ; then | |
40147 | COND_SHARED_1="" | |
40148 | fi | |
40149 | ||
40150 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40151 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40152 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40153 | fi | |
40154 | ||
40155 | COND_TOOLKIT_COCOA="#" | |
40156 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40157 | COND_TOOLKIT_COCOA="" | |
40158 | fi | |
40159 | ||
40160 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40161 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40162 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40163 | fi | |
40164 | ||
40165 | COND_TOOLKIT_GTK="#" | |
40166 | if test "x$TOOLKIT" = "xGTK" ; then | |
40167 | COND_TOOLKIT_GTK="" | |
40168 | fi | |
40169 | ||
40170 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40171 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40172 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40173 | fi | |
40174 | ||
40175 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40176 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40177 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40178 | fi | |
40179 | ||
40180 | COND_TOOLKIT_MAC="#" | |
40181 | if test "x$TOOLKIT" = "xMAC" ; then | |
40182 | COND_TOOLKIT_MAC="" | |
40183 | fi | |
40184 | ||
40185 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40186 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40187 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40188 | fi | |
40189 | ||
40190 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40191 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40192 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40193 | fi | |
40194 | ||
40195 | COND_TOOLKIT_MGL="#" | |
40196 | if test "x$TOOLKIT" = "xMGL" ; then | |
40197 | COND_TOOLKIT_MGL="" | |
40198 | fi | |
40199 | ||
40200 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40201 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40202 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40203 | fi | |
40204 | ||
40205 | COND_TOOLKIT_MOTIF="#" | |
40206 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40207 | COND_TOOLKIT_MOTIF="" | |
40208 | fi | |
40209 | ||
40210 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40211 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40212 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40213 | fi | |
40214 | ||
40215 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40216 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40217 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40218 | fi | |
40219 | ||
40220 | COND_TOOLKIT_MSW="#" | |
40221 | if test "x$TOOLKIT" = "xMSW" ; then | |
40222 | COND_TOOLKIT_MSW="" | |
40223 | fi | |
40224 | ||
40225 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40226 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40227 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40228 | fi | |
40229 | ||
40230 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40231 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40232 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40233 | fi | |
40234 | ||
40235 | COND_TOOLKIT_PM="#" | |
40236 | if test "x$TOOLKIT" = "xPM" ; then | |
40237 | COND_TOOLKIT_PM="" | |
40238 | fi | |
40239 | ||
40240 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40241 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40242 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40243 | fi | |
40244 | ||
40245 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40246 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40247 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40248 | fi | |
40249 | ||
3fd9c298 DE |
40250 | COND_TOOLKIT_WINCE="#" |
40251 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40252 | COND_TOOLKIT_WINCE="" | |
40253 | fi | |
40254 | ||
40255 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40256 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40257 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40258 | fi | |
40259 | ||
40260 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40261 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40262 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40263 | fi | |
40264 | ||
a848cd7e SC |
40265 | COND_TOOLKIT_X11="#" |
40266 | if test "x$TOOLKIT" = "xX11" ; then | |
40267 | COND_TOOLKIT_X11="" | |
40268 | fi | |
40269 | ||
40270 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40271 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40272 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40273 | fi | |
40274 | ||
40275 | COND_UNICODE_1="#" | |
40276 | if test "x$UNICODE" = "x1" ; then | |
40277 | COND_UNICODE_1="" | |
40278 | fi | |
40279 | ||
40280 | COND_USE_EXCEPTIONS_0="#" | |
40281 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40282 | COND_USE_EXCEPTIONS_0="" | |
40283 | fi | |
40284 | ||
40285 | COND_USE_EXCEPTIONS_1="#" | |
40286 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40287 | COND_USE_EXCEPTIONS_1="" | |
40288 | fi | |
40289 | ||
40290 | COND_USE_GUI_0="#" | |
40291 | if test "x$USE_GUI" = "x0" ; then | |
40292 | COND_USE_GUI_0="" | |
40293 | fi | |
40294 | ||
40295 | COND_USE_GUI_1="#" | |
40296 | if test "x$USE_GUI" = "x1" ; then | |
40297 | COND_USE_GUI_1="" | |
40298 | fi | |
40299 | ||
40300 | COND_USE_GUI_1_WXUNIV_0="#" | |
40301 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40302 | COND_USE_GUI_1_WXUNIV_0="" | |
40303 | fi | |
40304 | ||
40305 | COND_USE_GUI_1_WXUNIV_1="#" | |
40306 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40307 | COND_USE_GUI_1_WXUNIV_1="" | |
40308 | fi | |
40309 | ||
40310 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40311 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40312 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40313 | fi | |
40314 | ||
40315 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40316 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40317 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40318 | fi | |
40319 | ||
40320 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40321 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40322 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40323 | fi | |
40324 | ||
ceec2216 RL |
40325 | COND_USE_ODBC_1="#" |
40326 | if test "x$USE_ODBC" = "x1" ; then | |
40327 | COND_USE_ODBC_1="" | |
40328 | fi | |
40329 | ||
a848cd7e SC |
40330 | COND_USE_PLUGINS_0="#" |
40331 | if test "x$USE_PLUGINS" = "x0" ; then | |
40332 | COND_USE_PLUGINS_0="" | |
40333 | fi | |
40334 | ||
40335 | COND_USE_SOSYMLINKS_1="#" | |
40336 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40337 | COND_USE_SOSYMLINKS_1="" | |
40338 | fi | |
40339 | ||
40340 | COND_USE_SOVERLINUX_1="#" | |
40341 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40342 | COND_USE_SOVERLINUX_1="" | |
40343 | fi | |
40344 | ||
40345 | COND_USE_SOVERSION_0="#" | |
40346 | if test "x$USE_SOVERSION" = "x0" ; then | |
40347 | COND_USE_SOVERSION_0="" | |
40348 | fi | |
40349 | ||
40350 | COND_USE_SOVERSOLARIS_1="#" | |
40351 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40352 | COND_USE_SOVERSOLARIS_1="" | |
40353 | fi | |
40354 | ||
40355 | COND_WITH_PLUGIN_SDL_1="#" | |
40356 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40357 | COND_WITH_PLUGIN_SDL_1="" | |
40358 | fi | |
40359 | ||
a848cd7e SC |
40360 | COND_WXUNIV_1="#" |
40361 | if test "x$WXUNIV" = "x1" ; then | |
40362 | COND_WXUNIV_1="" | |
40363 | fi | |
40364 | ||
40365 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40366 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40367 | COND_WXUSE_EXPAT_BUILTIN="" | |
40368 | fi | |
40369 | ||
40370 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40371 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40372 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40373 | fi | |
40374 | ||
40375 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40376 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40377 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40378 | fi | |
40379 | ||
40380 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40381 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40382 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40383 | fi | |
40384 | ||
40385 | COND_WXUSE_ODBC_BUILTIN="#" | |
40386 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40387 | COND_WXUSE_ODBC_BUILTIN="" | |
40388 | fi | |
40389 | ||
40390 | COND_WXUSE_REGEX_BUILTIN="#" | |
40391 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40392 | COND_WXUSE_REGEX_BUILTIN="" | |
40393 | fi | |
40394 | ||
40395 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40396 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40397 | COND_WXUSE_ZLIB_BUILTIN="" | |
40398 | fi | |
40399 | ||
dcc1b6ad VS |
40400 | COND_BUILD_DEBUG="#" |
40401 | if test "x$BUILD" = "xdebug" ; then | |
40402 | COND_BUILD_DEBUG="" | |
40403 | fi | |
40404 | ||
40405 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40406 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40407 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40408 | fi | |
40409 | ||
40410 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40411 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40412 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40413 | fi | |
40414 | ||
40415 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40416 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40417 | COND_BUILD_DEBUG_UNICODE_0="" | |
40418 | fi | |
40419 | ||
40420 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40421 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40422 | COND_BUILD_DEBUG_UNICODE_1="" | |
40423 | fi | |
40424 | ||
40425 | COND_BUILD_RELEASE="#" | |
40426 | if test "x$BUILD" = "xrelease" ; then | |
40427 | COND_BUILD_RELEASE="" | |
40428 | fi | |
40429 | ||
40430 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40431 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40432 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40433 | fi | |
40434 | ||
40435 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40436 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40437 | COND_BUILD_RELEASE_UNICODE_0="" | |
40438 | fi | |
40439 | ||
40440 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40441 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40442 | COND_BUILD_RELEASE_UNICODE_1="" | |
40443 | fi | |
40444 | ||
40445 | COND_DEBUG_FLAG_1="#" | |
40446 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40447 | COND_DEBUG_FLAG_1="" | |
40448 | fi | |
40449 | ||
40450 | COND_DEBUG_INFO_0="#" | |
40451 | if test "x$DEBUG_INFO" = "x0" ; then | |
40452 | COND_DEBUG_INFO_0="" | |
40453 | fi | |
40454 | ||
40455 | COND_DEBUG_INFO_1="#" | |
40456 | if test "x$DEBUG_INFO" = "x1" ; then | |
40457 | COND_DEBUG_INFO_1="" | |
40458 | fi | |
40459 | ||
40460 | COND_DEPS_TRACKING_0="#" | |
40461 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40462 | COND_DEPS_TRACKING_0="" | |
40463 | fi | |
40464 | ||
40465 | COND_DEPS_TRACKING_1="#" | |
40466 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40467 | COND_DEPS_TRACKING_1="" | |
40468 | fi | |
40469 | ||
40470 | COND_GCC_PCH_1="#" | |
40471 | if test "x$GCC_PCH" = "x1" ; then | |
40472 | COND_GCC_PCH_1="" | |
40473 | fi | |
40474 | ||
40475 | COND_MONOLITHIC_0="#" | |
40476 | if test "x$MONOLITHIC" = "x0" ; then | |
40477 | COND_MONOLITHIC_0="" | |
40478 | fi | |
40479 | ||
40480 | COND_MONOLITHIC_0_SHARED_0="#" | |
40481 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40482 | COND_MONOLITHIC_0_SHARED_0="" | |
40483 | fi | |
40484 | ||
40485 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40486 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40487 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40488 | fi | |
40489 | ||
40490 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40491 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40492 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40493 | fi | |
40494 | ||
40495 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40496 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40497 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40498 | fi | |
40499 | ||
40500 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40501 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40502 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40503 | fi | |
40504 | ||
9a8f0513 VS |
40505 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40506 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40507 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40508 | fi | |
40509 | ||
dcc1b6ad VS |
40510 | COND_MONOLITHIC_0_SHARED_1="#" |
40511 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40512 | COND_MONOLITHIC_0_SHARED_1="" | |
40513 | fi | |
40514 | ||
40515 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40516 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40517 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40518 | fi | |
40519 | ||
40520 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40521 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40522 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40523 | fi | |
40524 | ||
40525 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40526 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40527 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40528 | fi | |
40529 | ||
40530 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40531 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40532 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40533 | fi | |
40534 | ||
9a8f0513 VS |
40535 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40536 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40537 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40538 | fi | |
40539 | ||
dcc1b6ad VS |
40540 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40541 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40542 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40543 | fi | |
40544 | ||
40545 | COND_MONOLITHIC_1="#" | |
40546 | if test "x$MONOLITHIC" = "x1" ; then | |
40547 | COND_MONOLITHIC_1="" | |
40548 | fi | |
40549 | ||
40550 | COND_MONOLITHIC_1_SHARED_0="#" | |
40551 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40552 | COND_MONOLITHIC_1_SHARED_0="" | |
40553 | fi | |
40554 | ||
40555 | COND_MONOLITHIC_1_SHARED_1="#" | |
40556 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40557 | COND_MONOLITHIC_1_SHARED_1="" | |
40558 | fi | |
40559 | ||
40560 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40561 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40562 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40563 | fi | |
40564 | ||
40565 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40566 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40567 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40568 | fi | |
40569 | ||
40570 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40571 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40572 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40573 | fi | |
40574 | ||
40575 | COND_PLATFORM_MACOSX_1="#" | |
40576 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40577 | COND_PLATFORM_MACOSX_1="" | |
40578 | fi | |
40579 | ||
40580 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40581 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40582 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40583 | fi | |
40584 | ||
40585 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40586 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40587 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40588 | fi | |
40589 | ||
40590 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40591 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40592 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40593 | fi | |
40594 | ||
9a8f0513 VS |
40595 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40596 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40597 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40598 | fi | |
40599 | ||
40600 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40601 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40602 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40603 | fi | |
40604 | ||
dcc1b6ad VS |
40605 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40606 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40607 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40608 | fi | |
40609 | ||
40610 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40611 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40612 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40613 | fi | |
40614 | ||
40615 | COND_PLATFORM_MAC_1="#" | |
40616 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40617 | COND_PLATFORM_MAC_1="" | |
40618 | fi | |
40619 | ||
40620 | COND_PLATFORM_OS2_1="#" | |
40621 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40622 | COND_PLATFORM_OS2_1="" | |
40623 | fi | |
40624 | ||
40625 | COND_PLATFORM_UNIX_0="#" | |
40626 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40627 | COND_PLATFORM_UNIX_0="" | |
40628 | fi | |
40629 | ||
40630 | COND_PLATFORM_UNIX_1="#" | |
40631 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40632 | COND_PLATFORM_UNIX_1="" | |
40633 | fi | |
40634 | ||
40635 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40636 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40637 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40638 | fi | |
40639 | ||
40640 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40641 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40642 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40643 | fi | |
40644 | ||
40645 | COND_PLATFORM_WIN32_0="#" | |
40646 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40647 | COND_PLATFORM_WIN32_0="" | |
40648 | fi | |
40649 | ||
40650 | COND_PLATFORM_WIN32_1="#" | |
40651 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40652 | COND_PLATFORM_WIN32_1="" | |
40653 | fi | |
40654 | ||
40655 | COND_SHARED_0="#" | |
40656 | if test "x$SHARED" = "x0" ; then | |
40657 | COND_SHARED_0="" | |
40658 | fi | |
40659 | ||
40660 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
40661 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40662 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40663 | fi | |
40664 | ||
40665 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40666 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40667 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40668 | fi | |
40669 | ||
40670 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40671 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40672 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40673 | fi | |
40674 | ||
40675 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40676 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40677 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40678 | fi | |
40679 | ||
40680 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40681 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40682 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40683 | fi | |
40684 | ||
40685 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40686 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40687 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40688 | fi | |
40689 | ||
40690 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40691 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40692 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40693 | fi | |
40694 | ||
40695 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40696 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40697 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40698 | fi | |
40699 | ||
40700 | COND_SHARED_1="#" | |
40701 | if test "x$SHARED" = "x1" ; then | |
40702 | COND_SHARED_1="" | |
40703 | fi | |
40704 | ||
40705 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40706 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40707 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40708 | fi | |
40709 | ||
40710 | COND_TOOLKIT_COCOA="#" | |
40711 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40712 | COND_TOOLKIT_COCOA="" | |
40713 | fi | |
40714 | ||
40715 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40716 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40717 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40718 | fi | |
40719 | ||
40720 | COND_TOOLKIT_GTK="#" | |
40721 | if test "x$TOOLKIT" = "xGTK" ; then | |
40722 | COND_TOOLKIT_GTK="" | |
40723 | fi | |
40724 | ||
40725 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40726 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40727 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40728 | fi | |
40729 | ||
40730 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40731 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40732 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40733 | fi | |
40734 | ||
40735 | COND_TOOLKIT_MAC="#" | |
40736 | if test "x$TOOLKIT" = "xMAC" ; then | |
40737 | COND_TOOLKIT_MAC="" | |
40738 | fi | |
40739 | ||
40740 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40741 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40742 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40743 | fi | |
40744 | ||
40745 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40746 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40747 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40748 | fi | |
40749 | ||
9a8f0513 VS |
40750 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
40751 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40752 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
40753 | fi | |
40754 | ||
dcc1b6ad VS |
40755 | COND_TOOLKIT_MGL="#" |
40756 | if test "x$TOOLKIT" = "xMGL" ; then | |
40757 | COND_TOOLKIT_MGL="" | |
40758 | fi | |
40759 | ||
40760 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40761 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40762 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40763 | fi | |
40764 | ||
40765 | COND_TOOLKIT_MOTIF="#" | |
40766 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40767 | COND_TOOLKIT_MOTIF="" | |
40768 | fi | |
40769 | ||
40770 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40771 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40772 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40773 | fi | |
40774 | ||
40775 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40776 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40777 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40778 | fi | |
40779 | ||
40780 | COND_TOOLKIT_MSW="#" | |
40781 | if test "x$TOOLKIT" = "xMSW" ; then | |
40782 | COND_TOOLKIT_MSW="" | |
40783 | fi | |
40784 | ||
40785 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40786 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40787 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40788 | fi | |
40789 | ||
40790 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40791 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40792 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40793 | fi | |
40794 | ||
9a8f0513 VS |
40795 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
40796 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40797 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
40798 | fi | |
40799 | ||
dcc1b6ad VS |
40800 | COND_TOOLKIT_PM="#" |
40801 | if test "x$TOOLKIT" = "xPM" ; then | |
40802 | COND_TOOLKIT_PM="" | |
40803 | fi | |
40804 | ||
40805 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40806 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40807 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40808 | fi | |
40809 | ||
40810 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40811 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40812 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40813 | fi | |
40814 | ||
9a8f0513 VS |
40815 | COND_TOOLKIT_PM_WXUNIV_0="#" |
40816 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40817 | COND_TOOLKIT_PM_WXUNIV_0="" | |
40818 | fi | |
40819 | ||
dcc1b6ad VS |
40820 | COND_TOOLKIT_WINCE="#" |
40821 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40822 | COND_TOOLKIT_WINCE="" | |
40823 | fi | |
40824 | ||
40825 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40826 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40827 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40828 | fi | |
40829 | ||
40830 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40831 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40832 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40833 | fi | |
40834 | ||
40835 | COND_TOOLKIT_X11="#" | |
40836 | if test "x$TOOLKIT" = "xX11" ; then | |
40837 | COND_TOOLKIT_X11="" | |
40838 | fi | |
40839 | ||
40840 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40841 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40842 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40843 | fi | |
40844 | ||
40845 | COND_UNICODE_1="#" | |
40846 | if test "x$UNICODE" = "x1" ; then | |
40847 | COND_UNICODE_1="" | |
40848 | fi | |
40849 | ||
40850 | COND_USE_EXCEPTIONS_0="#" | |
40851 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40852 | COND_USE_EXCEPTIONS_0="" | |
40853 | fi | |
40854 | ||
40855 | COND_USE_EXCEPTIONS_1="#" | |
40856 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40857 | COND_USE_EXCEPTIONS_1="" | |
40858 | fi | |
40859 | ||
40860 | COND_USE_GUI_0="#" | |
40861 | if test "x$USE_GUI" = "x0" ; then | |
40862 | COND_USE_GUI_0="" | |
40863 | fi | |
40864 | ||
40865 | COND_USE_GUI_1="#" | |
40866 | if test "x$USE_GUI" = "x1" ; then | |
40867 | COND_USE_GUI_1="" | |
40868 | fi | |
40869 | ||
40870 | COND_USE_GUI_1_WXUNIV_0="#" | |
40871 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40872 | COND_USE_GUI_1_WXUNIV_0="" | |
40873 | fi | |
40874 | ||
40875 | COND_USE_GUI_1_WXUNIV_1="#" | |
40876 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40877 | COND_USE_GUI_1_WXUNIV_1="" | |
40878 | fi | |
40879 | ||
40880 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40881 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40882 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40883 | fi | |
40884 | ||
40885 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40886 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40887 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40888 | fi | |
40889 | ||
40890 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40891 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40892 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40893 | fi | |
40894 | ||
40895 | COND_USE_ODBC_1="#" | |
40896 | if test "x$USE_ODBC" = "x1" ; then | |
40897 | COND_USE_ODBC_1="" | |
40898 | fi | |
40899 | ||
40900 | COND_USE_PLUGINS_0="#" | |
40901 | if test "x$USE_PLUGINS" = "x0" ; then | |
40902 | COND_USE_PLUGINS_0="" | |
40903 | fi | |
40904 | ||
40905 | COND_USE_SOSYMLINKS_1="#" | |
40906 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40907 | COND_USE_SOSYMLINKS_1="" | |
40908 | fi | |
40909 | ||
40910 | COND_USE_SOVERLINUX_1="#" | |
40911 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40912 | COND_USE_SOVERLINUX_1="" | |
40913 | fi | |
40914 | ||
40915 | COND_USE_SOVERSION_0="#" | |
40916 | if test "x$USE_SOVERSION" = "x0" ; then | |
40917 | COND_USE_SOVERSION_0="" | |
40918 | fi | |
40919 | ||
40920 | COND_USE_SOVERSOLARIS_1="#" | |
40921 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40922 | COND_USE_SOVERSOLARIS_1="" | |
40923 | fi | |
40924 | ||
40925 | COND_WITH_PLUGIN_SDL_1="#" | |
40926 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40927 | COND_WITH_PLUGIN_SDL_1="" | |
40928 | fi | |
40929 | ||
40930 | COND_WXUNIV_1="#" | |
40931 | if test "x$WXUNIV" = "x1" ; then | |
40932 | COND_WXUNIV_1="" | |
40933 | fi | |
40934 | ||
40935 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40936 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40937 | COND_WXUSE_EXPAT_BUILTIN="" | |
40938 | fi | |
40939 | ||
40940 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40941 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40942 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40943 | fi | |
40944 | ||
40945 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40946 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40947 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40948 | fi | |
40949 | ||
40950 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40951 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40952 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40953 | fi | |
40954 | ||
40955 | COND_WXUSE_ODBC_BUILTIN="#" | |
40956 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40957 | COND_WXUSE_ODBC_BUILTIN="" | |
40958 | fi | |
40959 | ||
40960 | COND_WXUSE_REGEX_BUILTIN="#" | |
40961 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40962 | COND_WXUSE_REGEX_BUILTIN="" | |
40963 | fi | |
40964 | ||
40965 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40966 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40967 | COND_WXUSE_ZLIB_BUILTIN="" | |
40968 | fi | |
40969 | ||
a848cd7e SC |
40970 | |
40971 | ||
2057db16 VS |
40972 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
40973 | { { 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 | |
40974 | 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;} | |
40975 | { (exit 1); exit 1; }; } | |
40976 | fi | |
40977 | ||
a848cd7e | 40978 | |
ceec2216 RL |
40979 | if test "$wxUSE_SHARED" = "yes"; then |
40980 | ||
40981 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
40982 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
40983 | ||
40984 | else | |
40985 | ||
40986 | EXE_LINKER="$CXX -o" | |
40987 | ||
40988 | fi | |
a848cd7e | 40989 | |
74b84332 | 40990 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 40991 | if test $GCC_PCH = 1 ; then |
74b84332 | 40992 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
40993 | else |
40994 | case "${host}" in | |
40995 | powerpc-*-darwin* ) | |
74b84332 | 40996 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 40997 | ;; |
bea8e651 | 40998 | *-*-mingw32* ) |
1f344abf VS |
40999 | if test "$wxUSE_STL" = "yes" -o \ |
41000 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
41001 | "$wxUSE_NO_RTTI" != "yes"; then | |
41002 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
41003 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
41004 | cat >conftest.$ac_ext <<_ACEOF |
41005 | /* confdefs.h. */ | |
41006 | _ACEOF | |
41007 | cat confdefs.h >>conftest.$ac_ext | |
41008 | cat >>conftest.$ac_ext <<_ACEOF | |
41009 | /* end confdefs.h. */ | |
41010 | ||
41011 | int | |
41012 | main () | |
41013 | { | |
1f344abf | 41014 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
41015 | #error "Not GCC 3.2 or greater" |
41016 | #endif | |
41017 | ||
41018 | ; | |
41019 | return 0; | |
41020 | } | |
41021 | _ACEOF | |
41022 | rm -f conftest.$ac_objext | |
41023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41024 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 41025 | ac_status=$? |
ac1cb8d3 VS |
41026 | grep -v '^ *+' conftest.er1 >conftest.err |
41027 | rm -f conftest.er1 | |
41028 | cat conftest.err >&5 | |
bea8e651 MB |
41029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41030 | (exit $ac_status); } && | |
5dcf30a0 RN |
41031 | { ac_try='test -z "$ac_c_werror_flag" |
41032 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41034 | (eval $ac_try) 2>&5 | |
41035 | ac_status=$? | |
41036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41037 | (exit $ac_status); }; } && | |
41038 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
41039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41040 | (eval $ac_try) 2>&5 | |
41041 | ac_status=$? | |
41042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41043 | (exit $ac_status); }; }; then | |
74b84332 | 41044 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
41045 | echo "$as_me:$LINENO: result: yes" >&5 |
41046 | echo "${ECHO_T}yes" >&6 | |
41047 | else | |
41048 | echo "$as_me: failed program was:" >&5 | |
41049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41050 | ||
41051 | echo "$as_me:$LINENO: result: no" >&5 | |
41052 | echo "${ECHO_T}no" >&6 | |
41053 | fi | |
ac1cb8d3 | 41054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
41055 | fi |
41056 | ;; | |
a848cd7e SC |
41057 | esac |
41058 | fi | |
74b84332 | 41059 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
41060 | |
41061 | ||
41062 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
41063 | ||
41064 | ||
41065 | ||
41066 | ||
41067 | ||
41068 | ||
41069 | ||
41070 | ||
41071 | ||
41072 | ||
41073 | ||
41074 | ||
41075 | ||
41076 | ||
41077 | ||
41078 | ||
41079 | ||
41080 | ||
41081 | ||
41082 | ||
41083 | ||
41084 | ||
41085 | ||
41086 | ||
41087 | ||
41088 | ||
41089 | ||
41090 | ||
41091 | ||
41092 | ||
41093 | ||
41094 | ||
41095 | ||
41096 | ||
41097 | ||
41098 | ||
41099 | ||
41100 | ||
41101 | ||
41102 | ||
41103 | ||
41104 | ||
a848cd7e SC |
41105 | |
41106 | ||
41107 | ||
41108 | ||
41109 | ||
41110 | ||
41111 | ||
41112 | ||
41113 | ||
41114 | ||
41115 | ||
41116 | ||
41117 | ||
41118 | ||
41119 | ||
41120 | ||
41121 | ||
41122 | ||
74b84332 | 41123 | |
a848cd7e SC |
41124 | |
41125 | ||
41126 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41127 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41128 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41129 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41131 | else | |
41132 | cat >conftest.make <<\_ACEOF | |
41133 | all: | |
41134 | @echo 'ac_maketemp="$(MAKE)"' | |
41135 | _ACEOF | |
41136 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41137 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41138 | if test -n "$ac_maketemp"; then | |
41139 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41140 | else | |
41141 | eval ac_cv_prog_make_${ac_make}_set=no | |
41142 | fi | |
41143 | rm -f conftest.make | |
41144 | fi | |
41145 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41146 | echo "$as_me:$LINENO: result: yes" >&5 | |
41147 | echo "${ECHO_T}yes" >&6 | |
41148 | SET_MAKE= | |
41149 | else | |
41150 | echo "$as_me:$LINENO: result: no" >&5 | |
41151 | echo "${ECHO_T}no" >&6 | |
41152 | SET_MAKE="MAKE=${MAKE-make}" | |
41153 | fi | |
41154 | ||
41155 | ||
a848cd7e | 41156 | |
ceec2216 RL |
41157 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
41158 | ||
a848cd7e | 41159 | |
ceec2216 | 41160 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 41161 | |
a848cd7e | 41162 | |
ceec2216 | 41163 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 41164 | |
ceec2216 RL |
41165 | |
41166 | ac_config_files="$ac_config_files version-script Makefile" | |
41167 | ||
41168 | ||
41169 | ac_config_commands="$ac_config_commands wx-config | |
41170 | " | |
a848cd7e SC |
41171 | |
41172 | ||
9103d280 RL |
41173 | |
41174 | ||
a848cd7e SC |
41175 | if test "$wxUSE_GUI" = "yes"; then |
41176 | SUBDIRS="samples demos utils contrib" | |
41177 | else SUBDIRS="samples utils" | |
41178 | fi | |
41179 | ||
41180 | ||
41181 | ||
41182 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41183 | if test "${with_cppunit_prefix+set}" = set; then | |
41184 | withval="$with_cppunit_prefix" | |
41185 | cppunit_config_prefix="$withval" | |
41186 | else | |
41187 | cppunit_config_prefix="" | |
41188 | fi; | |
41189 | ||
41190 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41191 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41192 | withval="$with_cppunit_exec_prefix" | |
41193 | cppunit_config_exec_prefix="$withval" | |
41194 | else | |
41195 | cppunit_config_exec_prefix="" | |
41196 | fi; | |
41197 | ||
41198 | if test x$cppunit_config_exec_prefix != x ; then | |
41199 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41200 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41201 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41202 | fi | |
41203 | fi | |
41204 | if test x$cppunit_config_prefix != x ; then | |
41205 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41206 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41207 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41208 | fi | |
41209 | fi | |
41210 | ||
41211 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41212 | set dummy cppunit-config; ac_word=$2 | |
41213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41215 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41217 | else | |
41218 | case $CPPUNIT_CONFIG in | |
41219 | [\\/]* | ?:[\\/]*) | |
41220 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41221 | ;; | |
41222 | *) | |
41223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41224 | for as_dir in $PATH | |
41225 | do | |
41226 | IFS=$as_save_IFS | |
41227 | test -z "$as_dir" && as_dir=. | |
41228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41229 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41230 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41232 | break 2 | |
41233 | fi | |
41234 | done | |
41235 | done | |
41236 | ||
41237 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41238 | ;; | |
41239 | esac | |
41240 | fi | |
41241 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41242 | ||
41243 | if test -n "$CPPUNIT_CONFIG"; then | |
41244 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41245 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41246 | else | |
41247 | echo "$as_me:$LINENO: result: no" >&5 | |
41248 | echo "${ECHO_T}no" >&6 | |
41249 | fi | |
41250 | ||
41251 | cppunit_version_min=1.8.0 | |
41252 | ||
41253 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41254 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41255 | no_cppunit="" | |
41256 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41257 | no_cppunit=yes | |
41258 | else | |
41259 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41260 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41261 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41262 | ||
41263 | cppunit_major_version=`echo $cppunit_version | \ | |
41264 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41265 | cppunit_minor_version=`echo $cppunit_version | \ | |
41266 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41267 | cppunit_micro_version=`echo $cppunit_version | \ | |
41268 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41269 | ||
41270 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41271 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41272 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41273 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41274 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41275 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41276 | ||
41277 | cppunit_version_proper=`expr \ | |
41278 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41279 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41280 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41281 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41282 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41283 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41284 | ||
41285 | if test "$cppunit_version_proper" = "1" ; then | |
41286 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41287 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41288 | else | |
41289 | echo "$as_me:$LINENO: result: no" >&5 | |
41290 | echo "${ECHO_T}no" >&6 | |
41291 | no_cppunit=yes | |
41292 | fi | |
41293 | fi | |
41294 | ||
41295 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41296 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41297 | else |
41298 | CPPUNIT_CFLAGS="" | |
41299 | CPPUNIT_LIBS="" | |
c2218763 | 41300 | : |
a848cd7e SC |
41301 | fi |
41302 | ||
41303 | ||
41304 | ||
41305 | ||
41306 | ||
41307 | for subdir in `echo $SUBDIRS`; do | |
41308 | if test -d ${srcdir}/${subdir} ; then | |
41309 | if test "$wxUSE_GUI" = "yes"; then | |
41310 | if test ${subdir} = "samples"; then | |
41311 | makefiles="samples/Makefile.in $makefiles" | |
41312 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41313 | if test -d $srcdir/samples/$sample; then | |
41314 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41315 | fi | |
41316 | done | |
41317 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41318 | fi | |
41319 | else if test ${subdir} = "samples"; then | |
41320 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41321 | elif test ${subdir} = "utils"; then | |
41322 | makefiles="utils/HelpGen/Makefile.in \ | |
41323 | utils/HelpGen/src/Makefile.in \ | |
41324 | utils/tex2rtf/Makefile.in \ | |
41325 | utils/tex2rtf/src/Makefile.in" | |
41326 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41327 | fi | |
41328 | fi | |
41329 | ||
41330 | for mkin in $makefiles ; do | |
41331 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41332 | ac_config_files="$ac_config_files $mk" | |
41333 | ||
41334 | done | |
41335 | fi | |
41336 | done | |
41337 | ||
41338 | ||
41339 | cat >confcache <<\_ACEOF | |
41340 | # This file is a shell script that caches the results of configure | |
41341 | # tests run on this system so they can be shared between configure | |
41342 | # scripts and configure runs, see configure's option --config-cache. | |
41343 | # It is not useful on other systems. If it contains results you don't | |
41344 | # want to keep, you may remove or edit it. | |
41345 | # | |
41346 | # config.status only pays attention to the cache file if you give it | |
41347 | # the --recheck option to rerun configure. | |
41348 | # | |
41349 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41350 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41351 | # following values. | |
41352 | ||
41353 | _ACEOF | |
41354 | ||
41355 | # The following way of writing the cache mishandles newlines in values, | |
41356 | # but we know of no workaround that is simple, portable, and efficient. | |
41357 | # So, don't put newlines in cache variables' values. | |
41358 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41359 | # and sets the high bit in the cache file unless we assign to the vars. | |
41360 | { | |
41361 | (set) 2>&1 | | |
41362 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41363 | *ac_space=\ *) | |
41364 | # `set' does not quote correctly, so add quotes (double-quote | |
41365 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41366 | sed -n \ | |
ac1cb8d3 VS |
41367 | "s/'/'\\\\''/g; |
41368 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41369 | ;; |
41370 | *) | |
41371 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41372 | sed -n \ | |
ac1cb8d3 | 41373 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41374 | ;; |
41375 | esac; | |
41376 | } | | |
41377 | sed ' | |
41378 | t clear | |
41379 | : clear | |
41380 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41381 | t end | |
41382 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41383 | : end' >>confcache | |
41384 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41385 | if test -w $cache_file; then | |
41386 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41387 | cat confcache >$cache_file | |
41388 | else | |
41389 | echo "not updating unwritable cache $cache_file" | |
41390 | fi | |
41391 | fi | |
41392 | rm -f confcache | |
41393 | ||
41394 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41395 | # Let make expand exec_prefix. | |
41396 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41397 | ||
41398 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41399 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41400 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41401 | # (actually we leave an empty line to preserve line numbers). | |
41402 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41403 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41404 | s/:*\$(srcdir):*/:/; |
41405 | s/:*\${srcdir}:*/:/; | |
41406 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41407 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41408 | s/:*$//; |
ac1cb8d3 | 41409 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41410 | }' |
41411 | fi | |
41412 | ||
41413 | DEFS=-DHAVE_CONFIG_H | |
41414 | ||
41415 | ac_libobjs= | |
41416 | ac_ltlibobjs= | |
41417 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41418 | # 1. Remove the extension, and $U if already installed. | |
41419 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41420 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41421 | # 2. Add them. |
41422 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41423 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41424 | done | |
41425 | LIBOBJS=$ac_libobjs | |
41426 | ||
41427 | LTLIBOBJS=$ac_ltlibobjs | |
41428 | ||
41429 | ||
41430 | ||
41431 | : ${CONFIG_STATUS=./config.status} | |
41432 | ac_clean_files_save=$ac_clean_files | |
41433 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41434 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41435 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41436 | cat >$CONFIG_STATUS <<_ACEOF | |
41437 | #! $SHELL | |
41438 | # Generated by $as_me. | |
41439 | # Run this file to recreate the current configuration. | |
41440 | # Compiler output produced by configure, useful for debugging | |
41441 | # configure, is in config.log if it exists. | |
41442 | ||
41443 | debug=false | |
41444 | ac_cs_recheck=false | |
41445 | ac_cs_silent=false | |
41446 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41447 | _ACEOF | |
41448 | ||
41449 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41450 | ## --------------------- ## | |
41451 | ## M4sh Initialization. ## | |
41452 | ## --------------------- ## | |
41453 | ||
41454 | # Be Bourne compatible | |
41455 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41456 | emulate sh | |
41457 | NULLCMD=: | |
41458 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41459 | # is contrary to our usage. Disable this feature. | |
41460 | alias -g '${1+"$@"}'='"$@"' | |
41461 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41462 | set -o posix | |
41463 | fi | |
ac1cb8d3 | 41464 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41465 | |
41466 | # Support unset when possible. | |
ac1cb8d3 | 41467 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41468 | as_unset=unset |
41469 | else | |
41470 | as_unset=false | |
41471 | fi | |
41472 | ||
41473 | ||
41474 | # Work around bugs in pre-3.0 UWIN ksh. | |
41475 | $as_unset ENV MAIL MAILPATH | |
41476 | PS1='$ ' | |
41477 | PS2='> ' | |
41478 | PS4='+ ' | |
41479 | ||
41480 | # NLS nuisances. | |
41481 | for as_var in \ | |
41482 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41483 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41484 | LC_TELEPHONE LC_TIME | |
41485 | do | |
ac1cb8d3 | 41486 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41487 | eval $as_var=C; export $as_var |
41488 | else | |
41489 | $as_unset $as_var | |
41490 | fi | |
41491 | done | |
41492 | ||
41493 | # Required to use basename. | |
41494 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41495 | as_expr=expr | |
41496 | else | |
41497 | as_expr=false | |
41498 | fi | |
41499 | ||
41500 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41501 | as_basename=basename | |
41502 | else | |
41503 | as_basename=false | |
41504 | fi | |
41505 | ||
41506 | ||
41507 | # Name of the executable. | |
41508 | as_me=`$as_basename "$0" || | |
41509 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41510 | X"$0" : 'X\(//\)$' \| \ | |
41511 | X"$0" : 'X\(/\)$' \| \ | |
41512 | . : '\(.\)' 2>/dev/null || | |
41513 | echo X/"$0" | | |
41514 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41515 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41516 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41517 | s/.*/./; q'` | |
41518 | ||
41519 | ||
41520 | # PATH needs CR, and LINENO needs CR and PATH. | |
41521 | # Avoid depending upon Character Ranges. | |
41522 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41523 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41524 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41525 | as_cr_digits='0123456789' | |
41526 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41527 | ||
41528 | # The user is always right. | |
41529 | if test "${PATH_SEPARATOR+set}" != set; then | |
41530 | echo "#! /bin/sh" >conf$$.sh | |
41531 | echo "exit 0" >>conf$$.sh | |
41532 | chmod +x conf$$.sh | |
41533 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41534 | PATH_SEPARATOR=';' | |
41535 | else | |
41536 | PATH_SEPARATOR=: | |
41537 | fi | |
41538 | rm -f conf$$.sh | |
41539 | fi | |
41540 | ||
41541 | ||
41542 | as_lineno_1=$LINENO | |
41543 | as_lineno_2=$LINENO | |
41544 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41545 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41546 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41547 | # Find who we are. Look in the path if we contain no path at all | |
41548 | # relative or not. | |
41549 | case $0 in | |
41550 | *[\\/]* ) as_myself=$0 ;; | |
41551 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41552 | for as_dir in $PATH | |
41553 | do | |
41554 | IFS=$as_save_IFS | |
41555 | test -z "$as_dir" && as_dir=. | |
41556 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41557 | done | |
41558 | ||
41559 | ;; | |
41560 | esac | |
41561 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41562 | # in which case we are not to be found in the path. | |
41563 | if test "x$as_myself" = x; then | |
41564 | as_myself=$0 | |
41565 | fi | |
41566 | if test ! -f "$as_myself"; then | |
41567 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41568 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41569 | { (exit 1); exit 1; }; } | |
41570 | fi | |
41571 | case $CONFIG_SHELL in | |
41572 | '') | |
41573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41574 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41575 | do | |
41576 | IFS=$as_save_IFS | |
41577 | test -z "$as_dir" && as_dir=. | |
41578 | for as_base in sh bash ksh sh5; do | |
41579 | case $as_dir in | |
41580 | /*) | |
41581 | if ("$as_dir/$as_base" -c ' | |
41582 | as_lineno_1=$LINENO | |
41583 | as_lineno_2=$LINENO | |
41584 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41585 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41586 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41587 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41588 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41589 | CONFIG_SHELL=$as_dir/$as_base | |
41590 | export CONFIG_SHELL | |
41591 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41592 | fi;; | |
41593 | esac | |
41594 | done | |
41595 | done | |
41596 | ;; | |
41597 | esac | |
41598 | ||
41599 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41600 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41601 | # line-number line before each line; the second 'sed' does the real | |
41602 | # work. The second script uses 'N' to pair each line-number line | |
41603 | # with the numbered line, and appends trailing '-' during | |
41604 | # substitution so that $LINENO is not a special case at line end. | |
41605 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41606 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41607 | sed '=' <$as_myself | | |
41608 | sed ' | |
41609 | N | |
41610 | s,$,-, | |
41611 | : loop | |
41612 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41613 | t loop | |
41614 | s,-$,, | |
41615 | s,^['$as_cr_digits']*\n,, | |
41616 | ' >$as_me.lineno && | |
41617 | chmod +x $as_me.lineno || | |
41618 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41619 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41620 | { (exit 1); exit 1; }; } | |
41621 | ||
41622 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41623 | # (the dirname of $[0] is not the place where we might find the | |
41624 | # original and so on. Autoconf is especially sensible to this). | |
41625 | . ./$as_me.lineno | |
41626 | # Exit status is that of the last command. | |
41627 | exit | |
41628 | } | |
41629 | ||
41630 | ||
41631 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
41632 | *c*,-n*) ECHO_N= ECHO_C=' | |
41633 | ' ECHO_T=' ' ;; | |
41634 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
41635 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
41636 | esac | |
41637 | ||
41638 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41639 | as_expr=expr | |
41640 | else | |
41641 | as_expr=false | |
41642 | fi | |
41643 | ||
41644 | rm -f conf$$ conf$$.exe conf$$.file | |
41645 | echo >conf$$.file | |
41646 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41647 | # We could just check for DJGPP; but this test a) works b) is more generic | |
41648 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
41649 | if test -f conf$$.exe; then | |
41650 | # Don't use ln at all; we don't have any links | |
41651 | as_ln_s='cp -p' | |
41652 | else | |
41653 | as_ln_s='ln -s' | |
41654 | fi | |
41655 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
41656 | as_ln_s=ln | |
41657 | else | |
41658 | as_ln_s='cp -p' | |
41659 | fi | |
41660 | rm -f conf$$ conf$$.exe conf$$.file | |
41661 | ||
41662 | if mkdir -p . 2>/dev/null; then | |
41663 | as_mkdir_p=: | |
41664 | else | |
ac1cb8d3 | 41665 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
41666 | as_mkdir_p=false |
41667 | fi | |
41668 | ||
41669 | as_executable_p="test -f" | |
41670 | ||
41671 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 41672 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41673 | |
41674 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 41675 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41676 | |
41677 | ||
41678 | # IFS | |
41679 | # We need space, tab and new line, in precisely that order. | |
41680 | as_nl=' | |
41681 | ' | |
41682 | IFS=" $as_nl" | |
41683 | ||
41684 | # CDPATH. | |
41685 | $as_unset CDPATH | |
41686 | ||
41687 | exec 6>&1 | |
41688 | ||
41689 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
41690 | # report actual input values of CONFIG_FILES etc. instead of their | |
41691 | # values after options handling. Logging --version etc. is OK. | |
41692 | exec 5>>config.log | |
41693 | { | |
41694 | echo | |
41695 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
41696 | ## Running $as_me. ## | |
41697 | _ASBOX | |
41698 | } >&5 | |
41699 | cat >&5 <<_CSEOF | |
41700 | ||
77ffb593 | 41701 | This file was extended by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 41702 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
41703 | |
41704 | CONFIG_FILES = $CONFIG_FILES | |
41705 | CONFIG_HEADERS = $CONFIG_HEADERS | |
41706 | CONFIG_LINKS = $CONFIG_LINKS | |
41707 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
41708 | $ $0 $@ | |
41709 | ||
41710 | _CSEOF | |
41711 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
41712 | echo >&5 | |
41713 | _ACEOF | |
41714 | ||
41715 | # Files that config.status was made for. | |
41716 | if test -n "$ac_config_files"; then | |
41717 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
41718 | fi | |
41719 | ||
41720 | if test -n "$ac_config_headers"; then | |
41721 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
41722 | fi | |
41723 | ||
41724 | if test -n "$ac_config_links"; then | |
41725 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
41726 | fi | |
41727 | ||
41728 | if test -n "$ac_config_commands"; then | |
41729 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
41730 | fi | |
41731 | ||
41732 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41733 | ||
41734 | ac_cs_usage="\ | |
41735 | \`$as_me' instantiates files from templates according to the | |
41736 | current configuration. | |
41737 | ||
41738 | Usage: $0 [OPTIONS] [FILE]... | |
41739 | ||
41740 | -h, --help print this help, then exit | |
41741 | -V, --version print version number, then exit | |
41742 | -q, --quiet do not print progress messages | |
41743 | -d, --debug don't remove temporary files | |
41744 | --recheck update $as_me by reconfiguring in the same conditions | |
41745 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 41746 | instantiate the configuration file FILE |
a848cd7e | 41747 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 41748 | instantiate the configuration header FILE |
a848cd7e SC |
41749 | |
41750 | Configuration files: | |
41751 | $config_files | |
41752 | ||
41753 | Configuration headers: | |
41754 | $config_headers | |
41755 | ||
41756 | Configuration commands: | |
41757 | $config_commands | |
41758 | ||
41759 | Report bugs to <bug-autoconf@gnu.org>." | |
41760 | _ACEOF | |
41761 | ||
41762 | cat >>$CONFIG_STATUS <<_ACEOF | |
41763 | ac_cs_version="\\ | |
77ffb593 | 41764 | wxWidgets config.status 2.5.2 |
ac1cb8d3 | 41765 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
41766 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
41767 | ||
ac1cb8d3 | 41768 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
41769 | This config.status script is free software; the Free Software Foundation |
41770 | gives unlimited permission to copy, distribute and modify it." | |
41771 | srcdir=$srcdir | |
41772 | INSTALL="$INSTALL" | |
41773 | _ACEOF | |
41774 | ||
41775 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41776 | # If no file are specified by the user, then we need to provide default | |
41777 | # value. By we need to know if files were specified by the user. | |
41778 | ac_need_defaults=: | |
41779 | while test $# != 0 | |
41780 | do | |
41781 | case $1 in | |
41782 | --*=*) | |
41783 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
41784 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
41785 | ac_shift=: | |
41786 | ;; | |
41787 | -*) | |
41788 | ac_option=$1 | |
41789 | ac_optarg=$2 | |
41790 | ac_shift=shift | |
41791 | ;; | |
41792 | *) # This is not an option, so the user has probably given explicit | |
41793 | # arguments. | |
41794 | ac_option=$1 | |
41795 | ac_need_defaults=false;; | |
41796 | esac | |
41797 | ||
41798 | case $ac_option in | |
41799 | # Handling of the options. | |
41800 | _ACEOF | |
41801 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41802 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
41803 | ac_cs_recheck=: ;; | |
41804 | --version | --vers* | -V ) | |
41805 | echo "$ac_cs_version"; exit 0 ;; | |
41806 | --he | --h) | |
41807 | # Conflict between --help and --header | |
41808 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
41809 | Try \`$0 --help' for more information." >&5 | |
41810 | echo "$as_me: error: ambiguous option: $1 | |
41811 | Try \`$0 --help' for more information." >&2;} | |
41812 | { (exit 1); exit 1; }; };; | |
41813 | --help | --hel | -h ) | |
41814 | echo "$ac_cs_usage"; exit 0 ;; | |
41815 | --debug | --d* | -d ) | |
41816 | debug=: ;; | |
41817 | --file | --fil | --fi | --f ) | |
41818 | $ac_shift | |
41819 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
41820 | ac_need_defaults=false;; | |
41821 | --header | --heade | --head | --hea ) | |
41822 | $ac_shift | |
41823 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
41824 | ac_need_defaults=false;; | |
41825 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
41826 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
41827 | ac_cs_silent=: ;; | |
41828 | ||
41829 | # This is an error. | |
41830 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
41831 | Try \`$0 --help' for more information." >&5 | |
41832 | echo "$as_me: error: unrecognized option: $1 | |
41833 | Try \`$0 --help' for more information." >&2;} | |
41834 | { (exit 1); exit 1; }; } ;; | |
41835 | ||
41836 | *) ac_config_targets="$ac_config_targets $1" ;; | |
41837 | ||
41838 | esac | |
41839 | shift | |
41840 | done | |
41841 | ||
41842 | ac_configure_extra_args= | |
41843 | ||
41844 | if $ac_cs_silent; then | |
41845 | exec 6>/dev/null | |
41846 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
41847 | fi | |
41848 | ||
41849 | _ACEOF | |
41850 | cat >>$CONFIG_STATUS <<_ACEOF | |
41851 | if \$ac_cs_recheck; then | |
41852 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
41853 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
41854 | fi | |
41855 | ||
41856 | _ACEOF | |
41857 | ||
41858 | cat >>$CONFIG_STATUS <<_ACEOF | |
41859 | # | |
41860 | # INIT-COMMANDS section. | |
41861 | # | |
41862 | ||
ceec2216 RL |
41863 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
41864 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
41865 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
41866 | LN_S="${LN_S}" | |
a848cd7e SC |
41867 | |
41868 | ||
41869 | _ACEOF | |
41870 | ||
41871 | ||
41872 | ||
41873 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41874 | for ac_config_target in $ac_config_targets | |
41875 | do | |
41876 | case "$ac_config_target" in | |
41877 | # Handling of arguments. | |
ceec2216 RL |
41878 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
41879 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
41880 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
41881 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
41882 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
41883 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
41884 | "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;; | |
a848cd7e SC |
41885 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
41886 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
41887 | { (exit 1); exit 1; }; };; | |
41888 | esac | |
41889 | done | |
41890 | ||
41891 | # If the user did not use the arguments to specify the items to instantiate, | |
41892 | # then the envvar interface is used. Set only those that are not. | |
41893 | # We use the long form for the default assignment because of an extremely | |
41894 | # bizarre bug on SunOS 4.1.3. | |
41895 | if $ac_need_defaults; then | |
41896 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
41897 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
41898 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
41899 | fi | |
41900 | ||
41901 | # Have a temporary directory for convenience. Make it in the build tree | |
41902 | # simply because there is no reason to put it here, and in addition, | |
41903 | # creating and moving files from /tmp can sometimes cause problems. | |
41904 | # Create a temporary directory, and hook for its removal unless debugging. | |
41905 | $debug || | |
41906 | { | |
41907 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
41908 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
41909 | } | |
41910 | ||
41911 | # Create a (secure) tmp directory for tmp files. | |
41912 | ||
41913 | { | |
41914 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
41915 | test -n "$tmp" && test -d "$tmp" | |
41916 | } || | |
41917 | { | |
41918 | tmp=./confstat$$-$RANDOM | |
41919 | (umask 077 && mkdir $tmp) | |
41920 | } || | |
41921 | { | |
41922 | echo "$me: cannot create a temporary directory in ." >&2 | |
41923 | { (exit 1); exit 1; } | |
41924 | } | |
41925 | ||
41926 | _ACEOF | |
41927 | ||
41928 | cat >>$CONFIG_STATUS <<_ACEOF | |
41929 | ||
41930 | # | |
41931 | # CONFIG_FILES section. | |
41932 | # | |
41933 | ||
41934 | # No need to generate the scripts if there are no CONFIG_FILES. | |
41935 | # This happens for instance when ./config.status config.h | |
41936 | if test -n "\$CONFIG_FILES"; then | |
41937 | # Protect against being on the right side of a sed subst in config.status. | |
41938 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
41939 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
41940 | s,@SHELL@,$SHELL,;t t | |
41941 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
41942 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
41943 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
41944 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
41945 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
41946 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
41947 | s,@exec_prefix@,$exec_prefix,;t t | |
41948 | s,@prefix@,$prefix,;t t | |
41949 | s,@program_transform_name@,$program_transform_name,;t t | |
41950 | s,@bindir@,$bindir,;t t | |
41951 | s,@sbindir@,$sbindir,;t t | |
41952 | s,@libexecdir@,$libexecdir,;t t | |
41953 | s,@datadir@,$datadir,;t t | |
41954 | s,@sysconfdir@,$sysconfdir,;t t | |
41955 | s,@sharedstatedir@,$sharedstatedir,;t t | |
41956 | s,@localstatedir@,$localstatedir,;t t | |
41957 | s,@libdir@,$libdir,;t t | |
41958 | s,@includedir@,$includedir,;t t | |
41959 | s,@oldincludedir@,$oldincludedir,;t t | |
41960 | s,@infodir@,$infodir,;t t | |
41961 | s,@mandir@,$mandir,;t t | |
41962 | s,@build_alias@,$build_alias,;t t | |
41963 | s,@host_alias@,$host_alias,;t t | |
41964 | s,@target_alias@,$target_alias,;t t | |
41965 | s,@DEFS@,$DEFS,;t t | |
41966 | s,@ECHO_C@,$ECHO_C,;t t | |
41967 | s,@ECHO_N@,$ECHO_N,;t t | |
41968 | s,@ECHO_T@,$ECHO_T,;t t | |
41969 | s,@LIBS@,$LIBS,;t t | |
41970 | s,@build@,$build,;t t | |
41971 | s,@build_cpu@,$build_cpu,;t t | |
41972 | s,@build_vendor@,$build_vendor,;t t | |
41973 | s,@build_os@,$build_os,;t t | |
41974 | s,@host@,$host,;t t | |
41975 | s,@host_cpu@,$host_cpu,;t t | |
41976 | s,@host_vendor@,$host_vendor,;t t | |
41977 | s,@host_os@,$host_os,;t t | |
41978 | s,@target@,$target,;t t | |
41979 | s,@target_cpu@,$target_cpu,;t t | |
41980 | s,@target_vendor@,$target_vendor,;t t | |
41981 | s,@target_os@,$target_os,;t t | |
41982 | s,@CC@,$CC,;t t | |
41983 | s,@CFLAGS@,$CFLAGS,;t t | |
41984 | s,@LDFLAGS@,$LDFLAGS,;t t | |
41985 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
41986 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
41987 | s,@EXEEXT@,$EXEEXT,;t t | |
41988 | s,@OBJEXT@,$OBJEXT,;t t | |
41989 | s,@CPP@,$CPP,;t t | |
41990 | s,@EGREP@,$EGREP,;t t | |
41991 | s,@CXX@,$CXX,;t t | |
41992 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
41993 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
41994 | s,@RANLIB@,$RANLIB,;t t | |
41995 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
41996 | s,@AR@,$AR,;t t | |
41997 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
41998 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
41999 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
42000 | s,@STRIP@,$STRIP,;t t | |
42001 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
42002 | s,@LN_S@,$LN_S,;t t | |
42003 | s,@CXXCPP@,$CXXCPP,;t t | |
42004 | s,@subdirs@,$subdirs,;t t | |
42005 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
42006 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
42007 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
42008 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
42009 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
42010 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
42011 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
42012 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
42013 | s,@X_LIBS@,$X_LIBS,;t t | |
42014 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
42015 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
42016 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
42017 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
42018 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
42019 | s,@RESCOMP@,$RESCOMP,;t t | |
42020 | s,@DEREZ@,$DEREZ,;t t | |
42021 | s,@SETFILE@,$SETFILE,;t t | |
42022 | s,@LIBICONV@,$LIBICONV,;t t | |
42023 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
42024 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
42025 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
42026 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
42027 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
42028 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
42029 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
42030 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
42031 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
42032 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
42033 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
42034 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
42035 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
42036 | s,@VENDOR@,$VENDOR,;t t | |
42037 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
42038 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
42039 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
42040 | s,@WXUNIV@,$WXUNIV,;t t |
42041 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
42042 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
42043 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
42044 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
42045 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
42046 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
42047 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
42048 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
42049 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
42050 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
42051 | s,@UNICODE@,$UNICODE,;t t | |
42052 | s,@BUILD@,$BUILD,;t t | |
42053 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
42054 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
42055 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
42056 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
42057 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
42058 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
42059 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
42060 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
42061 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
42062 | s,@SET_MAKE@,$SET_MAKE,;t t | |
42063 | s,@MAKE_SET@,$MAKE_SET,;t t | |
42064 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42065 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
42066 | s,@NM@,$NM,;t t | |
42067 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
42068 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
42069 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
42070 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
42071 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
42072 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
42073 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
42074 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
42075 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
42076 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
42077 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
42078 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
42079 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
42080 | s,@LIBEXT@,$LIBEXT,;t t | |
42081 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
42082 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
42083 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
42084 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
42085 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
42086 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
42087 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
42088 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
42089 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
42090 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
42091 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
42092 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
42093 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
42094 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
42095 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
42096 | s,@GCC_PCH@,$GCC_PCH,;t t | |
42097 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
42098 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
42099 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
42100 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
42101 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
42102 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
42103 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
42104 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
42105 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
42106 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42107 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42108 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42109 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42110 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42111 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42112 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42113 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42114 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
42115 | 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 | |
42116 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
42117 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
ceec2216 | 42118 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
42119 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
42120 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
42121 | 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 | |
42122 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
42123 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
ceec2216 | 42124 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
42125 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
42126 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42127 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42128 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42129 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42130 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42131 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42132 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
42133 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
42134 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42135 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
ebee3cd0 VS |
42136 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
42137 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
42138 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
42139 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
42140 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
42141 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42142 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42143 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42144 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42145 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42146 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42147 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42148 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
42149 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
42150 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
42151 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
42152 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
42153 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42154 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42155 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42156 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42157 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42158 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42159 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42160 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42161 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
42162 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
42163 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
42164 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42165 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42166 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42167 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42168 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42169 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
42170 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
42171 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42172 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42173 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42174 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42175 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42176 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42177 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
42178 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
42179 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42180 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
42181 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42182 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42183 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42184 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42185 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42186 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42187 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42188 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42189 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42190 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
42191 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
42192 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
42193 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42194 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42195 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 42196 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
a848cd7e SC |
42197 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
42198 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
42199 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
42200 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
42201 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
42202 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t | |
a848cd7e SC |
42203 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
42204 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
42205 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
42206 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
42207 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
42208 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
42209 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
42210 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
9a8f0513 VS |
42211 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
42212 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t | |
42213 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t | |
ceec2216 | 42214 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
42215 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
42216 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
42217 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
42218 | s,@USE_GUI@,$USE_GUI,;t t | |
42219 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42220 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42221 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42222 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 42223 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 42224 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
42225 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
42226 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 42227 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
42228 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
42229 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
42230 | s,@WX_VERSION@,$WX_VERSION,;t t | |
42231 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
42232 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
42233 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 42234 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
42235 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
42236 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42237 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
42238 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 42239 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42240 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42241 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 42242 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 42243 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
42244 | s,@DISTDIR@,$DISTDIR,;t t |
42245 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42246 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
42247 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
42248 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42249 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42250 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42251 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42252 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42253 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42254 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42255 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42256 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42257 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42258 | s,@GCC@,$GCC,;t t | |
a848cd7e | 42259 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
42260 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
42261 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42262 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42263 | CEOF | |
42264 | ||
42265 | _ACEOF | |
42266 | ||
42267 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42268 | # Split the substitutions into bite-sized pieces for seds with | |
42269 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42270 | ac_max_sed_lines=48 | |
42271 | ac_sed_frag=1 # Number of current file. | |
42272 | ac_beg=1 # First line for current file. | |
42273 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42274 | ac_more_lines=: | |
42275 | ac_sed_cmds= | |
42276 | while $ac_more_lines; do | |
42277 | if test $ac_beg -gt 1; then | |
42278 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42279 | else | |
42280 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42281 | fi | |
42282 | if test ! -s $tmp/subs.frag; then | |
42283 | ac_more_lines=false | |
42284 | else | |
42285 | # The purpose of the label and of the branching condition is to | |
42286 | # speed up the sed processing (if there are no `@' at all, there | |
42287 | # is no need to browse any of the substitutions). | |
42288 | # These are the two extra sed commands mentioned above. | |
42289 | (echo ':t | |
42290 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42291 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42292 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42293 | else |
ac1cb8d3 | 42294 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42295 | fi |
42296 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42297 | ac_beg=$ac_end | |
42298 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42299 | fi | |
42300 | done | |
42301 | if test -z "$ac_sed_cmds"; then | |
42302 | ac_sed_cmds=cat | |
42303 | fi | |
42304 | fi # test -n "$CONFIG_FILES" | |
42305 | ||
42306 | _ACEOF | |
42307 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42308 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42309 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42310 | case $ac_file in | |
42311 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42312 | cat >$tmp/stdin |
42313 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42314 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42315 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42316 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42317 | * ) ac_file_in=$ac_file.in ;; |
42318 | esac | |
42319 | ||
42320 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42321 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42322 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42323 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42324 | X"$ac_file" : 'X\(//\)$' \| \ | |
42325 | X"$ac_file" : 'X\(/\)' \| \ | |
42326 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42327 | echo X"$ac_file" | |
42328 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42329 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42330 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42331 | /^X\(\/\).*/{ s//\1/; q; } | |
42332 | s/.*/./; q'` | |
42333 | { if $as_mkdir_p; then | |
42334 | mkdir -p "$ac_dir" | |
42335 | else | |
42336 | as_dir="$ac_dir" | |
42337 | as_dirs= | |
42338 | while test ! -d "$as_dir"; do | |
42339 | as_dirs="$as_dir $as_dirs" | |
42340 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42342 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42343 | X"$as_dir" : 'X\(//\)$' \| \ | |
42344 | X"$as_dir" : 'X\(/\)' \| \ | |
42345 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42346 | echo X"$as_dir" | |
42347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42348 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42349 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42350 | /^X\(\/\).*/{ s//\1/; q; } | |
42351 | s/.*/./; q'` | |
42352 | done | |
42353 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42354 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42355 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42356 | { (exit 1); exit 1; }; }; } | |
42357 | ||
42358 | ac_builddir=. | |
42359 | ||
42360 | if test "$ac_dir" != .; then | |
42361 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42362 | # A "../" for each directory in $ac_dir_suffix. | |
42363 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42364 | else | |
42365 | ac_dir_suffix= ac_top_builddir= | |
42366 | fi | |
42367 | ||
42368 | case $srcdir in | |
42369 | .) # No --srcdir option. We are building in place. | |
42370 | ac_srcdir=. | |
42371 | if test -z "$ac_top_builddir"; then | |
42372 | ac_top_srcdir=. | |
42373 | else | |
42374 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42375 | fi ;; | |
42376 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42377 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42378 | ac_top_srcdir=$srcdir ;; | |
42379 | *) # Relative path. | |
42380 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42381 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42382 | esac | |
ac1cb8d3 VS |
42383 | |
42384 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42385 | # the directories may not exist. | |
42386 | case `pwd` in | |
42387 | .) ac_abs_builddir="$ac_dir";; | |
42388 | *) | |
42389 | case "$ac_dir" in | |
42390 | .) ac_abs_builddir=`pwd`;; | |
42391 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42392 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42393 | esac;; | |
42394 | esac | |
42395 | case $ac_abs_builddir in | |
42396 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42397 | *) | |
42398 | case ${ac_top_builddir}. in | |
42399 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42400 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42401 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42402 | esac;; | |
42403 | esac | |
42404 | case $ac_abs_builddir in | |
42405 | .) ac_abs_srcdir=$ac_srcdir;; | |
42406 | *) | |
42407 | case $ac_srcdir in | |
42408 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42409 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42410 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42411 | esac;; | |
42412 | esac | |
42413 | case $ac_abs_builddir in | |
42414 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42415 | *) | |
42416 | case $ac_top_srcdir in | |
42417 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42418 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42419 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42420 | esac;; | |
42421 | esac | |
a848cd7e SC |
42422 | |
42423 | ||
42424 | case $INSTALL in | |
42425 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42426 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42427 | esac | |
42428 | ||
5dcf30a0 RN |
42429 | if test x"$ac_file" != x-; then |
42430 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42431 | echo "$as_me: creating $ac_file" >&6;} | |
42432 | rm -f "$ac_file" | |
42433 | fi | |
a848cd7e SC |
42434 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42435 | # use $as_me), people would be surprised to read: | |
42436 | # /* config.h. Generated by config.status. */ | |
42437 | if test x"$ac_file" = x-; then | |
42438 | configure_input= | |
42439 | else | |
42440 | configure_input="$ac_file. " | |
42441 | fi | |
42442 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42443 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42444 | |
42445 | # First look for the input files in the build tree, otherwise in the | |
42446 | # src tree. | |
42447 | ac_file_inputs=`IFS=: | |
42448 | for f in $ac_file_in; do | |
42449 | case $f in | |
42450 | -) echo $tmp/stdin ;; | |
42451 | [\\/$]*) | |
ac1cb8d3 VS |
42452 | # Absolute (can't be DOS-style, as IFS=:) |
42453 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42454 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42455 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42456 | echo "$f";; |
a848cd7e | 42457 | *) # Relative |
ac1cb8d3 VS |
42458 | if test -f "$f"; then |
42459 | # Build tree | |
42460 | echo "$f" | |
42461 | elif test -f "$srcdir/$f"; then | |
42462 | # Source tree | |
42463 | echo "$srcdir/$f" | |
42464 | else | |
42465 | # /dev/null tree | |
42466 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42467 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42468 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42469 | fi;; |
a848cd7e SC |
42470 | esac |
42471 | done` || { (exit 1); exit 1; } | |
42472 | _ACEOF | |
42473 | cat >>$CONFIG_STATUS <<_ACEOF | |
42474 | sed "$ac_vpsub | |
42475 | $extrasub | |
42476 | _ACEOF | |
42477 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42478 | :t | |
42479 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42480 | s,@configure_input@,$configure_input,;t t | |
42481 | s,@srcdir@,$ac_srcdir,;t t | |
42482 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42483 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42484 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42485 | s,@builddir@,$ac_builddir,;t t | |
42486 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42487 | s,@top_builddir@,$ac_top_builddir,;t t | |
42488 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42489 | s,@INSTALL@,$ac_INSTALL,;t t | |
42490 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42491 | rm -f $tmp/stdin | |
42492 | if test x"$ac_file" != x-; then | |
42493 | mv $tmp/out $ac_file | |
42494 | else | |
42495 | cat $tmp/out | |
42496 | rm -f $tmp/out | |
42497 | fi | |
42498 | ||
ceec2216 RL |
42499 | # Run the commands associated with the file. |
42500 | case $ac_file in | |
42501 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
42502 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
42503 | esac | |
a848cd7e SC |
42504 | done |
42505 | _ACEOF | |
42506 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42507 | ||
42508 | # | |
42509 | # CONFIG_HEADER section. | |
42510 | # | |
42511 | ||
42512 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42513 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42514 | # | |
42515 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42516 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42517 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42518 | ac_dC=' ' |
42519 | ac_dD=',;t' | |
42520 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42521 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42522 | ac_uB='$,\1#\2define\3' |
42523 | ac_uC=' ' | |
42524 | ac_uD=',;t' | |
42525 | ||
42526 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42527 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42528 | case $ac_file in | |
42529 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42530 | cat >$tmp/stdin |
42531 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42532 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42533 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42534 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42535 | * ) ac_file_in=$ac_file.in ;; |
42536 | esac | |
42537 | ||
42538 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42539 | echo "$as_me: creating $ac_file" >&6;} | |
42540 | ||
42541 | # First look for the input files in the build tree, otherwise in the | |
42542 | # src tree. | |
42543 | ac_file_inputs=`IFS=: | |
42544 | for f in $ac_file_in; do | |
42545 | case $f in | |
42546 | -) echo $tmp/stdin ;; | |
42547 | [\\/$]*) | |
ac1cb8d3 VS |
42548 | # Absolute (can't be DOS-style, as IFS=:) |
42549 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42550 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42551 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42552 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42553 | echo "$f";; | |
a848cd7e | 42554 | *) # Relative |
ac1cb8d3 VS |
42555 | if test -f "$f"; then |
42556 | # Build tree | |
42557 | echo "$f" | |
42558 | elif test -f "$srcdir/$f"; then | |
42559 | # Source tree | |
42560 | echo "$srcdir/$f" | |
42561 | else | |
42562 | # /dev/null tree | |
42563 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42564 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42565 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42566 | fi;; |
a848cd7e SC |
42567 | esac |
42568 | done` || { (exit 1); exit 1; } | |
42569 | # Remove the trailing spaces. | |
ac1cb8d3 | 42570 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42571 | |
42572 | _ACEOF | |
42573 | ||
42574 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42575 | # `conftest.undefs', that substitutes the proper values into | |
42576 | # config.h.in to produce config.h. The first handles `#define' | |
42577 | # templates, and the second `#undef' templates. | |
42578 | # And first: Protect against being on the right side of a sed subst in | |
42579 | # config.status. Protect against being in an unquoted here document | |
42580 | # in config.status. | |
42581 | rm -f conftest.defines conftest.undefs | |
42582 | # Using a here document instead of a string reduces the quoting nightmare. | |
42583 | # Putting comments in sed scripts is not portable. | |
42584 | # | |
42585 | # `end' is used to avoid that the second main sed command (meant for | |
42586 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42587 | # See the Autoconf documentation for `clear'. | |
42588 | cat >confdef2sed.sed <<\_ACEOF | |
42589 | s/[\\&,]/\\&/g | |
42590 | s,[\\$`],\\&,g | |
42591 | t clear | |
42592 | : clear | |
ac1cb8d3 | 42593 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42594 | t end |
ac1cb8d3 | 42595 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42596 | : end |
42597 | _ACEOF | |
42598 | # If some macros were called several times there might be several times | |
42599 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42600 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42601 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42602 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42603 | rm -f confdef2sed.sed | |
42604 | ||
42605 | # This sed command replaces #undef with comments. This is necessary, for | |
42606 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42607 | # on some systems where configure will not decide to define it. | |
42608 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42609 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42610 | _ACEOF |
42611 | ||
42612 | # Break up conftest.defines because some shells have a limit on the size | |
42613 | # of here documents, and old seds have small limits too (100 cmds). | |
42614 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42615 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42616 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42617 | echo ' :' >>$CONFIG_STATUS | |
42618 | rm -f conftest.tail | |
42619 | while grep . conftest.defines >/dev/null | |
42620 | do | |
42621 | # Write a limited-size here document to $tmp/defines.sed. | |
42622 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
42623 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 42624 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42625 | # Work around the forget-to-reset-the-flag bug. |
42626 | echo 't clr' >>$CONFIG_STATUS | |
42627 | echo ': clr' >>$CONFIG_STATUS | |
42628 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
42629 | echo 'CEOF | |
42630 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
42631 | rm -f $tmp/in | |
42632 | mv $tmp/out $tmp/in | |
42633 | ' >>$CONFIG_STATUS | |
42634 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
42635 | rm -f conftest.defines | |
42636 | mv conftest.tail conftest.defines | |
42637 | done | |
42638 | rm -f conftest.defines | |
42639 | echo ' fi # grep' >>$CONFIG_STATUS | |
42640 | echo >>$CONFIG_STATUS | |
42641 | ||
42642 | # Break up conftest.undefs because some shells have a limit on the size | |
42643 | # of here documents, and old seds have small limits too (100 cmds). | |
42644 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
42645 | rm -f conftest.tail | |
42646 | while grep . conftest.undefs >/dev/null | |
42647 | do | |
42648 | # Write a limited-size here document to $tmp/undefs.sed. | |
42649 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
42650 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 42651 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42652 | # Work around the forget-to-reset-the-flag bug. |
42653 | echo 't clr' >>$CONFIG_STATUS | |
42654 | echo ': clr' >>$CONFIG_STATUS | |
42655 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
42656 | echo 'CEOF | |
42657 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
42658 | rm -f $tmp/in | |
42659 | mv $tmp/out $tmp/in | |
42660 | ' >>$CONFIG_STATUS | |
42661 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
42662 | rm -f conftest.undefs | |
42663 | mv conftest.tail conftest.undefs | |
42664 | done | |
42665 | rm -f conftest.undefs | |
42666 | ||
42667 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42668 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
42669 | # use $as_me), people would be surprised to read: | |
42670 | # /* config.h. Generated by config.status. */ | |
42671 | if test x"$ac_file" = x-; then | |
42672 | echo "/* Generated by configure. */" >$tmp/config.h | |
42673 | else | |
42674 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
42675 | fi | |
42676 | cat $tmp/in >>$tmp/config.h | |
42677 | rm -f $tmp/in | |
42678 | if test x"$ac_file" != x-; then | |
42679 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
42680 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
42681 | echo "$as_me: $ac_file is unchanged" >&6;} | |
42682 | else | |
42683 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42684 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42685 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42686 | X"$ac_file" : 'X\(//\)$' \| \ | |
42687 | X"$ac_file" : 'X\(/\)' \| \ | |
42688 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42689 | echo X"$ac_file" | |
42690 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42691 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42692 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42693 | /^X\(\/\).*/{ s//\1/; q; } | |
42694 | s/.*/./; q'` | |
42695 | { if $as_mkdir_p; then | |
42696 | mkdir -p "$ac_dir" | |
42697 | else | |
42698 | as_dir="$ac_dir" | |
42699 | as_dirs= | |
42700 | while test ! -d "$as_dir"; do | |
42701 | as_dirs="$as_dir $as_dirs" | |
42702 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42703 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42704 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42705 | X"$as_dir" : 'X\(//\)$' \| \ | |
42706 | X"$as_dir" : 'X\(/\)' \| \ | |
42707 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42708 | echo X"$as_dir" | |
42709 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42710 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42711 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42712 | /^X\(\/\).*/{ s//\1/; q; } | |
42713 | s/.*/./; q'` | |
42714 | done | |
42715 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42716 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42717 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42718 | { (exit 1); exit 1; }; }; } | |
42719 | ||
42720 | rm -f $ac_file | |
42721 | mv $tmp/config.h $ac_file | |
42722 | fi | |
42723 | else | |
42724 | cat $tmp/config.h | |
42725 | rm -f $tmp/config.h | |
42726 | fi | |
42727 | done | |
42728 | _ACEOF | |
42729 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42730 | ||
42731 | # | |
42732 | # CONFIG_COMMANDS section. | |
42733 | # | |
42734 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
42735 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
42736 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42737 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
42738 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42739 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
42740 | X"$ac_dest" : 'X\(//\)$' \| \ | |
42741 | X"$ac_dest" : 'X\(/\)' \| \ | |
42742 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42743 | echo X"$ac_dest" | |
42744 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42745 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42746 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42747 | /^X\(\/\).*/{ s//\1/; q; } | |
42748 | s/.*/./; q'` | |
ac1cb8d3 VS |
42749 | { if $as_mkdir_p; then |
42750 | mkdir -p "$ac_dir" | |
42751 | else | |
42752 | as_dir="$ac_dir" | |
42753 | as_dirs= | |
42754 | while test ! -d "$as_dir"; do | |
42755 | as_dirs="$as_dir $as_dirs" | |
42756 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42757 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
42758 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
42759 | X"$as_dir" : 'X\(//\)$' \| \ | |
42760 | X"$as_dir" : 'X\(/\)' \| \ | |
42761 | . : '\(.\)' 2>/dev/null || | |
42762 | echo X"$as_dir" | | |
42763 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42764 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42765 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42766 | /^X\(\/\).*/{ s//\1/; q; } | |
42767 | s/.*/./; q'` | |
42768 | done | |
42769 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42770 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42771 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42772 | { (exit 1); exit 1; }; }; } | |
42773 | ||
a848cd7e SC |
42774 | ac_builddir=. |
42775 | ||
42776 | if test "$ac_dir" != .; then | |
42777 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42778 | # A "../" for each directory in $ac_dir_suffix. | |
42779 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42780 | else | |
42781 | ac_dir_suffix= ac_top_builddir= | |
42782 | fi | |
42783 | ||
42784 | case $srcdir in | |
42785 | .) # No --srcdir option. We are building in place. | |
42786 | ac_srcdir=. | |
42787 | if test -z "$ac_top_builddir"; then | |
42788 | ac_top_srcdir=. | |
42789 | else | |
42790 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42791 | fi ;; | |
42792 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42793 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42794 | ac_top_srcdir=$srcdir ;; | |
42795 | *) # Relative path. | |
42796 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42797 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42798 | esac | |
ac1cb8d3 VS |
42799 | |
42800 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42801 | # the directories may not exist. | |
42802 | case `pwd` in | |
42803 | .) ac_abs_builddir="$ac_dir";; | |
42804 | *) | |
42805 | case "$ac_dir" in | |
42806 | .) ac_abs_builddir=`pwd`;; | |
42807 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42808 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42809 | esac;; | |
42810 | esac | |
42811 | case $ac_abs_builddir in | |
42812 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42813 | *) | |
42814 | case ${ac_top_builddir}. in | |
42815 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42816 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42817 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42818 | esac;; | |
42819 | esac | |
42820 | case $ac_abs_builddir in | |
42821 | .) ac_abs_srcdir=$ac_srcdir;; | |
42822 | *) | |
42823 | case $ac_srcdir in | |
42824 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42825 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42826 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42827 | esac;; | |
42828 | esac | |
42829 | case $ac_abs_builddir in | |
42830 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42831 | *) | |
42832 | case $ac_top_srcdir in | |
42833 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42834 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42835 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42836 | esac;; | |
42837 | esac | |
a848cd7e SC |
42838 | |
42839 | ||
42840 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
42841 | echo "$as_me: executing $ac_dest commands" >&6;} | |
42842 | case $ac_dest in | |
ceec2216 RL |
42843 | wx-config ) rm -f wx-config |
42844 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
42845 | ;; | |
a848cd7e SC |
42846 | esac |
42847 | done | |
42848 | _ACEOF | |
42849 | ||
42850 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42851 | ||
42852 | { (exit 0); exit 0; } | |
42853 | _ACEOF | |
42854 | chmod +x $CONFIG_STATUS | |
42855 | ac_clean_files=$ac_clean_files_save | |
42856 | ||
42857 | ||
42858 | # configure is writing to config.log, and then calls config.status. | |
42859 | # config.status does its own redirection, appending to config.log. | |
42860 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
42861 | # by configure, so config.status won't be able to write to it; its | |
42862 | # output is simply discarded. So we exec the FD to /dev/null, | |
42863 | # effectively closing config.log, so it can be properly (re)opened and | |
42864 | # appended to by config.status. When coming back to configure, we | |
42865 | # need to make the FD available again. | |
42866 | if test "$no_create" != yes; then | |
42867 | ac_cs_success=: | |
42868 | ac_config_status_args= | |
42869 | test "$silent" = yes && | |
42870 | ac_config_status_args="$ac_config_status_args --quiet" | |
42871 | exec 5>/dev/null | |
42872 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
42873 | exec 5>>config.log | |
42874 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
42875 | # would make configure fail if this is the last instruction. | |
42876 | $ac_cs_success || { (exit 1); exit 1; } | |
42877 | fi | |
42878 | ||
42879 | # | |
42880 | # CONFIG_SUBDIRS section. | |
42881 | # | |
42882 | if test "$no_recursion" != yes; then | |
42883 | ||
42884 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
42885 | ac_sub_configure_args= | |
42886 | ac_prev= | |
42887 | for ac_arg in $ac_configure_args; do | |
42888 | if test -n "$ac_prev"; then | |
42889 | ac_prev= | |
42890 | continue | |
42891 | fi | |
42892 | case $ac_arg in | |
42893 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
42894 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
42895 | ac_prev=cache_file ;; | |
42896 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
42897 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
42898 | | --c=*) | |
42899 | ;; | |
42900 | --config-cache | -C) | |
42901 | ;; | |
42902 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
42903 | ac_prev=srcdir ;; | |
42904 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42905 | ;; | |
42906 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
42907 | ac_prev=prefix ;; | |
42908 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42909 | ;; | |
42910 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
42911 | esac | |
42912 | done | |
42913 | ||
42914 | # Always prepend --prefix to ensure using the same prefix | |
42915 | # in subdir configurations. | |
42916 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
42917 | ||
42918 | ac_popdir=`pwd` | |
42919 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
42920 | ||
42921 | # Do not complain, so a configure script can configure whichever | |
42922 | # parts of a large source tree are present. | |
42923 | test -d $srcdir/$ac_dir || continue | |
42924 | ||
42925 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
42926 | echo "$as_me: configuring in $ac_dir" >&6;} | |
42927 | { if $as_mkdir_p; then | |
42928 | mkdir -p "$ac_dir" | |
42929 | else | |
42930 | as_dir="$ac_dir" | |
42931 | as_dirs= | |
42932 | while test ! -d "$as_dir"; do | |
42933 | as_dirs="$as_dir $as_dirs" | |
42934 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42935 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42936 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42937 | X"$as_dir" : 'X\(//\)$' \| \ | |
42938 | X"$as_dir" : 'X\(/\)' \| \ | |
42939 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42940 | echo X"$as_dir" | |
42941 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42942 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42943 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42944 | /^X\(\/\).*/{ s//\1/; q; } | |
42945 | s/.*/./; q'` | |
42946 | done | |
42947 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42948 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42949 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42950 | { (exit 1); exit 1; }; }; } | |
42951 | ||
42952 | ac_builddir=. | |
42953 | ||
42954 | if test "$ac_dir" != .; then | |
42955 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42956 | # A "../" for each directory in $ac_dir_suffix. | |
42957 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42958 | else | |
42959 | ac_dir_suffix= ac_top_builddir= | |
42960 | fi | |
42961 | ||
42962 | case $srcdir in | |
42963 | .) # No --srcdir option. We are building in place. | |
42964 | ac_srcdir=. | |
42965 | if test -z "$ac_top_builddir"; then | |
42966 | ac_top_srcdir=. | |
42967 | else | |
42968 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42969 | fi ;; | |
42970 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42971 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42972 | ac_top_srcdir=$srcdir ;; | |
42973 | *) # Relative path. | |
42974 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42975 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42976 | esac | |
ac1cb8d3 VS |
42977 | |
42978 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42979 | # the directories may not exist. | |
42980 | case `pwd` in | |
42981 | .) ac_abs_builddir="$ac_dir";; | |
42982 | *) | |
42983 | case "$ac_dir" in | |
42984 | .) ac_abs_builddir=`pwd`;; | |
42985 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42986 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42987 | esac;; | |
42988 | esac | |
42989 | case $ac_abs_builddir in | |
42990 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42991 | *) | |
42992 | case ${ac_top_builddir}. in | |
42993 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42994 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42995 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42996 | esac;; | |
42997 | esac | |
42998 | case $ac_abs_builddir in | |
42999 | .) ac_abs_srcdir=$ac_srcdir;; | |
43000 | *) | |
43001 | case $ac_srcdir in | |
43002 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43003 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43004 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43005 | esac;; | |
43006 | esac | |
43007 | case $ac_abs_builddir in | |
43008 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43009 | *) | |
43010 | case $ac_top_srcdir in | |
43011 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43012 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43013 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43014 | esac;; | |
43015 | esac | |
a848cd7e SC |
43016 | |
43017 | ||
43018 | cd $ac_dir | |
43019 | ||
43020 | # Check for guested configure; otherwise get Cygnus style configure. | |
43021 | if test -f $ac_srcdir/configure.gnu; then | |
43022 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
43023 | elif test -f $ac_srcdir/configure; then | |
43024 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
43025 | elif test -f $ac_srcdir/configure.in; then | |
43026 | ac_sub_configure=$ac_configure | |
43027 | else | |
43028 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
43029 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
43030 | ac_sub_configure= | |
43031 | fi | |
43032 | ||
43033 | # The recursion is here. | |
43034 | if test -n "$ac_sub_configure"; then | |
43035 | # Make the cache file name correct relative to the subdirectory. | |
43036 | case $cache_file in | |
43037 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
43038 | *) # Relative path. | |
ac1cb8d3 | 43039 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
43040 | esac |
43041 | ||
43042 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
43043 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
43044 | # The eval makes quoting arguments work. | |
43045 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
43046 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
43047 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
43048 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
43049 | { (exit 1); exit 1; }; } | |
43050 | fi | |
43051 | ||
5dcf30a0 | 43052 | cd $ac_popdir |
a848cd7e SC |
43053 | done |
43054 | fi | |
43055 | ||
43056 | ||
43057 | echo | |
77ffb593 | 43058 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43059 | echo "" |
4d4ff94c | 43060 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 43061 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 43062 | |
77ffb593 JS |
43063 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
43064 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
43065 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43066 | |
77ffb593 JS |
43067 | echo " What level of wxWidgets compatibility should be enabled?" |
43068 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43069 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43070 | |
77ffb593 | 43071 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43072 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43073 | echo " png ${wxUSE_LIBPNG-none}" | |
43074 | echo " regex ${wxUSE_REGEX}" | |
43075 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43076 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43077 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43078 | fi | |
43079 | echo " zlib ${wxUSE_ZLIB}" | |
43080 | echo " odbc ${wxUSE_ODBC}" | |
43081 | echo " expat ${wxUSE_EXPAT}" | |
43082 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43083 | echo " sdl ${wxUSE_LIBSDL}" | |
43084 | ||
43085 | echo "" | |
43086 |