]>
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" | |
4d4ff94c | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_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_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_SUBRELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_DATA_FILE WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
77ffb593 | 797 | \`configure' configures wxWidgets 2.5.2 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
77ffb593 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.2:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
9f45f08e | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
a848cd7e SC |
894 | --enable-rpath=DIR output the rpath flag from wx-config |
895 | --enable-intl use internationalization system | |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
907 | --enable-cmdline use wxCmdLineParser class | |
908 | --enable-datetime use wxDateTime class | |
909 | --enable-dialupman use dialup network classes | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-exceptions build exception-safe library | |
913 | --enable-ffile use wxFFile class | |
914 | --enable-file use wxFile class | |
915 | --enable-filesystem use virtual file systems classes | |
916 | --enable-fontmap use font encodings conversion classes | |
917 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
918 | --enable-fs_zip use virtual ZIP filesystems | |
919 | --enable-geometry use geometry class | |
920 | --enable-log use logging system | |
921 | --enable-longlong use wxLongLong class | |
922 | --enable-mimetype use wxMimeTypesManager | |
923 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
924 | --enable-snglinst use wxSingleInstanceChecker class | |
925 | --enable-streams use wxStream etc classes | |
926 | --enable-std_iostreams use standard C++ stream classes | |
927 | --enable-stopwatch use wxStopWatch class | |
928 | --enable-sysoptions use wxSystemOptions | |
929 | --enable-textbuf use wxTextBuffer class | |
930 | --enable-textfile use wxTextFile class | |
931 | --enable-timer use wxTimer class | |
932 | --enable-unicode compile wxString with Unicode support | |
933 | --enable-sound use wxSound class | |
77ffb593 | 934 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
a848cd7e | 935 | --enable-zipstream use wxZipInputStream |
a848cd7e SC |
936 | --enable-url use wxURL class |
937 | --enable-protocol use wxProtocol class | |
938 | --enable-protocol-http HTTP support in wxProtocol | |
939 | --enable-protocol-ftp FTP support in wxProtocol | |
940 | --enable-protocol-file FILE support in wxProtocol | |
941 | --enable-threads use threads | |
942 | --enable-docview use document view architecture | |
943 | --enable-help use help subsystem | |
944 | --enable-mshtmlhelp use MS HTML Help (win32) | |
945 | --enable-html use wxHTML sub-library | |
946 | --enable-htmlhelp use wxHTML-based help | |
947 | --enable-constraints use layout-constraints system | |
948 | --enable-printarch use printing architecture | |
949 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 950 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
951 | --enable-loggui use standard GUI logger |
952 | --enable-logwin use wxLogWindow | |
953 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 954 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
955 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
956 | --enable-prologio not available; see contrib | |
957 | --enable-resources not available; see contrib | |
958 | --enable-clipboard use wxClipboard class | |
959 | --enable-dnd use Drag'n'Drop classes | |
960 | --enable-metafile use win32 metafiles | |
961 | --enable-controls use all usual controls | |
962 | --enable-accel use accelerators | |
963 | --enable-button use wxButton class | |
964 | --enable-bmpbutton use wxBitmapButton class | |
965 | --enable-calendar use wxCalendarCtrl class | |
966 | --enable-caret use wxCaret class | |
967 | --enable-checkbox use wxCheckBox class | |
968 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
969 | --enable-choice use wxChoice class | |
92bbdbcd | 970 | --enable-choicebook use wxChoicebook class |
a848cd7e SC |
971 | --enable-combobox use wxComboBox class |
972 | --enable-display use wxDisplay class | |
973 | --enable-gauge use wxGauge class | |
974 | --enable-grid use wxGrid class | |
975 | --enable-imaglist use wxImageList class | |
976 | --enable-listbook use wxListbook class | |
977 | --enable-listbox use wxListBox class | |
978 | --enable-listctrl use wxListCtrl class | |
979 | --enable-notebook use wxNotebook class | |
980 | --enable-radiobox use wxRadioBox class | |
981 | --enable-radiobtn use wxRadioButton class | |
982 | --enable-sash use wxSashWindow class | |
983 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
984 | --enable-slider use wxSlider class | |
985 | --enable-spinbtn use wxSpinButton class | |
986 | --enable-spinctrl use wxSpinCtrl class | |
987 | --enable-splitter use wxSplitterWindow class | |
988 | --enable-statbmp use wxStaticBitmap class | |
989 | --enable-statbox use wxStaticBox class | |
990 | --enable-statline use wxStaticLine class | |
991 | --enable-stattext use wxStaticText class | |
992 | --enable-statusbar use wxStatusBar class | |
993 | --enable-tabdialog use wxTabControl class | |
994 | --enable-textctrl use wxTextCtrl class | |
995 | --enable-togglebtn use wxToggleButton class | |
996 | --enable-toolbar use wxToolBar class | |
997 | --enable-tbarnative use native wxToolBar class | |
998 | --enable-tbarsmpl use wxToolBarSimple class | |
999 | --enable-treectrl use wxTreeCtrl class | |
1000 | --enable-tipwindow use wxTipWindow class | |
1001 | --enable-popupwin use wxPopUpWindow class | |
1002 | --enable-commondlg use all common dialogs | |
1003 | --enable-choicedlg use wxChoiceDialog | |
1004 | --enable-coldlg use wxColourDialog | |
1005 | --enable-filedlg use wxFileDialog | |
1006 | --enable-finddlg use wxFindReplaceDialog | |
1007 | --enable-fontdlg use wxFontDialog | |
1008 | --enable-dirdlg use wxDirDialog | |
1009 | --enable-msgdlg use wxMessageDialog | |
1010 | --enable-numberdlg use wxNumberEntryDialog | |
1011 | --enable-splash use wxSplashScreen | |
1012 | --enable-textdlg use wxTextDialog | |
1013 | --enable-tipdlg use startup tips | |
1014 | --enable-progressdlg use wxProgressDialog | |
1015 | --enable-wizarddlg use wxWizard | |
1016 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1017 | --enable-miniframe use wxMiniFrame class | |
1018 | --enable-tooltips use wxToolTip class | |
1019 | --enable-splines use spline drawing code | |
1020 | --enable-validators use wxValidator and derived classes | |
1021 | --enable-busyinfo use wxBusyInfo | |
1022 | --enable-joystick use wxJoystick (Linux only) | |
1023 | --enable-metafiles use wxMetaFile (Windows only) | |
1024 | --enable-dragimage use wxDragImage | |
1025 | --enable-accessibility enable accessibility support | |
1026 | --enable-palette use wxPalette class | |
1027 | --enable-image use wxImage class | |
1028 | --enable-gif use gif images (GIF file format) | |
1029 | --enable-pcx use pcx images (PCX file format) | |
1030 | --enable-iff use iff images (IFF file format) | |
1031 | --enable-pnm use pnm images (PNM file format) | |
1032 | --enable-xpm use xpm images (XPM file format) | |
1033 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1034 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1035 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1036 | --disable-largefile omit support for large files | |
1037 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1038 | --disable-gtktest Do not try to compile and run a test GTK program | |
1039 | --disable-sdltest Do not try to compile and run a test SDL program | |
1040 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1041 | --disable-precomp-headers |
1042 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1043 | |
1044 | Optional Packages: | |
1045 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1046 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1047 | --with-gtk use GTK+ | |
1048 | --with-motif use Motif/Lesstif | |
1049 | --with-mac use Mac OS X | |
1050 | --with-cocoa use Cocoa | |
1051 | --with-wine use Wine | |
1052 | --with-msw use MS-Windows | |
1053 | --with-pm use OS/2 Presentation Manager | |
1054 | --with-mgl use SciTech MGL | |
1055 | --with-microwin use MicroWindows | |
1056 | --with-x11 use X11 | |
1057 | --with-libpng use libpng (PNG image format) | |
1058 | --with-libjpeg use libjpeg (JPEG file format) | |
1059 | --with-libtiff use libtiff (TIFF file format) | |
1060 | --with-libxpm use libxpm (XPM file format) | |
1061 | --with-libmspack use libmspack (CHM help files loading) | |
1062 | --with-sdl use SDL for audio on Unix | |
1063 | --with-opengl use OpenGL (or Mesa) | |
1064 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1065 | --with-regex enable support for wxRegEx class | |
1066 | --with-zlib use zlib for LZW compression | |
1067 | --with-odbc use the IODBC and wxODBC classes | |
1068 | --with-expat enable XML support using expat parser | |
1069 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1070 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1071 | --with-x use the X Window System | |
1072 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1073 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1074 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1075 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1076 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1077 | ||
1078 | Some influential environment variables: | |
dcc1b6ad VS |
1079 | CC C compiler command |
1080 | CFLAGS C compiler flags | |
1081 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1082 | nonstandard directory <lib dir> | |
1083 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1084 | headers in a nonstandard directory <include dir> | |
1085 | CPP C preprocessor | |
1086 | CXX C++ compiler command | |
1087 | CXXFLAGS C++ compiler flags | |
1088 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1089 | |
1090 | Use these variables to override the choices made by `configure' or to help | |
1091 | it to find libraries and programs with nonstandard names/locations. | |
1092 | ||
77ffb593 | 1093 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1094 | _ACEOF |
1095 | fi | |
1096 | ||
1097 | if test "$ac_init_help" = "recursive"; then | |
1098 | # If there are subdirs, report their specific --help. | |
1099 | ac_popdir=`pwd` | |
1100 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1101 | test -d $ac_dir || continue | |
1102 | ac_builddir=. | |
1103 | ||
1104 | if test "$ac_dir" != .; then | |
1105 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1106 | # A "../" for each directory in $ac_dir_suffix. | |
1107 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1108 | else | |
1109 | ac_dir_suffix= ac_top_builddir= | |
1110 | fi | |
1111 | ||
1112 | case $srcdir in | |
1113 | .) # No --srcdir option. We are building in place. | |
1114 | ac_srcdir=. | |
1115 | if test -z "$ac_top_builddir"; then | |
1116 | ac_top_srcdir=. | |
1117 | else | |
1118 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1119 | fi ;; | |
1120 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1121 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1122 | ac_top_srcdir=$srcdir ;; | |
1123 | *) # Relative path. | |
1124 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1125 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1126 | esac | |
ac1cb8d3 VS |
1127 | |
1128 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1129 | # the directories may not exist. | |
1130 | case `pwd` in | |
1131 | .) ac_abs_builddir="$ac_dir";; | |
1132 | *) | |
1133 | case "$ac_dir" in | |
1134 | .) ac_abs_builddir=`pwd`;; | |
1135 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1136 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1137 | esac;; | |
1138 | esac | |
1139 | case $ac_abs_builddir in | |
1140 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1141 | *) | |
1142 | case ${ac_top_builddir}. in | |
1143 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1144 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1145 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1146 | esac;; | |
1147 | esac | |
1148 | case $ac_abs_builddir in | |
1149 | .) ac_abs_srcdir=$ac_srcdir;; | |
1150 | *) | |
1151 | case $ac_srcdir in | |
1152 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1153 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1154 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1155 | esac;; | |
1156 | esac | |
1157 | case $ac_abs_builddir in | |
1158 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1159 | *) | |
1160 | case $ac_top_srcdir in | |
1161 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1162 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1163 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1164 | esac;; | |
1165 | esac | |
a848cd7e SC |
1166 | |
1167 | cd $ac_dir | |
1168 | # Check for guested configure; otherwise get Cygnus style configure. | |
1169 | if test -f $ac_srcdir/configure.gnu; then | |
1170 | echo | |
1171 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1172 | elif test -f $ac_srcdir/configure; then | |
1173 | echo | |
1174 | $SHELL $ac_srcdir/configure --help=recursive | |
1175 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1176 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1177 | echo |
1178 | $ac_configure --help | |
1179 | else | |
1180 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1181 | fi | |
4d4ff94c | 1182 | cd "$ac_popdir" |
a848cd7e SC |
1183 | done |
1184 | fi | |
1185 | ||
1186 | test -n "$ac_init_help" && exit 0 | |
1187 | if $ac_init_version; then | |
1188 | cat <<\_ACEOF | |
77ffb593 | 1189 | wxWidgets configure 2.5.2 |
ac1cb8d3 | 1190 | generated by GNU Autoconf 2.59 |
a848cd7e | 1191 | |
ac1cb8d3 | 1192 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1193 | This configure script is free software; the Free Software Foundation |
1194 | gives unlimited permission to copy, distribute and modify it. | |
1195 | _ACEOF | |
1196 | exit 0 | |
1197 | fi | |
1198 | exec 5>config.log | |
1199 | cat >&5 <<_ACEOF | |
1200 | This file contains any messages produced by compilers while | |
1201 | running configure, to aid debugging if configure makes a mistake. | |
1202 | ||
77ffb593 | 1203 | It was created by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 1204 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1205 | |
1206 | $ $0 $@ | |
1207 | ||
1208 | _ACEOF | |
1209 | { | |
1210 | cat <<_ASUNAME | |
1211 | ## --------- ## | |
1212 | ## Platform. ## | |
1213 | ## --------- ## | |
1214 | ||
1215 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1216 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1217 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1218 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1219 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1220 | ||
1221 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1222 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1223 | ||
1224 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1225 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1226 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1227 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1228 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1229 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1230 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1231 | ||
1232 | _ASUNAME | |
1233 | ||
1234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1235 | for as_dir in $PATH | |
1236 | do | |
1237 | IFS=$as_save_IFS | |
1238 | test -z "$as_dir" && as_dir=. | |
1239 | echo "PATH: $as_dir" | |
1240 | done | |
1241 | ||
1242 | } >&5 | |
1243 | ||
1244 | cat >&5 <<_ACEOF | |
1245 | ||
1246 | ||
1247 | ## ----------- ## | |
1248 | ## Core tests. ## | |
1249 | ## ----------- ## | |
1250 | ||
1251 | _ACEOF | |
1252 | ||
1253 | ||
1254 | # Keep a trace of the command line. | |
1255 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1256 | # Strip out --silent because we don't want to record it for future runs. | |
1257 | # Also quote any args containing shell meta-characters. | |
1258 | # Make two passes to allow for proper duplicate-argument suppression. | |
1259 | ac_configure_args= | |
1260 | ac_configure_args0= | |
1261 | ac_configure_args1= | |
1262 | ac_sep= | |
1263 | ac_must_keep_next=false | |
1264 | for ac_pass in 1 2 | |
1265 | do | |
1266 | for ac_arg | |
1267 | do | |
1268 | case $ac_arg in | |
1269 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1270 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1271 | | -silent | --silent | --silen | --sile | --sil) | |
1272 | continue ;; | |
1273 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1274 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1275 | esac | |
1276 | case $ac_pass in | |
1277 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1278 | 2) | |
1279 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1280 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1281 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1282 | else |
ac1cb8d3 VS |
1283 | case $ac_arg in |
1284 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1285 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1286 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1287 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1288 | case "$ac_configure_args0 " in | |
1289 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1290 | esac | |
1291 | ;; | |
1292 | -* ) ac_must_keep_next=true ;; | |
1293 | esac | |
a848cd7e SC |
1294 | fi |
1295 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1296 | # Get rid of the leading space. | |
1297 | ac_sep=" " | |
1298 | ;; | |
1299 | esac | |
1300 | done | |
1301 | done | |
1302 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1303 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1304 | ||
1305 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1306 | # config.log. We remove comments because anyway the quotes in there | |
1307 | # would cause problems or look ugly. | |
1308 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1309 | # such as our DU 5.0 friend, will then `close' the trap. | |
1310 | trap 'exit_status=$? | |
1311 | # Save into config.log some information that might help in debugging. | |
1312 | { | |
1313 | echo | |
1314 | ||
1315 | cat <<\_ASBOX | |
1316 | ## ---------------- ## | |
1317 | ## Cache variables. ## | |
1318 | ## ---------------- ## | |
1319 | _ASBOX | |
1320 | echo | |
1321 | # The following way of writing the cache mishandles newlines in values, | |
1322 | { | |
1323 | (set) 2>&1 | | |
1324 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1325 | *ac_space=\ *) | |
1326 | sed -n \ | |
ac1cb8d3 VS |
1327 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1328 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1329 | ;; |
1330 | *) | |
1331 | sed -n \ | |
ac1cb8d3 | 1332 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1333 | ;; |
1334 | esac; | |
1335 | } | |
1336 | echo | |
1337 | ||
1338 | cat <<\_ASBOX | |
1339 | ## ----------------- ## | |
1340 | ## Output variables. ## | |
1341 | ## ----------------- ## | |
1342 | _ASBOX | |
1343 | echo | |
1344 | for ac_var in $ac_subst_vars | |
1345 | do | |
1346 | eval ac_val=$`echo $ac_var` | |
1347 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1348 | done | sort | |
1349 | echo | |
1350 | ||
1351 | if test -n "$ac_subst_files"; then | |
1352 | cat <<\_ASBOX | |
1353 | ## ------------- ## | |
1354 | ## Output files. ## | |
1355 | ## ------------- ## | |
1356 | _ASBOX | |
1357 | echo | |
1358 | for ac_var in $ac_subst_files | |
1359 | do | |
1360 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1361 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1362 | done | sort |
1363 | echo | |
1364 | fi | |
1365 | ||
1366 | if test -s confdefs.h; then | |
1367 | cat <<\_ASBOX | |
1368 | ## ----------- ## | |
1369 | ## confdefs.h. ## | |
1370 | ## ----------- ## | |
1371 | _ASBOX | |
1372 | echo | |
1373 | sed "/^$/d" confdefs.h | sort | |
1374 | echo | |
1375 | fi | |
1376 | test "$ac_signal" != 0 && | |
1377 | echo "$as_me: caught signal $ac_signal" | |
1378 | echo "$as_me: exit $exit_status" | |
1379 | } >&5 | |
ac1cb8d3 | 1380 | rm -f core *.core && |
a848cd7e SC |
1381 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1382 | exit $exit_status | |
1383 | ' 0 | |
1384 | for ac_signal in 1 2 13 15; do | |
1385 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1386 | done | |
1387 | ac_signal=0 | |
1388 | ||
1389 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1390 | rm -rf conftest* confdefs.h | |
1391 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1392 | echo >confdefs.h | |
1393 | ||
1394 | # Predefined preprocessor variables. | |
1395 | ||
1396 | cat >>confdefs.h <<_ACEOF | |
1397 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1398 | _ACEOF | |
1399 | ||
1400 | ||
1401 | cat >>confdefs.h <<_ACEOF | |
1402 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1403 | _ACEOF | |
1404 | ||
1405 | ||
1406 | cat >>confdefs.h <<_ACEOF | |
1407 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1408 | _ACEOF | |
1409 | ||
1410 | ||
1411 | cat >>confdefs.h <<_ACEOF | |
1412 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1413 | _ACEOF | |
1414 | ||
1415 | ||
1416 | cat >>confdefs.h <<_ACEOF | |
1417 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1418 | _ACEOF | |
1419 | ||
1420 | ||
1421 | # Let the site file select an alternate cache file if it wants to. | |
1422 | # Prefer explicitly selected file to automatically selected ones. | |
1423 | if test -z "$CONFIG_SITE"; then | |
1424 | if test "x$prefix" != xNONE; then | |
1425 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1426 | else | |
1427 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1428 | fi | |
1429 | fi | |
1430 | for ac_site_file in $CONFIG_SITE; do | |
1431 | if test -r "$ac_site_file"; then | |
1432 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1433 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1434 | sed 's/^/| /' "$ac_site_file" >&5 | |
1435 | . "$ac_site_file" | |
1436 | fi | |
1437 | done | |
1438 | ||
1439 | if test -r "$cache_file"; then | |
1440 | # Some versions of bash will fail to source /dev/null (special | |
1441 | # files actually), so we avoid doing that. | |
1442 | if test -f "$cache_file"; then | |
1443 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1444 | echo "$as_me: loading cache $cache_file" >&6;} | |
1445 | case $cache_file in | |
1446 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1447 | *) . ./$cache_file;; | |
1448 | esac | |
1449 | fi | |
1450 | else | |
1451 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1452 | echo "$as_me: creating cache $cache_file" >&6;} | |
1453 | >$cache_file | |
1454 | fi | |
1455 | ||
1456 | # Check that the precious variables saved in the cache have kept the same | |
1457 | # value. | |
1458 | ac_cache_corrupted=false | |
1459 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1460 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1461 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1462 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1463 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1464 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1465 | case $ac_old_set,$ac_new_set in | |
1466 | set,) | |
1467 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1468 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1469 | ac_cache_corrupted=: ;; | |
1470 | ,set) | |
1471 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1472 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1473 | ac_cache_corrupted=: ;; | |
1474 | ,);; | |
1475 | *) | |
1476 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1477 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1478 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1479 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1480 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1481 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1482 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1483 | ac_cache_corrupted=: |
a848cd7e SC |
1484 | fi;; |
1485 | esac | |
1486 | # Pass precious variables to config.status. | |
1487 | if test "$ac_new_set" = set; then | |
1488 | case $ac_new_val in | |
1489 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1490 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1491 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1492 | esac | |
1493 | case " $ac_configure_args " in | |
1494 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1495 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1496 | esac | |
1497 | fi | |
1498 | done | |
1499 | if $ac_cache_corrupted; then | |
1500 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1501 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1502 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1503 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1504 | { (exit 1); exit 1; }; } | |
1505 | fi | |
1506 | ||
1507 | ac_ext=c | |
1508 | ac_cpp='$CPP $CPPFLAGS' | |
1509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ac_aux_dir= | |
1543 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1544 | if test -f $ac_dir/install-sh; then | |
1545 | ac_aux_dir=$ac_dir | |
1546 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1547 | break | |
1548 | elif test -f $ac_dir/install.sh; then | |
1549 | ac_aux_dir=$ac_dir | |
1550 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1551 | break | |
1552 | elif test -f $ac_dir/shtool; then | |
1553 | ac_aux_dir=$ac_dir | |
1554 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1555 | break | |
1556 | fi | |
1557 | done | |
1558 | if test -z "$ac_aux_dir"; then | |
1559 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1560 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1561 | { (exit 1); exit 1; }; } | |
1562 | fi | |
1563 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1564 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1565 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1566 | ||
1567 | # Make sure we can run config.sub. | |
1568 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1569 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1570 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1571 | { (exit 1); exit 1; }; } | |
1572 | ||
1573 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1574 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1575 | if test "${ac_cv_build+set}" = set; then | |
1576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1577 | else | |
1578 | ac_cv_build_alias=$build_alias | |
1579 | test -z "$ac_cv_build_alias" && | |
1580 | ac_cv_build_alias=`$ac_config_guess` | |
1581 | test -z "$ac_cv_build_alias" && | |
1582 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1583 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1584 | { (exit 1); exit 1; }; } | |
1585 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1586 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1587 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1588 | { (exit 1); exit 1; }; } | |
1589 | ||
1590 | fi | |
1591 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1592 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1593 | build=$ac_cv_build | |
1594 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1595 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1596 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1597 | ||
1598 | ||
1599 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1600 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1601 | if test "${ac_cv_host+set}" = set; then | |
1602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1603 | else | |
1604 | ac_cv_host_alias=$host_alias | |
1605 | test -z "$ac_cv_host_alias" && | |
1606 | ac_cv_host_alias=$ac_cv_build_alias | |
1607 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1608 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1609 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1610 | { (exit 1); exit 1; }; } | |
1611 | ||
1612 | fi | |
1613 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1614 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1615 | host=$ac_cv_host | |
1616 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1617 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1618 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1619 | ||
1620 | ||
1621 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1622 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1623 | if test "${ac_cv_target+set}" = set; then | |
1624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1625 | else | |
1626 | ac_cv_target_alias=$target_alias | |
1627 | test "x$ac_cv_target_alias" = "x" && | |
1628 | ac_cv_target_alias=$ac_cv_host_alias | |
1629 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1630 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1631 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1632 | { (exit 1); exit 1; }; } | |
1633 | ||
1634 | fi | |
1635 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1636 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1637 | target=$ac_cv_target | |
1638 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1639 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1640 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1641 | ||
1642 | ||
1643 | # The aliases save the names the user supplied, while $host etc. | |
1644 | # will get canonicalized. | |
1645 | test -n "$target_alias" && | |
1646 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1647 | NONENONEs,x,x, && | |
1648 | program_prefix=${target_alias}- | |
1649 | ||
1650 | ||
1651 | ||
1652 | WX_MAJOR_VERSION_NUMBER=2 | |
1653 | WX_MINOR_VERSION_NUMBER=5 | |
de59c161 | 1654 | WX_RELEASE_NUMBER=2 |
224bf05c | 1655 | WX_SUBRELEASE_NUMBER=3 |
a848cd7e SC |
1656 | |
1657 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1658 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1659 | ||
1660 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1661 | ||
de59c161 | 1662 | WX_CURRENT=2 |
a848cd7e SC |
1663 | WX_REVISION=0 |
1664 | WX_AGE=0 | |
1665 | ||
1666 | ||
1667 | ||
1668 | USE_UNIX=1 | |
1669 | USE_OS2=0 | |
1670 | USE_WIN32=0 | |
1671 | USE_DOS=0 | |
1672 | USE_BEOS=0 | |
1673 | USE_MAC=0 | |
1674 | ||
1675 | USE_AIX= | |
1676 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1677 | USE_GNU= USE_HPUX= | |
1678 | USE_LINUX= | |
1679 | USE_NETBSD= | |
1680 | USE_OPENBSD= | |
1681 | USE_OSF= USE_SGI= | |
1682 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1683 | USE_ULTRIX= | |
1684 | USE_UNIXWARE= | |
1685 | ||
1686 | USE_ALPHA= | |
1687 | ||
1688 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1689 | ||
1690 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1691 | ||
1692 | DEFAULT_wxUSE_COCOA=0 | |
1693 | DEFAULT_wxUSE_GTK=0 | |
1694 | DEFAULT_wxUSE_MAC=0 | |
1695 | DEFAULT_wxUSE_MGL=0 | |
1696 | DEFAULT_wxUSE_MICROWIN=0 | |
1697 | DEFAULT_wxUSE_MOTIF=0 | |
1698 | DEFAULT_wxUSE_MSW=0 | |
1699 | DEFAULT_wxUSE_PM=0 | |
1700 | DEFAULT_wxUSE_X11=0 | |
1701 | ||
1702 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1703 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1704 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1705 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1706 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1710 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1711 | ||
1712 | PROGRAM_EXT= | |
1713 | SO_SUFFIX=so | |
1714 | SAMPLES_RPATH_FLAG= | |
1715 | SAMPLES_RPATH_POSTLINK= | |
1716 | ||
1717 | case "${host}" in | |
1718 | *-hp-hpux* ) | |
1719 | USE_HPUX=1 | |
1720 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1721 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1722 | SO_SUFFIX=sl | |
1723 | cat >>confdefs.h <<\_ACEOF | |
1724 | #define __HPUX__ 1 | |
1725 | _ACEOF | |
1726 | ||
1727 | ;; | |
1728 | *-*-linux* ) | |
1729 | USE_LINUX=1 | |
1730 | cat >>confdefs.h <<\_ACEOF | |
1731 | #define __LINUX__ 1 | |
1732 | _ACEOF | |
1733 | ||
1734 | TMP=`uname -m` | |
1735 | if test "x$TMP" = "xalpha"; then | |
1736 | USE_ALPHA=1 | |
1737 | cat >>confdefs.h <<\_ACEOF | |
1738 | #define __ALPHA__ 1 | |
1739 | _ACEOF | |
1740 | ||
1741 | fi | |
1742 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1743 | ;; | |
1744 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1745 | USE_GNU=1 | |
1746 | TMP=`uname -m` | |
1747 | if test "x$TMP" = "xalpha"; then | |
1748 | USE_ALPHA=1 | |
1749 | cat >>confdefs.h <<\_ACEOF | |
1750 | #define __ALPHA__ 1 | |
1751 | _ACEOF | |
1752 | ||
1753 | fi | |
1754 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1755 | ;; | |
1756 | *-*-irix5* | *-*-irix6* ) | |
1757 | USE_SGI=1 | |
1758 | USE_SVR4=1 | |
1759 | cat >>confdefs.h <<\_ACEOF | |
1760 | #define __SGI__ 1 | |
1761 | _ACEOF | |
1762 | ||
1763 | cat >>confdefs.h <<\_ACEOF | |
1764 | #define __SVR4__ 1 | |
1765 | _ACEOF | |
1766 | ||
1767 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1768 | ;; | |
1769 | *-*-solaris2* ) | |
1770 | USE_SUN=1 | |
1771 | USE_SOLARIS=1 | |
1772 | USE_SVR4=1 | |
1773 | cat >>confdefs.h <<\_ACEOF | |
1774 | #define __SUN__ 1 | |
1775 | _ACEOF | |
1776 | ||
1777 | cat >>confdefs.h <<\_ACEOF | |
1778 | #define __SOLARIS__ 1 | |
1779 | _ACEOF | |
1780 | ||
1781 | cat >>confdefs.h <<\_ACEOF | |
1782 | #define __SVR4__ 1 | |
1783 | _ACEOF | |
1784 | ||
1785 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1786 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1787 | ;; | |
1788 | *-*-sunos4* ) | |
1789 | USE_SUN=1 | |
1790 | USE_SUNOS=1 | |
1791 | USE_BSD=1 | |
1792 | cat >>confdefs.h <<\_ACEOF | |
1793 | #define __SUN__ 1 | |
1794 | _ACEOF | |
1795 | ||
1796 | cat >>confdefs.h <<\_ACEOF | |
1797 | #define __SUNOS__ 1 | |
1798 | _ACEOF | |
1799 | ||
1800 | cat >>confdefs.h <<\_ACEOF | |
1801 | #define __BSD__ 1 | |
1802 | _ACEOF | |
1803 | ||
1804 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1805 | ;; | |
1806 | *-*-freebsd*) | |
1807 | USE_BSD=1 | |
1808 | USE_FREEBSD=1 | |
1809 | cat >>confdefs.h <<\_ACEOF | |
1810 | #define __FREEBSD__ 1 | |
1811 | _ACEOF | |
1812 | ||
1813 | cat >>confdefs.h <<\_ACEOF | |
1814 | #define __BSD__ 1 | |
1815 | _ACEOF | |
1816 | ||
1817 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1818 | ;; | |
1819 | *-*-openbsd*) | |
1820 | USE_BSD=1 | |
1821 | USE_OPENBSD=1 | |
1822 | cat >>confdefs.h <<\_ACEOF | |
1823 | #define __OPENBSD__ 1 | |
1824 | _ACEOF | |
1825 | ||
1826 | cat >>confdefs.h <<\_ACEOF | |
1827 | #define __BSD__ 1 | |
1828 | _ACEOF | |
1829 | ||
1830 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1831 | ;; | |
1832 | *-*-netbsd*) | |
1833 | USE_BSD=1 | |
1834 | USE_NETBSD=1 | |
1835 | cat >>confdefs.h <<\_ACEOF | |
1836 | #define __NETBSD__ 1 | |
1837 | _ACEOF | |
1838 | ||
1839 | cat >>confdefs.h <<\_ACEOF | |
1840 | #define __BSD__ 1 | |
1841 | _ACEOF | |
1842 | ||
1843 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1844 | ;; | |
1845 | *-*-osf* ) | |
1846 | USE_ALPHA=1 | |
1847 | USE_OSF=1 | |
1848 | cat >>confdefs.h <<\_ACEOF | |
1849 | #define __ALPHA__ 1 | |
1850 | _ACEOF | |
1851 | ||
1852 | cat >>confdefs.h <<\_ACEOF | |
1853 | #define __OSF__ 1 | |
1854 | _ACEOF | |
1855 | ||
1856 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1857 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1858 | ;; | |
1859 | *-*-dgux5* ) | |
1860 | USE_ALPHA=1 | |
1861 | USE_SVR4=1 | |
1862 | cat >>confdefs.h <<\_ACEOF | |
1863 | #define __ALPHA__ 1 | |
1864 | _ACEOF | |
1865 | ||
1866 | cat >>confdefs.h <<\_ACEOF | |
1867 | #define __SVR4__ 1 | |
1868 | _ACEOF | |
1869 | ||
1870 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1871 | ;; | |
1872 | *-*-sysv5* ) | |
1873 | USE_SYSV=1 | |
1874 | USE_SVR4=1 | |
1875 | cat >>confdefs.h <<\_ACEOF | |
1876 | #define __SYSV__ 1 | |
1877 | _ACEOF | |
1878 | ||
1879 | cat >>confdefs.h <<\_ACEOF | |
1880 | #define __SVR4__ 1 | |
1881 | _ACEOF | |
1882 | ||
1883 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1884 | ;; | |
1885 | *-*-aix* ) | |
1886 | USE_AIX=1 | |
1887 | USE_SYSV=1 | |
1888 | USE_SVR4=1 | |
1889 | SO_SUFFIX=a | |
1890 | cat >>confdefs.h <<\_ACEOF | |
1891 | #define __AIX__ 1 | |
1892 | _ACEOF | |
1893 | ||
1894 | cat >>confdefs.h <<\_ACEOF | |
1895 | #define __SYSV__ 1 | |
1896 | _ACEOF | |
1897 | ||
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __SVR4__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1903 | ;; | |
1904 | ||
1905 | *-*-*UnixWare*) | |
1906 | USE_SYSV=1 | |
1907 | USE_SVR4=1 | |
1908 | USE_UNIXWARE=1 | |
1909 | cat >>confdefs.h <<\_ACEOF | |
1910 | #define __UNIXWARE__ 1 | |
1911 | _ACEOF | |
1912 | ||
1913 | ;; | |
1914 | ||
1915 | *-*-cygwin* | *-*-mingw32* ) | |
1916 | SO_SUFFIX=dll | |
1917 | PROGRAM_EXT=".exe" | |
1918 | RESCOMP=windres | |
1919 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1920 | ;; | |
1921 | ||
1922 | *-pc-msdosdjgpp ) | |
1923 | USE_UNIX=0 | |
1924 | USE_DOS=1 | |
1925 | cat >>confdefs.h <<\_ACEOF | |
1926 | #define __DOS__ 1 | |
1927 | _ACEOF | |
1928 | ||
1929 | PROGRAM_EXT=".exe" | |
1930 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1931 | LIBS="$LIBS -lstdc++" | |
1932 | ;; | |
1933 | ||
1934 | *-pc-os2_emx | *-pc-os2-emx ) | |
1935 | cat >>confdefs.h <<\_ACEOF | |
1936 | #define __EMX__ 1 | |
1937 | _ACEOF | |
1938 | ||
1939 | USE_OS2=1 | |
1940 | cat >>confdefs.h <<\_ACEOF | |
1941 | #define __OS2__ 1 | |
1942 | _ACEOF | |
1943 | ||
1944 | PROGRAM_EXT=".exe" | |
1945 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1946 | CXX=gcc | |
1947 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1948 | ac_executable_extensions=".exe" | |
1949 | export ac_executable_extensions | |
1950 | ac_save_IFS="$IFS" | |
1951 | IFS='\\' | |
1952 | ac_TEMP_PATH= | |
1953 | for ac_dir in $PATH; do | |
1954 | IFS=$ac_save_IFS | |
1955 | if test -z "$ac_TEMP_PATH"; then | |
1956 | ac_TEMP_PATH="$ac_dir" | |
1957 | else | |
1958 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1959 | fi | |
1960 | done | |
1961 | export PATH="$ac_TEMP_PATH" | |
1962 | unset ac_TEMP_PATH | |
1963 | ;; | |
1964 | ||
1965 | powerpc-*-darwin* ) | |
1966 | USE_BSD=1 | |
1967 | USE_DARWIN=1 | |
1968 | SO_SUFFIX=dylib | |
1969 | cat >>confdefs.h <<\_ACEOF | |
1970 | #define __BSD__ 1 | |
1971 | _ACEOF | |
1972 | ||
1973 | cat >>confdefs.h <<\_ACEOF | |
1974 | #define __DARWIN__ 1 | |
1975 | _ACEOF | |
1976 | ||
1977 | cat >>confdefs.h <<\_ACEOF | |
1978 | #define __POWERPC__ 1 | |
1979 | _ACEOF | |
1980 | ||
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define TARGET_CARBON 1 | |
1983 | _ACEOF | |
1984 | ||
1985 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1986 | ;; | |
1987 | ||
1988 | *-*-beos* ) | |
1989 | USE_BEOS=1 | |
1990 | cat >>confdefs.h <<\_ACEOF | |
1991 | #define __BEOS__ 1 | |
1992 | _ACEOF | |
1993 | ||
1994 | ;; | |
1995 | ||
1996 | *) | |
1997 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
1998 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1999 | { (exit 1); exit 1; }; } | |
2000 | esac | |
2001 | ||
2002 | ||
2003 | ||
2004 | ||
2005 | wx_arg_cache_file="configarg.cache" | |
2006 | echo "loading argument cache $wx_arg_cache_file" | |
2007 | rm -f ${wx_arg_cache_file}.tmp | |
2008 | touch ${wx_arg_cache_file}.tmp | |
2009 | touch ${wx_arg_cache_file} | |
2010 | ||
2011 | ||
2012 | DEBUG_CONFIGURE=0 | |
2013 | if test $DEBUG_CONFIGURE = 1; then | |
2014 | DEFAULT_wxUSE_UNIVERSAL=no | |
2015 | DEFAULT_wxUSE_STL=no | |
2016 | ||
2017 | DEFAULT_wxUSE_NANOX=no | |
2018 | ||
2019 | DEFAULT_wxUSE_THREADS=yes | |
2020 | ||
2021 | DEFAULT_wxUSE_SHARED=yes | |
2022 | DEFAULT_wxUSE_OPTIMISE=no | |
2023 | DEFAULT_wxUSE_PROFILE=no | |
2024 | DEFAULT_wxUSE_NO_DEPS=no | |
2025 | DEFAULT_wxUSE_NO_RTTI=no | |
2026 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2027 | DEFAULT_wxUSE_PERMISSIVE=no | |
2028 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2029 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2030 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2031 | DEFAULT_wxUSE_MEM_TRACING=no | |
2032 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2033 | DEFAULT_wxUSE_DMALLOC=no | |
2034 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2035 | ||
2036 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2037 | DEFAULT_wxUSE_LOG=yes | |
2038 | DEFAULT_wxUSE_LOGWINDOW=no | |
2039 | DEFAULT_wxUSE_LOGGUI=no | |
2040 | DEFAULT_wxUSE_LOGDIALOG=no | |
2041 | ||
2042 | DEFAULT_wxUSE_GUI=yes | |
2043 | DEFAULT_wxUSE_CONTROLS=no | |
2044 | ||
2045 | DEFAULT_wxUSE_REGEX=no | |
2046 | DEFAULT_wxUSE_XML=no | |
2047 | DEFAULT_wxUSE_EXPAT=no | |
2048 | DEFAULT_wxUSE_ZLIB=no | |
2049 | DEFAULT_wxUSE_LIBPNG=no | |
2050 | DEFAULT_wxUSE_LIBJPEG=no | |
2051 | DEFAULT_wxUSE_LIBTIFF=no | |
2052 | DEFAULT_wxUSE_LIBXPM=no | |
2053 | DEFAULT_wxUSE_LIBMSPACK=no | |
2054 | DEFAULT_wxUSE_LIBSDL=no | |
2055 | DEFAULT_wxUSE_ODBC=no | |
2056 | DEFAULT_wxUSE_OPENGL=no | |
2057 | ||
2058 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2059 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2060 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2061 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2062 | DEFAULT_wxUSE_DATETIME=no | |
2063 | DEFAULT_wxUSE_TIMER=no | |
2064 | DEFAULT_wxUSE_STOPWATCH=no | |
2065 | DEFAULT_wxUSE_FILE=no | |
2066 | DEFAULT_wxUSE_FFILE=no | |
2067 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2068 | DEFAULT_wxUSE_TEXTFILE=no | |
2069 | DEFAULT_wxUSE_SOUND=no | |
2070 | DEFAULT_wxUSE_INTL=no | |
2071 | DEFAULT_wxUSE_CONFIG=no | |
2072 | DEFAULT_wxUSE_FONTMAP=no | |
2073 | DEFAULT_wxUSE_STREAMS=no | |
2074 | DEFAULT_wxUSE_SOCKETS=no | |
2075 | DEFAULT_wxUSE_OLE=no | |
2076 | DEFAULT_wxUSE_DATAOBJ=no | |
2077 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2078 | DEFAULT_wxUSE_JOYSTICK=no | |
2079 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2080 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2081 | DEFAULT_wxUSE_LONGLONG=no | |
2082 | DEFAULT_wxUSE_GEOMETRY=no | |
2083 | ||
2084 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2085 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2086 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2087 | ||
2088 | DEFAULT_wxUSE_CLIPBOARD=no | |
2089 | DEFAULT_wxUSE_TOOLTIPS=no | |
2090 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2091 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2092 | DEFAULT_wxUSE_SPLINES=no | |
2093 | ||
8a7b1113 | 2094 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2095 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2096 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2097 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2098 | ||
2099 | DEFAULT_wxUSE_RESOURCES=no | |
2100 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2101 | DEFAULT_wxUSE_IPC=no | |
2102 | DEFAULT_wxUSE_HELP=no | |
2103 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2104 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2105 | DEFAULT_wxUSE_TREELAYOUT=no | |
2106 | DEFAULT_wxUSE_METAFILE=no | |
2107 | DEFAULT_wxUSE_MIMETYPE=no | |
2108 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2109 | DEFAULT_wxUSE_PROTOCOL=no | |
2110 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2111 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2112 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2113 | DEFAULT_wxUSE_URL=no | |
2114 | ||
2115 | DEFAULT_wxUSE_COMMONDLGS=no | |
2116 | DEFAULT_wxUSE_CHOICEDLG=no | |
2117 | DEFAULT_wxUSE_COLOURDLG=no | |
2118 | DEFAULT_wxUSE_DIRDLG=no | |
2119 | DEFAULT_wxUSE_FILEDLG=no | |
2120 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2121 | DEFAULT_wxUSE_FONTDLG=no | |
2122 | DEFAULT_wxUSE_MSGDLG=no | |
2123 | DEFAULT_wxUSE_NUMBERDLG=no | |
2124 | DEFAULT_wxUSE_TEXTDLG=no | |
2125 | DEFAULT_wxUSE_SPLASH=no | |
2126 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2127 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2128 | DEFAULT_wxUSE_WIZARDDLG=no | |
2129 | ||
2130 | DEFAULT_wxUSE_MENUS=no | |
2131 | DEFAULT_wxUSE_MINIFRAME=no | |
2132 | DEFAULT_wxUSE_HTML=no | |
646b6ec1 | 2133 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2134 | DEFAULT_wxUSE_FILESYSTEM=no |
2135 | DEFAULT_wxUSE_FS_INET=no | |
2136 | DEFAULT_wxUSE_FS_ZIP=no | |
2137 | DEFAULT_wxUSE_BUSYINFO=no | |
2138 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2139 | DEFAULT_wxUSE_VALIDATORS=no |
2140 | ||
2141 | DEFAULT_wxUSE_ACCEL=no | |
2142 | DEFAULT_wxUSE_BUTTON=no | |
2143 | DEFAULT_wxUSE_BMPBUTTON=no | |
2144 | DEFAULT_wxUSE_CALCTRL=no | |
2145 | DEFAULT_wxUSE_CARET=no | |
2146 | DEFAULT_wxUSE_CHECKBOX=no | |
2147 | DEFAULT_wxUSE_CHECKLST=no | |
2148 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2149 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
2150 | DEFAULT_wxUSE_COMBOBOX=no |
2151 | DEFAULT_wxUSE_DISPLAY=no | |
2152 | DEFAULT_wxUSE_GAUGE=no | |
2153 | DEFAULT_wxUSE_GRID=no | |
2154 | DEFAULT_wxUSE_IMAGLIST=no | |
2155 | DEFAULT_wxUSE_LISTBOOK=no | |
2156 | DEFAULT_wxUSE_LISTBOX=no | |
2157 | DEFAULT_wxUSE_LISTCTRL=no | |
2158 | DEFAULT_wxUSE_NOTEBOOK=no | |
2159 | DEFAULT_wxUSE_RADIOBOX=no | |
2160 | DEFAULT_wxUSE_RADIOBTN=no | |
2161 | DEFAULT_wxUSE_SASH=no | |
2162 | DEFAULT_wxUSE_SCROLLBAR=no | |
2163 | DEFAULT_wxUSE_SLIDER=no | |
2164 | DEFAULT_wxUSE_SPINBTN=no | |
2165 | DEFAULT_wxUSE_SPINCTRL=no | |
2166 | DEFAULT_wxUSE_SPLITTER=no | |
2167 | DEFAULT_wxUSE_STATBMP=no | |
2168 | DEFAULT_wxUSE_STATBOX=no | |
2169 | DEFAULT_wxUSE_STATLINE=no | |
2170 | DEFAULT_wxUSE_STATTEXT=no | |
2171 | DEFAULT_wxUSE_STATUSBAR=yes | |
2172 | DEFAULT_wxUSE_TABDIALOG=no | |
2173 | DEFAULT_wxUSE_TEXTCTRL=no | |
2174 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2175 | DEFAULT_wxUSE_TOOLBAR=no | |
2176 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2177 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2178 | DEFAULT_wxUSE_TREECTRL=no | |
2179 | DEFAULT_wxUSE_POPUPWIN=no | |
2180 | DEFAULT_wxUSE_TIPWINDOW=no | |
2181 | ||
2182 | DEFAULT_wxUSE_UNICODE=no | |
2183 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2184 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2185 | ||
2186 | DEFAULT_wxUSE_PALETTE=no | |
2187 | DEFAULT_wxUSE_IMAGE=no | |
2188 | DEFAULT_wxUSE_GIF=no | |
2189 | DEFAULT_wxUSE_PCX=no | |
2190 | DEFAULT_wxUSE_PNM=no | |
2191 | DEFAULT_wxUSE_IFF=no | |
2192 | DEFAULT_wxUSE_XPM=no | |
2193 | DEFAULT_wxUSE_ICO_CUR=no | |
2194 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2195 | ||
2196 | DEFAULT_wxUSE_MONOLITHIC=no | |
2197 | DEFAULT_wxUSE_PLUGINS=no | |
2198 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2199 | else | |
2200 | DEFAULT_wxUSE_UNIVERSAL=no | |
2201 | DEFAULT_wxUSE_STL=no | |
2202 | ||
2203 | DEFAULT_wxUSE_NANOX=no | |
2204 | ||
2205 | DEFAULT_wxUSE_THREADS=yes | |
2206 | ||
2207 | DEFAULT_wxUSE_SHARED=yes | |
2208 | DEFAULT_wxUSE_OPTIMISE=yes | |
2209 | DEFAULT_wxUSE_PROFILE=no | |
2210 | DEFAULT_wxUSE_NO_DEPS=no | |
2211 | DEFAULT_wxUSE_NO_RTTI=no | |
2212 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2213 | DEFAULT_wxUSE_PERMISSIVE=no | |
2214 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2215 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2216 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2217 | DEFAULT_wxUSE_MEM_TRACING=no | |
2218 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2219 | DEFAULT_wxUSE_DMALLOC=no | |
2220 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2221 | ||
2222 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2223 | DEFAULT_wxUSE_LOG=yes | |
2224 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2225 | DEFAULT_wxUSE_LOGGUI=yes | |
2226 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2227 | ||
2228 | DEFAULT_wxUSE_GUI=yes | |
2229 | ||
2230 | DEFAULT_wxUSE_REGEX=yes | |
2231 | DEFAULT_wxUSE_XML=yes | |
2232 | DEFAULT_wxUSE_EXPAT=yes | |
2233 | DEFAULT_wxUSE_ZLIB=yes | |
2234 | DEFAULT_wxUSE_LIBPNG=yes | |
2235 | DEFAULT_wxUSE_LIBJPEG=yes | |
2236 | DEFAULT_wxUSE_LIBTIFF=yes | |
2237 | DEFAULT_wxUSE_LIBXPM=yes | |
2238 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2239 | DEFAULT_wxUSE_LIBSDL=no | |
2240 | DEFAULT_wxUSE_ODBC=no | |
2241 | DEFAULT_wxUSE_OPENGL=no | |
2242 | ||
2243 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2244 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2245 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2246 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2247 | DEFAULT_wxUSE_DATETIME=yes | |
2248 | DEFAULT_wxUSE_TIMER=yes | |
2249 | DEFAULT_wxUSE_STOPWATCH=yes | |
2250 | DEFAULT_wxUSE_FILE=yes | |
2251 | DEFAULT_wxUSE_FFILE=yes | |
2252 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2253 | DEFAULT_wxUSE_TEXTFILE=yes | |
2254 | DEFAULT_wxUSE_SOUND=yes | |
2255 | DEFAULT_wxUSE_INTL=yes | |
2256 | DEFAULT_wxUSE_CONFIG=yes | |
2257 | DEFAULT_wxUSE_FONTMAP=yes | |
2258 | DEFAULT_wxUSE_STREAMS=yes | |
2259 | DEFAULT_wxUSE_SOCKETS=yes | |
2260 | DEFAULT_wxUSE_OLE=yes | |
2261 | DEFAULT_wxUSE_DATAOBJ=yes | |
2262 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2263 | DEFAULT_wxUSE_JOYSTICK=yes | |
2264 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2265 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2266 | DEFAULT_wxUSE_LONGLONG=yes | |
2267 | DEFAULT_wxUSE_GEOMETRY=yes | |
2268 | ||
2269 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2270 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2271 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2272 | ||
2273 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2274 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2275 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2276 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2277 | DEFAULT_wxUSE_SPLINES=yes | |
2278 | ||
8a7b1113 | 2279 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2280 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2281 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2282 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2283 | ||
2284 | DEFAULT_wxUSE_RESOURCES=no | |
2285 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2286 | DEFAULT_wxUSE_IPC=yes | |
2287 | DEFAULT_wxUSE_HELP=yes | |
2288 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2289 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2290 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2291 | DEFAULT_wxUSE_METAFILE=yes | |
2292 | DEFAULT_wxUSE_MIMETYPE=yes | |
2293 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2294 | DEFAULT_wxUSE_PROTOCOL=yes | |
2295 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2296 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2297 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2298 | DEFAULT_wxUSE_URL=yes | |
2299 | ||
2300 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2301 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2302 | DEFAULT_wxUSE_COLOURDLG=yes | |
2303 | DEFAULT_wxUSE_DIRDLG=yes | |
2304 | DEFAULT_wxUSE_FILEDLG=yes | |
2305 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2306 | DEFAULT_wxUSE_FONTDLG=yes | |
2307 | DEFAULT_wxUSE_MSGDLG=yes | |
2308 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2309 | DEFAULT_wxUSE_TEXTDLG=yes | |
2310 | DEFAULT_wxUSE_SPLASH=yes | |
2311 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2312 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2313 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2314 | ||
2315 | DEFAULT_wxUSE_MENUS=yes | |
2316 | DEFAULT_wxUSE_MINIFRAME=yes | |
2317 | DEFAULT_wxUSE_HTML=yes | |
646b6ec1 | 2318 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2319 | DEFAULT_wxUSE_FILESYSTEM=yes |
2320 | DEFAULT_wxUSE_FS_INET=yes | |
2321 | DEFAULT_wxUSE_FS_ZIP=yes | |
2322 | DEFAULT_wxUSE_BUSYINFO=yes | |
2323 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2324 | DEFAULT_wxUSE_VALIDATORS=yes |
2325 | ||
2326 | DEFAULT_wxUSE_ACCEL=yes | |
2327 | DEFAULT_wxUSE_BUTTON=yes | |
2328 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2329 | DEFAULT_wxUSE_CALCTRL=yes | |
2330 | DEFAULT_wxUSE_CARET=yes | |
2331 | DEFAULT_wxUSE_CHECKBOX=yes | |
2332 | DEFAULT_wxUSE_CHECKLST=yes | |
2333 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2334 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
2335 | DEFAULT_wxUSE_COMBOBOX=yes |
2336 | DEFAULT_wxUSE_DISPLAY=yes | |
2337 | DEFAULT_wxUSE_GAUGE=yes | |
2338 | DEFAULT_wxUSE_GRID=yes | |
2339 | DEFAULT_wxUSE_IMAGLIST=yes | |
2340 | DEFAULT_wxUSE_LISTBOOK=yes | |
2341 | DEFAULT_wxUSE_LISTBOX=yes | |
2342 | DEFAULT_wxUSE_LISTCTRL=yes | |
2343 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2344 | DEFAULT_wxUSE_RADIOBOX=yes | |
2345 | DEFAULT_wxUSE_RADIOBTN=yes | |
2346 | DEFAULT_wxUSE_SASH=yes | |
2347 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2348 | DEFAULT_wxUSE_SLIDER=yes | |
2349 | DEFAULT_wxUSE_SPINBTN=yes | |
2350 | DEFAULT_wxUSE_SPINCTRL=yes | |
2351 | DEFAULT_wxUSE_SPLITTER=yes | |
2352 | DEFAULT_wxUSE_STATBMP=yes | |
2353 | DEFAULT_wxUSE_STATBOX=yes | |
2354 | DEFAULT_wxUSE_STATLINE=yes | |
2355 | DEFAULT_wxUSE_STATTEXT=yes | |
2356 | DEFAULT_wxUSE_STATUSBAR=yes | |
2357 | DEFAULT_wxUSE_TABDIALOG=no | |
2358 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2359 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2360 | DEFAULT_wxUSE_TOOLBAR=yes | |
2361 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2362 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2363 | DEFAULT_wxUSE_TREECTRL=yes | |
2364 | DEFAULT_wxUSE_POPUPWIN=yes | |
2365 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2366 | ||
2367 | DEFAULT_wxUSE_UNICODE=no | |
2368 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2369 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2370 | ||
2371 | DEFAULT_wxUSE_PALETTE=yes | |
2372 | DEFAULT_wxUSE_IMAGE=yes | |
2373 | DEFAULT_wxUSE_GIF=yes | |
2374 | DEFAULT_wxUSE_PCX=yes | |
2375 | DEFAULT_wxUSE_IFF=no | |
2376 | DEFAULT_wxUSE_PNM=yes | |
2377 | DEFAULT_wxUSE_XPM=yes | |
2378 | DEFAULT_wxUSE_ICO_CUR=yes | |
2379 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2380 | ||
2381 | DEFAULT_wxUSE_MONOLITHIC=no | |
2382 | DEFAULT_wxUSE_PLUGINS=no | |
2383 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2384 | |
2385 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2386 | fi |
2387 | ||
2388 | ||
2389 | ||
2390 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2391 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2392 | if test "x$LINE" != "x" ; then | |
2393 | has_toolkit_in_cache=1 | |
2394 | eval "DEFAULT_$LINE" | |
2395 | eval "CACHE_$toolkit=1" | |
2396 | fi | |
2397 | done | |
2398 | ||
2399 | ||
2400 | ||
2401 | enablestring= | |
2402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2403 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2404 | no_cache=0 | |
2405 | # Check whether --enable-gui or --disable-gui was given. | |
2406 | if test "${enable_gui+set}" = set; then | |
2407 | enableval="$enable_gui" | |
2408 | ||
2409 | if test "$enableval" = yes; then | |
2410 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2411 | else | |
2412 | ac_cv_use_gui='wxUSE_GUI=no' | |
2413 | fi | |
2414 | ||
2415 | else | |
2416 | ||
2417 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2418 | if test "x$LINE" != x ; then | |
2419 | eval "DEFAULT_$LINE" | |
2420 | else | |
2421 | no_cache=1 | |
2422 | fi | |
2423 | ||
2424 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2425 | ||
2426 | fi; | |
2427 | ||
2428 | eval "$ac_cv_use_gui" | |
2429 | if test "$no_cache" != 1; then | |
2430 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2431 | fi | |
2432 | ||
2433 | if test "$wxUSE_GUI" = yes; then | |
2434 | echo "$as_me:$LINENO: result: yes" >&5 | |
2435 | echo "${ECHO_T}yes" >&6 | |
2436 | else | |
2437 | echo "$as_me:$LINENO: result: no" >&5 | |
2438 | echo "${ECHO_T}no" >&6 | |
2439 | fi | |
2440 | ||
2441 | ||
2442 | enablestring= | |
2443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2444 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2445 | no_cache=0 | |
2446 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2447 | if test "${enable_monolithic+set}" = set; then | |
2448 | enableval="$enable_monolithic" | |
2449 | ||
2450 | if test "$enableval" = yes; then | |
2451 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2452 | else | |
2453 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2454 | fi | |
2455 | ||
2456 | else | |
2457 | ||
2458 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2459 | if test "x$LINE" != x ; then | |
2460 | eval "DEFAULT_$LINE" | |
2461 | else | |
2462 | no_cache=1 | |
2463 | fi | |
2464 | ||
2465 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2466 | ||
2467 | fi; | |
2468 | ||
2469 | eval "$ac_cv_use_monolithic" | |
2470 | if test "$no_cache" != 1; then | |
2471 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2472 | fi | |
2473 | ||
2474 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2475 | echo "$as_me:$LINENO: result: yes" >&5 | |
2476 | echo "${ECHO_T}yes" >&6 | |
2477 | else | |
2478 | echo "$as_me:$LINENO: result: no" >&5 | |
2479 | echo "${ECHO_T}no" >&6 | |
2480 | fi | |
2481 | ||
2482 | ||
2483 | enablestring= | |
2484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2485 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2486 | no_cache=0 | |
2487 | # Check whether --enable-plugins or --disable-plugins was given. | |
2488 | if test "${enable_plugins+set}" = set; then | |
2489 | enableval="$enable_plugins" | |
2490 | ||
2491 | if test "$enableval" = yes; then | |
2492 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2493 | else | |
2494 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2495 | fi | |
2496 | ||
2497 | else | |
2498 | ||
2499 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2500 | if test "x$LINE" != x ; then | |
2501 | eval "DEFAULT_$LINE" | |
2502 | else | |
2503 | no_cache=1 | |
2504 | fi | |
2505 | ||
2506 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2507 | ||
2508 | fi; | |
2509 | ||
2510 | eval "$ac_cv_use_plugins" | |
2511 | if test "$no_cache" != 1; then | |
2512 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2513 | fi | |
2514 | ||
2515 | if test "$wxUSE_PLUGINS" = yes; then | |
2516 | echo "$as_me:$LINENO: result: yes" >&5 | |
2517 | echo "${ECHO_T}yes" >&6 | |
2518 | else | |
2519 | echo "$as_me:$LINENO: result: no" >&5 | |
2520 | echo "${ECHO_T}no" >&6 | |
2521 | fi | |
2522 | ||
2523 | ||
2524 | if test "$wxUSE_GUI" = "yes"; then | |
2525 | ||
2526 | ||
2527 | enablestring= | |
2528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2529 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2530 | no_cache=0 | |
2531 | # Check whether --enable-universal or --disable-universal was given. | |
2532 | if test "${enable_universal+set}" = set; then | |
2533 | enableval="$enable_universal" | |
2534 | ||
2535 | if test "$enableval" = yes; then | |
2536 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2537 | else | |
2538 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2539 | fi | |
2540 | ||
2541 | else | |
2542 | ||
2543 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2544 | if test "x$LINE" != x ; then | |
2545 | eval "DEFAULT_$LINE" | |
2546 | else | |
2547 | no_cache=1 | |
2548 | fi | |
2549 | ||
2550 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2551 | ||
2552 | fi; | |
2553 | ||
2554 | eval "$ac_cv_use_universal" | |
2555 | if test "$no_cache" != 1; then | |
2556 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2557 | fi | |
2558 | ||
2559 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2560 | echo "$as_me:$LINENO: result: yes" >&5 | |
2561 | echo "${ECHO_T}yes" >&6 | |
2562 | else | |
2563 | echo "$as_me:$LINENO: result: no" >&5 | |
2564 | echo "${ECHO_T}no" >&6 | |
2565 | fi | |
2566 | ||
2567 | ||
2568 | # Check whether --with-gtk or --without-gtk was given. | |
2569 | if test "${with_gtk+set}" = set; then | |
2570 | withval="$with_gtk" | |
2571 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2572 | fi; | |
2573 | ||
2574 | # Check whether --with-motif or --without-motif was given. | |
2575 | if test "${with_motif+set}" = set; then | |
2576 | withval="$with_motif" | |
2577 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2578 | fi; | |
2579 | ||
2580 | # Check whether --with-mac or --without-mac was given. | |
2581 | if test "${with_mac+set}" = set; then | |
2582 | withval="$with_mac" | |
2583 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
2584 | fi; | |
2585 | ||
2586 | # Check whether --with-cocoa or --without-cocoa was given. | |
2587 | if test "${with_cocoa+set}" = set; then | |
2588 | withval="$with_cocoa" | |
2589 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
2590 | fi; | |
2591 | ||
2592 | # Check whether --with-wine or --without-wine was given. | |
2593 | if test "${with_wine+set}" = set; then | |
2594 | withval="$with_wine" | |
2595 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2596 | fi; | |
2597 | ||
2598 | # Check whether --with-msw or --without-msw was given. | |
2599 | if test "${with_msw+set}" = set; then | |
2600 | withval="$with_msw" | |
2601 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2602 | fi; | |
2603 | ||
2604 | # Check whether --with-pm or --without-pm was given. | |
2605 | if test "${with_pm+set}" = set; then | |
2606 | withval="$with_pm" | |
2607 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2608 | fi; | |
2609 | ||
2610 | # Check whether --with-mgl or --without-mgl was given. | |
2611 | if test "${with_mgl+set}" = set; then | |
2612 | withval="$with_mgl" | |
2613 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2614 | fi; | |
2615 | ||
2616 | # Check whether --with-microwin or --without-microwin was given. | |
2617 | if test "${with_microwin+set}" = set; then | |
2618 | withval="$with_microwin" | |
2619 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2620 | fi; | |
2621 | ||
2622 | # Check whether --with-x11 or --without-x11 was given. | |
2623 | if test "${with_x11+set}" = set; then | |
2624 | withval="$with_x11" | |
2625 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2626 | fi; | |
2627 | ||
2628 | enablestring= | |
2629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2630 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2631 | no_cache=0 | |
2632 | # Check whether --enable-nanox or --disable-nanox was given. | |
2633 | if test "${enable_nanox+set}" = set; then | |
2634 | enableval="$enable_nanox" | |
2635 | ||
2636 | if test "$enableval" = yes; then | |
2637 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2638 | else | |
2639 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2640 | fi | |
2641 | ||
2642 | else | |
2643 | ||
2644 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2645 | if test "x$LINE" != x ; then | |
2646 | eval "DEFAULT_$LINE" | |
2647 | else | |
2648 | no_cache=1 | |
2649 | fi | |
2650 | ||
2651 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2652 | ||
2653 | fi; | |
2654 | ||
2655 | eval "$ac_cv_use_nanox" | |
2656 | if test "$no_cache" != 1; then | |
2657 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2658 | fi | |
2659 | ||
2660 | if test "$wxUSE_NANOX" = yes; then | |
2661 | echo "$as_me:$LINENO: result: yes" >&5 | |
2662 | echo "${ECHO_T}yes" >&6 | |
2663 | else | |
2664 | echo "$as_me:$LINENO: result: no" >&5 | |
2665 | echo "${ECHO_T}no" >&6 | |
2666 | fi | |
2667 | ||
2668 | ||
2669 | ||
2670 | enablestring= | |
2671 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2672 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2673 | no_cache=0 | |
2674 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2675 | if test "${enable_gtk2+set}" = set; then | |
2676 | enableval="$enable_gtk2" | |
2677 | ||
2678 | if test "$enableval" = yes; then | |
2679 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2680 | else | |
2681 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2682 | fi | |
2683 | ||
2684 | else | |
2685 | ||
2686 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2687 | if test "x$LINE" != x ; then | |
2688 | eval "DEFAULT_$LINE" | |
2689 | else | |
2690 | no_cache=1 | |
2691 | fi | |
2692 | ||
2693 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2694 | ||
2695 | fi; | |
2696 | ||
2697 | eval "$ac_cv_use_gtk2" | |
2698 | if test "$no_cache" != 1; then | |
2699 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2700 | fi | |
2701 | ||
2702 | if test "$wxUSE_GTK2" = yes; then | |
2703 | echo "$as_me:$LINENO: result: yes" >&5 | |
2704 | echo "${ECHO_T}yes" >&6 | |
2705 | else | |
2706 | echo "$as_me:$LINENO: result: no" >&5 | |
2707 | echo "${ECHO_T}no" >&6 | |
2708 | fi | |
2709 | ||
2710 | ||
2711 | enablestring= | |
2712 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2713 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2714 | no_cache=0 | |
2715 | # Check whether --enable-gpe or --disable-gpe was given. | |
2716 | if test "${enable_gpe+set}" = set; then | |
2717 | enableval="$enable_gpe" | |
2718 | ||
2719 | if test "$enableval" = yes; then | |
2720 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2721 | else | |
2722 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2723 | fi | |
2724 | ||
2725 | else | |
2726 | ||
2727 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2728 | if test "x$LINE" != x ; then | |
2729 | eval "DEFAULT_$LINE" | |
2730 | else | |
2731 | no_cache=1 | |
2732 | fi | |
2733 | ||
2734 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2735 | ||
2736 | fi; | |
2737 | ||
2738 | eval "$ac_cv_use_gpe" | |
2739 | if test "$no_cache" != 1; then | |
2740 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2741 | fi | |
2742 | ||
2743 | if test "$wxUSE_GPE" = yes; then | |
2744 | echo "$as_me:$LINENO: result: yes" >&5 | |
2745 | echo "${ECHO_T}yes" >&6 | |
2746 | else | |
2747 | echo "$as_me:$LINENO: result: no" >&5 | |
2748 | echo "${ECHO_T}no" >&6 | |
2749 | fi | |
2750 | ||
2751 | ||
2752 | ||
2753 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2754 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2755 | no_cache=0 | |
2756 | ||
2757 | # Check whether --with-libpng or --without-libpng was given. | |
2758 | if test "${with_libpng+set}" = set; then | |
2759 | withval="$with_libpng" | |
2760 | ||
2761 | if test "$withval" = yes; then | |
2762 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2763 | elif test "$withval" = no; then | |
2764 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2765 | elif test "$withval" = sys; then | |
2766 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2767 | elif test "$withval" = builtin; then | |
2768 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2769 | else | |
2770 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2771 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2772 | { (exit 1); exit 1; }; } | |
2773 | fi | |
2774 | ||
2775 | else | |
2776 | ||
2777 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2778 | if test "x$LINE" != x ; then | |
2779 | eval "DEFAULT_$LINE" | |
2780 | else | |
2781 | no_cache=1 | |
2782 | fi | |
2783 | ||
2784 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2785 | ||
2786 | fi; | |
2787 | ||
2788 | eval "$ac_cv_use_libpng" | |
2789 | if test "$no_cache" != 1; then | |
2790 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2791 | fi | |
2792 | ||
2793 | if test "$wxUSE_LIBPNG" = yes; then | |
2794 | echo "$as_me:$LINENO: result: yes" >&5 | |
2795 | echo "${ECHO_T}yes" >&6 | |
2796 | elif test "$wxUSE_LIBPNG" = no; then | |
2797 | echo "$as_me:$LINENO: result: no" >&5 | |
2798 | echo "${ECHO_T}no" >&6 | |
2799 | elif test "$wxUSE_LIBPNG" = sys; then | |
2800 | echo "$as_me:$LINENO: result: system version" >&5 | |
2801 | echo "${ECHO_T}system version" >&6 | |
2802 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2803 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2804 | echo "${ECHO_T}builtin version" >&6 | |
2805 | else | |
2806 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2807 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2808 | { (exit 1); exit 1; }; } | |
2809 | fi | |
2810 | ||
2811 | ||
2812 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2813 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2814 | no_cache=0 | |
2815 | ||
2816 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2817 | if test "${with_libjpeg+set}" = set; then | |
2818 | withval="$with_libjpeg" | |
2819 | ||
2820 | if test "$withval" = yes; then | |
2821 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2822 | elif test "$withval" = no; then | |
2823 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2824 | elif test "$withval" = sys; then | |
2825 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2826 | elif test "$withval" = builtin; then | |
2827 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2828 | else | |
2829 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2830 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2831 | { (exit 1); exit 1; }; } | |
2832 | fi | |
2833 | ||
2834 | else | |
2835 | ||
2836 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2837 | if test "x$LINE" != x ; then | |
2838 | eval "DEFAULT_$LINE" | |
2839 | else | |
2840 | no_cache=1 | |
2841 | fi | |
2842 | ||
2843 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2844 | ||
2845 | fi; | |
2846 | ||
2847 | eval "$ac_cv_use_libjpeg" | |
2848 | if test "$no_cache" != 1; then | |
2849 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2850 | fi | |
2851 | ||
2852 | if test "$wxUSE_LIBJPEG" = yes; then | |
2853 | echo "$as_me:$LINENO: result: yes" >&5 | |
2854 | echo "${ECHO_T}yes" >&6 | |
2855 | elif test "$wxUSE_LIBJPEG" = no; then | |
2856 | echo "$as_me:$LINENO: result: no" >&5 | |
2857 | echo "${ECHO_T}no" >&6 | |
2858 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2859 | echo "$as_me:$LINENO: result: system version" >&5 | |
2860 | echo "${ECHO_T}system version" >&6 | |
2861 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2862 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2863 | echo "${ECHO_T}builtin version" >&6 | |
2864 | else | |
2865 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2866 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2867 | { (exit 1); exit 1; }; } | |
2868 | fi | |
2869 | ||
2870 | ||
2871 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2872 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2873 | no_cache=0 | |
2874 | ||
2875 | # Check whether --with-libtiff or --without-libtiff was given. | |
2876 | if test "${with_libtiff+set}" = set; then | |
2877 | withval="$with_libtiff" | |
2878 | ||
2879 | if test "$withval" = yes; then | |
2880 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2881 | elif test "$withval" = no; then | |
2882 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2883 | elif test "$withval" = sys; then | |
2884 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2885 | elif test "$withval" = builtin; then | |
2886 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2887 | else | |
2888 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2889 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2890 | { (exit 1); exit 1; }; } | |
2891 | fi | |
2892 | ||
2893 | else | |
2894 | ||
2895 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2896 | if test "x$LINE" != x ; then | |
2897 | eval "DEFAULT_$LINE" | |
2898 | else | |
2899 | no_cache=1 | |
2900 | fi | |
2901 | ||
2902 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2903 | ||
2904 | fi; | |
2905 | ||
2906 | eval "$ac_cv_use_libtiff" | |
2907 | if test "$no_cache" != 1; then | |
2908 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2909 | fi | |
2910 | ||
2911 | if test "$wxUSE_LIBTIFF" = yes; then | |
2912 | echo "$as_me:$LINENO: result: yes" >&5 | |
2913 | echo "${ECHO_T}yes" >&6 | |
2914 | elif test "$wxUSE_LIBTIFF" = no; then | |
2915 | echo "$as_me:$LINENO: result: no" >&5 | |
2916 | echo "${ECHO_T}no" >&6 | |
2917 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2918 | echo "$as_me:$LINENO: result: system version" >&5 | |
2919 | echo "${ECHO_T}system version" >&6 | |
2920 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2921 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2922 | echo "${ECHO_T}builtin version" >&6 | |
2923 | else | |
2924 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2925 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2926 | { (exit 1); exit 1; }; } | |
2927 | fi | |
2928 | ||
2929 | ||
2930 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2931 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2932 | no_cache=0 | |
2933 | ||
2934 | # Check whether --with-libxpm or --without-libxpm was given. | |
2935 | if test "${with_libxpm+set}" = set; then | |
2936 | withval="$with_libxpm" | |
2937 | ||
2938 | if test "$withval" = yes; then | |
2939 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2940 | elif test "$withval" = no; then | |
2941 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2942 | elif test "$withval" = sys; then | |
2943 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2944 | elif test "$withval" = builtin; then | |
2945 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2946 | else | |
2947 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2948 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2949 | { (exit 1); exit 1; }; } | |
2950 | fi | |
2951 | ||
2952 | else | |
2953 | ||
2954 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2955 | if test "x$LINE" != x ; then | |
2956 | eval "DEFAULT_$LINE" | |
2957 | else | |
2958 | no_cache=1 | |
2959 | fi | |
2960 | ||
2961 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2962 | ||
2963 | fi; | |
2964 | ||
2965 | eval "$ac_cv_use_libxpm" | |
2966 | if test "$no_cache" != 1; then | |
2967 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2968 | fi | |
2969 | ||
2970 | if test "$wxUSE_LIBXPM" = yes; then | |
2971 | echo "$as_me:$LINENO: result: yes" >&5 | |
2972 | echo "${ECHO_T}yes" >&6 | |
2973 | elif test "$wxUSE_LIBXPM" = no; then | |
2974 | echo "$as_me:$LINENO: result: no" >&5 | |
2975 | echo "${ECHO_T}no" >&6 | |
2976 | elif test "$wxUSE_LIBXPM" = sys; then | |
2977 | echo "$as_me:$LINENO: result: system version" >&5 | |
2978 | echo "${ECHO_T}system version" >&6 | |
2979 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2980 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2981 | echo "${ECHO_T}builtin version" >&6 | |
2982 | else | |
2983 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2984 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2985 | { (exit 1); exit 1; }; } | |
2986 | fi | |
2987 | ||
2988 | ||
2989 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2990 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2991 | no_cache=0 | |
2992 | ||
2993 | # Check whether --with-libmspack or --without-libmspack was given. | |
2994 | if test "${with_libmspack+set}" = set; then | |
2995 | withval="$with_libmspack" | |
2996 | ||
2997 | if test "$withval" = yes; then | |
2998 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2999 | else | |
3000 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3001 | fi | |
3002 | ||
3003 | else | |
3004 | ||
3005 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3006 | if test "x$LINE" != x ; then | |
3007 | eval "DEFAULT_$LINE" | |
3008 | else | |
3009 | no_cache=1 | |
3010 | fi | |
3011 | ||
3012 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3013 | ||
3014 | fi; | |
3015 | ||
3016 | eval "$ac_cv_use_libmspack" | |
3017 | if test "$no_cache" != 1; then | |
3018 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3019 | fi | |
3020 | ||
3021 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3022 | echo "$as_me:$LINENO: result: yes" >&5 | |
3023 | echo "${ECHO_T}yes" >&6 | |
3024 | else | |
3025 | echo "$as_me:$LINENO: result: no" >&5 | |
3026 | echo "${ECHO_T}no" >&6 | |
3027 | fi | |
3028 | ||
3029 | ||
3030 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3031 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3032 | no_cache=0 | |
3033 | ||
3034 | # Check whether --with-sdl or --without-sdl was given. | |
3035 | if test "${with_sdl+set}" = set; then | |
3036 | withval="$with_sdl" | |
3037 | ||
3038 | if test "$withval" = yes; then | |
3039 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3040 | else | |
3041 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3042 | fi | |
3043 | ||
3044 | else | |
3045 | ||
3046 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3047 | if test "x$LINE" != x ; then | |
3048 | eval "DEFAULT_$LINE" | |
3049 | else | |
3050 | no_cache=1 | |
3051 | fi | |
3052 | ||
3053 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3054 | ||
3055 | fi; | |
3056 | ||
3057 | eval "$ac_cv_use_sdl" | |
3058 | if test "$no_cache" != 1; then | |
3059 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3060 | fi | |
3061 | ||
3062 | if test "$wxUSE_LIBSDL" = yes; then | |
3063 | echo "$as_me:$LINENO: result: yes" >&5 | |
3064 | echo "${ECHO_T}yes" >&6 | |
3065 | else | |
3066 | echo "$as_me:$LINENO: result: no" >&5 | |
3067 | echo "${ECHO_T}no" >&6 | |
3068 | fi | |
3069 | ||
3070 | ||
3071 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
3072 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3073 | no_cache=0 | |
3074 | ||
3075 | # Check whether --with-opengl or --without-opengl was given. | |
3076 | if test "${with_opengl+set}" = set; then | |
3077 | withval="$with_opengl" | |
3078 | ||
3079 | if test "$withval" = yes; then | |
3080 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3081 | else | |
3082 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3083 | fi | |
3084 | ||
3085 | else | |
3086 | ||
3087 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3088 | if test "x$LINE" != x ; then | |
3089 | eval "DEFAULT_$LINE" | |
3090 | else | |
3091 | no_cache=1 | |
3092 | fi | |
3093 | ||
3094 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3095 | ||
3096 | fi; | |
3097 | ||
3098 | eval "$ac_cv_use_opengl" | |
3099 | if test "$no_cache" != 1; then | |
3100 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3101 | fi | |
3102 | ||
3103 | if test "$wxUSE_OPENGL" = yes; then | |
3104 | echo "$as_me:$LINENO: result: yes" >&5 | |
3105 | echo "${ECHO_T}yes" >&6 | |
3106 | else | |
3107 | echo "$as_me:$LINENO: result: no" >&5 | |
3108 | echo "${ECHO_T}no" >&6 | |
3109 | fi | |
3110 | ||
3111 | ||
3112 | fi | |
3113 | ||
3114 | ||
3115 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3116 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3117 | no_cache=0 | |
3118 | ||
3119 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3120 | if test "${with_dmalloc+set}" = set; then | |
3121 | withval="$with_dmalloc" | |
3122 | ||
3123 | if test "$withval" = yes; then | |
3124 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3125 | else | |
3126 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3127 | fi | |
3128 | ||
3129 | else | |
3130 | ||
3131 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3132 | if test "x$LINE" != x ; then | |
3133 | eval "DEFAULT_$LINE" | |
3134 | else | |
3135 | no_cache=1 | |
3136 | fi | |
3137 | ||
3138 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3139 | ||
3140 | fi; | |
3141 | ||
3142 | eval "$ac_cv_use_dmalloc" | |
3143 | if test "$no_cache" != 1; then | |
3144 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3145 | fi | |
3146 | ||
3147 | if test "$wxUSE_DMALLOC" = yes; then | |
3148 | echo "$as_me:$LINENO: result: yes" >&5 | |
3149 | echo "${ECHO_T}yes" >&6 | |
3150 | else | |
3151 | echo "$as_me:$LINENO: result: no" >&5 | |
3152 | echo "${ECHO_T}no" >&6 | |
3153 | fi | |
3154 | ||
3155 | ||
3156 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3157 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3158 | no_cache=0 | |
3159 | ||
3160 | # Check whether --with-regex or --without-regex was given. | |
3161 | if test "${with_regex+set}" = set; then | |
3162 | withval="$with_regex" | |
3163 | ||
3164 | if test "$withval" = yes; then | |
3165 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3166 | elif test "$withval" = no; then | |
3167 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3168 | elif test "$withval" = sys; then | |
3169 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3170 | elif test "$withval" = builtin; then | |
3171 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3172 | else | |
3173 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3174 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3175 | { (exit 1); exit 1; }; } | |
3176 | fi | |
3177 | ||
3178 | else | |
3179 | ||
3180 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3181 | if test "x$LINE" != x ; then | |
3182 | eval "DEFAULT_$LINE" | |
3183 | else | |
3184 | no_cache=1 | |
3185 | fi | |
3186 | ||
3187 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3188 | ||
3189 | fi; | |
3190 | ||
3191 | eval "$ac_cv_use_regex" | |
3192 | if test "$no_cache" != 1; then | |
3193 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3194 | fi | |
3195 | ||
3196 | if test "$wxUSE_REGEX" = yes; then | |
3197 | echo "$as_me:$LINENO: result: yes" >&5 | |
3198 | echo "${ECHO_T}yes" >&6 | |
3199 | elif test "$wxUSE_REGEX" = no; then | |
3200 | echo "$as_me:$LINENO: result: no" >&5 | |
3201 | echo "${ECHO_T}no" >&6 | |
3202 | elif test "$wxUSE_REGEX" = sys; then | |
3203 | echo "$as_me:$LINENO: result: system version" >&5 | |
3204 | echo "${ECHO_T}system version" >&6 | |
3205 | elif test "$wxUSE_REGEX" = builtin; then | |
3206 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3207 | echo "${ECHO_T}builtin version" >&6 | |
3208 | else | |
3209 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3210 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3211 | { (exit 1); exit 1; }; } | |
3212 | fi | |
3213 | ||
3214 | ||
3215 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3216 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3217 | no_cache=0 | |
3218 | ||
3219 | # Check whether --with-zlib or --without-zlib was given. | |
3220 | if test "${with_zlib+set}" = set; then | |
3221 | withval="$with_zlib" | |
3222 | ||
3223 | if test "$withval" = yes; then | |
3224 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3225 | elif test "$withval" = no; then | |
3226 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3227 | elif test "$withval" = sys; then | |
3228 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3229 | elif test "$withval" = builtin; then | |
3230 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3231 | else | |
3232 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3233 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3234 | { (exit 1); exit 1; }; } | |
3235 | fi | |
3236 | ||
3237 | else | |
3238 | ||
3239 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3240 | if test "x$LINE" != x ; then | |
3241 | eval "DEFAULT_$LINE" | |
3242 | else | |
3243 | no_cache=1 | |
3244 | fi | |
3245 | ||
3246 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3247 | ||
3248 | fi; | |
3249 | ||
3250 | eval "$ac_cv_use_zlib" | |
3251 | if test "$no_cache" != 1; then | |
3252 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3253 | fi | |
3254 | ||
3255 | if test "$wxUSE_ZLIB" = yes; then | |
3256 | echo "$as_me:$LINENO: result: yes" >&5 | |
3257 | echo "${ECHO_T}yes" >&6 | |
3258 | elif test "$wxUSE_ZLIB" = no; then | |
3259 | echo "$as_me:$LINENO: result: no" >&5 | |
3260 | echo "${ECHO_T}no" >&6 | |
3261 | elif test "$wxUSE_ZLIB" = sys; then | |
3262 | echo "$as_me:$LINENO: result: system version" >&5 | |
3263 | echo "${ECHO_T}system version" >&6 | |
3264 | elif test "$wxUSE_ZLIB" = builtin; then | |
3265 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3266 | echo "${ECHO_T}builtin version" >&6 | |
3267 | else | |
3268 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3269 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3270 | { (exit 1); exit 1; }; } | |
3271 | fi | |
3272 | ||
3273 | ||
3274 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3275 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3276 | no_cache=0 | |
3277 | ||
3278 | # Check whether --with-odbc or --without-odbc was given. | |
3279 | if test "${with_odbc+set}" = set; then | |
3280 | withval="$with_odbc" | |
3281 | ||
3282 | if test "$withval" = yes; then | |
3283 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3284 | elif test "$withval" = no; then | |
3285 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3286 | elif test "$withval" = sys; then | |
3287 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3288 | elif test "$withval" = builtin; then | |
3289 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3290 | else | |
3291 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3292 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3293 | { (exit 1); exit 1; }; } | |
3294 | fi | |
3295 | ||
3296 | else | |
3297 | ||
3298 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3299 | if test "x$LINE" != x ; then | |
3300 | eval "DEFAULT_$LINE" | |
3301 | else | |
3302 | no_cache=1 | |
3303 | fi | |
3304 | ||
3305 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3306 | ||
3307 | fi; | |
3308 | ||
3309 | eval "$ac_cv_use_odbc" | |
3310 | if test "$no_cache" != 1; then | |
3311 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3312 | fi | |
3313 | ||
3314 | if test "$wxUSE_ODBC" = yes; then | |
3315 | echo "$as_me:$LINENO: result: yes" >&5 | |
3316 | echo "${ECHO_T}yes" >&6 | |
3317 | elif test "$wxUSE_ODBC" = no; then | |
3318 | echo "$as_me:$LINENO: result: no" >&5 | |
3319 | echo "${ECHO_T}no" >&6 | |
3320 | elif test "$wxUSE_ODBC" = sys; then | |
3321 | echo "$as_me:$LINENO: result: system version" >&5 | |
3322 | echo "${ECHO_T}system version" >&6 | |
3323 | elif test "$wxUSE_ODBC" = builtin; then | |
3324 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3325 | echo "${ECHO_T}builtin version" >&6 | |
3326 | else | |
3327 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3328 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3329 | { (exit 1); exit 1; }; } | |
3330 | fi | |
3331 | ||
3332 | ||
3333 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3334 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3335 | no_cache=0 | |
3336 | ||
3337 | # Check whether --with-expat or --without-expat was given. | |
3338 | if test "${with_expat+set}" = set; then | |
3339 | withval="$with_expat" | |
3340 | ||
3341 | if test "$withval" = yes; then | |
3342 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3343 | elif test "$withval" = no; then | |
3344 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3345 | elif test "$withval" = sys; then | |
3346 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3347 | elif test "$withval" = builtin; then | |
3348 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3349 | else | |
3350 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3351 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3352 | { (exit 1); exit 1; }; } | |
3353 | fi | |
3354 | ||
3355 | else | |
3356 | ||
3357 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3358 | if test "x$LINE" != x ; then | |
3359 | eval "DEFAULT_$LINE" | |
3360 | else | |
3361 | no_cache=1 | |
3362 | fi | |
3363 | ||
3364 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3365 | ||
3366 | fi; | |
3367 | ||
3368 | eval "$ac_cv_use_expat" | |
3369 | if test "$no_cache" != 1; then | |
3370 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3371 | fi | |
3372 | ||
3373 | if test "$wxUSE_EXPAT" = yes; then | |
3374 | echo "$as_me:$LINENO: result: yes" >&5 | |
3375 | echo "${ECHO_T}yes" >&6 | |
3376 | elif test "$wxUSE_EXPAT" = no; then | |
3377 | echo "$as_me:$LINENO: result: no" >&5 | |
3378 | echo "${ECHO_T}no" >&6 | |
3379 | elif test "$wxUSE_EXPAT" = sys; then | |
3380 | echo "$as_me:$LINENO: result: system version" >&5 | |
3381 | echo "${ECHO_T}system version" >&6 | |
3382 | elif test "$wxUSE_EXPAT" = builtin; then | |
3383 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3384 | echo "${ECHO_T}builtin version" >&6 | |
3385 | else | |
3386 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3387 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3388 | { (exit 1); exit 1; }; } | |
3389 | fi | |
3390 | ||
3391 | ||
3392 | ||
3393 | ||
3394 | enablestring= | |
3395 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3396 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3397 | no_cache=0 | |
3398 | # Check whether --enable-shared or --disable-shared was given. | |
3399 | if test "${enable_shared+set}" = set; then | |
3400 | enableval="$enable_shared" | |
3401 | ||
3402 | if test "$enableval" = yes; then | |
3403 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3404 | else | |
3405 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3406 | fi | |
3407 | ||
3408 | else | |
3409 | ||
3410 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3411 | if test "x$LINE" != x ; then | |
3412 | eval "DEFAULT_$LINE" | |
3413 | else | |
3414 | no_cache=1 | |
3415 | fi | |
3416 | ||
3417 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3418 | ||
3419 | fi; | |
3420 | ||
3421 | eval "$ac_cv_use_shared" | |
3422 | if test "$no_cache" != 1; then | |
3423 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3424 | fi | |
3425 | ||
3426 | if test "$wxUSE_SHARED" = yes; then | |
3427 | echo "$as_me:$LINENO: result: yes" >&5 | |
3428 | echo "${ECHO_T}yes" >&6 | |
3429 | else | |
3430 | echo "$as_me:$LINENO: result: no" >&5 | |
3431 | echo "${ECHO_T}no" >&6 | |
3432 | fi | |
3433 | ||
3434 | ||
3435 | enablestring= | |
3436 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3437 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3438 | no_cache=0 | |
3439 | # Check whether --enable-optimise or --disable-optimise was given. | |
3440 | if test "${enable_optimise+set}" = set; then | |
3441 | enableval="$enable_optimise" | |
3442 | ||
3443 | if test "$enableval" = yes; then | |
3444 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3445 | else | |
3446 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3447 | fi | |
3448 | ||
3449 | else | |
3450 | ||
3451 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3452 | if test "x$LINE" != x ; then | |
3453 | eval "DEFAULT_$LINE" | |
3454 | else | |
3455 | no_cache=1 | |
3456 | fi | |
3457 | ||
3458 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3459 | ||
3460 | fi; | |
3461 | ||
3462 | eval "$ac_cv_use_optimise" | |
3463 | if test "$no_cache" != 1; then | |
3464 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3465 | fi | |
3466 | ||
3467 | if test "$wxUSE_OPTIMISE" = yes; then | |
3468 | echo "$as_me:$LINENO: result: yes" >&5 | |
3469 | echo "${ECHO_T}yes" >&6 | |
3470 | else | |
3471 | echo "$as_me:$LINENO: result: no" >&5 | |
3472 | echo "${ECHO_T}no" >&6 | |
3473 | fi | |
3474 | ||
3475 | ||
3476 | enablestring= | |
3477 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3478 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3479 | no_cache=0 | |
3480 | # Check whether --enable-debug or --disable-debug was given. | |
3481 | if test "${enable_debug+set}" = set; then | |
3482 | enableval="$enable_debug" | |
3483 | ||
3484 | if test "$enableval" = yes; then | |
3485 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3486 | else | |
3487 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3488 | fi | |
3489 | ||
3490 | else | |
3491 | ||
3492 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3493 | if test "x$LINE" != x ; then | |
3494 | eval "DEFAULT_$LINE" | |
3495 | else | |
3496 | no_cache=1 | |
3497 | fi | |
3498 | ||
3499 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3500 | ||
3501 | fi; | |
3502 | ||
3503 | eval "$ac_cv_use_debug" | |
3504 | if test "$no_cache" != 1; then | |
3505 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3506 | fi | |
3507 | ||
3508 | if test "$wxUSE_DEBUG" = yes; then | |
3509 | echo "$as_me:$LINENO: result: yes" >&5 | |
3510 | echo "${ECHO_T}yes" >&6 | |
3511 | else | |
3512 | echo "$as_me:$LINENO: result: no" >&5 | |
3513 | echo "${ECHO_T}no" >&6 | |
3514 | fi | |
3515 | ||
3516 | ||
3517 | enablestring= | |
3518 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3519 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3520 | no_cache=0 | |
3521 | # Check whether --enable-stl or --disable-stl was given. | |
3522 | if test "${enable_stl+set}" = set; then | |
3523 | enableval="$enable_stl" | |
3524 | ||
3525 | if test "$enableval" = yes; then | |
3526 | ac_cv_use_stl='wxUSE_STL=yes' | |
3527 | else | |
3528 | ac_cv_use_stl='wxUSE_STL=no' | |
3529 | fi | |
3530 | ||
3531 | else | |
3532 | ||
3533 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3534 | if test "x$LINE" != x ; then | |
3535 | eval "DEFAULT_$LINE" | |
3536 | else | |
3537 | no_cache=1 | |
3538 | fi | |
3539 | ||
3540 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3541 | ||
3542 | fi; | |
3543 | ||
3544 | eval "$ac_cv_use_stl" | |
3545 | if test "$no_cache" != 1; then | |
3546 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3547 | fi | |
3548 | ||
3549 | if test "$wxUSE_STL" = yes; then | |
3550 | echo "$as_me:$LINENO: result: yes" >&5 | |
3551 | echo "${ECHO_T}yes" >&6 | |
3552 | else | |
3553 | echo "$as_me:$LINENO: result: no" >&5 | |
3554 | echo "${ECHO_T}no" >&6 | |
3555 | fi | |
3556 | ||
3557 | if test "$USE_OS2" = "1"; then | |
3558 | ||
3559 | enablestring= | |
3560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3561 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3562 | no_cache=0 | |
3563 | # Check whether --enable-omf or --disable-omf was given. | |
3564 | if test "${enable_omf+set}" = set; then | |
3565 | enableval="$enable_omf" | |
3566 | ||
3567 | if test "$enableval" = yes; then | |
3568 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3569 | else | |
3570 | ac_cv_use_omf='wxUSE_OMF=no' | |
3571 | fi | |
3572 | ||
3573 | else | |
3574 | ||
3575 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3576 | if test "x$LINE" != x ; then | |
3577 | eval "DEFAULT_$LINE" | |
3578 | else | |
3579 | no_cache=1 | |
3580 | fi | |
3581 | ||
3582 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3583 | ||
3584 | fi; | |
3585 | ||
3586 | eval "$ac_cv_use_omf" | |
3587 | if test "$no_cache" != 1; then | |
3588 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3589 | fi | |
3590 | ||
3591 | if test "$wxUSE_OMF" = yes; then | |
3592 | echo "$as_me:$LINENO: result: yes" >&5 | |
3593 | echo "${ECHO_T}yes" >&6 | |
3594 | else | |
3595 | echo "$as_me:$LINENO: result: no" >&5 | |
3596 | echo "${ECHO_T}no" >&6 | |
3597 | fi | |
3598 | ||
3599 | fi | |
3600 | ||
3601 | if test "$wxUSE_DEBUG" = "yes"; then | |
3602 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3603 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3604 | BUILD=debug | |
3605 | elif test "$wxUSE_DEBUG" = "no"; then | |
3606 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3607 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3608 | BUILD=release | |
3609 | fi | |
3610 | ||
3611 | ||
3612 | enablestring= | |
3613 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3614 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3615 | no_cache=0 | |
3616 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3617 | if test "${enable_debug_flag+set}" = set; then | |
3618 | enableval="$enable_debug_flag" | |
3619 | ||
3620 | if test "$enableval" = yes; then | |
3621 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3622 | else | |
3623 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3624 | fi | |
3625 | ||
3626 | else | |
3627 | ||
3628 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3629 | if test "x$LINE" != x ; then | |
3630 | eval "DEFAULT_$LINE" | |
3631 | else | |
3632 | no_cache=1 | |
3633 | fi | |
3634 | ||
3635 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3636 | ||
3637 | fi; | |
3638 | ||
3639 | eval "$ac_cv_use_debug_flag" | |
3640 | if test "$no_cache" != 1; then | |
3641 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3642 | fi | |
3643 | ||
3644 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3645 | echo "$as_me:$LINENO: result: yes" >&5 | |
3646 | echo "${ECHO_T}yes" >&6 | |
3647 | else | |
3648 | echo "$as_me:$LINENO: result: no" >&5 | |
3649 | echo "${ECHO_T}no" >&6 | |
3650 | fi | |
3651 | ||
3652 | ||
3653 | enablestring= | |
3654 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3655 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3656 | no_cache=0 | |
3657 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3658 | if test "${enable_debug_info+set}" = set; then | |
3659 | enableval="$enable_debug_info" | |
3660 | ||
3661 | if test "$enableval" = yes; then | |
3662 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3663 | else | |
3664 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3665 | fi | |
3666 | ||
3667 | else | |
3668 | ||
3669 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3670 | if test "x$LINE" != x ; then | |
3671 | eval "DEFAULT_$LINE" | |
3672 | else | |
3673 | no_cache=1 | |
3674 | fi | |
3675 | ||
3676 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3677 | ||
3678 | fi; | |
3679 | ||
3680 | eval "$ac_cv_use_debug_info" | |
3681 | if test "$no_cache" != 1; then | |
3682 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3683 | fi | |
3684 | ||
3685 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3686 | echo "$as_me:$LINENO: result: yes" >&5 | |
3687 | echo "${ECHO_T}yes" >&6 | |
3688 | else | |
3689 | echo "$as_me:$LINENO: result: no" >&5 | |
3690 | echo "${ECHO_T}no" >&6 | |
3691 | fi | |
3692 | ||
3693 | ||
3694 | enablestring= | |
3695 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3696 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3697 | no_cache=0 | |
3698 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3699 | if test "${enable_debug_gdb+set}" = set; then | |
3700 | enableval="$enable_debug_gdb" | |
3701 | ||
3702 | if test "$enableval" = yes; then | |
3703 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3704 | else | |
3705 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3706 | fi | |
3707 | ||
3708 | else | |
3709 | ||
3710 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3711 | if test "x$LINE" != x ; then | |
3712 | eval "DEFAULT_$LINE" | |
3713 | else | |
3714 | no_cache=1 | |
3715 | fi | |
3716 | ||
3717 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3718 | ||
3719 | fi; | |
3720 | ||
3721 | eval "$ac_cv_use_debug_gdb" | |
3722 | if test "$no_cache" != 1; then | |
3723 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3724 | fi | |
3725 | ||
3726 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3727 | echo "$as_me:$LINENO: result: yes" >&5 | |
3728 | echo "${ECHO_T}yes" >&6 | |
3729 | else | |
3730 | echo "$as_me:$LINENO: result: no" >&5 | |
3731 | echo "${ECHO_T}no" >&6 | |
3732 | fi | |
3733 | ||
3734 | ||
3735 | enablestring= | |
3736 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3737 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3738 | no_cache=0 | |
3739 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3740 | if test "${enable_debug_cntxt+set}" = set; then | |
3741 | enableval="$enable_debug_cntxt" | |
3742 | ||
3743 | if test "$enableval" = yes; then | |
3744 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3745 | else | |
3746 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3747 | fi | |
3748 | ||
3749 | else | |
3750 | ||
3751 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3752 | if test "x$LINE" != x ; then | |
3753 | eval "DEFAULT_$LINE" | |
3754 | else | |
3755 | no_cache=1 | |
3756 | fi | |
3757 | ||
3758 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3759 | ||
3760 | fi; | |
3761 | ||
3762 | eval "$ac_cv_use_debug_cntxt" | |
3763 | if test "$no_cache" != 1; then | |
3764 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3765 | fi | |
3766 | ||
3767 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3768 | echo "$as_me:$LINENO: result: yes" >&5 | |
3769 | echo "${ECHO_T}yes" >&6 | |
3770 | else | |
3771 | echo "$as_me:$LINENO: result: no" >&5 | |
3772 | echo "${ECHO_T}no" >&6 | |
3773 | fi | |
3774 | ||
3775 | ||
3776 | enablestring= | |
3777 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3778 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3779 | no_cache=0 | |
3780 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3781 | if test "${enable_mem_tracing+set}" = set; then | |
3782 | enableval="$enable_mem_tracing" | |
3783 | ||
3784 | if test "$enableval" = yes; then | |
3785 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3786 | else | |
3787 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3788 | fi | |
3789 | ||
3790 | else | |
3791 | ||
3792 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3793 | if test "x$LINE" != x ; then | |
3794 | eval "DEFAULT_$LINE" | |
3795 | else | |
3796 | no_cache=1 | |
3797 | fi | |
3798 | ||
3799 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3800 | ||
3801 | fi; | |
3802 | ||
3803 | eval "$ac_cv_use_mem_tracing" | |
3804 | if test "$no_cache" != 1; then | |
3805 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3806 | fi | |
3807 | ||
3808 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3809 | echo "$as_me:$LINENO: result: yes" >&5 | |
3810 | echo "${ECHO_T}yes" >&6 | |
3811 | else | |
3812 | echo "$as_me:$LINENO: result: no" >&5 | |
3813 | echo "${ECHO_T}no" >&6 | |
3814 | fi | |
3815 | ||
3816 | ||
3817 | enablestring= | |
3818 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3819 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3820 | no_cache=0 | |
3821 | # Check whether --enable-profile or --disable-profile was given. | |
3822 | if test "${enable_profile+set}" = set; then | |
3823 | enableval="$enable_profile" | |
3824 | ||
3825 | if test "$enableval" = yes; then | |
3826 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3827 | else | |
3828 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3829 | fi | |
3830 | ||
3831 | else | |
3832 | ||
3833 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3834 | if test "x$LINE" != x ; then | |
3835 | eval "DEFAULT_$LINE" | |
3836 | else | |
3837 | no_cache=1 | |
3838 | fi | |
3839 | ||
3840 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3841 | ||
3842 | fi; | |
3843 | ||
3844 | eval "$ac_cv_use_profile" | |
3845 | if test "$no_cache" != 1; then | |
3846 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3847 | fi | |
3848 | ||
3849 | if test "$wxUSE_PROFILE" = yes; then | |
3850 | echo "$as_me:$LINENO: result: yes" >&5 | |
3851 | echo "${ECHO_T}yes" >&6 | |
3852 | else | |
3853 | echo "$as_me:$LINENO: result: no" >&5 | |
3854 | echo "${ECHO_T}no" >&6 | |
3855 | fi | |
3856 | ||
3857 | ||
3858 | enablestring= | |
3859 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3860 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3861 | no_cache=0 | |
3862 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3863 | if test "${enable_no_rtti+set}" = set; then | |
3864 | enableval="$enable_no_rtti" | |
3865 | ||
3866 | if test "$enableval" = yes; then | |
3867 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3868 | else | |
3869 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3870 | fi | |
3871 | ||
3872 | else | |
3873 | ||
3874 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3875 | if test "x$LINE" != x ; then | |
3876 | eval "DEFAULT_$LINE" | |
3877 | else | |
3878 | no_cache=1 | |
3879 | fi | |
3880 | ||
3881 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3882 | ||
3883 | fi; | |
3884 | ||
3885 | eval "$ac_cv_use_no_rtti" | |
3886 | if test "$no_cache" != 1; then | |
3887 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3888 | fi | |
3889 | ||
3890 | if test "$wxUSE_NO_RTTI" = yes; then | |
3891 | echo "$as_me:$LINENO: result: yes" >&5 | |
3892 | echo "${ECHO_T}yes" >&6 | |
3893 | else | |
3894 | echo "$as_me:$LINENO: result: no" >&5 | |
3895 | echo "${ECHO_T}no" >&6 | |
3896 | fi | |
3897 | ||
3898 | ||
3899 | enablestring= | |
3900 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3901 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3902 | no_cache=0 | |
3903 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3904 | if test "${enable_no_exceptions+set}" = set; then | |
3905 | enableval="$enable_no_exceptions" | |
3906 | ||
3907 | if test "$enableval" = yes; then | |
3908 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3909 | else | |
3910 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3911 | fi | |
3912 | ||
3913 | else | |
3914 | ||
3915 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3916 | if test "x$LINE" != x ; then | |
3917 | eval "DEFAULT_$LINE" | |
3918 | else | |
3919 | no_cache=1 | |
3920 | fi | |
3921 | ||
3922 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3923 | ||
3924 | fi; | |
3925 | ||
3926 | eval "$ac_cv_use_no_exceptions" | |
3927 | if test "$no_cache" != 1; then | |
3928 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3929 | fi | |
3930 | ||
3931 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3932 | echo "$as_me:$LINENO: result: yes" >&5 | |
3933 | echo "${ECHO_T}yes" >&6 | |
3934 | else | |
3935 | echo "$as_me:$LINENO: result: no" >&5 | |
3936 | echo "${ECHO_T}no" >&6 | |
3937 | fi | |
3938 | ||
3939 | ||
3940 | enablestring= | |
3941 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3942 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3943 | no_cache=0 | |
3944 | # Check whether --enable-permissive or --disable-permissive was given. | |
3945 | if test "${enable_permissive+set}" = set; then | |
3946 | enableval="$enable_permissive" | |
3947 | ||
3948 | if test "$enableval" = yes; then | |
3949 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3950 | else | |
3951 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3952 | fi | |
3953 | ||
3954 | else | |
3955 | ||
3956 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3957 | if test "x$LINE" != x ; then | |
3958 | eval "DEFAULT_$LINE" | |
3959 | else | |
3960 | no_cache=1 | |
3961 | fi | |
3962 | ||
3963 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3964 | ||
3965 | fi; | |
3966 | ||
3967 | eval "$ac_cv_use_permissive" | |
3968 | if test "$no_cache" != 1; then | |
3969 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3970 | fi | |
3971 | ||
3972 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3973 | echo "$as_me:$LINENO: result: yes" >&5 | |
3974 | echo "${ECHO_T}yes" >&6 | |
3975 | else | |
3976 | echo "$as_me:$LINENO: result: no" >&5 | |
3977 | echo "${ECHO_T}no" >&6 | |
3978 | fi | |
3979 | ||
3980 | ||
3981 | enablestring= | |
3982 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3983 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3984 | no_cache=0 | |
3985 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3986 | if test "${enable_no_deps+set}" = set; then | |
3987 | enableval="$enable_no_deps" | |
3988 | ||
3989 | if test "$enableval" = yes; then | |
3990 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3991 | else | |
3992 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3993 | fi | |
3994 | ||
3995 | else | |
3996 | ||
3997 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
3998 | if test "x$LINE" != x ; then | |
3999 | eval "DEFAULT_$LINE" | |
4000 | else | |
4001 | no_cache=1 | |
4002 | fi | |
4003 | ||
4004 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4005 | ||
4006 | fi; | |
4007 | ||
4008 | eval "$ac_cv_use_no_deps" | |
4009 | if test "$no_cache" != 1; then | |
4010 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4011 | fi | |
4012 | ||
4013 | if test "$wxUSE_NO_DEPS" = yes; then | |
4014 | echo "$as_me:$LINENO: result: yes" >&5 | |
4015 | echo "${ECHO_T}yes" >&6 | |
4016 | else | |
4017 | echo "$as_me:$LINENO: result: no" >&5 | |
4018 | echo "${ECHO_T}no" >&6 | |
4019 | fi | |
4020 | ||
4021 | ||
4022 | ||
4023 | enablestring= | |
4024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4025 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4026 | no_cache=0 | |
4027 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4028 | if test "${enable_compat22+set}" = set; then | |
4029 | enableval="$enable_compat22" | |
4030 | ||
4031 | if test "$enableval" = yes; then | |
4032 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4033 | else | |
4034 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4035 | fi | |
4036 | ||
4037 | else | |
4038 | ||
4039 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4040 | if test "x$LINE" != x ; then | |
4041 | eval "DEFAULT_$LINE" | |
4042 | else | |
4043 | no_cache=1 | |
4044 | fi | |
4045 | ||
4046 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4047 | ||
4048 | fi; | |
4049 | ||
4050 | eval "$ac_cv_use_compat22" | |
4051 | if test "$no_cache" != 1; then | |
4052 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4053 | fi | |
4054 | ||
4055 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4056 | echo "$as_me:$LINENO: result: yes" >&5 | |
4057 | echo "${ECHO_T}yes" >&6 | |
4058 | else | |
4059 | echo "$as_me:$LINENO: result: no" >&5 | |
4060 | echo "${ECHO_T}no" >&6 | |
4061 | fi | |
4062 | ||
4063 | ||
4064 | enablestring=disable | |
4065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4066 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4067 | no_cache=0 | |
4068 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4069 | if test "${enable_compat24+set}" = set; then | |
4070 | enableval="$enable_compat24" | |
4071 | ||
4072 | if test "$enableval" = yes; then | |
4073 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4074 | else | |
4075 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4076 | fi | |
4077 | ||
4078 | else | |
4079 | ||
4080 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4081 | if test "x$LINE" != x ; then | |
4082 | eval "DEFAULT_$LINE" | |
4083 | else | |
4084 | no_cache=1 | |
4085 | fi | |
4086 | ||
4087 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4088 | ||
4089 | fi; | |
4090 | ||
4091 | eval "$ac_cv_use_compat24" | |
4092 | if test "$no_cache" != 1; then | |
4093 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4094 | fi | |
4095 | ||
4096 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4097 | echo "$as_me:$LINENO: result: yes" >&5 | |
4098 | echo "${ECHO_T}yes" >&6 | |
4099 | else | |
4100 | echo "$as_me:$LINENO: result: no" >&5 | |
4101 | echo "${ECHO_T}no" >&6 | |
4102 | fi | |
4103 | ||
4104 | ||
4105 | # Check whether --enable-rpath or --disable-rpath was given. | |
4106 | if test "${enable_rpath+set}" = set; then | |
4107 | enableval="$enable_rpath" | |
4108 | wxRPATH_DIR="$enableval" | |
4109 | fi; | |
4110 | ||
ac1cb8d3 | 4111 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then |
a848cd7e SC |
4112 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" |
4113 | fi | |
4114 | ||
4115 | ||
4116 | ||
4117 | ||
4118 | enablestring= | |
4119 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4120 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4121 | no_cache=0 | |
4122 | # Check whether --enable-intl or --disable-intl was given. | |
4123 | if test "${enable_intl+set}" = set; then | |
4124 | enableval="$enable_intl" | |
4125 | ||
4126 | if test "$enableval" = yes; then | |
4127 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4128 | else | |
4129 | ac_cv_use_intl='wxUSE_INTL=no' | |
4130 | fi | |
4131 | ||
4132 | else | |
4133 | ||
4134 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4135 | if test "x$LINE" != x ; then | |
4136 | eval "DEFAULT_$LINE" | |
4137 | else | |
4138 | no_cache=1 | |
4139 | fi | |
4140 | ||
4141 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4142 | ||
4143 | fi; | |
4144 | ||
4145 | eval "$ac_cv_use_intl" | |
4146 | if test "$no_cache" != 1; then | |
4147 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4148 | fi | |
4149 | ||
4150 | if test "$wxUSE_INTL" = yes; then | |
4151 | echo "$as_me:$LINENO: result: yes" >&5 | |
4152 | echo "${ECHO_T}yes" >&6 | |
4153 | else | |
4154 | echo "$as_me:$LINENO: result: no" >&5 | |
4155 | echo "${ECHO_T}no" >&6 | |
4156 | fi | |
4157 | ||
4158 | ||
4159 | enablestring= | |
4160 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4161 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4162 | no_cache=0 | |
4163 | # Check whether --enable-config or --disable-config was given. | |
4164 | if test "${enable_config+set}" = set; then | |
4165 | enableval="$enable_config" | |
4166 | ||
4167 | if test "$enableval" = yes; then | |
4168 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4169 | else | |
4170 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4171 | fi | |
4172 | ||
4173 | else | |
4174 | ||
4175 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4176 | if test "x$LINE" != x ; then | |
4177 | eval "DEFAULT_$LINE" | |
4178 | else | |
4179 | no_cache=1 | |
4180 | fi | |
4181 | ||
4182 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4183 | ||
4184 | fi; | |
4185 | ||
4186 | eval "$ac_cv_use_config" | |
4187 | if test "$no_cache" != 1; then | |
4188 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4189 | fi | |
4190 | ||
4191 | if test "$wxUSE_CONFIG" = yes; then | |
4192 | echo "$as_me:$LINENO: result: yes" >&5 | |
4193 | echo "${ECHO_T}yes" >&6 | |
4194 | else | |
4195 | echo "$as_me:$LINENO: result: no" >&5 | |
4196 | echo "${ECHO_T}no" >&6 | |
4197 | fi | |
4198 | ||
4199 | ||
4200 | ||
4201 | enablestring= | |
4202 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4203 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4204 | no_cache=0 | |
4205 | # Check whether --enable-protocols or --disable-protocols was given. | |
4206 | if test "${enable_protocols+set}" = set; then | |
4207 | enableval="$enable_protocols" | |
4208 | ||
4209 | if test "$enableval" = yes; then | |
4210 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4211 | else | |
4212 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4213 | fi | |
4214 | ||
4215 | else | |
4216 | ||
4217 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4218 | if test "x$LINE" != x ; then | |
4219 | eval "DEFAULT_$LINE" | |
4220 | else | |
4221 | no_cache=1 | |
4222 | fi | |
4223 | ||
4224 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4225 | ||
4226 | fi; | |
4227 | ||
4228 | eval "$ac_cv_use_protocols" | |
4229 | if test "$no_cache" != 1; then | |
4230 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4231 | fi | |
4232 | ||
4233 | if test "$wxUSE_PROTOCOL" = yes; then | |
4234 | echo "$as_me:$LINENO: result: yes" >&5 | |
4235 | echo "${ECHO_T}yes" >&6 | |
4236 | else | |
4237 | echo "$as_me:$LINENO: result: no" >&5 | |
4238 | echo "${ECHO_T}no" >&6 | |
4239 | fi | |
4240 | ||
4241 | ||
4242 | enablestring= | |
4243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4244 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4245 | no_cache=0 | |
4246 | # Check whether --enable-ftp or --disable-ftp was given. | |
4247 | if test "${enable_ftp+set}" = set; then | |
4248 | enableval="$enable_ftp" | |
4249 | ||
4250 | if test "$enableval" = yes; then | |
4251 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4252 | else | |
4253 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4254 | fi | |
4255 | ||
4256 | else | |
4257 | ||
4258 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4259 | if test "x$LINE" != x ; then | |
4260 | eval "DEFAULT_$LINE" | |
4261 | else | |
4262 | no_cache=1 | |
4263 | fi | |
4264 | ||
4265 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4266 | ||
4267 | fi; | |
4268 | ||
4269 | eval "$ac_cv_use_ftp" | |
4270 | if test "$no_cache" != 1; then | |
4271 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4272 | fi | |
4273 | ||
4274 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4275 | echo "$as_me:$LINENO: result: yes" >&5 | |
4276 | echo "${ECHO_T}yes" >&6 | |
4277 | else | |
4278 | echo "$as_me:$LINENO: result: no" >&5 | |
4279 | echo "${ECHO_T}no" >&6 | |
4280 | fi | |
4281 | ||
4282 | ||
4283 | enablestring= | |
4284 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4285 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4286 | no_cache=0 | |
4287 | # Check whether --enable-http or --disable-http was given. | |
4288 | if test "${enable_http+set}" = set; then | |
4289 | enableval="$enable_http" | |
4290 | ||
4291 | if test "$enableval" = yes; then | |
4292 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4293 | else | |
4294 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4295 | fi | |
4296 | ||
4297 | else | |
4298 | ||
4299 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4300 | if test "x$LINE" != x ; then | |
4301 | eval "DEFAULT_$LINE" | |
4302 | else | |
4303 | no_cache=1 | |
4304 | fi | |
4305 | ||
4306 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4307 | ||
4308 | fi; | |
4309 | ||
4310 | eval "$ac_cv_use_http" | |
4311 | if test "$no_cache" != 1; then | |
4312 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4313 | fi | |
4314 | ||
4315 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4316 | echo "$as_me:$LINENO: result: yes" >&5 | |
4317 | echo "${ECHO_T}yes" >&6 | |
4318 | else | |
4319 | echo "$as_me:$LINENO: result: no" >&5 | |
4320 | echo "${ECHO_T}no" >&6 | |
4321 | fi | |
4322 | ||
4323 | ||
4324 | enablestring= | |
4325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4326 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4327 | no_cache=0 | |
4328 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4329 | if test "${enable_fileproto+set}" = set; then | |
4330 | enableval="$enable_fileproto" | |
4331 | ||
4332 | if test "$enableval" = yes; then | |
4333 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4334 | else | |
4335 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4336 | fi | |
4337 | ||
4338 | else | |
4339 | ||
4340 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4341 | if test "x$LINE" != x ; then | |
4342 | eval "DEFAULT_$LINE" | |
4343 | else | |
4344 | no_cache=1 | |
4345 | fi | |
4346 | ||
4347 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4348 | ||
4349 | fi; | |
4350 | ||
4351 | eval "$ac_cv_use_fileproto" | |
4352 | if test "$no_cache" != 1; then | |
4353 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4354 | fi | |
4355 | ||
4356 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4357 | echo "$as_me:$LINENO: result: yes" >&5 | |
4358 | echo "${ECHO_T}yes" >&6 | |
4359 | else | |
4360 | echo "$as_me:$LINENO: result: no" >&5 | |
4361 | echo "${ECHO_T}no" >&6 | |
4362 | fi | |
4363 | ||
4364 | ||
4365 | enablestring= | |
4366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4367 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4368 | no_cache=0 | |
4369 | # Check whether --enable-sockets or --disable-sockets was given. | |
4370 | if test "${enable_sockets+set}" = set; then | |
4371 | enableval="$enable_sockets" | |
4372 | ||
4373 | if test "$enableval" = yes; then | |
4374 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4375 | else | |
4376 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4377 | fi | |
4378 | ||
4379 | else | |
4380 | ||
4381 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4382 | if test "x$LINE" != x ; then | |
4383 | eval "DEFAULT_$LINE" | |
4384 | else | |
4385 | no_cache=1 | |
4386 | fi | |
4387 | ||
4388 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4389 | ||
4390 | fi; | |
4391 | ||
4392 | eval "$ac_cv_use_sockets" | |
4393 | if test "$no_cache" != 1; then | |
4394 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4395 | fi | |
4396 | ||
4397 | if test "$wxUSE_SOCKETS" = yes; then | |
4398 | echo "$as_me:$LINENO: result: yes" >&5 | |
4399 | echo "${ECHO_T}yes" >&6 | |
4400 | else | |
4401 | echo "$as_me:$LINENO: result: no" >&5 | |
4402 | echo "${ECHO_T}no" >&6 | |
4403 | fi | |
4404 | ||
4405 | ||
4406 | enablestring= | |
4407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4408 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4409 | no_cache=0 | |
4410 | # Check whether --enable-ole or --disable-ole was given. | |
4411 | if test "${enable_ole+set}" = set; then | |
4412 | enableval="$enable_ole" | |
4413 | ||
4414 | if test "$enableval" = yes; then | |
4415 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4416 | else | |
4417 | ac_cv_use_ole='wxUSE_OLE=no' | |
4418 | fi | |
4419 | ||
4420 | else | |
4421 | ||
4422 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4423 | if test "x$LINE" != x ; then | |
4424 | eval "DEFAULT_$LINE" | |
4425 | else | |
4426 | no_cache=1 | |
4427 | fi | |
4428 | ||
4429 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4430 | ||
4431 | fi; | |
4432 | ||
4433 | eval "$ac_cv_use_ole" | |
4434 | if test "$no_cache" != 1; then | |
4435 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4436 | fi | |
4437 | ||
4438 | if test "$wxUSE_OLE" = yes; then | |
4439 | echo "$as_me:$LINENO: result: yes" >&5 | |
4440 | echo "${ECHO_T}yes" >&6 | |
4441 | else | |
4442 | echo "$as_me:$LINENO: result: no" >&5 | |
4443 | echo "${ECHO_T}no" >&6 | |
4444 | fi | |
4445 | ||
4446 | ||
4447 | enablestring= | |
4448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4449 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4450 | no_cache=0 | |
4451 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4452 | if test "${enable_dataobj+set}" = set; then | |
4453 | enableval="$enable_dataobj" | |
4454 | ||
4455 | if test "$enableval" = yes; then | |
4456 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4457 | else | |
4458 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4459 | fi | |
4460 | ||
4461 | else | |
4462 | ||
4463 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4464 | if test "x$LINE" != x ; then | |
4465 | eval "DEFAULT_$LINE" | |
4466 | else | |
4467 | no_cache=1 | |
4468 | fi | |
4469 | ||
4470 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4471 | ||
4472 | fi; | |
4473 | ||
4474 | eval "$ac_cv_use_dataobj" | |
4475 | if test "$no_cache" != 1; then | |
4476 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4477 | fi | |
4478 | ||
4479 | if test "$wxUSE_DATAOBJ" = yes; then | |
4480 | echo "$as_me:$LINENO: result: yes" >&5 | |
4481 | echo "${ECHO_T}yes" >&6 | |
4482 | else | |
4483 | echo "$as_me:$LINENO: result: no" >&5 | |
4484 | echo "${ECHO_T}no" >&6 | |
4485 | fi | |
4486 | ||
4487 | ||
4488 | ||
4489 | enablestring= | |
4490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4491 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4492 | no_cache=0 | |
4493 | # Check whether --enable-ipc or --disable-ipc was given. | |
4494 | if test "${enable_ipc+set}" = set; then | |
4495 | enableval="$enable_ipc" | |
4496 | ||
4497 | if test "$enableval" = yes; then | |
4498 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4499 | else | |
4500 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4501 | fi | |
4502 | ||
4503 | else | |
4504 | ||
4505 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4506 | if test "x$LINE" != x ; then | |
4507 | eval "DEFAULT_$LINE" | |
4508 | else | |
4509 | no_cache=1 | |
4510 | fi | |
4511 | ||
4512 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4513 | ||
4514 | fi; | |
4515 | ||
4516 | eval "$ac_cv_use_ipc" | |
4517 | if test "$no_cache" != 1; then | |
4518 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4519 | fi | |
4520 | ||
4521 | if test "$wxUSE_IPC" = yes; then | |
4522 | echo "$as_me:$LINENO: result: yes" >&5 | |
4523 | echo "${ECHO_T}yes" >&6 | |
4524 | else | |
4525 | echo "$as_me:$LINENO: result: no" >&5 | |
4526 | echo "${ECHO_T}no" >&6 | |
4527 | fi | |
4528 | ||
4529 | ||
4530 | ||
4531 | enablestring= | |
4532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4533 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4534 | no_cache=0 | |
4535 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4536 | if test "${enable_apple_ieee+set}" = set; then | |
4537 | enableval="$enable_apple_ieee" | |
4538 | ||
4539 | if test "$enableval" = yes; then | |
4540 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4541 | else | |
4542 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4543 | fi | |
4544 | ||
4545 | else | |
4546 | ||
4547 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4548 | if test "x$LINE" != x ; then | |
4549 | eval "DEFAULT_$LINE" | |
4550 | else | |
4551 | no_cache=1 | |
4552 | fi | |
4553 | ||
4554 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4555 | ||
4556 | fi; | |
4557 | ||
4558 | eval "$ac_cv_use_apple_ieee" | |
4559 | if test "$no_cache" != 1; then | |
4560 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4561 | fi | |
4562 | ||
4563 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4564 | echo "$as_me:$LINENO: result: yes" >&5 | |
4565 | echo "${ECHO_T}yes" >&6 | |
4566 | else | |
4567 | echo "$as_me:$LINENO: result: no" >&5 | |
4568 | echo "${ECHO_T}no" >&6 | |
4569 | fi | |
4570 | ||
4571 | ||
4572 | enablestring= | |
4573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4574 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4575 | no_cache=0 | |
4576 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4577 | if test "${enable_catch_segvs+set}" = set; then | |
4578 | enableval="$enable_catch_segvs" | |
4579 | ||
4580 | if test "$enableval" = yes; then | |
4581 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4582 | else | |
4583 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4584 | fi | |
4585 | ||
4586 | else | |
4587 | ||
4588 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4589 | if test "x$LINE" != x ; then | |
4590 | eval "DEFAULT_$LINE" | |
4591 | else | |
4592 | no_cache=1 | |
4593 | fi | |
4594 | ||
4595 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4596 | ||
4597 | fi; | |
4598 | ||
4599 | eval "$ac_cv_use_catch_segvs" | |
4600 | if test "$no_cache" != 1; then | |
4601 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4602 | fi | |
4603 | ||
4604 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4605 | echo "$as_me:$LINENO: result: yes" >&5 | |
4606 | echo "${ECHO_T}yes" >&6 | |
4607 | else | |
4608 | echo "$as_me:$LINENO: result: no" >&5 | |
4609 | echo "${ECHO_T}no" >&6 | |
4610 | fi | |
4611 | ||
4612 | ||
4613 | enablestring= | |
4614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4615 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4616 | no_cache=0 | |
4617 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4618 | if test "${enable_cmdline+set}" = set; then | |
4619 | enableval="$enable_cmdline" | |
4620 | ||
4621 | if test "$enableval" = yes; then | |
4622 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4623 | else | |
4624 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4625 | fi | |
4626 | ||
4627 | else | |
4628 | ||
4629 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4630 | if test "x$LINE" != x ; then | |
4631 | eval "DEFAULT_$LINE" | |
4632 | else | |
4633 | no_cache=1 | |
4634 | fi | |
4635 | ||
4636 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4637 | ||
4638 | fi; | |
4639 | ||
4640 | eval "$ac_cv_use_cmdline" | |
4641 | if test "$no_cache" != 1; then | |
4642 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4643 | fi | |
4644 | ||
4645 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4646 | echo "$as_me:$LINENO: result: yes" >&5 | |
4647 | echo "${ECHO_T}yes" >&6 | |
4648 | else | |
4649 | echo "$as_me:$LINENO: result: no" >&5 | |
4650 | echo "${ECHO_T}no" >&6 | |
4651 | fi | |
4652 | ||
4653 | ||
4654 | enablestring= | |
4655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4656 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4657 | no_cache=0 | |
4658 | # Check whether --enable-datetime or --disable-datetime was given. | |
4659 | if test "${enable_datetime+set}" = set; then | |
4660 | enableval="$enable_datetime" | |
4661 | ||
4662 | if test "$enableval" = yes; then | |
4663 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4664 | else | |
4665 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4666 | fi | |
4667 | ||
4668 | else | |
4669 | ||
4670 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4671 | if test "x$LINE" != x ; then | |
4672 | eval "DEFAULT_$LINE" | |
4673 | else | |
4674 | no_cache=1 | |
4675 | fi | |
4676 | ||
4677 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4678 | ||
4679 | fi; | |
4680 | ||
4681 | eval "$ac_cv_use_datetime" | |
4682 | if test "$no_cache" != 1; then | |
4683 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4684 | fi | |
4685 | ||
4686 | if test "$wxUSE_DATETIME" = yes; then | |
4687 | echo "$as_me:$LINENO: result: yes" >&5 | |
4688 | echo "${ECHO_T}yes" >&6 | |
4689 | else | |
4690 | echo "$as_me:$LINENO: result: no" >&5 | |
4691 | echo "${ECHO_T}no" >&6 | |
4692 | fi | |
4693 | ||
4694 | ||
4695 | enablestring= | |
4696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4697 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4698 | no_cache=0 | |
4699 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4700 | if test "${enable_dialupman+set}" = set; then | |
4701 | enableval="$enable_dialupman" | |
4702 | ||
4703 | if test "$enableval" = yes; then | |
4704 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4705 | else | |
4706 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4707 | fi | |
4708 | ||
4709 | else | |
4710 | ||
4711 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4712 | if test "x$LINE" != x ; then | |
4713 | eval "DEFAULT_$LINE" | |
4714 | else | |
4715 | no_cache=1 | |
4716 | fi | |
4717 | ||
4718 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4719 | ||
4720 | fi; | |
4721 | ||
4722 | eval "$ac_cv_use_dialupman" | |
4723 | if test "$no_cache" != 1; then | |
4724 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4725 | fi | |
4726 | ||
4727 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4728 | echo "$as_me:$LINENO: result: yes" >&5 | |
4729 | echo "${ECHO_T}yes" >&6 | |
4730 | else | |
4731 | echo "$as_me:$LINENO: result: no" >&5 | |
4732 | echo "${ECHO_T}no" >&6 | |
4733 | fi | |
4734 | ||
4735 | ||
4736 | enablestring= | |
4737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4738 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4739 | no_cache=0 | |
4740 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4741 | if test "${enable_dynlib+set}" = set; then | |
4742 | enableval="$enable_dynlib" | |
4743 | ||
4744 | if test "$enableval" = yes; then | |
4745 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4746 | else | |
4747 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4748 | fi | |
4749 | ||
4750 | else | |
4751 | ||
4752 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4753 | if test "x$LINE" != x ; then | |
4754 | eval "DEFAULT_$LINE" | |
4755 | else | |
4756 | no_cache=1 | |
4757 | fi | |
4758 | ||
4759 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4760 | ||
4761 | fi; | |
4762 | ||
4763 | eval "$ac_cv_use_dynlib" | |
4764 | if test "$no_cache" != 1; then | |
4765 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4766 | fi | |
4767 | ||
4768 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4769 | echo "$as_me:$LINENO: result: yes" >&5 | |
4770 | echo "${ECHO_T}yes" >&6 | |
4771 | else | |
4772 | echo "$as_me:$LINENO: result: no" >&5 | |
4773 | echo "${ECHO_T}no" >&6 | |
4774 | fi | |
4775 | ||
4776 | ||
4777 | enablestring= | |
4778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4779 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4780 | no_cache=0 | |
4781 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4782 | if test "${enable_dynamicloader+set}" = set; then | |
4783 | enableval="$enable_dynamicloader" | |
4784 | ||
4785 | if test "$enableval" = yes; then | |
4786 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4787 | else | |
4788 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4789 | fi | |
4790 | ||
4791 | else | |
4792 | ||
4793 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4794 | if test "x$LINE" != x ; then | |
4795 | eval "DEFAULT_$LINE" | |
4796 | else | |
4797 | no_cache=1 | |
4798 | fi | |
4799 | ||
4800 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4801 | ||
4802 | fi; | |
4803 | ||
4804 | eval "$ac_cv_use_dynamicloader" | |
4805 | if test "$no_cache" != 1; then | |
4806 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4807 | fi | |
4808 | ||
4809 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4810 | echo "$as_me:$LINENO: result: yes" >&5 | |
4811 | echo "${ECHO_T}yes" >&6 | |
4812 | else | |
4813 | echo "$as_me:$LINENO: result: no" >&5 | |
4814 | echo "${ECHO_T}no" >&6 | |
4815 | fi | |
4816 | ||
4817 | ||
4818 | enablestring= | |
4819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4820 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4821 | no_cache=0 | |
4822 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4823 | if test "${enable_exceptions+set}" = set; then | |
4824 | enableval="$enable_exceptions" | |
4825 | ||
4826 | if test "$enableval" = yes; then | |
4827 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4828 | else | |
4829 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4830 | fi | |
4831 | ||
4832 | else | |
4833 | ||
4834 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4842 | ||
4843 | fi; | |
4844 | ||
4845 | eval "$ac_cv_use_exceptions" | |
4846 | if test "$no_cache" != 1; then | |
4847 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4848 | fi | |
4849 | ||
4850 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4851 | echo "$as_me:$LINENO: result: yes" >&5 | |
4852 | echo "${ECHO_T}yes" >&6 | |
4853 | else | |
4854 | echo "$as_me:$LINENO: result: no" >&5 | |
4855 | echo "${ECHO_T}no" >&6 | |
4856 | fi | |
4857 | ||
4858 | ||
4859 | enablestring= | |
4860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4861 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4862 | no_cache=0 | |
4863 | # Check whether --enable-ffile or --disable-ffile was given. | |
4864 | if test "${enable_ffile+set}" = set; then | |
4865 | enableval="$enable_ffile" | |
4866 | ||
4867 | if test "$enableval" = yes; then | |
4868 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4869 | else | |
4870 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4871 | fi | |
4872 | ||
4873 | else | |
4874 | ||
4875 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4876 | if test "x$LINE" != x ; then | |
4877 | eval "DEFAULT_$LINE" | |
4878 | else | |
4879 | no_cache=1 | |
4880 | fi | |
4881 | ||
4882 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4883 | ||
4884 | fi; | |
4885 | ||
4886 | eval "$ac_cv_use_ffile" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_FFILE" = yes; then | |
4892 | echo "$as_me:$LINENO: result: yes" >&5 | |
4893 | echo "${ECHO_T}yes" >&6 | |
4894 | else | |
4895 | echo "$as_me:$LINENO: result: no" >&5 | |
4896 | echo "${ECHO_T}no" >&6 | |
4897 | fi | |
4898 | ||
4899 | ||
4900 | enablestring= | |
4901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4902 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4903 | no_cache=0 | |
4904 | # Check whether --enable-file or --disable-file was given. | |
4905 | if test "${enable_file+set}" = set; then | |
4906 | enableval="$enable_file" | |
4907 | ||
4908 | if test "$enableval" = yes; then | |
4909 | ac_cv_use_file='wxUSE_FILE=yes' | |
4910 | else | |
4911 | ac_cv_use_file='wxUSE_FILE=no' | |
4912 | fi | |
4913 | ||
4914 | else | |
4915 | ||
4916 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4917 | if test "x$LINE" != x ; then | |
4918 | eval "DEFAULT_$LINE" | |
4919 | else | |
4920 | no_cache=1 | |
4921 | fi | |
4922 | ||
4923 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4924 | ||
4925 | fi; | |
4926 | ||
4927 | eval "$ac_cv_use_file" | |
4928 | if test "$no_cache" != 1; then | |
4929 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4930 | fi | |
4931 | ||
4932 | if test "$wxUSE_FILE" = yes; then | |
4933 | echo "$as_me:$LINENO: result: yes" >&5 | |
4934 | echo "${ECHO_T}yes" >&6 | |
4935 | else | |
4936 | echo "$as_me:$LINENO: result: no" >&5 | |
4937 | echo "${ECHO_T}no" >&6 | |
4938 | fi | |
4939 | ||
4940 | ||
4941 | enablestring= | |
4942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
4943 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
4944 | no_cache=0 | |
4945 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4946 | if test "${enable_filesystem+set}" = set; then | |
4947 | enableval="$enable_filesystem" | |
4948 | ||
4949 | if test "$enableval" = yes; then | |
4950 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4951 | else | |
4952 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4953 | fi | |
4954 | ||
4955 | else | |
4956 | ||
4957 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4958 | if test "x$LINE" != x ; then | |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
4964 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4965 | ||
4966 | fi; | |
4967 | ||
4968 | eval "$ac_cv_use_filesystem" | |
4969 | if test "$no_cache" != 1; then | |
4970 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4971 | fi | |
4972 | ||
4973 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4974 | echo "$as_me:$LINENO: result: yes" >&5 | |
4975 | echo "${ECHO_T}yes" >&6 | |
4976 | else | |
4977 | echo "$as_me:$LINENO: result: no" >&5 | |
4978 | echo "${ECHO_T}no" >&6 | |
4979 | fi | |
4980 | ||
4981 | ||
4982 | enablestring= | |
4983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4984 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4985 | no_cache=0 | |
4986 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4987 | if test "${enable_fontmap+set}" = set; then | |
4988 | enableval="$enable_fontmap" | |
4989 | ||
4990 | if test "$enableval" = yes; then | |
4991 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4992 | else | |
4993 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4994 | fi | |
4995 | ||
4996 | else | |
4997 | ||
4998 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4999 | if test "x$LINE" != x ; then | |
5000 | eval "DEFAULT_$LINE" | |
5001 | else | |
5002 | no_cache=1 | |
5003 | fi | |
5004 | ||
5005 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5006 | ||
5007 | fi; | |
5008 | ||
5009 | eval "$ac_cv_use_fontmap" | |
5010 | if test "$no_cache" != 1; then | |
5011 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5012 | fi | |
5013 | ||
5014 | if test "$wxUSE_FONTMAP" = yes; then | |
5015 | echo "$as_me:$LINENO: result: yes" >&5 | |
5016 | echo "${ECHO_T}yes" >&6 | |
5017 | else | |
5018 | echo "$as_me:$LINENO: result: no" >&5 | |
5019 | echo "${ECHO_T}no" >&6 | |
5020 | fi | |
5021 | ||
5022 | ||
5023 | enablestring= | |
5024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5025 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5026 | no_cache=0 | |
5027 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5028 | if test "${enable_fs_inet+set}" = set; then | |
5029 | enableval="$enable_fs_inet" | |
5030 | ||
5031 | if test "$enableval" = yes; then | |
5032 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5033 | else | |
5034 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5035 | fi | |
5036 | ||
5037 | else | |
5038 | ||
5039 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5040 | if test "x$LINE" != x ; then | |
5041 | eval "DEFAULT_$LINE" | |
5042 | else | |
5043 | no_cache=1 | |
5044 | fi | |
5045 | ||
5046 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5047 | ||
5048 | fi; | |
5049 | ||
5050 | eval "$ac_cv_use_fs_inet" | |
5051 | if test "$no_cache" != 1; then | |
5052 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5053 | fi | |
5054 | ||
5055 | if test "$wxUSE_FS_INET" = yes; then | |
5056 | echo "$as_me:$LINENO: result: yes" >&5 | |
5057 | echo "${ECHO_T}yes" >&6 | |
5058 | else | |
5059 | echo "$as_me:$LINENO: result: no" >&5 | |
5060 | echo "${ECHO_T}no" >&6 | |
5061 | fi | |
5062 | ||
5063 | ||
5064 | enablestring= | |
5065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5066 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5067 | no_cache=0 | |
5068 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5069 | if test "${enable_fs_zip+set}" = set; then | |
5070 | enableval="$enable_fs_zip" | |
5071 | ||
5072 | if test "$enableval" = yes; then | |
5073 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5074 | else | |
5075 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5076 | fi | |
5077 | ||
5078 | else | |
5079 | ||
5080 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5081 | if test "x$LINE" != x ; then | |
5082 | eval "DEFAULT_$LINE" | |
5083 | else | |
5084 | no_cache=1 | |
5085 | fi | |
5086 | ||
5087 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5088 | ||
5089 | fi; | |
5090 | ||
5091 | eval "$ac_cv_use_fs_zip" | |
5092 | if test "$no_cache" != 1; then | |
5093 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5094 | fi | |
5095 | ||
5096 | if test "$wxUSE_FS_ZIP" = yes; then | |
5097 | echo "$as_me:$LINENO: result: yes" >&5 | |
5098 | echo "${ECHO_T}yes" >&6 | |
5099 | else | |
5100 | echo "$as_me:$LINENO: result: no" >&5 | |
5101 | echo "${ECHO_T}no" >&6 | |
5102 | fi | |
5103 | ||
5104 | ||
5105 | enablestring= | |
5106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5107 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5108 | no_cache=0 | |
5109 | # Check whether --enable-geometry or --disable-geometry was given. | |
5110 | if test "${enable_geometry+set}" = set; then | |
5111 | enableval="$enable_geometry" | |
5112 | ||
5113 | if test "$enableval" = yes; then | |
5114 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5115 | else | |
5116 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5117 | fi | |
5118 | ||
5119 | else | |
5120 | ||
5121 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5122 | if test "x$LINE" != x ; then | |
5123 | eval "DEFAULT_$LINE" | |
5124 | else | |
5125 | no_cache=1 | |
5126 | fi | |
5127 | ||
5128 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5129 | ||
5130 | fi; | |
5131 | ||
5132 | eval "$ac_cv_use_geometry" | |
5133 | if test "$no_cache" != 1; then | |
5134 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5135 | fi | |
5136 | ||
5137 | if test "$wxUSE_GEOMETRY" = yes; then | |
5138 | echo "$as_me:$LINENO: result: yes" >&5 | |
5139 | echo "${ECHO_T}yes" >&6 | |
5140 | else | |
5141 | echo "$as_me:$LINENO: result: no" >&5 | |
5142 | echo "${ECHO_T}no" >&6 | |
5143 | fi | |
5144 | ||
5145 | ||
5146 | enablestring= | |
5147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5148 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5149 | no_cache=0 | |
5150 | # Check whether --enable-log or --disable-log was given. | |
5151 | if test "${enable_log+set}" = set; then | |
5152 | enableval="$enable_log" | |
5153 | ||
5154 | if test "$enableval" = yes; then | |
5155 | ac_cv_use_log='wxUSE_LOG=yes' | |
5156 | else | |
5157 | ac_cv_use_log='wxUSE_LOG=no' | |
5158 | fi | |
5159 | ||
5160 | else | |
5161 | ||
5162 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5163 | if test "x$LINE" != x ; then | |
5164 | eval "DEFAULT_$LINE" | |
5165 | else | |
5166 | no_cache=1 | |
5167 | fi | |
5168 | ||
5169 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5170 | ||
5171 | fi; | |
5172 | ||
5173 | eval "$ac_cv_use_log" | |
5174 | if test "$no_cache" != 1; then | |
5175 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5176 | fi | |
5177 | ||
5178 | if test "$wxUSE_LOG" = yes; then | |
5179 | echo "$as_me:$LINENO: result: yes" >&5 | |
5180 | echo "${ECHO_T}yes" >&6 | |
5181 | else | |
5182 | echo "$as_me:$LINENO: result: no" >&5 | |
5183 | echo "${ECHO_T}no" >&6 | |
5184 | fi | |
5185 | ||
5186 | ||
5187 | enablestring= | |
5188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5189 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5190 | no_cache=0 | |
5191 | # Check whether --enable-longlong or --disable-longlong was given. | |
5192 | if test "${enable_longlong+set}" = set; then | |
5193 | enableval="$enable_longlong" | |
5194 | ||
5195 | if test "$enableval" = yes; then | |
5196 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5197 | else | |
5198 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5199 | fi | |
5200 | ||
5201 | else | |
5202 | ||
5203 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5204 | if test "x$LINE" != x ; then | |
5205 | eval "DEFAULT_$LINE" | |
5206 | else | |
5207 | no_cache=1 | |
5208 | fi | |
5209 | ||
5210 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5211 | ||
5212 | fi; | |
5213 | ||
5214 | eval "$ac_cv_use_longlong" | |
5215 | if test "$no_cache" != 1; then | |
5216 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5217 | fi | |
5218 | ||
5219 | if test "$wxUSE_LONGLONG" = yes; then | |
5220 | echo "$as_me:$LINENO: result: yes" >&5 | |
5221 | echo "${ECHO_T}yes" >&6 | |
5222 | else | |
5223 | echo "$as_me:$LINENO: result: no" >&5 | |
5224 | echo "${ECHO_T}no" >&6 | |
5225 | fi | |
5226 | ||
5227 | ||
5228 | enablestring= | |
5229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5230 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5231 | no_cache=0 | |
5232 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5233 | if test "${enable_mimetype+set}" = set; then | |
5234 | enableval="$enable_mimetype" | |
5235 | ||
5236 | if test "$enableval" = yes; then | |
5237 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5238 | else | |
5239 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5240 | fi | |
5241 | ||
5242 | else | |
5243 | ||
5244 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5245 | if test "x$LINE" != x ; then | |
5246 | eval "DEFAULT_$LINE" | |
5247 | else | |
5248 | no_cache=1 | |
5249 | fi | |
5250 | ||
5251 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5252 | ||
5253 | fi; | |
5254 | ||
5255 | eval "$ac_cv_use_mimetype" | |
5256 | if test "$no_cache" != 1; then | |
5257 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5258 | fi | |
5259 | ||
5260 | if test "$wxUSE_MIMETYPE" = yes; then | |
5261 | echo "$as_me:$LINENO: result: yes" >&5 | |
5262 | echo "${ECHO_T}yes" >&6 | |
5263 | else | |
5264 | echo "$as_me:$LINENO: result: no" >&5 | |
5265 | echo "${ECHO_T}no" >&6 | |
5266 | fi | |
5267 | ||
5268 | ||
5269 | enablestring= | |
5270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5271 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5272 | no_cache=0 | |
5273 | # Check whether --enable-mslu or --disable-mslu was given. | |
5274 | if test "${enable_mslu+set}" = set; then | |
5275 | enableval="$enable_mslu" | |
5276 | ||
5277 | if test "$enableval" = yes; then | |
5278 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5279 | else | |
5280 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5281 | fi | |
5282 | ||
5283 | else | |
5284 | ||
5285 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5286 | if test "x$LINE" != x ; then | |
5287 | eval "DEFAULT_$LINE" | |
5288 | else | |
5289 | no_cache=1 | |
5290 | fi | |
5291 | ||
5292 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5293 | ||
5294 | fi; | |
5295 | ||
5296 | eval "$ac_cv_use_mslu" | |
5297 | if test "$no_cache" != 1; then | |
5298 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5299 | fi | |
5300 | ||
5301 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5302 | echo "$as_me:$LINENO: result: yes" >&5 | |
5303 | echo "${ECHO_T}yes" >&6 | |
5304 | else | |
5305 | echo "$as_me:$LINENO: result: no" >&5 | |
5306 | echo "${ECHO_T}no" >&6 | |
5307 | fi | |
5308 | ||
5309 | ||
5310 | enablestring= | |
5311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5312 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5313 | no_cache=0 | |
5314 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5315 | if test "${enable_snglinst+set}" = set; then | |
5316 | enableval="$enable_snglinst" | |
5317 | ||
5318 | if test "$enableval" = yes; then | |
5319 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5320 | else | |
5321 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5322 | fi | |
5323 | ||
5324 | else | |
5325 | ||
5326 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5327 | if test "x$LINE" != x ; then | |
5328 | eval "DEFAULT_$LINE" | |
5329 | else | |
5330 | no_cache=1 | |
5331 | fi | |
5332 | ||
5333 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5334 | ||
5335 | fi; | |
5336 | ||
5337 | eval "$ac_cv_use_snglinst" | |
5338 | if test "$no_cache" != 1; then | |
5339 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5340 | fi | |
5341 | ||
5342 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5343 | echo "$as_me:$LINENO: result: yes" >&5 | |
5344 | echo "${ECHO_T}yes" >&6 | |
5345 | else | |
5346 | echo "$as_me:$LINENO: result: no" >&5 | |
5347 | echo "${ECHO_T}no" >&6 | |
5348 | fi | |
5349 | ||
5350 | ||
5351 | enablestring= | |
5352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5353 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5354 | no_cache=0 | |
5355 | # Check whether --enable-streams or --disable-streams was given. | |
5356 | if test "${enable_streams+set}" = set; then | |
5357 | enableval="$enable_streams" | |
5358 | ||
5359 | if test "$enableval" = yes; then | |
5360 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5361 | else | |
5362 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5363 | fi | |
5364 | ||
5365 | else | |
5366 | ||
5367 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5368 | if test "x$LINE" != x ; then | |
5369 | eval "DEFAULT_$LINE" | |
5370 | else | |
5371 | no_cache=1 | |
5372 | fi | |
5373 | ||
5374 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5375 | ||
5376 | fi; | |
5377 | ||
5378 | eval "$ac_cv_use_streams" | |
5379 | if test "$no_cache" != 1; then | |
5380 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5381 | fi | |
5382 | ||
5383 | if test "$wxUSE_STREAMS" = yes; then | |
5384 | echo "$as_me:$LINENO: result: yes" >&5 | |
5385 | echo "${ECHO_T}yes" >&6 | |
5386 | else | |
5387 | echo "$as_me:$LINENO: result: no" >&5 | |
5388 | echo "${ECHO_T}no" >&6 | |
5389 | fi | |
5390 | ||
5391 | ||
5392 | enablestring= | |
5393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5394 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5395 | no_cache=0 | |
5396 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5397 | if test "${enable_std_iostreams+set}" = set; then | |
5398 | enableval="$enable_std_iostreams" | |
5399 | ||
5400 | if test "$enableval" = yes; then | |
5401 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5402 | else | |
5403 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5404 | fi | |
5405 | ||
5406 | else | |
5407 | ||
5408 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5409 | if test "x$LINE" != x ; then | |
5410 | eval "DEFAULT_$LINE" | |
5411 | else | |
5412 | no_cache=1 | |
5413 | fi | |
5414 | ||
5415 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5416 | ||
5417 | fi; | |
5418 | ||
5419 | eval "$ac_cv_use_std_iostreams" | |
5420 | if test "$no_cache" != 1; then | |
5421 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5422 | fi | |
5423 | ||
5424 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5425 | echo "$as_me:$LINENO: result: yes" >&5 | |
5426 | echo "${ECHO_T}yes" >&6 | |
5427 | else | |
5428 | echo "$as_me:$LINENO: result: no" >&5 | |
5429 | echo "${ECHO_T}no" >&6 | |
5430 | fi | |
5431 | ||
5432 | ||
5433 | enablestring= | |
5434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5435 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5436 | no_cache=0 | |
5437 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5438 | if test "${enable_stopwatch+set}" = set; then | |
5439 | enableval="$enable_stopwatch" | |
5440 | ||
5441 | if test "$enableval" = yes; then | |
5442 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5443 | else | |
5444 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5445 | fi | |
5446 | ||
5447 | else | |
5448 | ||
5449 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5450 | if test "x$LINE" != x ; then | |
5451 | eval "DEFAULT_$LINE" | |
5452 | else | |
5453 | no_cache=1 | |
5454 | fi | |
5455 | ||
5456 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5457 | ||
5458 | fi; | |
5459 | ||
5460 | eval "$ac_cv_use_stopwatch" | |
5461 | if test "$no_cache" != 1; then | |
5462 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5463 | fi | |
5464 | ||
5465 | if test "$wxUSE_STOPWATCH" = yes; then | |
5466 | echo "$as_me:$LINENO: result: yes" >&5 | |
5467 | echo "${ECHO_T}yes" >&6 | |
5468 | else | |
5469 | echo "$as_me:$LINENO: result: no" >&5 | |
5470 | echo "${ECHO_T}no" >&6 | |
5471 | fi | |
5472 | ||
5473 | ||
5474 | enablestring= | |
5475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5476 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5477 | no_cache=0 | |
5478 | # Check whether --enable-system_options or --disable-system_options was given. | |
5479 | if test "${enable_system_options+set}" = set; then | |
5480 | enableval="$enable_system_options" | |
5481 | ||
5482 | if test "$enableval" = yes; then | |
5483 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5484 | else | |
5485 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5486 | fi | |
5487 | ||
5488 | else | |
5489 | ||
5490 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5491 | if test "x$LINE" != x ; then | |
5492 | eval "DEFAULT_$LINE" | |
5493 | else | |
5494 | no_cache=1 | |
5495 | fi | |
5496 | ||
5497 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5498 | ||
5499 | fi; | |
5500 | ||
5501 | eval "$ac_cv_use_system_options" | |
5502 | if test "$no_cache" != 1; then | |
5503 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5504 | fi | |
5505 | ||
5506 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5507 | echo "$as_me:$LINENO: result: yes" >&5 | |
5508 | echo "${ECHO_T}yes" >&6 | |
5509 | else | |
5510 | echo "$as_me:$LINENO: result: no" >&5 | |
5511 | echo "${ECHO_T}no" >&6 | |
5512 | fi | |
5513 | ||
5514 | ||
5515 | enablestring= | |
5516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5517 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5518 | no_cache=0 | |
5519 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5520 | if test "${enable_textbuf+set}" = set; then | |
5521 | enableval="$enable_textbuf" | |
5522 | ||
5523 | if test "$enableval" = yes; then | |
5524 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5525 | else | |
5526 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5527 | fi | |
5528 | ||
5529 | else | |
5530 | ||
5531 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5532 | if test "x$LINE" != x ; then | |
5533 | eval "DEFAULT_$LINE" | |
5534 | else | |
5535 | no_cache=1 | |
5536 | fi | |
5537 | ||
5538 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5539 | ||
5540 | fi; | |
5541 | ||
5542 | eval "$ac_cv_use_textbuf" | |
5543 | if test "$no_cache" != 1; then | |
5544 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5545 | fi | |
5546 | ||
5547 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5548 | echo "$as_me:$LINENO: result: yes" >&5 | |
5549 | echo "${ECHO_T}yes" >&6 | |
5550 | else | |
5551 | echo "$as_me:$LINENO: result: no" >&5 | |
5552 | echo "${ECHO_T}no" >&6 | |
5553 | fi | |
5554 | ||
5555 | ||
5556 | enablestring= | |
5557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5558 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5559 | no_cache=0 | |
5560 | # Check whether --enable-textfile or --disable-textfile was given. | |
5561 | if test "${enable_textfile+set}" = set; then | |
5562 | enableval="$enable_textfile" | |
5563 | ||
5564 | if test "$enableval" = yes; then | |
5565 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5566 | else | |
5567 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5568 | fi | |
5569 | ||
5570 | else | |
5571 | ||
5572 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5573 | if test "x$LINE" != x ; then | |
5574 | eval "DEFAULT_$LINE" | |
5575 | else | |
5576 | no_cache=1 | |
5577 | fi | |
5578 | ||
5579 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5580 | ||
5581 | fi; | |
5582 | ||
5583 | eval "$ac_cv_use_textfile" | |
5584 | if test "$no_cache" != 1; then | |
5585 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5586 | fi | |
5587 | ||
5588 | if test "$wxUSE_TEXTFILE" = yes; then | |
5589 | echo "$as_me:$LINENO: result: yes" >&5 | |
5590 | echo "${ECHO_T}yes" >&6 | |
5591 | else | |
5592 | echo "$as_me:$LINENO: result: no" >&5 | |
5593 | echo "${ECHO_T}no" >&6 | |
5594 | fi | |
5595 | ||
5596 | ||
5597 | enablestring= | |
5598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5599 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5600 | no_cache=0 | |
5601 | # Check whether --enable-timer or --disable-timer was given. | |
5602 | if test "${enable_timer+set}" = set; then | |
5603 | enableval="$enable_timer" | |
5604 | ||
5605 | if test "$enableval" = yes; then | |
5606 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5607 | else | |
5608 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5609 | fi | |
5610 | ||
5611 | else | |
5612 | ||
5613 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5614 | if test "x$LINE" != x ; then | |
5615 | eval "DEFAULT_$LINE" | |
5616 | else | |
5617 | no_cache=1 | |
5618 | fi | |
5619 | ||
5620 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5621 | ||
5622 | fi; | |
5623 | ||
5624 | eval "$ac_cv_use_timer" | |
5625 | if test "$no_cache" != 1; then | |
5626 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5627 | fi | |
5628 | ||
5629 | if test "$wxUSE_TIMER" = yes; then | |
5630 | echo "$as_me:$LINENO: result: yes" >&5 | |
5631 | echo "${ECHO_T}yes" >&6 | |
5632 | else | |
5633 | echo "$as_me:$LINENO: result: no" >&5 | |
5634 | echo "${ECHO_T}no" >&6 | |
5635 | fi | |
5636 | ||
5637 | ||
5638 | enablestring= | |
5639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5640 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5641 | no_cache=0 | |
5642 | # Check whether --enable-unicode or --disable-unicode was given. | |
5643 | if test "${enable_unicode+set}" = set; then | |
5644 | enableval="$enable_unicode" | |
5645 | ||
5646 | if test "$enableval" = yes; then | |
5647 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5648 | else | |
5649 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5650 | fi | |
5651 | ||
5652 | else | |
5653 | ||
5654 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5655 | if test "x$LINE" != x ; then | |
5656 | eval "DEFAULT_$LINE" | |
5657 | else | |
5658 | no_cache=1 | |
5659 | fi | |
5660 | ||
5661 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5662 | ||
5663 | fi; | |
5664 | ||
5665 | eval "$ac_cv_use_unicode" | |
5666 | if test "$no_cache" != 1; then | |
5667 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5668 | fi | |
5669 | ||
5670 | if test "$wxUSE_UNICODE" = yes; then | |
5671 | echo "$as_me:$LINENO: result: yes" >&5 | |
5672 | echo "${ECHO_T}yes" >&6 | |
5673 | else | |
5674 | echo "$as_me:$LINENO: result: no" >&5 | |
5675 | echo "${ECHO_T}no" >&6 | |
5676 | fi | |
5677 | ||
5678 | ||
5679 | enablestring= | |
5680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5681 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5682 | no_cache=0 | |
5683 | # Check whether --enable-sound or --disable-sound was given. | |
5684 | if test "${enable_sound+set}" = set; then | |
5685 | enableval="$enable_sound" | |
5686 | ||
5687 | if test "$enableval" = yes; then | |
5688 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5689 | else | |
5690 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5691 | fi | |
5692 | ||
5693 | else | |
5694 | ||
5695 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5703 | ||
5704 | fi; | |
5705 | ||
5706 | eval "$ac_cv_use_sound" | |
5707 | if test "$no_cache" != 1; then | |
5708 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5709 | fi | |
5710 | ||
5711 | if test "$wxUSE_SOUND" = yes; then | |
5712 | echo "$as_me:$LINENO: result: yes" >&5 | |
5713 | echo "${ECHO_T}yes" >&6 | |
5714 | else | |
5715 | echo "$as_me:$LINENO: result: no" >&5 | |
5716 | echo "${ECHO_T}no" >&6 | |
5717 | fi | |
5718 | ||
5719 | ||
5720 | enablestring= | |
5721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5722 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5723 | no_cache=0 | |
5724 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5725 | if test "${enable_wxprintfv+set}" = set; then | |
5726 | enableval="$enable_wxprintfv" | |
5727 | ||
5728 | if test "$enableval" = yes; then | |
5729 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5730 | else | |
5731 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5732 | fi | |
5733 | ||
5734 | else | |
5735 | ||
5736 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5737 | if test "x$LINE" != x ; then | |
5738 | eval "DEFAULT_$LINE" | |
5739 | else | |
5740 | no_cache=1 | |
5741 | fi | |
5742 | ||
5743 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5744 | ||
5745 | fi; | |
5746 | ||
5747 | eval "$ac_cv_use_wxprintfv" | |
5748 | if test "$no_cache" != 1; then | |
5749 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5750 | fi | |
5751 | ||
5752 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5753 | echo "$as_me:$LINENO: result: yes" >&5 | |
5754 | echo "${ECHO_T}yes" >&6 | |
5755 | else | |
5756 | echo "$as_me:$LINENO: result: no" >&5 | |
5757 | echo "${ECHO_T}no" >&6 | |
5758 | fi | |
5759 | ||
5760 | ||
5761 | enablestring= | |
5762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5763 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5764 | no_cache=0 | |
5765 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5766 | if test "${enable_zipstream+set}" = set; then | |
5767 | enableval="$enable_zipstream" | |
5768 | ||
5769 | if test "$enableval" = yes; then | |
5770 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5771 | else | |
5772 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5773 | fi | |
5774 | ||
5775 | else | |
5776 | ||
5777 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5778 | if test "x$LINE" != x ; then | |
5779 | eval "DEFAULT_$LINE" | |
5780 | else | |
5781 | no_cache=1 | |
5782 | fi | |
5783 | ||
5784 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5785 | ||
5786 | fi; | |
5787 | ||
5788 | eval "$ac_cv_use_zipstream" | |
5789 | if test "$no_cache" != 1; then | |
5790 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5791 | fi | |
5792 | ||
5793 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5794 | echo "$as_me:$LINENO: result: yes" >&5 | |
5795 | echo "${ECHO_T}yes" >&6 | |
5796 | else | |
5797 | echo "$as_me:$LINENO: result: no" >&5 | |
5798 | echo "${ECHO_T}no" >&6 | |
5799 | fi | |
5800 | ||
5801 | ||
a848cd7e SC |
5802 | |
5803 | enablestring= | |
5804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5805 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5806 | no_cache=0 | |
5807 | # Check whether --enable-url or --disable-url was given. | |
5808 | if test "${enable_url+set}" = set; then | |
5809 | enableval="$enable_url" | |
5810 | ||
5811 | if test "$enableval" = yes; then | |
5812 | ac_cv_use_url='wxUSE_URL=yes' | |
5813 | else | |
5814 | ac_cv_use_url='wxUSE_URL=no' | |
5815 | fi | |
5816 | ||
5817 | else | |
5818 | ||
5819 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5820 | if test "x$LINE" != x ; then | |
5821 | eval "DEFAULT_$LINE" | |
5822 | else | |
5823 | no_cache=1 | |
5824 | fi | |
5825 | ||
5826 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5827 | ||
5828 | fi; | |
5829 | ||
5830 | eval "$ac_cv_use_url" | |
5831 | if test "$no_cache" != 1; then | |
5832 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5833 | fi | |
5834 | ||
5835 | if test "$wxUSE_URL" = yes; then | |
5836 | echo "$as_me:$LINENO: result: yes" >&5 | |
5837 | echo "${ECHO_T}yes" >&6 | |
5838 | else | |
5839 | echo "$as_me:$LINENO: result: no" >&5 | |
5840 | echo "${ECHO_T}no" >&6 | |
5841 | fi | |
5842 | ||
5843 | ||
5844 | enablestring= | |
5845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5846 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5847 | no_cache=0 | |
5848 | # Check whether --enable-protocol or --disable-protocol was given. | |
5849 | if test "${enable_protocol+set}" = set; then | |
5850 | enableval="$enable_protocol" | |
5851 | ||
5852 | if test "$enableval" = yes; then | |
5853 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5854 | else | |
5855 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5856 | fi | |
5857 | ||
5858 | else | |
5859 | ||
5860 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5861 | if test "x$LINE" != x ; then | |
5862 | eval "DEFAULT_$LINE" | |
5863 | else | |
5864 | no_cache=1 | |
5865 | fi | |
5866 | ||
5867 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5868 | ||
5869 | fi; | |
5870 | ||
5871 | eval "$ac_cv_use_protocol" | |
5872 | if test "$no_cache" != 1; then | |
5873 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5874 | fi | |
5875 | ||
5876 | if test "$wxUSE_PROTOCOL" = yes; then | |
5877 | echo "$as_me:$LINENO: result: yes" >&5 | |
5878 | echo "${ECHO_T}yes" >&6 | |
5879 | else | |
5880 | echo "$as_me:$LINENO: result: no" >&5 | |
5881 | echo "${ECHO_T}no" >&6 | |
5882 | fi | |
5883 | ||
5884 | ||
5885 | enablestring= | |
5886 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5887 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5888 | no_cache=0 | |
5889 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5890 | if test "${enable_protocol_http+set}" = set; then | |
5891 | enableval="$enable_protocol_http" | |
5892 | ||
5893 | if test "$enableval" = yes; then | |
5894 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5895 | else | |
5896 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5897 | fi | |
5898 | ||
5899 | else | |
5900 | ||
5901 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5902 | if test "x$LINE" != x ; then | |
5903 | eval "DEFAULT_$LINE" | |
5904 | else | |
5905 | no_cache=1 | |
5906 | fi | |
5907 | ||
5908 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5909 | ||
5910 | fi; | |
5911 | ||
5912 | eval "$ac_cv_use_protocol_http" | |
5913 | if test "$no_cache" != 1; then | |
5914 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5915 | fi | |
5916 | ||
5917 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5918 | echo "$as_me:$LINENO: result: yes" >&5 | |
5919 | echo "${ECHO_T}yes" >&6 | |
5920 | else | |
5921 | echo "$as_me:$LINENO: result: no" >&5 | |
5922 | echo "${ECHO_T}no" >&6 | |
5923 | fi | |
5924 | ||
5925 | ||
5926 | enablestring= | |
5927 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5928 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5929 | no_cache=0 | |
5930 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5931 | if test "${enable_protocol_ftp+set}" = set; then | |
5932 | enableval="$enable_protocol_ftp" | |
5933 | ||
5934 | if test "$enableval" = yes; then | |
5935 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5936 | else | |
5937 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5938 | fi | |
5939 | ||
5940 | else | |
5941 | ||
5942 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5943 | if test "x$LINE" != x ; then | |
5944 | eval "DEFAULT_$LINE" | |
5945 | else | |
5946 | no_cache=1 | |
5947 | fi | |
5948 | ||
5949 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5950 | ||
5951 | fi; | |
5952 | ||
5953 | eval "$ac_cv_use_protocol_ftp" | |
5954 | if test "$no_cache" != 1; then | |
5955 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5956 | fi | |
5957 | ||
5958 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5959 | echo "$as_me:$LINENO: result: yes" >&5 | |
5960 | echo "${ECHO_T}yes" >&6 | |
5961 | else | |
5962 | echo "$as_me:$LINENO: result: no" >&5 | |
5963 | echo "${ECHO_T}no" >&6 | |
5964 | fi | |
5965 | ||
5966 | ||
5967 | enablestring= | |
5968 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5969 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5970 | no_cache=0 | |
5971 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5972 | if test "${enable_protocol_file+set}" = set; then | |
5973 | enableval="$enable_protocol_file" | |
5974 | ||
5975 | if test "$enableval" = yes; then | |
5976 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5977 | else | |
5978 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5979 | fi | |
5980 | ||
5981 | else | |
5982 | ||
5983 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5984 | if test "x$LINE" != x ; then | |
5985 | eval "DEFAULT_$LINE" | |
5986 | else | |
5987 | no_cache=1 | |
5988 | fi | |
5989 | ||
5990 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5991 | ||
5992 | fi; | |
5993 | ||
5994 | eval "$ac_cv_use_protocol_file" | |
5995 | if test "$no_cache" != 1; then | |
5996 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5997 | fi | |
5998 | ||
5999 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6000 | echo "$as_me:$LINENO: result: yes" >&5 | |
6001 | echo "${ECHO_T}yes" >&6 | |
6002 | else | |
6003 | echo "$as_me:$LINENO: result: no" >&5 | |
6004 | echo "${ECHO_T}no" >&6 | |
6005 | fi | |
6006 | ||
6007 | ||
6008 | ||
6009 | ||
6010 | ||
6011 | enablestring= | |
6012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6013 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6014 | no_cache=0 | |
6015 | # Check whether --enable-threads or --disable-threads was given. | |
6016 | if test "${enable_threads+set}" = set; then | |
6017 | enableval="$enable_threads" | |
6018 | ||
6019 | if test "$enableval" = yes; then | |
6020 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6021 | else | |
6022 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6023 | fi | |
6024 | ||
6025 | else | |
6026 | ||
6027 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6028 | if test "x$LINE" != x ; then | |
6029 | eval "DEFAULT_$LINE" | |
6030 | else | |
6031 | no_cache=1 | |
6032 | fi | |
6033 | ||
6034 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6035 | ||
6036 | fi; | |
6037 | ||
6038 | eval "$ac_cv_use_threads" | |
6039 | if test "$no_cache" != 1; then | |
6040 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6041 | fi | |
6042 | ||
6043 | if test "$wxUSE_THREADS" = yes; then | |
6044 | echo "$as_me:$LINENO: result: yes" >&5 | |
6045 | echo "${ECHO_T}yes" >&6 | |
6046 | else | |
6047 | echo "$as_me:$LINENO: result: no" >&5 | |
6048 | echo "${ECHO_T}no" >&6 | |
6049 | fi | |
6050 | ||
6051 | ||
6052 | if test "$wxUSE_GUI" = "yes"; then | |
6053 | ||
6054 | ||
6055 | ||
6056 | enablestring= | |
6057 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6058 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6059 | no_cache=0 | |
6060 | # Check whether --enable-docview or --disable-docview was given. | |
6061 | if test "${enable_docview+set}" = set; then | |
6062 | enableval="$enable_docview" | |
6063 | ||
6064 | if test "$enableval" = yes; then | |
6065 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6066 | else | |
6067 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6068 | fi | |
6069 | ||
6070 | else | |
6071 | ||
6072 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6073 | if test "x$LINE" != x ; then | |
6074 | eval "DEFAULT_$LINE" | |
6075 | else | |
6076 | no_cache=1 | |
6077 | fi | |
6078 | ||
6079 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6080 | ||
6081 | fi; | |
6082 | ||
6083 | eval "$ac_cv_use_docview" | |
6084 | if test "$no_cache" != 1; then | |
6085 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6086 | fi | |
6087 | ||
6088 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6089 | echo "$as_me:$LINENO: result: yes" >&5 | |
6090 | echo "${ECHO_T}yes" >&6 | |
6091 | else | |
6092 | echo "$as_me:$LINENO: result: no" >&5 | |
6093 | echo "${ECHO_T}no" >&6 | |
6094 | fi | |
6095 | ||
6096 | ||
6097 | enablestring= | |
6098 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6099 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6100 | no_cache=0 | |
6101 | # Check whether --enable-help or --disable-help was given. | |
6102 | if test "${enable_help+set}" = set; then | |
6103 | enableval="$enable_help" | |
6104 | ||
6105 | if test "$enableval" = yes; then | |
6106 | ac_cv_use_help='wxUSE_HELP=yes' | |
6107 | else | |
6108 | ac_cv_use_help='wxUSE_HELP=no' | |
6109 | fi | |
6110 | ||
6111 | else | |
6112 | ||
6113 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6114 | if test "x$LINE" != x ; then | |
6115 | eval "DEFAULT_$LINE" | |
6116 | else | |
6117 | no_cache=1 | |
6118 | fi | |
6119 | ||
6120 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6121 | ||
6122 | fi; | |
6123 | ||
6124 | eval "$ac_cv_use_help" | |
6125 | if test "$no_cache" != 1; then | |
6126 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6127 | fi | |
6128 | ||
6129 | if test "$wxUSE_HELP" = yes; then | |
6130 | echo "$as_me:$LINENO: result: yes" >&5 | |
6131 | echo "${ECHO_T}yes" >&6 | |
6132 | else | |
6133 | echo "$as_me:$LINENO: result: no" >&5 | |
6134 | echo "${ECHO_T}no" >&6 | |
6135 | fi | |
6136 | ||
6137 | ||
6138 | enablestring= | |
6139 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6140 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6141 | no_cache=0 | |
6142 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6143 | if test "${enable_mshtmlhelp+set}" = set; then | |
6144 | enableval="$enable_mshtmlhelp" | |
6145 | ||
6146 | if test "$enableval" = yes; then | |
6147 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6148 | else | |
6149 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6150 | fi | |
6151 | ||
6152 | else | |
6153 | ||
6154 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6155 | if test "x$LINE" != x ; then | |
6156 | eval "DEFAULT_$LINE" | |
6157 | else | |
6158 | no_cache=1 | |
6159 | fi | |
6160 | ||
6161 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6162 | ||
6163 | fi; | |
6164 | ||
6165 | eval "$ac_cv_use_mshtmlhelp" | |
6166 | if test "$no_cache" != 1; then | |
6167 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6168 | fi | |
6169 | ||
6170 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6171 | echo "$as_me:$LINENO: result: yes" >&5 | |
6172 | echo "${ECHO_T}yes" >&6 | |
6173 | else | |
6174 | echo "$as_me:$LINENO: result: no" >&5 | |
6175 | echo "${ECHO_T}no" >&6 | |
6176 | fi | |
6177 | ||
6178 | ||
6179 | enablestring= | |
6180 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6181 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6182 | no_cache=0 | |
6183 | # Check whether --enable-html or --disable-html was given. | |
6184 | if test "${enable_html+set}" = set; then | |
6185 | enableval="$enable_html" | |
6186 | ||
6187 | if test "$enableval" = yes; then | |
6188 | ac_cv_use_html='wxUSE_HTML=yes' | |
6189 | else | |
6190 | ac_cv_use_html='wxUSE_HTML=no' | |
6191 | fi | |
6192 | ||
6193 | else | |
6194 | ||
6195 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6196 | if test "x$LINE" != x ; then | |
6197 | eval "DEFAULT_$LINE" | |
6198 | else | |
6199 | no_cache=1 | |
6200 | fi | |
6201 | ||
6202 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6203 | ||
6204 | fi; | |
6205 | ||
6206 | eval "$ac_cv_use_html" | |
6207 | if test "$no_cache" != 1; then | |
6208 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6209 | fi | |
6210 | ||
6211 | if test "$wxUSE_HTML" = yes; then | |
6212 | echo "$as_me:$LINENO: result: yes" >&5 | |
6213 | echo "${ECHO_T}yes" >&6 | |
6214 | else | |
6215 | echo "$as_me:$LINENO: result: no" >&5 | |
6216 | echo "${ECHO_T}no" >&6 | |
6217 | fi | |
6218 | ||
6219 | ||
6220 | enablestring= | |
6221 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6222 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6223 | no_cache=0 | |
6224 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6225 | if test "${enable_htmlhelp+set}" = set; then | |
6226 | enableval="$enable_htmlhelp" | |
6227 | ||
6228 | if test "$enableval" = yes; then | |
6229 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6230 | else | |
6231 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6232 | fi | |
6233 | ||
6234 | else | |
6235 | ||
6236 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6237 | if test "x$LINE" != x ; then | |
6238 | eval "DEFAULT_$LINE" | |
6239 | else | |
6240 | no_cache=1 | |
6241 | fi | |
6242 | ||
6243 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6244 | ||
6245 | fi; | |
6246 | ||
6247 | eval "$ac_cv_use_htmlhelp" | |
6248 | if test "$no_cache" != 1; then | |
6249 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6250 | fi | |
6251 | ||
6252 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6253 | echo "$as_me:$LINENO: result: yes" >&5 | |
6254 | echo "${ECHO_T}yes" >&6 | |
6255 | else | |
6256 | echo "$as_me:$LINENO: result: no" >&5 | |
6257 | echo "${ECHO_T}no" >&6 | |
6258 | fi | |
6259 | ||
6260 | ||
6261 | enablestring= | |
6262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6263 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6264 | no_cache=0 | |
6265 | # Check whether --enable-constraints or --disable-constraints was given. | |
6266 | if test "${enable_constraints+set}" = set; then | |
6267 | enableval="$enable_constraints" | |
6268 | ||
6269 | if test "$enableval" = yes; then | |
6270 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6271 | else | |
6272 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6273 | fi | |
6274 | ||
6275 | else | |
6276 | ||
6277 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6278 | if test "x$LINE" != x ; then | |
6279 | eval "DEFAULT_$LINE" | |
6280 | else | |
6281 | no_cache=1 | |
6282 | fi | |
6283 | ||
6284 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6285 | ||
6286 | fi; | |
6287 | ||
6288 | eval "$ac_cv_use_constraints" | |
6289 | if test "$no_cache" != 1; then | |
6290 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6291 | fi | |
6292 | ||
6293 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6294 | echo "$as_me:$LINENO: result: yes" >&5 | |
6295 | echo "${ECHO_T}yes" >&6 | |
6296 | else | |
6297 | echo "$as_me:$LINENO: result: no" >&5 | |
6298 | echo "${ECHO_T}no" >&6 | |
6299 | fi | |
6300 | ||
6301 | ||
6302 | enablestring= | |
6303 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6304 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6305 | no_cache=0 | |
6306 | # Check whether --enable-printarch or --disable-printarch was given. | |
6307 | if test "${enable_printarch+set}" = set; then | |
6308 | enableval="$enable_printarch" | |
6309 | ||
6310 | if test "$enableval" = yes; then | |
6311 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6312 | else | |
6313 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6314 | fi | |
6315 | ||
6316 | else | |
6317 | ||
6318 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6319 | if test "x$LINE" != x ; then | |
6320 | eval "DEFAULT_$LINE" | |
6321 | else | |
6322 | no_cache=1 | |
6323 | fi | |
6324 | ||
6325 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6326 | ||
6327 | fi; | |
6328 | ||
6329 | eval "$ac_cv_use_printarch" | |
6330 | if test "$no_cache" != 1; then | |
6331 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6332 | fi | |
6333 | ||
6334 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6335 | echo "$as_me:$LINENO: result: yes" >&5 | |
6336 | echo "${ECHO_T}yes" >&6 | |
6337 | else | |
6338 | echo "$as_me:$LINENO: result: no" >&5 | |
6339 | echo "${ECHO_T}no" >&6 | |
6340 | fi | |
6341 | ||
6342 | ||
6343 | enablestring= | |
6344 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6345 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6346 | no_cache=0 | |
6347 | # Check whether --enable-mdi or --disable-mdi was given. | |
6348 | if test "${enable_mdi+set}" = set; then | |
6349 | enableval="$enable_mdi" | |
6350 | ||
6351 | if test "$enableval" = yes; then | |
8a7b1113 | 6352 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6353 | else |
8a7b1113 | 6354 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6355 | fi |
6356 | ||
6357 | else | |
6358 | ||
8a7b1113 | 6359 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6360 | if test "x$LINE" != x ; then |
6361 | eval "DEFAULT_$LINE" | |
6362 | else | |
6363 | no_cache=1 | |
6364 | fi | |
6365 | ||
8a7b1113 | 6366 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6367 | |
6368 | fi; | |
6369 | ||
6370 | eval "$ac_cv_use_mdi" | |
6371 | if test "$no_cache" != 1; then | |
6372 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6373 | fi | |
6374 | ||
8a7b1113 VZ |
6375 | if test "$wxUSE_MDI" = yes; then |
6376 | echo "$as_me:$LINENO: result: yes" >&5 | |
6377 | echo "${ECHO_T}yes" >&6 | |
6378 | else | |
6379 | echo "$as_me:$LINENO: result: no" >&5 | |
6380 | echo "${ECHO_T}no" >&6 | |
6381 | fi | |
6382 | ||
6383 | ||
6384 | enablestring= | |
6385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6386 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6387 | no_cache=0 | |
6388 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6389 | if test "${enable_mdidoc+set}" = set; then | |
6390 | enableval="$enable_mdidoc" | |
6391 | ||
6392 | if test "$enableval" = yes; then | |
6393 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6394 | else | |
6395 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6396 | fi | |
6397 | ||
6398 | else | |
6399 | ||
6400 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6401 | if test "x$LINE" != x ; then | |
6402 | eval "DEFAULT_$LINE" | |
6403 | else | |
6404 | no_cache=1 | |
6405 | fi | |
6406 | ||
6407 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6408 | ||
6409 | fi; | |
6410 | ||
6411 | eval "$ac_cv_use_mdidoc" | |
6412 | if test "$no_cache" != 1; then | |
6413 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6414 | fi | |
6415 | ||
a848cd7e SC |
6416 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6417 | echo "$as_me:$LINENO: result: yes" >&5 | |
6418 | echo "${ECHO_T}yes" >&6 | |
6419 | else | |
6420 | echo "$as_me:$LINENO: result: no" >&5 | |
6421 | echo "${ECHO_T}no" >&6 | |
6422 | fi | |
6423 | ||
6424 | ||
6425 | enablestring= | |
6426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6427 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6428 | no_cache=0 | |
6429 | # Check whether --enable-loggui or --disable-loggui was given. | |
6430 | if test "${enable_loggui+set}" = set; then | |
6431 | enableval="$enable_loggui" | |
6432 | ||
6433 | if test "$enableval" = yes; then | |
6434 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6435 | else | |
6436 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6437 | fi | |
6438 | ||
6439 | else | |
6440 | ||
6441 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6442 | if test "x$LINE" != x ; then | |
6443 | eval "DEFAULT_$LINE" | |
6444 | else | |
6445 | no_cache=1 | |
6446 | fi | |
6447 | ||
6448 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6449 | ||
6450 | fi; | |
6451 | ||
6452 | eval "$ac_cv_use_loggui" | |
6453 | if test "$no_cache" != 1; then | |
6454 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6455 | fi | |
6456 | ||
6457 | if test "$wxUSE_LOGGUI" = yes; then | |
6458 | echo "$as_me:$LINENO: result: yes" >&5 | |
6459 | echo "${ECHO_T}yes" >&6 | |
6460 | else | |
6461 | echo "$as_me:$LINENO: result: no" >&5 | |
6462 | echo "${ECHO_T}no" >&6 | |
6463 | fi | |
6464 | ||
6465 | ||
6466 | enablestring= | |
6467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6468 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6469 | no_cache=0 | |
6470 | # Check whether --enable-logwin or --disable-logwin was given. | |
6471 | if test "${enable_logwin+set}" = set; then | |
6472 | enableval="$enable_logwin" | |
6473 | ||
6474 | if test "$enableval" = yes; then | |
6475 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6476 | else | |
6477 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6478 | fi | |
6479 | ||
6480 | else | |
6481 | ||
6482 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6483 | if test "x$LINE" != x ; then | |
6484 | eval "DEFAULT_$LINE" | |
6485 | else | |
6486 | no_cache=1 | |
6487 | fi | |
6488 | ||
6489 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6490 | ||
6491 | fi; | |
6492 | ||
6493 | eval "$ac_cv_use_logwin" | |
6494 | if test "$no_cache" != 1; then | |
6495 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6496 | fi | |
6497 | ||
6498 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6499 | echo "$as_me:$LINENO: result: yes" >&5 | |
6500 | echo "${ECHO_T}yes" >&6 | |
6501 | else | |
6502 | echo "$as_me:$LINENO: result: no" >&5 | |
6503 | echo "${ECHO_T}no" >&6 | |
6504 | fi | |
6505 | ||
6506 | ||
6507 | enablestring= | |
6508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6509 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6510 | no_cache=0 | |
6511 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6512 | if test "${enable_logdialog+set}" = set; then | |
6513 | enableval="$enable_logdialog" | |
6514 | ||
6515 | if test "$enableval" = yes; then | |
6516 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6517 | else | |
6518 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6519 | fi | |
6520 | ||
6521 | else | |
6522 | ||
6523 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6524 | if test "x$LINE" != x ; then | |
6525 | eval "DEFAULT_$LINE" | |
6526 | else | |
6527 | no_cache=1 | |
6528 | fi | |
6529 | ||
6530 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6531 | ||
6532 | fi; | |
6533 | ||
6534 | eval "$ac_cv_use_logdialog" | |
6535 | if test "$no_cache" != 1; then | |
6536 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6537 | fi | |
6538 | ||
6539 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6540 | echo "$as_me:$LINENO: result: yes" >&5 | |
6541 | echo "${ECHO_T}yes" >&6 | |
6542 | else | |
6543 | echo "$as_me:$LINENO: result: no" >&5 | |
6544 | echo "${ECHO_T}no" >&6 | |
6545 | fi | |
6546 | ||
6547 | ||
646b6ec1 VS |
6548 | enablestring= |
6549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6550 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6551 | no_cache=0 | |
6552 | # Check whether --enable-webkit or --disable-webkit was given. | |
6553 | if test "${enable_webkit+set}" = set; then | |
6554 | enableval="$enable_webkit" | |
6555 | ||
6556 | if test "$enableval" = yes; then | |
6557 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6558 | else | |
6559 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6560 | fi | |
6561 | ||
6562 | else | |
6563 | ||
6564 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6565 | if test "x$LINE" != x ; then | |
6566 | eval "DEFAULT_$LINE" | |
6567 | else | |
6568 | no_cache=1 | |
6569 | fi | |
6570 | ||
6571 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6572 | ||
6573 | fi; | |
6574 | ||
6575 | eval "$ac_cv_use_webkit" | |
6576 | if test "$no_cache" != 1; then | |
6577 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6578 | fi | |
6579 | ||
6580 | if test "$wxUSE_WEBKIT" = yes; then | |
6581 | echo "$as_me:$LINENO: result: yes" >&5 | |
6582 | echo "${ECHO_T}yes" >&6 | |
6583 | else | |
6584 | echo "$as_me:$LINENO: result: no" >&5 | |
6585 | echo "${ECHO_T}no" >&6 | |
6586 | fi | |
6587 | ||
6588 | ||
a848cd7e SC |
6589 | |
6590 | enablestring= | |
6591 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6592 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6593 | no_cache=0 | |
6594 | # Check whether --enable-postscript or --disable-postscript was given. | |
6595 | if test "${enable_postscript+set}" = set; then | |
6596 | enableval="$enable_postscript" | |
6597 | ||
6598 | if test "$enableval" = yes; then | |
6599 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6600 | else | |
6601 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6602 | fi | |
6603 | ||
6604 | else | |
6605 | ||
6606 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6607 | if test "x$LINE" != x ; then | |
6608 | eval "DEFAULT_$LINE" | |
6609 | else | |
6610 | no_cache=1 | |
6611 | fi | |
6612 | ||
6613 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6614 | ||
6615 | fi; | |
6616 | ||
6617 | eval "$ac_cv_use_postscript" | |
6618 | if test "$no_cache" != 1; then | |
6619 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6620 | fi | |
6621 | ||
6622 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6623 | echo "$as_me:$LINENO: result: yes" >&5 | |
6624 | echo "${ECHO_T}yes" >&6 | |
6625 | else | |
6626 | echo "$as_me:$LINENO: result: no" >&5 | |
6627 | echo "${ECHO_T}no" >&6 | |
6628 | fi | |
6629 | ||
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | enablestring= | |
6635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6636 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6637 | no_cache=0 | |
6638 | # Check whether --enable-prologio or --disable-prologio was given. | |
6639 | if test "${enable_prologio+set}" = set; then | |
6640 | enableval="$enable_prologio" | |
6641 | ||
6642 | if test "$enableval" = yes; then | |
6643 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6644 | else | |
6645 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6646 | fi | |
6647 | ||
6648 | else | |
6649 | ||
6650 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6651 | if test "x$LINE" != x ; then | |
6652 | eval "DEFAULT_$LINE" | |
6653 | else | |
6654 | no_cache=1 | |
6655 | fi | |
6656 | ||
6657 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6658 | ||
6659 | fi; | |
6660 | ||
6661 | eval "$ac_cv_use_prologio" | |
6662 | if test "$no_cache" != 1; then | |
6663 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6664 | fi | |
6665 | ||
6666 | if test "$wxUSE_PROLOGIO" = yes; then | |
6667 | echo "$as_me:$LINENO: result: yes" >&5 | |
6668 | echo "${ECHO_T}yes" >&6 | |
6669 | else | |
6670 | echo "$as_me:$LINENO: result: no" >&5 | |
6671 | echo "${ECHO_T}no" >&6 | |
6672 | fi | |
6673 | ||
6674 | ||
6675 | enablestring= | |
6676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6677 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6678 | no_cache=0 | |
6679 | # Check whether --enable-resources or --disable-resources was given. | |
6680 | if test "${enable_resources+set}" = set; then | |
6681 | enableval="$enable_resources" | |
6682 | ||
6683 | if test "$enableval" = yes; then | |
6684 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6685 | else | |
6686 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6687 | fi | |
6688 | ||
6689 | else | |
6690 | ||
6691 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6692 | if test "x$LINE" != x ; then | |
6693 | eval "DEFAULT_$LINE" | |
6694 | else | |
6695 | no_cache=1 | |
6696 | fi | |
6697 | ||
6698 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6699 | ||
6700 | fi; | |
6701 | ||
6702 | eval "$ac_cv_use_resources" | |
6703 | if test "$no_cache" != 1; then | |
6704 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6705 | fi | |
6706 | ||
6707 | if test "$wxUSE_RESOURCES" = yes; then | |
6708 | echo "$as_me:$LINENO: result: yes" >&5 | |
6709 | echo "${ECHO_T}yes" >&6 | |
6710 | else | |
6711 | echo "$as_me:$LINENO: result: no" >&5 | |
6712 | echo "${ECHO_T}no" >&6 | |
6713 | fi | |
6714 | ||
6715 | ||
6716 | ||
6717 | ||
6718 | enablestring= | |
6719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6720 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6721 | no_cache=0 | |
6722 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6723 | if test "${enable_clipboard+set}" = set; then | |
6724 | enableval="$enable_clipboard" | |
6725 | ||
6726 | if test "$enableval" = yes; then | |
6727 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6728 | else | |
6729 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6730 | fi | |
6731 | ||
6732 | else | |
6733 | ||
6734 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6735 | if test "x$LINE" != x ; then | |
6736 | eval "DEFAULT_$LINE" | |
6737 | else | |
6738 | no_cache=1 | |
6739 | fi | |
6740 | ||
6741 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6742 | ||
6743 | fi; | |
6744 | ||
6745 | eval "$ac_cv_use_clipboard" | |
6746 | if test "$no_cache" != 1; then | |
6747 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6748 | fi | |
6749 | ||
6750 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6751 | echo "$as_me:$LINENO: result: yes" >&5 | |
6752 | echo "${ECHO_T}yes" >&6 | |
6753 | else | |
6754 | echo "$as_me:$LINENO: result: no" >&5 | |
6755 | echo "${ECHO_T}no" >&6 | |
6756 | fi | |
6757 | ||
6758 | ||
6759 | enablestring= | |
6760 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6761 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6762 | no_cache=0 | |
6763 | # Check whether --enable-dnd or --disable-dnd was given. | |
6764 | if test "${enable_dnd+set}" = set; then | |
6765 | enableval="$enable_dnd" | |
6766 | ||
6767 | if test "$enableval" = yes; then | |
6768 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6769 | else | |
6770 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6771 | fi | |
6772 | ||
6773 | else | |
6774 | ||
6775 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6776 | if test "x$LINE" != x ; then | |
6777 | eval "DEFAULT_$LINE" | |
6778 | else | |
6779 | no_cache=1 | |
6780 | fi | |
6781 | ||
6782 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6783 | ||
6784 | fi; | |
6785 | ||
6786 | eval "$ac_cv_use_dnd" | |
6787 | if test "$no_cache" != 1; then | |
6788 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6789 | fi | |
6790 | ||
6791 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6792 | echo "$as_me:$LINENO: result: yes" >&5 | |
6793 | echo "${ECHO_T}yes" >&6 | |
6794 | else | |
6795 | echo "$as_me:$LINENO: result: no" >&5 | |
6796 | echo "${ECHO_T}no" >&6 | |
6797 | fi | |
6798 | ||
6799 | ||
6800 | enablestring= | |
6801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6802 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6803 | no_cache=0 | |
6804 | # Check whether --enable-metafile or --disable-metafile was given. | |
6805 | if test "${enable_metafile+set}" = set; then | |
6806 | enableval="$enable_metafile" | |
6807 | ||
6808 | if test "$enableval" = yes; then | |
6809 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6810 | else | |
6811 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6812 | fi | |
6813 | ||
6814 | else | |
6815 | ||
6816 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6817 | if test "x$LINE" != x ; then | |
6818 | eval "DEFAULT_$LINE" | |
6819 | else | |
6820 | no_cache=1 | |
6821 | fi | |
6822 | ||
6823 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6824 | ||
6825 | fi; | |
6826 | ||
6827 | eval "$ac_cv_use_metafile" | |
6828 | if test "$no_cache" != 1; then | |
6829 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6830 | fi | |
6831 | ||
6832 | if test "$wxUSE_METAFILE" = yes; then | |
6833 | echo "$as_me:$LINENO: result: yes" >&5 | |
6834 | echo "${ECHO_T}yes" >&6 | |
6835 | else | |
6836 | echo "$as_me:$LINENO: result: no" >&5 | |
6837 | echo "${ECHO_T}no" >&6 | |
6838 | fi | |
6839 | ||
6840 | ||
6841 | ||
6842 | ||
6843 | ||
6844 | enablestring= | |
6845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6846 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6847 | no_cache=0 | |
6848 | # Check whether --enable-controls or --disable-controls was given. | |
6849 | if test "${enable_controls+set}" = set; then | |
6850 | enableval="$enable_controls" | |
6851 | ||
6852 | if test "$enableval" = yes; then | |
6853 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6854 | else | |
6855 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6856 | fi | |
6857 | ||
6858 | else | |
6859 | ||
6860 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6861 | if test "x$LINE" != x ; then | |
6862 | eval "DEFAULT_$LINE" | |
6863 | else | |
6864 | no_cache=1 | |
6865 | fi | |
6866 | ||
6867 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6868 | ||
6869 | fi; | |
6870 | ||
6871 | eval "$ac_cv_use_controls" | |
6872 | if test "$no_cache" != 1; then | |
6873 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6874 | fi | |
6875 | ||
6876 | if test "$wxUSE_CONTROLS" = yes; then | |
6877 | echo "$as_me:$LINENO: result: yes" >&5 | |
6878 | echo "${ECHO_T}yes" >&6 | |
6879 | else | |
6880 | echo "$as_me:$LINENO: result: no" >&5 | |
6881 | echo "${ECHO_T}no" >&6 | |
6882 | fi | |
6883 | ||
6884 | ||
6885 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6886 | DEFAULT_wxUSE_ACCEL=yes | |
6887 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6888 | DEFAULT_wxUSE_BUTTON=yes | |
6889 | DEFAULT_wxUSE_CALCTRL=no | |
6890 | DEFAULT_wxUSE_CARET=yes | |
6891 | DEFAULT_wxUSE_COMBOBOX=yes | |
6892 | DEFAULT_wxUSE_CHECKBOX=yes | |
6893 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6894 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 6895 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
6896 | DEFAULT_wxUSE_GAUGE=yes |
6897 | DEFAULT_wxUSE_GRID=yes | |
6898 | DEFAULT_wxUSE_IMAGLIST=yes | |
6899 | DEFAULT_wxUSE_LISTBOOK=yes | |
6900 | DEFAULT_wxUSE_LISTBOX=yes | |
6901 | DEFAULT_wxUSE_LISTCTRL=yes | |
6902 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6903 | DEFAULT_wxUSE_RADIOBOX=yes | |
6904 | DEFAULT_wxUSE_RADIOBTN=yes | |
6905 | DEFAULT_wxUSE_SASH=yes | |
6906 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6907 | DEFAULT_wxUSE_SLIDER=yes | |
6908 | DEFAULT_wxUSE_SPINBTN=yes | |
6909 | DEFAULT_wxUSE_SPINCTRL=yes | |
6910 | DEFAULT_wxUSE_SPLITTER=yes | |
6911 | DEFAULT_wxUSE_STATBMP=yes | |
6912 | DEFAULT_wxUSE_STATBOX=yes | |
6913 | DEFAULT_wxUSE_STATLINE=yes | |
6914 | DEFAULT_wxUSE_STATUSBAR=yes | |
6915 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6916 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6917 | DEFAULT_wxUSE_TOOLBAR=yes | |
6918 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6919 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6920 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6921 | DEFAULT_wxUSE_TREECTRL=yes | |
6922 | DEFAULT_wxUSE_POPUPWIN=yes | |
6923 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6924 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6925 | DEFAULT_wxUSE_ACCEL=no | |
6926 | DEFAULT_wxUSE_BMPBUTTON=no | |
6927 | DEFAULT_wxUSE_BUTTON=no | |
6928 | DEFAULT_wxUSE_CALCTRL=no | |
6929 | DEFAULT_wxUSE_CARET=no | |
6930 | DEFAULT_wxUSE_COMBOBOX=no | |
6931 | DEFAULT_wxUSE_CHECKBOX=no | |
6932 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6933 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 6934 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
6935 | DEFAULT_wxUSE_GAUGE=no |
6936 | DEFAULT_wxUSE_GRID=no | |
6937 | DEFAULT_wxUSE_IMAGLIST=no | |
6938 | DEFAULT_wxUSE_LISTBOOK=no | |
6939 | DEFAULT_wxUSE_LISTBOX=no | |
6940 | DEFAULT_wxUSE_LISTCTRL=no | |
6941 | DEFAULT_wxUSE_NOTEBOOK=no | |
6942 | DEFAULT_wxUSE_RADIOBOX=no | |
6943 | DEFAULT_wxUSE_RADIOBTN=no | |
6944 | DEFAULT_wxUSE_SASH=no | |
6945 | DEFAULT_wxUSE_SCROLLBAR=no | |
6946 | DEFAULT_wxUSE_SLIDER=no | |
6947 | DEFAULT_wxUSE_SPINBTN=no | |
6948 | DEFAULT_wxUSE_SPINCTRL=no | |
6949 | DEFAULT_wxUSE_SPLITTER=no | |
6950 | DEFAULT_wxUSE_STATBMP=no | |
6951 | DEFAULT_wxUSE_STATBOX=no | |
6952 | DEFAULT_wxUSE_STATLINE=no | |
6953 | DEFAULT_wxUSE_STATUSBAR=no | |
6954 | DEFAULT_wxUSE_TAB_DIALOG=no | |
6955 | DEFAULT_wxUSE_TOGGLEBTN=no | |
6956 | DEFAULT_wxUSE_TOOLBAR=no | |
6957 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
6958 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
6959 | DEFAULT_wxUSE_TOOLTIPS=no | |
6960 | DEFAULT_wxUSE_TREECTRL=no | |
6961 | DEFAULT_wxUSE_POPUPWIN=no | |
6962 | DEFAULT_wxUSE_TIPWINDOW=no | |
6963 | fi | |
6964 | ||
6965 | ## FIXME: This is a blatant hack | |
6966 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6967 | wxUSE_PRINTING_ARCHITECTURE=no | |
6968 | wxUSE_DRAG_AND_DROP=no | |
a848cd7e SC |
6969 | DEFAULT_wxUSE_TOOLTIPS=no |
6970 | DEFAULT_wxUSE_DRAGIMAGE=no | |
6971 | fi | |
6972 | ||
6973 | ||
6974 | enablestring= | |
6975 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
6976 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
6977 | no_cache=0 | |
6978 | # Check whether --enable-accel or --disable-accel was given. | |
6979 | if test "${enable_accel+set}" = set; then | |
6980 | enableval="$enable_accel" | |
6981 | ||
6982 | if test "$enableval" = yes; then | |
6983 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6984 | else | |
6985 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6986 | fi | |
6987 | ||
6988 | else | |
6989 | ||
6990 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
6991 | if test "x$LINE" != x ; then | |
6992 | eval "DEFAULT_$LINE" | |
6993 | else | |
6994 | no_cache=1 | |
6995 | fi | |
6996 | ||
6997 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
6998 | ||
6999 | fi; | |
7000 | ||
7001 | eval "$ac_cv_use_accel" | |
7002 | if test "$no_cache" != 1; then | |
7003 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7004 | fi | |
7005 | ||
7006 | if test "$wxUSE_ACCEL" = yes; then | |
7007 | echo "$as_me:$LINENO: result: yes" >&5 | |
7008 | echo "${ECHO_T}yes" >&6 | |
7009 | else | |
7010 | echo "$as_me:$LINENO: result: no" >&5 | |
7011 | echo "${ECHO_T}no" >&6 | |
7012 | fi | |
7013 | ||
7014 | ||
7015 | enablestring= | |
7016 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7017 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7018 | no_cache=0 | |
7019 | # Check whether --enable-button or --disable-button was given. | |
7020 | if test "${enable_button+set}" = set; then | |
7021 | enableval="$enable_button" | |
7022 | ||
7023 | if test "$enableval" = yes; then | |
7024 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7025 | else | |
7026 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7027 | fi | |
7028 | ||
7029 | else | |
7030 | ||
7031 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7032 | if test "x$LINE" != x ; then | |
7033 | eval "DEFAULT_$LINE" | |
7034 | else | |
7035 | no_cache=1 | |
7036 | fi | |
7037 | ||
7038 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7039 | ||
7040 | fi; | |
7041 | ||
7042 | eval "$ac_cv_use_button" | |
7043 | if test "$no_cache" != 1; then | |
7044 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7045 | fi | |
7046 | ||
7047 | if test "$wxUSE_BUTTON" = yes; then | |
7048 | echo "$as_me:$LINENO: result: yes" >&5 | |
7049 | echo "${ECHO_T}yes" >&6 | |
7050 | else | |
7051 | echo "$as_me:$LINENO: result: no" >&5 | |
7052 | echo "${ECHO_T}no" >&6 | |
7053 | fi | |
7054 | ||
7055 | ||
7056 | enablestring= | |
7057 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7058 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7059 | no_cache=0 | |
7060 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7061 | if test "${enable_bmpbutton+set}" = set; then | |
7062 | enableval="$enable_bmpbutton" | |
7063 | ||
7064 | if test "$enableval" = yes; then | |
7065 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7066 | else | |
7067 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7068 | fi | |
7069 | ||
7070 | else | |
7071 | ||
7072 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7073 | if test "x$LINE" != x ; then | |
7074 | eval "DEFAULT_$LINE" | |
7075 | else | |
7076 | no_cache=1 | |
7077 | fi | |
7078 | ||
7079 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7080 | ||
7081 | fi; | |
7082 | ||
7083 | eval "$ac_cv_use_bmpbutton" | |
7084 | if test "$no_cache" != 1; then | |
7085 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7086 | fi | |
7087 | ||
7088 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7089 | echo "$as_me:$LINENO: result: yes" >&5 | |
7090 | echo "${ECHO_T}yes" >&6 | |
7091 | else | |
7092 | echo "$as_me:$LINENO: result: no" >&5 | |
7093 | echo "${ECHO_T}no" >&6 | |
7094 | fi | |
7095 | ||
7096 | ||
7097 | enablestring= | |
7098 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7099 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7100 | no_cache=0 | |
7101 | # Check whether --enable-calendar or --disable-calendar was given. | |
7102 | if test "${enable_calendar+set}" = set; then | |
7103 | enableval="$enable_calendar" | |
7104 | ||
7105 | if test "$enableval" = yes; then | |
7106 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7107 | else | |
7108 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7109 | fi | |
7110 | ||
7111 | else | |
7112 | ||
7113 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7114 | if test "x$LINE" != x ; then | |
7115 | eval "DEFAULT_$LINE" | |
7116 | else | |
7117 | no_cache=1 | |
7118 | fi | |
7119 | ||
7120 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7121 | ||
7122 | fi; | |
7123 | ||
7124 | eval "$ac_cv_use_calendar" | |
7125 | if test "$no_cache" != 1; then | |
7126 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7127 | fi | |
7128 | ||
7129 | if test "$wxUSE_CALCTRL" = yes; then | |
7130 | echo "$as_me:$LINENO: result: yes" >&5 | |
7131 | echo "${ECHO_T}yes" >&6 | |
7132 | else | |
7133 | echo "$as_me:$LINENO: result: no" >&5 | |
7134 | echo "${ECHO_T}no" >&6 | |
7135 | fi | |
7136 | ||
7137 | ||
7138 | enablestring= | |
7139 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7140 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7141 | no_cache=0 | |
7142 | # Check whether --enable-caret or --disable-caret was given. | |
7143 | if test "${enable_caret+set}" = set; then | |
7144 | enableval="$enable_caret" | |
7145 | ||
7146 | if test "$enableval" = yes; then | |
7147 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7148 | else | |
7149 | ac_cv_use_caret='wxUSE_CARET=no' | |
7150 | fi | |
7151 | ||
7152 | else | |
7153 | ||
7154 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7155 | if test "x$LINE" != x ; then | |
7156 | eval "DEFAULT_$LINE" | |
7157 | else | |
7158 | no_cache=1 | |
7159 | fi | |
7160 | ||
7161 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7162 | ||
7163 | fi; | |
7164 | ||
7165 | eval "$ac_cv_use_caret" | |
7166 | if test "$no_cache" != 1; then | |
7167 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7168 | fi | |
7169 | ||
7170 | if test "$wxUSE_CARET" = yes; then | |
7171 | echo "$as_me:$LINENO: result: yes" >&5 | |
7172 | echo "${ECHO_T}yes" >&6 | |
7173 | else | |
7174 | echo "$as_me:$LINENO: result: no" >&5 | |
7175 | echo "${ECHO_T}no" >&6 | |
7176 | fi | |
7177 | ||
7178 | ||
7179 | enablestring= | |
7180 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7181 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7182 | no_cache=0 | |
7183 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7184 | if test "${enable_checkbox+set}" = set; then | |
7185 | enableval="$enable_checkbox" | |
7186 | ||
7187 | if test "$enableval" = yes; then | |
7188 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7189 | else | |
7190 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7191 | fi | |
7192 | ||
7193 | else | |
7194 | ||
7195 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7196 | if test "x$LINE" != x ; then | |
7197 | eval "DEFAULT_$LINE" | |
7198 | else | |
7199 | no_cache=1 | |
7200 | fi | |
7201 | ||
7202 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7203 | ||
7204 | fi; | |
7205 | ||
7206 | eval "$ac_cv_use_checkbox" | |
7207 | if test "$no_cache" != 1; then | |
7208 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7209 | fi | |
7210 | ||
7211 | if test "$wxUSE_CHECKBOX" = yes; then | |
7212 | echo "$as_me:$LINENO: result: yes" >&5 | |
7213 | echo "${ECHO_T}yes" >&6 | |
7214 | else | |
7215 | echo "$as_me:$LINENO: result: no" >&5 | |
7216 | echo "${ECHO_T}no" >&6 | |
7217 | fi | |
7218 | ||
7219 | ||
7220 | enablestring= | |
7221 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7222 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7223 | no_cache=0 | |
7224 | # Check whether --enable-checklst or --disable-checklst was given. | |
7225 | if test "${enable_checklst+set}" = set; then | |
7226 | enableval="$enable_checklst" | |
7227 | ||
7228 | if test "$enableval" = yes; then | |
7229 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7230 | else | |
7231 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7232 | fi | |
7233 | ||
7234 | else | |
7235 | ||
7236 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7237 | if test "x$LINE" != x ; then | |
7238 | eval "DEFAULT_$LINE" | |
7239 | else | |
7240 | no_cache=1 | |
7241 | fi | |
7242 | ||
7243 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7244 | ||
7245 | fi; | |
7246 | ||
7247 | eval "$ac_cv_use_checklst" | |
7248 | if test "$no_cache" != 1; then | |
7249 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7250 | fi | |
7251 | ||
7252 | if test "$wxUSE_CHECKLST" = yes; then | |
7253 | echo "$as_me:$LINENO: result: yes" >&5 | |
7254 | echo "${ECHO_T}yes" >&6 | |
7255 | else | |
7256 | echo "$as_me:$LINENO: result: no" >&5 | |
7257 | echo "${ECHO_T}no" >&6 | |
7258 | fi | |
7259 | ||
7260 | ||
7261 | enablestring= | |
7262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7263 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7264 | no_cache=0 | |
7265 | # Check whether --enable-choice or --disable-choice was given. | |
7266 | if test "${enable_choice+set}" = set; then | |
7267 | enableval="$enable_choice" | |
7268 | ||
7269 | if test "$enableval" = yes; then | |
7270 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7271 | else | |
7272 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7273 | fi | |
7274 | ||
7275 | else | |
7276 | ||
7277 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7278 | if test "x$LINE" != x ; then | |
7279 | eval "DEFAULT_$LINE" | |
7280 | else | |
7281 | no_cache=1 | |
7282 | fi | |
7283 | ||
7284 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7285 | ||
7286 | fi; | |
7287 | ||
7288 | eval "$ac_cv_use_choice" | |
7289 | if test "$no_cache" != 1; then | |
7290 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7291 | fi | |
7292 | ||
7293 | if test "$wxUSE_CHOICE" = yes; then | |
7294 | echo "$as_me:$LINENO: result: yes" >&5 | |
7295 | echo "${ECHO_T}yes" >&6 | |
7296 | else | |
7297 | echo "$as_me:$LINENO: result: no" >&5 | |
7298 | echo "${ECHO_T}no" >&6 | |
7299 | fi | |
7300 | ||
7301 | ||
92bbdbcd WS |
7302 | enablestring= |
7303 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7304 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7305 | no_cache=0 | |
7306 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7307 | if test "${enable_choicebook+set}" = set; then | |
7308 | enableval="$enable_choicebook" | |
7309 | ||
7310 | if test "$enableval" = yes; then | |
7311 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7312 | else | |
7313 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7314 | fi | |
7315 | ||
7316 | else | |
7317 | ||
7318 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7319 | if test "x$LINE" != x ; then | |
7320 | eval "DEFAULT_$LINE" | |
7321 | else | |
7322 | no_cache=1 | |
7323 | fi | |
7324 | ||
7325 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7326 | ||
7327 | fi; | |
7328 | ||
7329 | eval "$ac_cv_use_choicebook" | |
7330 | if test "$no_cache" != 1; then | |
7331 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7332 | fi | |
7333 | ||
7334 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7335 | echo "$as_me:$LINENO: result: yes" >&5 | |
7336 | echo "${ECHO_T}yes" >&6 | |
7337 | else | |
7338 | echo "$as_me:$LINENO: result: no" >&5 | |
7339 | echo "${ECHO_T}no" >&6 | |
7340 | fi | |
7341 | ||
7342 | ||
a848cd7e SC |
7343 | enablestring= |
7344 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7345 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7346 | no_cache=0 | |
7347 | # Check whether --enable-combobox or --disable-combobox was given. | |
7348 | if test "${enable_combobox+set}" = set; then | |
7349 | enableval="$enable_combobox" | |
7350 | ||
7351 | if test "$enableval" = yes; then | |
7352 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7353 | else | |
7354 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7355 | fi | |
7356 | ||
7357 | else | |
7358 | ||
7359 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7360 | if test "x$LINE" != x ; then | |
7361 | eval "DEFAULT_$LINE" | |
7362 | else | |
7363 | no_cache=1 | |
7364 | fi | |
7365 | ||
7366 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7367 | ||
7368 | fi; | |
7369 | ||
7370 | eval "$ac_cv_use_combobox" | |
7371 | if test "$no_cache" != 1; then | |
7372 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7373 | fi | |
7374 | ||
7375 | if test "$wxUSE_COMBOBOX" = yes; then | |
7376 | echo "$as_me:$LINENO: result: yes" >&5 | |
7377 | echo "${ECHO_T}yes" >&6 | |
7378 | else | |
7379 | echo "$as_me:$LINENO: result: no" >&5 | |
7380 | echo "${ECHO_T}no" >&6 | |
7381 | fi | |
7382 | ||
7383 | ||
7384 | enablestring= | |
7385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7386 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7387 | no_cache=0 | |
7388 | # Check whether --enable-display or --disable-display was given. | |
7389 | if test "${enable_display+set}" = set; then | |
7390 | enableval="$enable_display" | |
7391 | ||
7392 | if test "$enableval" = yes; then | |
7393 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7394 | else | |
7395 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7396 | fi | |
7397 | ||
7398 | else | |
7399 | ||
7400 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7401 | if test "x$LINE" != x ; then | |
7402 | eval "DEFAULT_$LINE" | |
7403 | else | |
7404 | no_cache=1 | |
7405 | fi | |
7406 | ||
7407 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7408 | ||
7409 | fi; | |
7410 | ||
7411 | eval "$ac_cv_use_display" | |
7412 | if test "$no_cache" != 1; then | |
7413 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7414 | fi | |
7415 | ||
7416 | if test "$wxUSE_DISPLAY" = yes; then | |
7417 | echo "$as_me:$LINENO: result: yes" >&5 | |
7418 | echo "${ECHO_T}yes" >&6 | |
7419 | else | |
7420 | echo "$as_me:$LINENO: result: no" >&5 | |
7421 | echo "${ECHO_T}no" >&6 | |
7422 | fi | |
7423 | ||
7424 | ||
7425 | enablestring= | |
7426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7427 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7428 | no_cache=0 | |
7429 | # Check whether --enable-gauge or --disable-gauge was given. | |
7430 | if test "${enable_gauge+set}" = set; then | |
7431 | enableval="$enable_gauge" | |
7432 | ||
7433 | if test "$enableval" = yes; then | |
7434 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7435 | else | |
7436 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7437 | fi | |
7438 | ||
7439 | else | |
7440 | ||
7441 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7442 | if test "x$LINE" != x ; then | |
7443 | eval "DEFAULT_$LINE" | |
7444 | else | |
7445 | no_cache=1 | |
7446 | fi | |
7447 | ||
7448 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7449 | ||
7450 | fi; | |
7451 | ||
7452 | eval "$ac_cv_use_gauge" | |
7453 | if test "$no_cache" != 1; then | |
7454 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7455 | fi | |
7456 | ||
7457 | if test "$wxUSE_GAUGE" = yes; then | |
7458 | echo "$as_me:$LINENO: result: yes" >&5 | |
7459 | echo "${ECHO_T}yes" >&6 | |
7460 | else | |
7461 | echo "$as_me:$LINENO: result: no" >&5 | |
7462 | echo "${ECHO_T}no" >&6 | |
7463 | fi | |
7464 | ||
7465 | ||
7466 | enablestring= | |
7467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7468 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7469 | no_cache=0 | |
7470 | # Check whether --enable-grid or --disable-grid was given. | |
7471 | if test "${enable_grid+set}" = set; then | |
7472 | enableval="$enable_grid" | |
7473 | ||
7474 | if test "$enableval" = yes; then | |
7475 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7476 | else | |
7477 | ac_cv_use_grid='wxUSE_GRID=no' | |
7478 | fi | |
7479 | ||
7480 | else | |
7481 | ||
7482 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7483 | if test "x$LINE" != x ; then | |
7484 | eval "DEFAULT_$LINE" | |
7485 | else | |
7486 | no_cache=1 | |
7487 | fi | |
7488 | ||
7489 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7490 | ||
7491 | fi; | |
7492 | ||
7493 | eval "$ac_cv_use_grid" | |
7494 | if test "$no_cache" != 1; then | |
7495 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7496 | fi | |
7497 | ||
7498 | if test "$wxUSE_GRID" = yes; then | |
7499 | echo "$as_me:$LINENO: result: yes" >&5 | |
7500 | echo "${ECHO_T}yes" >&6 | |
7501 | else | |
7502 | echo "$as_me:$LINENO: result: no" >&5 | |
7503 | echo "${ECHO_T}no" >&6 | |
7504 | fi | |
7505 | ||
7506 | ||
7507 | enablestring= | |
7508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7509 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7510 | no_cache=0 | |
7511 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7512 | if test "${enable_imaglist+set}" = set; then | |
7513 | enableval="$enable_imaglist" | |
7514 | ||
7515 | if test "$enableval" = yes; then | |
7516 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7517 | else | |
7518 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7519 | fi | |
7520 | ||
7521 | else | |
7522 | ||
7523 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7524 | if test "x$LINE" != x ; then | |
7525 | eval "DEFAULT_$LINE" | |
7526 | else | |
7527 | no_cache=1 | |
7528 | fi | |
7529 | ||
7530 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7531 | ||
7532 | fi; | |
7533 | ||
7534 | eval "$ac_cv_use_imaglist" | |
7535 | if test "$no_cache" != 1; then | |
7536 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7537 | fi | |
7538 | ||
7539 | if test "$wxUSE_IMAGLIST" = yes; then | |
7540 | echo "$as_me:$LINENO: result: yes" >&5 | |
7541 | echo "${ECHO_T}yes" >&6 | |
7542 | else | |
7543 | echo "$as_me:$LINENO: result: no" >&5 | |
7544 | echo "${ECHO_T}no" >&6 | |
7545 | fi | |
7546 | ||
7547 | ||
7548 | enablestring= | |
7549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7550 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7551 | no_cache=0 | |
7552 | # Check whether --enable-listbook or --disable-listbook was given. | |
7553 | if test "${enable_listbook+set}" = set; then | |
7554 | enableval="$enable_listbook" | |
7555 | ||
7556 | if test "$enableval" = yes; then | |
7557 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7558 | else | |
7559 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7560 | fi | |
7561 | ||
7562 | else | |
7563 | ||
7564 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7565 | if test "x$LINE" != x ; then | |
7566 | eval "DEFAULT_$LINE" | |
7567 | else | |
7568 | no_cache=1 | |
7569 | fi | |
7570 | ||
7571 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7572 | ||
7573 | fi; | |
7574 | ||
7575 | eval "$ac_cv_use_listbook" | |
7576 | if test "$no_cache" != 1; then | |
7577 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7578 | fi | |
7579 | ||
7580 | if test "$wxUSE_LISTBOOK" = yes; then | |
7581 | echo "$as_me:$LINENO: result: yes" >&5 | |
7582 | echo "${ECHO_T}yes" >&6 | |
7583 | else | |
7584 | echo "$as_me:$LINENO: result: no" >&5 | |
7585 | echo "${ECHO_T}no" >&6 | |
7586 | fi | |
7587 | ||
7588 | ||
7589 | enablestring= | |
7590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7591 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7592 | no_cache=0 | |
7593 | # Check whether --enable-listbox or --disable-listbox was given. | |
7594 | if test "${enable_listbox+set}" = set; then | |
7595 | enableval="$enable_listbox" | |
7596 | ||
7597 | if test "$enableval" = yes; then | |
7598 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7599 | else | |
7600 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7601 | fi | |
7602 | ||
7603 | else | |
7604 | ||
7605 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7606 | if test "x$LINE" != x ; then | |
7607 | eval "DEFAULT_$LINE" | |
7608 | else | |
7609 | no_cache=1 | |
7610 | fi | |
7611 | ||
7612 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7613 | ||
7614 | fi; | |
7615 | ||
7616 | eval "$ac_cv_use_listbox" | |
7617 | if test "$no_cache" != 1; then | |
7618 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7619 | fi | |
7620 | ||
7621 | if test "$wxUSE_LISTBOX" = yes; then | |
7622 | echo "$as_me:$LINENO: result: yes" >&5 | |
7623 | echo "${ECHO_T}yes" >&6 | |
7624 | else | |
7625 | echo "$as_me:$LINENO: result: no" >&5 | |
7626 | echo "${ECHO_T}no" >&6 | |
7627 | fi | |
7628 | ||
7629 | ||
7630 | enablestring= | |
7631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7632 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7633 | no_cache=0 | |
7634 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7635 | if test "${enable_listctrl+set}" = set; then | |
7636 | enableval="$enable_listctrl" | |
7637 | ||
7638 | if test "$enableval" = yes; then | |
7639 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7640 | else | |
7641 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7642 | fi | |
7643 | ||
7644 | else | |
7645 | ||
7646 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7647 | if test "x$LINE" != x ; then | |
7648 | eval "DEFAULT_$LINE" | |
7649 | else | |
7650 | no_cache=1 | |
7651 | fi | |
7652 | ||
7653 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7654 | ||
7655 | fi; | |
7656 | ||
7657 | eval "$ac_cv_use_listctrl" | |
7658 | if test "$no_cache" != 1; then | |
7659 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7660 | fi | |
7661 | ||
7662 | if test "$wxUSE_LISTCTRL" = yes; then | |
7663 | echo "$as_me:$LINENO: result: yes" >&5 | |
7664 | echo "${ECHO_T}yes" >&6 | |
7665 | else | |
7666 | echo "$as_me:$LINENO: result: no" >&5 | |
7667 | echo "${ECHO_T}no" >&6 | |
7668 | fi | |
7669 | ||
7670 | ||
7671 | enablestring= | |
7672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7673 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7674 | no_cache=0 | |
7675 | # Check whether --enable-notebook or --disable-notebook was given. | |
7676 | if test "${enable_notebook+set}" = set; then | |
7677 | enableval="$enable_notebook" | |
7678 | ||
7679 | if test "$enableval" = yes; then | |
7680 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7681 | else | |
7682 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7683 | fi | |
7684 | ||
7685 | else | |
7686 | ||
7687 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7688 | if test "x$LINE" != x ; then | |
7689 | eval "DEFAULT_$LINE" | |
7690 | else | |
7691 | no_cache=1 | |
7692 | fi | |
7693 | ||
7694 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7695 | ||
7696 | fi; | |
7697 | ||
7698 | eval "$ac_cv_use_notebook" | |
7699 | if test "$no_cache" != 1; then | |
7700 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7701 | fi | |
7702 | ||
7703 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7704 | echo "$as_me:$LINENO: result: yes" >&5 | |
7705 | echo "${ECHO_T}yes" >&6 | |
7706 | else | |
7707 | echo "$as_me:$LINENO: result: no" >&5 | |
7708 | echo "${ECHO_T}no" >&6 | |
7709 | fi | |
7710 | ||
7711 | ||
7712 | enablestring= | |
7713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7714 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7715 | no_cache=0 | |
7716 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7717 | if test "${enable_radiobox+set}" = set; then | |
7718 | enableval="$enable_radiobox" | |
7719 | ||
7720 | if test "$enableval" = yes; then | |
7721 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7722 | else | |
7723 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7724 | fi | |
7725 | ||
7726 | else | |
7727 | ||
7728 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7729 | if test "x$LINE" != x ; then | |
7730 | eval "DEFAULT_$LINE" | |
7731 | else | |
7732 | no_cache=1 | |
7733 | fi | |
7734 | ||
7735 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7736 | ||
7737 | fi; | |
7738 | ||
7739 | eval "$ac_cv_use_radiobox" | |
7740 | if test "$no_cache" != 1; then | |
7741 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7742 | fi | |
7743 | ||
7744 | if test "$wxUSE_RADIOBOX" = yes; then | |
7745 | echo "$as_me:$LINENO: result: yes" >&5 | |
7746 | echo "${ECHO_T}yes" >&6 | |
7747 | else | |
7748 | echo "$as_me:$LINENO: result: no" >&5 | |
7749 | echo "${ECHO_T}no" >&6 | |
7750 | fi | |
7751 | ||
7752 | ||
7753 | enablestring= | |
7754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7755 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7756 | no_cache=0 | |
7757 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7758 | if test "${enable_radiobtn+set}" = set; then | |
7759 | enableval="$enable_radiobtn" | |
7760 | ||
7761 | if test "$enableval" = yes; then | |
7762 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7763 | else | |
7764 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7765 | fi | |
7766 | ||
7767 | else | |
7768 | ||
7769 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7770 | if test "x$LINE" != x ; then | |
7771 | eval "DEFAULT_$LINE" | |
7772 | else | |
7773 | no_cache=1 | |
7774 | fi | |
7775 | ||
7776 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7777 | ||
7778 | fi; | |
7779 | ||
7780 | eval "$ac_cv_use_radiobtn" | |
7781 | if test "$no_cache" != 1; then | |
7782 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7783 | fi | |
7784 | ||
7785 | if test "$wxUSE_RADIOBTN" = yes; then | |
7786 | echo "$as_me:$LINENO: result: yes" >&5 | |
7787 | echo "${ECHO_T}yes" >&6 | |
7788 | else | |
7789 | echo "$as_me:$LINENO: result: no" >&5 | |
7790 | echo "${ECHO_T}no" >&6 | |
7791 | fi | |
7792 | ||
7793 | ||
7794 | enablestring= | |
7795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7796 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7797 | no_cache=0 | |
7798 | # Check whether --enable-sash or --disable-sash was given. | |
7799 | if test "${enable_sash+set}" = set; then | |
7800 | enableval="$enable_sash" | |
7801 | ||
7802 | if test "$enableval" = yes; then | |
7803 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7804 | else | |
7805 | ac_cv_use_sash='wxUSE_SASH=no' | |
7806 | fi | |
7807 | ||
7808 | else | |
7809 | ||
7810 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7811 | if test "x$LINE" != x ; then | |
7812 | eval "DEFAULT_$LINE" | |
7813 | else | |
7814 | no_cache=1 | |
7815 | fi | |
7816 | ||
7817 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7818 | ||
7819 | fi; | |
7820 | ||
7821 | eval "$ac_cv_use_sash" | |
7822 | if test "$no_cache" != 1; then | |
7823 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7824 | fi | |
7825 | ||
7826 | if test "$wxUSE_SASH" = yes; then | |
7827 | echo "$as_me:$LINENO: result: yes" >&5 | |
7828 | echo "${ECHO_T}yes" >&6 | |
7829 | else | |
7830 | echo "$as_me:$LINENO: result: no" >&5 | |
7831 | echo "${ECHO_T}no" >&6 | |
7832 | fi | |
7833 | ||
7834 | ||
7835 | enablestring= | |
7836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7837 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7838 | no_cache=0 | |
7839 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7840 | if test "${enable_scrollbar+set}" = set; then | |
7841 | enableval="$enable_scrollbar" | |
7842 | ||
7843 | if test "$enableval" = yes; then | |
7844 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7845 | else | |
7846 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7847 | fi | |
7848 | ||
7849 | else | |
7850 | ||
7851 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7852 | if test "x$LINE" != x ; then | |
7853 | eval "DEFAULT_$LINE" | |
7854 | else | |
7855 | no_cache=1 | |
7856 | fi | |
7857 | ||
7858 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7859 | ||
7860 | fi; | |
7861 | ||
7862 | eval "$ac_cv_use_scrollbar" | |
7863 | if test "$no_cache" != 1; then | |
7864 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7865 | fi | |
7866 | ||
7867 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7868 | echo "$as_me:$LINENO: result: yes" >&5 | |
7869 | echo "${ECHO_T}yes" >&6 | |
7870 | else | |
7871 | echo "$as_me:$LINENO: result: no" >&5 | |
7872 | echo "${ECHO_T}no" >&6 | |
7873 | fi | |
7874 | ||
7875 | ||
7876 | enablestring= | |
7877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7878 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7879 | no_cache=0 | |
7880 | # Check whether --enable-slider or --disable-slider was given. | |
7881 | if test "${enable_slider+set}" = set; then | |
7882 | enableval="$enable_slider" | |
7883 | ||
7884 | if test "$enableval" = yes; then | |
7885 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7886 | else | |
7887 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7888 | fi | |
7889 | ||
7890 | else | |
7891 | ||
7892 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
7893 | if test "x$LINE" != x ; then | |
7894 | eval "DEFAULT_$LINE" | |
7895 | else | |
7896 | no_cache=1 | |
7897 | fi | |
7898 | ||
7899 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7900 | ||
7901 | fi; | |
7902 | ||
7903 | eval "$ac_cv_use_slider" | |
7904 | if test "$no_cache" != 1; then | |
7905 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7906 | fi | |
7907 | ||
7908 | if test "$wxUSE_SLIDER" = yes; then | |
7909 | echo "$as_me:$LINENO: result: yes" >&5 | |
7910 | echo "${ECHO_T}yes" >&6 | |
7911 | else | |
7912 | echo "$as_me:$LINENO: result: no" >&5 | |
7913 | echo "${ECHO_T}no" >&6 | |
7914 | fi | |
7915 | ||
7916 | ||
7917 | enablestring= | |
7918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
7919 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7920 | no_cache=0 | |
7921 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7922 | if test "${enable_spinbtn+set}" = set; then | |
7923 | enableval="$enable_spinbtn" | |
7924 | ||
7925 | if test "$enableval" = yes; then | |
7926 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7927 | else | |
7928 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7929 | fi | |
7930 | ||
7931 | else | |
7932 | ||
7933 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
7934 | if test "x$LINE" != x ; then | |
7935 | eval "DEFAULT_$LINE" | |
7936 | else | |
7937 | no_cache=1 | |
7938 | fi | |
7939 | ||
7940 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7941 | ||
7942 | fi; | |
7943 | ||
7944 | eval "$ac_cv_use_spinbtn" | |
7945 | if test "$no_cache" != 1; then | |
7946 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7947 | fi | |
7948 | ||
7949 | if test "$wxUSE_SPINBTN" = yes; then | |
7950 | echo "$as_me:$LINENO: result: yes" >&5 | |
7951 | echo "${ECHO_T}yes" >&6 | |
7952 | else | |
7953 | echo "$as_me:$LINENO: result: no" >&5 | |
7954 | echo "${ECHO_T}no" >&6 | |
7955 | fi | |
7956 | ||
7957 | ||
7958 | enablestring= | |
7959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
7960 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
7961 | no_cache=0 | |
7962 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7963 | if test "${enable_spinctrl+set}" = set; then | |
7964 | enableval="$enable_spinctrl" | |
7965 | ||
7966 | if test "$enableval" = yes; then | |
7967 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7968 | else | |
7969 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7970 | fi | |
7971 | ||
7972 | else | |
7973 | ||
7974 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
7975 | if test "x$LINE" != x ; then | |
7976 | eval "DEFAULT_$LINE" | |
7977 | else | |
7978 | no_cache=1 | |
7979 | fi | |
7980 | ||
7981 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
7982 | ||
7983 | fi; | |
7984 | ||
7985 | eval "$ac_cv_use_spinctrl" | |
7986 | if test "$no_cache" != 1; then | |
7987 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7988 | fi | |
7989 | ||
7990 | if test "$wxUSE_SPINCTRL" = yes; then | |
7991 | echo "$as_me:$LINENO: result: yes" >&5 | |
7992 | echo "${ECHO_T}yes" >&6 | |
7993 | else | |
7994 | echo "$as_me:$LINENO: result: no" >&5 | |
7995 | echo "${ECHO_T}no" >&6 | |
7996 | fi | |
7997 | ||
7998 | ||
7999 | enablestring= | |
8000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8001 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8002 | no_cache=0 | |
8003 | # Check whether --enable-splitter or --disable-splitter was given. | |
8004 | if test "${enable_splitter+set}" = set; then | |
8005 | enableval="$enable_splitter" | |
8006 | ||
8007 | if test "$enableval" = yes; then | |
8008 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8009 | else | |
8010 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8011 | fi | |
8012 | ||
8013 | else | |
8014 | ||
8015 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8016 | if test "x$LINE" != x ; then | |
8017 | eval "DEFAULT_$LINE" | |
8018 | else | |
8019 | no_cache=1 | |
8020 | fi | |
8021 | ||
8022 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8023 | ||
8024 | fi; | |
8025 | ||
8026 | eval "$ac_cv_use_splitter" | |
8027 | if test "$no_cache" != 1; then | |
8028 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8029 | fi | |
8030 | ||
8031 | if test "$wxUSE_SPLITTER" = yes; then | |
8032 | echo "$as_me:$LINENO: result: yes" >&5 | |
8033 | echo "${ECHO_T}yes" >&6 | |
8034 | else | |
8035 | echo "$as_me:$LINENO: result: no" >&5 | |
8036 | echo "${ECHO_T}no" >&6 | |
8037 | fi | |
8038 | ||
8039 | ||
8040 | enablestring= | |
8041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8042 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8043 | no_cache=0 | |
8044 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8045 | if test "${enable_statbmp+set}" = set; then | |
8046 | enableval="$enable_statbmp" | |
8047 | ||
8048 | if test "$enableval" = yes; then | |
8049 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8050 | else | |
8051 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8052 | fi | |
8053 | ||
8054 | else | |
8055 | ||
8056 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8057 | if test "x$LINE" != x ; then | |
8058 | eval "DEFAULT_$LINE" | |
8059 | else | |
8060 | no_cache=1 | |
8061 | fi | |
8062 | ||
8063 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8064 | ||
8065 | fi; | |
8066 | ||
8067 | eval "$ac_cv_use_statbmp" | |
8068 | if test "$no_cache" != 1; then | |
8069 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8070 | fi | |
8071 | ||
8072 | if test "$wxUSE_STATBMP" = yes; then | |
8073 | echo "$as_me:$LINENO: result: yes" >&5 | |
8074 | echo "${ECHO_T}yes" >&6 | |
8075 | else | |
8076 | echo "$as_me:$LINENO: result: no" >&5 | |
8077 | echo "${ECHO_T}no" >&6 | |
8078 | fi | |
8079 | ||
8080 | ||
8081 | enablestring= | |
8082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8083 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8084 | no_cache=0 | |
8085 | # Check whether --enable-statbox or --disable-statbox was given. | |
8086 | if test "${enable_statbox+set}" = set; then | |
8087 | enableval="$enable_statbox" | |
8088 | ||
8089 | if test "$enableval" = yes; then | |
8090 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8091 | else | |
8092 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8093 | fi | |
8094 | ||
8095 | else | |
8096 | ||
8097 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8098 | if test "x$LINE" != x ; then | |
8099 | eval "DEFAULT_$LINE" | |
8100 | else | |
8101 | no_cache=1 | |
8102 | fi | |
8103 | ||
8104 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8105 | ||
8106 | fi; | |
8107 | ||
8108 | eval "$ac_cv_use_statbox" | |
8109 | if test "$no_cache" != 1; then | |
8110 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8111 | fi | |
8112 | ||
8113 | if test "$wxUSE_STATBOX" = yes; then | |
8114 | echo "$as_me:$LINENO: result: yes" >&5 | |
8115 | echo "${ECHO_T}yes" >&6 | |
8116 | else | |
8117 | echo "$as_me:$LINENO: result: no" >&5 | |
8118 | echo "${ECHO_T}no" >&6 | |
8119 | fi | |
8120 | ||
8121 | ||
8122 | enablestring= | |
8123 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8124 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8125 | no_cache=0 | |
8126 | # Check whether --enable-statline or --disable-statline was given. | |
8127 | if test "${enable_statline+set}" = set; then | |
8128 | enableval="$enable_statline" | |
8129 | ||
8130 | if test "$enableval" = yes; then | |
8131 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8132 | else | |
8133 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8134 | fi | |
8135 | ||
8136 | else | |
8137 | ||
8138 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8139 | if test "x$LINE" != x ; then | |
8140 | eval "DEFAULT_$LINE" | |
8141 | else | |
8142 | no_cache=1 | |
8143 | fi | |
8144 | ||
8145 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8146 | ||
8147 | fi; | |
8148 | ||
8149 | eval "$ac_cv_use_statline" | |
8150 | if test "$no_cache" != 1; then | |
8151 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8152 | fi | |
8153 | ||
8154 | if test "$wxUSE_STATLINE" = yes; then | |
8155 | echo "$as_me:$LINENO: result: yes" >&5 | |
8156 | echo "${ECHO_T}yes" >&6 | |
8157 | else | |
8158 | echo "$as_me:$LINENO: result: no" >&5 | |
8159 | echo "${ECHO_T}no" >&6 | |
8160 | fi | |
8161 | ||
8162 | ||
8163 | enablestring= | |
8164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8165 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8166 | no_cache=0 | |
8167 | # Check whether --enable-stattext or --disable-stattext was given. | |
8168 | if test "${enable_stattext+set}" = set; then | |
8169 | enableval="$enable_stattext" | |
8170 | ||
8171 | if test "$enableval" = yes; then | |
8172 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8173 | else | |
8174 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8175 | fi | |
8176 | ||
8177 | else | |
8178 | ||
8179 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8180 | if test "x$LINE" != x ; then | |
8181 | eval "DEFAULT_$LINE" | |
8182 | else | |
8183 | no_cache=1 | |
8184 | fi | |
8185 | ||
8186 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8187 | ||
8188 | fi; | |
8189 | ||
8190 | eval "$ac_cv_use_stattext" | |
8191 | if test "$no_cache" != 1; then | |
8192 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8193 | fi | |
8194 | ||
8195 | if test "$wxUSE_STATTEXT" = yes; then | |
8196 | echo "$as_me:$LINENO: result: yes" >&5 | |
8197 | echo "${ECHO_T}yes" >&6 | |
8198 | else | |
8199 | echo "$as_me:$LINENO: result: no" >&5 | |
8200 | echo "${ECHO_T}no" >&6 | |
8201 | fi | |
8202 | ||
8203 | ||
8204 | enablestring= | |
8205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8206 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8207 | no_cache=0 | |
8208 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8209 | if test "${enable_statusbar+set}" = set; then | |
8210 | enableval="$enable_statusbar" | |
8211 | ||
8212 | if test "$enableval" = yes; then | |
8213 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8214 | else | |
8215 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8216 | fi | |
8217 | ||
8218 | else | |
8219 | ||
8220 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8221 | if test "x$LINE" != x ; then | |
8222 | eval "DEFAULT_$LINE" | |
8223 | else | |
8224 | no_cache=1 | |
8225 | fi | |
8226 | ||
8227 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8228 | ||
8229 | fi; | |
8230 | ||
8231 | eval "$ac_cv_use_statusbar" | |
8232 | if test "$no_cache" != 1; then | |
8233 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8234 | fi | |
8235 | ||
8236 | if test "$wxUSE_STATUSBAR" = yes; then | |
8237 | echo "$as_me:$LINENO: result: yes" >&5 | |
8238 | echo "${ECHO_T}yes" >&6 | |
8239 | else | |
8240 | echo "$as_me:$LINENO: result: no" >&5 | |
8241 | echo "${ECHO_T}no" >&6 | |
8242 | fi | |
8243 | ||
8244 | ||
8245 | enablestring= | |
8246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8247 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8248 | no_cache=0 | |
8249 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8250 | if test "${enable_tabdialog+set}" = set; then | |
8251 | enableval="$enable_tabdialog" | |
8252 | ||
8253 | if test "$enableval" = yes; then | |
8254 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8255 | else | |
8256 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8257 | fi | |
8258 | ||
8259 | else | |
8260 | ||
8261 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8262 | if test "x$LINE" != x ; then | |
8263 | eval "DEFAULT_$LINE" | |
8264 | else | |
8265 | no_cache=1 | |
8266 | fi | |
8267 | ||
8268 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8269 | ||
8270 | fi; | |
8271 | ||
8272 | eval "$ac_cv_use_tabdialog" | |
8273 | if test "$no_cache" != 1; then | |
8274 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8275 | fi | |
8276 | ||
8277 | if test "$wxUSE_TABDIALOG" = yes; then | |
8278 | echo "$as_me:$LINENO: result: yes" >&5 | |
8279 | echo "${ECHO_T}yes" >&6 | |
8280 | else | |
8281 | echo "$as_me:$LINENO: result: no" >&5 | |
8282 | echo "${ECHO_T}no" >&6 | |
8283 | fi | |
8284 | ||
8285 | ||
8286 | enablestring= | |
8287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8288 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8289 | no_cache=0 | |
8290 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8291 | if test "${enable_textctrl+set}" = set; then | |
8292 | enableval="$enable_textctrl" | |
8293 | ||
8294 | if test "$enableval" = yes; then | |
8295 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8296 | else | |
8297 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8298 | fi | |
8299 | ||
8300 | else | |
8301 | ||
8302 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8303 | if test "x$LINE" != x ; then | |
8304 | eval "DEFAULT_$LINE" | |
8305 | else | |
8306 | no_cache=1 | |
8307 | fi | |
8308 | ||
8309 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8310 | ||
8311 | fi; | |
8312 | ||
8313 | eval "$ac_cv_use_textctrl" | |
8314 | if test "$no_cache" != 1; then | |
8315 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8316 | fi | |
8317 | ||
8318 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8319 | echo "$as_me:$LINENO: result: yes" >&5 | |
8320 | echo "${ECHO_T}yes" >&6 | |
8321 | else | |
8322 | echo "$as_me:$LINENO: result: no" >&5 | |
8323 | echo "${ECHO_T}no" >&6 | |
8324 | fi | |
8325 | ||
8326 | ||
8327 | enablestring= | |
8328 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8329 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8330 | no_cache=0 | |
8331 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8332 | if test "${enable_togglebtn+set}" = set; then | |
8333 | enableval="$enable_togglebtn" | |
8334 | ||
8335 | if test "$enableval" = yes; then | |
8336 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8337 | else | |
8338 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8339 | fi | |
8340 | ||
8341 | else | |
8342 | ||
8343 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8344 | if test "x$LINE" != x ; then | |
8345 | eval "DEFAULT_$LINE" | |
8346 | else | |
8347 | no_cache=1 | |
8348 | fi | |
8349 | ||
8350 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8351 | ||
8352 | fi; | |
8353 | ||
8354 | eval "$ac_cv_use_togglebtn" | |
8355 | if test "$no_cache" != 1; then | |
8356 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8357 | fi | |
8358 | ||
8359 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8360 | echo "$as_me:$LINENO: result: yes" >&5 | |
8361 | echo "${ECHO_T}yes" >&6 | |
8362 | else | |
8363 | echo "$as_me:$LINENO: result: no" >&5 | |
8364 | echo "${ECHO_T}no" >&6 | |
8365 | fi | |
8366 | ||
8367 | ||
8368 | enablestring= | |
8369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8370 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8371 | no_cache=0 | |
8372 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8373 | if test "${enable_toolbar+set}" = set; then | |
8374 | enableval="$enable_toolbar" | |
8375 | ||
8376 | if test "$enableval" = yes; then | |
8377 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8378 | else | |
8379 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8380 | fi | |
8381 | ||
8382 | else | |
8383 | ||
8384 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8385 | if test "x$LINE" != x ; then | |
8386 | eval "DEFAULT_$LINE" | |
8387 | else | |
8388 | no_cache=1 | |
8389 | fi | |
8390 | ||
8391 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8392 | ||
8393 | fi; | |
8394 | ||
8395 | eval "$ac_cv_use_toolbar" | |
8396 | if test "$no_cache" != 1; then | |
8397 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8398 | fi | |
8399 | ||
8400 | if test "$wxUSE_TOOLBAR" = yes; then | |
8401 | echo "$as_me:$LINENO: result: yes" >&5 | |
8402 | echo "${ECHO_T}yes" >&6 | |
8403 | else | |
8404 | echo "$as_me:$LINENO: result: no" >&5 | |
8405 | echo "${ECHO_T}no" >&6 | |
8406 | fi | |
8407 | ||
8408 | ||
8409 | enablestring= | |
8410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8411 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8412 | no_cache=0 | |
8413 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8414 | if test "${enable_tbarnative+set}" = set; then | |
8415 | enableval="$enable_tbarnative" | |
8416 | ||
8417 | if test "$enableval" = yes; then | |
8418 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8419 | else | |
8420 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8421 | fi | |
8422 | ||
8423 | else | |
8424 | ||
8425 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8426 | if test "x$LINE" != x ; then | |
8427 | eval "DEFAULT_$LINE" | |
8428 | else | |
8429 | no_cache=1 | |
8430 | fi | |
8431 | ||
8432 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8433 | ||
8434 | fi; | |
8435 | ||
8436 | eval "$ac_cv_use_tbarnative" | |
8437 | if test "$no_cache" != 1; then | |
8438 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8439 | fi | |
8440 | ||
8441 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8442 | echo "$as_me:$LINENO: result: yes" >&5 | |
8443 | echo "${ECHO_T}yes" >&6 | |
8444 | else | |
8445 | echo "$as_me:$LINENO: result: no" >&5 | |
8446 | echo "${ECHO_T}no" >&6 | |
8447 | fi | |
8448 | ||
8449 | ||
8450 | enablestring= | |
8451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8452 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8453 | no_cache=0 | |
8454 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8455 | if test "${enable_tbarsmpl+set}" = set; then | |
8456 | enableval="$enable_tbarsmpl" | |
8457 | ||
8458 | if test "$enableval" = yes; then | |
8459 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8460 | else | |
8461 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8462 | fi | |
8463 | ||
8464 | else | |
8465 | ||
8466 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8467 | if test "x$LINE" != x ; then | |
8468 | eval "DEFAULT_$LINE" | |
8469 | else | |
8470 | no_cache=1 | |
8471 | fi | |
8472 | ||
8473 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8474 | ||
8475 | fi; | |
8476 | ||
8477 | eval "$ac_cv_use_tbarsmpl" | |
8478 | if test "$no_cache" != 1; then | |
8479 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8480 | fi | |
8481 | ||
8482 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8483 | echo "$as_me:$LINENO: result: yes" >&5 | |
8484 | echo "${ECHO_T}yes" >&6 | |
8485 | else | |
8486 | echo "$as_me:$LINENO: result: no" >&5 | |
8487 | echo "${ECHO_T}no" >&6 | |
8488 | fi | |
8489 | ||
8490 | ||
8491 | enablestring= | |
8492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8493 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8494 | no_cache=0 | |
8495 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8496 | if test "${enable_treectrl+set}" = set; then | |
8497 | enableval="$enable_treectrl" | |
8498 | ||
8499 | if test "$enableval" = yes; then | |
8500 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8501 | else | |
8502 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8503 | fi | |
8504 | ||
8505 | else | |
8506 | ||
8507 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8508 | if test "x$LINE" != x ; then | |
8509 | eval "DEFAULT_$LINE" | |
8510 | else | |
8511 | no_cache=1 | |
8512 | fi | |
8513 | ||
8514 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8515 | ||
8516 | fi; | |
8517 | ||
8518 | eval "$ac_cv_use_treectrl" | |
8519 | if test "$no_cache" != 1; then | |
8520 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8521 | fi | |
8522 | ||
8523 | if test "$wxUSE_TREECTRL" = yes; then | |
8524 | echo "$as_me:$LINENO: result: yes" >&5 | |
8525 | echo "${ECHO_T}yes" >&6 | |
8526 | else | |
8527 | echo "$as_me:$LINENO: result: no" >&5 | |
8528 | echo "${ECHO_T}no" >&6 | |
8529 | fi | |
8530 | ||
8531 | ||
8532 | enablestring= | |
8533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8534 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8535 | no_cache=0 | |
8536 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8537 | if test "${enable_tipwindow+set}" = set; then | |
8538 | enableval="$enable_tipwindow" | |
8539 | ||
8540 | if test "$enableval" = yes; then | |
8541 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8542 | else | |
8543 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8544 | fi | |
8545 | ||
8546 | else | |
8547 | ||
8548 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8549 | if test "x$LINE" != x ; then | |
8550 | eval "DEFAULT_$LINE" | |
8551 | else | |
8552 | no_cache=1 | |
8553 | fi | |
8554 | ||
8555 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8556 | ||
8557 | fi; | |
8558 | ||
8559 | eval "$ac_cv_use_tipwindow" | |
8560 | if test "$no_cache" != 1; then | |
8561 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8562 | fi | |
8563 | ||
8564 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8565 | echo "$as_me:$LINENO: result: yes" >&5 | |
8566 | echo "${ECHO_T}yes" >&6 | |
8567 | else | |
8568 | echo "$as_me:$LINENO: result: no" >&5 | |
8569 | echo "${ECHO_T}no" >&6 | |
8570 | fi | |
8571 | ||
8572 | ||
8573 | enablestring= | |
8574 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8575 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8576 | no_cache=0 | |
8577 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8578 | if test "${enable_popupwin+set}" = set; then | |
8579 | enableval="$enable_popupwin" | |
8580 | ||
8581 | if test "$enableval" = yes; then | |
8582 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8583 | else | |
8584 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8585 | fi | |
8586 | ||
8587 | else | |
8588 | ||
8589 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8590 | if test "x$LINE" != x ; then | |
8591 | eval "DEFAULT_$LINE" | |
8592 | else | |
8593 | no_cache=1 | |
8594 | fi | |
8595 | ||
8596 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8597 | ||
8598 | fi; | |
8599 | ||
8600 | eval "$ac_cv_use_popupwin" | |
8601 | if test "$no_cache" != 1; then | |
8602 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8603 | fi | |
8604 | ||
8605 | if test "$wxUSE_POPUPWIN" = yes; then | |
8606 | echo "$as_me:$LINENO: result: yes" >&5 | |
8607 | echo "${ECHO_T}yes" >&6 | |
8608 | else | |
8609 | echo "$as_me:$LINENO: result: no" >&5 | |
8610 | echo "${ECHO_T}no" >&6 | |
8611 | fi | |
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | enablestring= | |
8617 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8618 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8619 | no_cache=0 | |
8620 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8621 | if test "${enable_commondlg+set}" = set; then | |
8622 | enableval="$enable_commondlg" | |
8623 | ||
8624 | if test "$enableval" = yes; then | |
8625 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8626 | else | |
8627 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8628 | fi | |
8629 | ||
8630 | else | |
8631 | ||
8632 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8633 | if test "x$LINE" != x ; then | |
8634 | eval "DEFAULT_$LINE" | |
8635 | else | |
8636 | no_cache=1 | |
8637 | fi | |
8638 | ||
8639 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8640 | ||
8641 | fi; | |
8642 | ||
8643 | eval "$ac_cv_use_commondlg" | |
8644 | if test "$no_cache" != 1; then | |
8645 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8646 | fi | |
8647 | ||
8648 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8649 | echo "$as_me:$LINENO: result: yes" >&5 | |
8650 | echo "${ECHO_T}yes" >&6 | |
8651 | else | |
8652 | echo "$as_me:$LINENO: result: no" >&5 | |
8653 | echo "${ECHO_T}no" >&6 | |
8654 | fi | |
8655 | ||
8656 | ||
8657 | enablestring= | |
8658 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8659 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8660 | no_cache=0 | |
8661 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8662 | if test "${enable_choicedlg+set}" = set; then | |
8663 | enableval="$enable_choicedlg" | |
8664 | ||
8665 | if test "$enableval" = yes; then | |
8666 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8667 | else | |
8668 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8669 | fi | |
8670 | ||
8671 | else | |
8672 | ||
8673 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8674 | if test "x$LINE" != x ; then | |
8675 | eval "DEFAULT_$LINE" | |
8676 | else | |
8677 | no_cache=1 | |
8678 | fi | |
8679 | ||
8680 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8681 | ||
8682 | fi; | |
8683 | ||
8684 | eval "$ac_cv_use_choicedlg" | |
8685 | if test "$no_cache" != 1; then | |
8686 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8687 | fi | |
8688 | ||
8689 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8690 | echo "$as_me:$LINENO: result: yes" >&5 | |
8691 | echo "${ECHO_T}yes" >&6 | |
8692 | else | |
8693 | echo "$as_me:$LINENO: result: no" >&5 | |
8694 | echo "${ECHO_T}no" >&6 | |
8695 | fi | |
8696 | ||
8697 | ||
8698 | enablestring= | |
8699 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8700 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8701 | no_cache=0 | |
8702 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8703 | if test "${enable_coldlg+set}" = set; then | |
8704 | enableval="$enable_coldlg" | |
8705 | ||
8706 | if test "$enableval" = yes; then | |
8707 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8708 | else | |
8709 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8710 | fi | |
8711 | ||
8712 | else | |
8713 | ||
8714 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8715 | if test "x$LINE" != x ; then | |
8716 | eval "DEFAULT_$LINE" | |
8717 | else | |
8718 | no_cache=1 | |
8719 | fi | |
8720 | ||
8721 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8722 | ||
8723 | fi; | |
8724 | ||
8725 | eval "$ac_cv_use_coldlg" | |
8726 | if test "$no_cache" != 1; then | |
8727 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8728 | fi | |
8729 | ||
8730 | if test "$wxUSE_COLOURDLG" = yes; then | |
8731 | echo "$as_me:$LINENO: result: yes" >&5 | |
8732 | echo "${ECHO_T}yes" >&6 | |
8733 | else | |
8734 | echo "$as_me:$LINENO: result: no" >&5 | |
8735 | echo "${ECHO_T}no" >&6 | |
8736 | fi | |
8737 | ||
8738 | ||
8739 | enablestring= | |
8740 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8741 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8742 | no_cache=0 | |
8743 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8744 | if test "${enable_filedlg+set}" = set; then | |
8745 | enableval="$enable_filedlg" | |
8746 | ||
8747 | if test "$enableval" = yes; then | |
8748 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8749 | else | |
8750 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8751 | fi | |
8752 | ||
8753 | else | |
8754 | ||
8755 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8756 | if test "x$LINE" != x ; then | |
8757 | eval "DEFAULT_$LINE" | |
8758 | else | |
8759 | no_cache=1 | |
8760 | fi | |
8761 | ||
8762 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8763 | ||
8764 | fi; | |
8765 | ||
8766 | eval "$ac_cv_use_filedlg" | |
8767 | if test "$no_cache" != 1; then | |
8768 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8769 | fi | |
8770 | ||
8771 | if test "$wxUSE_FILEDLG" = yes; then | |
8772 | echo "$as_me:$LINENO: result: yes" >&5 | |
8773 | echo "${ECHO_T}yes" >&6 | |
8774 | else | |
8775 | echo "$as_me:$LINENO: result: no" >&5 | |
8776 | echo "${ECHO_T}no" >&6 | |
8777 | fi | |
8778 | ||
8779 | ||
8780 | enablestring= | |
8781 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8782 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8783 | no_cache=0 | |
8784 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8785 | if test "${enable_finddlg+set}" = set; then | |
8786 | enableval="$enable_finddlg" | |
8787 | ||
8788 | if test "$enableval" = yes; then | |
8789 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8790 | else | |
8791 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8792 | fi | |
8793 | ||
8794 | else | |
8795 | ||
8796 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8797 | if test "x$LINE" != x ; then | |
8798 | eval "DEFAULT_$LINE" | |
8799 | else | |
8800 | no_cache=1 | |
8801 | fi | |
8802 | ||
8803 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8804 | ||
8805 | fi; | |
8806 | ||
8807 | eval "$ac_cv_use_finddlg" | |
8808 | if test "$no_cache" != 1; then | |
8809 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8810 | fi | |
8811 | ||
8812 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8813 | echo "$as_me:$LINENO: result: yes" >&5 | |
8814 | echo "${ECHO_T}yes" >&6 | |
8815 | else | |
8816 | echo "$as_me:$LINENO: result: no" >&5 | |
8817 | echo "${ECHO_T}no" >&6 | |
8818 | fi | |
8819 | ||
8820 | ||
8821 | enablestring= | |
8822 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8823 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8824 | no_cache=0 | |
8825 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8826 | if test "${enable_fontdlg+set}" = set; then | |
8827 | enableval="$enable_fontdlg" | |
8828 | ||
8829 | if test "$enableval" = yes; then | |
8830 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8831 | else | |
8832 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8833 | fi | |
8834 | ||
8835 | else | |
8836 | ||
8837 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8838 | if test "x$LINE" != x ; then | |
8839 | eval "DEFAULT_$LINE" | |
8840 | else | |
8841 | no_cache=1 | |
8842 | fi | |
8843 | ||
8844 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8845 | ||
8846 | fi; | |
8847 | ||
8848 | eval "$ac_cv_use_fontdlg" | |
8849 | if test "$no_cache" != 1; then | |
8850 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8851 | fi | |
8852 | ||
8853 | if test "$wxUSE_FONTDLG" = yes; then | |
8854 | echo "$as_me:$LINENO: result: yes" >&5 | |
8855 | echo "${ECHO_T}yes" >&6 | |
8856 | else | |
8857 | echo "$as_me:$LINENO: result: no" >&5 | |
8858 | echo "${ECHO_T}no" >&6 | |
8859 | fi | |
8860 | ||
8861 | ||
8862 | enablestring= | |
8863 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8864 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8865 | no_cache=0 | |
8866 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8867 | if test "${enable_dirdlg+set}" = set; then | |
8868 | enableval="$enable_dirdlg" | |
8869 | ||
8870 | if test "$enableval" = yes; then | |
8871 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8872 | else | |
8873 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8874 | fi | |
8875 | ||
8876 | else | |
8877 | ||
8878 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8879 | if test "x$LINE" != x ; then | |
8880 | eval "DEFAULT_$LINE" | |
8881 | else | |
8882 | no_cache=1 | |
8883 | fi | |
8884 | ||
8885 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8886 | ||
8887 | fi; | |
8888 | ||
8889 | eval "$ac_cv_use_dirdlg" | |
8890 | if test "$no_cache" != 1; then | |
8891 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8892 | fi | |
8893 | ||
8894 | if test "$wxUSE_DIRDLG" = yes; then | |
8895 | echo "$as_me:$LINENO: result: yes" >&5 | |
8896 | echo "${ECHO_T}yes" >&6 | |
8897 | else | |
8898 | echo "$as_me:$LINENO: result: no" >&5 | |
8899 | echo "${ECHO_T}no" >&6 | |
8900 | fi | |
8901 | ||
8902 | ||
8903 | enablestring= | |
8904 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
8905 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8906 | no_cache=0 | |
8907 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8908 | if test "${enable_msgdlg+set}" = set; then | |
8909 | enableval="$enable_msgdlg" | |
8910 | ||
8911 | if test "$enableval" = yes; then | |
8912 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8913 | else | |
8914 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8915 | fi | |
8916 | ||
8917 | else | |
8918 | ||
8919 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
8920 | if test "x$LINE" != x ; then | |
8921 | eval "DEFAULT_$LINE" | |
8922 | else | |
8923 | no_cache=1 | |
8924 | fi | |
8925 | ||
8926 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8927 | ||
8928 | fi; | |
8929 | ||
8930 | eval "$ac_cv_use_msgdlg" | |
8931 | if test "$no_cache" != 1; then | |
8932 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8933 | fi | |
8934 | ||
8935 | if test "$wxUSE_MSGDLG" = yes; then | |
8936 | echo "$as_me:$LINENO: result: yes" >&5 | |
8937 | echo "${ECHO_T}yes" >&6 | |
8938 | else | |
8939 | echo "$as_me:$LINENO: result: no" >&5 | |
8940 | echo "${ECHO_T}no" >&6 | |
8941 | fi | |
8942 | ||
8943 | ||
8944 | enablestring= | |
8945 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
8946 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8947 | no_cache=0 | |
8948 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8949 | if test "${enable_numberdlg+set}" = set; then | |
8950 | enableval="$enable_numberdlg" | |
8951 | ||
8952 | if test "$enableval" = yes; then | |
8953 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
8954 | else | |
8955 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
8956 | fi | |
8957 | ||
8958 | else | |
8959 | ||
8960 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
8961 | if test "x$LINE" != x ; then | |
8962 | eval "DEFAULT_$LINE" | |
8963 | else | |
8964 | no_cache=1 | |
8965 | fi | |
8966 | ||
8967 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
8968 | ||
8969 | fi; | |
8970 | ||
8971 | eval "$ac_cv_use_numberdlg" | |
8972 | if test "$no_cache" != 1; then | |
8973 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
8974 | fi | |
8975 | ||
8976 | if test "$wxUSE_NUMBERDLG" = yes; then | |
8977 | echo "$as_me:$LINENO: result: yes" >&5 | |
8978 | echo "${ECHO_T}yes" >&6 | |
8979 | else | |
8980 | echo "$as_me:$LINENO: result: no" >&5 | |
8981 | echo "${ECHO_T}no" >&6 | |
8982 | fi | |
8983 | ||
8984 | ||
8985 | enablestring= | |
8986 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
8987 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
8988 | no_cache=0 | |
8989 | # Check whether --enable-splash or --disable-splash was given. | |
8990 | if test "${enable_splash+set}" = set; then | |
8991 | enableval="$enable_splash" | |
8992 | ||
8993 | if test "$enableval" = yes; then | |
8994 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8995 | else | |
8996 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8997 | fi | |
8998 | ||
8999 | else | |
9000 | ||
9001 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9002 | if test "x$LINE" != x ; then | |
9003 | eval "DEFAULT_$LINE" | |
9004 | else | |
9005 | no_cache=1 | |
9006 | fi | |
9007 | ||
9008 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9009 | ||
9010 | fi; | |
9011 | ||
9012 | eval "$ac_cv_use_splash" | |
9013 | if test "$no_cache" != 1; then | |
9014 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9015 | fi | |
9016 | ||
9017 | if test "$wxUSE_SPLASH" = yes; then | |
9018 | echo "$as_me:$LINENO: result: yes" >&5 | |
9019 | echo "${ECHO_T}yes" >&6 | |
9020 | else | |
9021 | echo "$as_me:$LINENO: result: no" >&5 | |
9022 | echo "${ECHO_T}no" >&6 | |
9023 | fi | |
9024 | ||
9025 | ||
9026 | enablestring= | |
9027 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9028 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9029 | no_cache=0 | |
9030 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9031 | if test "${enable_textdlg+set}" = set; then | |
9032 | enableval="$enable_textdlg" | |
9033 | ||
9034 | if test "$enableval" = yes; then | |
9035 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9036 | else | |
9037 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9038 | fi | |
9039 | ||
9040 | else | |
9041 | ||
9042 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9043 | if test "x$LINE" != x ; then | |
9044 | eval "DEFAULT_$LINE" | |
9045 | else | |
9046 | no_cache=1 | |
9047 | fi | |
9048 | ||
9049 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9050 | ||
9051 | fi; | |
9052 | ||
9053 | eval "$ac_cv_use_textdlg" | |
9054 | if test "$no_cache" != 1; then | |
9055 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9056 | fi | |
9057 | ||
9058 | if test "$wxUSE_TEXTDLG" = yes; then | |
9059 | echo "$as_me:$LINENO: result: yes" >&5 | |
9060 | echo "${ECHO_T}yes" >&6 | |
9061 | else | |
9062 | echo "$as_me:$LINENO: result: no" >&5 | |
9063 | echo "${ECHO_T}no" >&6 | |
9064 | fi | |
9065 | ||
9066 | ||
9067 | enablestring= | |
9068 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9069 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9070 | no_cache=0 | |
9071 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9072 | if test "${enable_tipdlg+set}" = set; then | |
9073 | enableval="$enable_tipdlg" | |
9074 | ||
9075 | if test "$enableval" = yes; then | |
9076 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9077 | else | |
9078 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9079 | fi | |
9080 | ||
9081 | else | |
9082 | ||
9083 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9084 | if test "x$LINE" != x ; then | |
9085 | eval "DEFAULT_$LINE" | |
9086 | else | |
9087 | no_cache=1 | |
9088 | fi | |
9089 | ||
9090 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9091 | ||
9092 | fi; | |
9093 | ||
9094 | eval "$ac_cv_use_tipdlg" | |
9095 | if test "$no_cache" != 1; then | |
9096 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9097 | fi | |
9098 | ||
9099 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9100 | echo "$as_me:$LINENO: result: yes" >&5 | |
9101 | echo "${ECHO_T}yes" >&6 | |
9102 | else | |
9103 | echo "$as_me:$LINENO: result: no" >&5 | |
9104 | echo "${ECHO_T}no" >&6 | |
9105 | fi | |
9106 | ||
9107 | ||
9108 | enablestring= | |
9109 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9110 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9111 | no_cache=0 | |
9112 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9113 | if test "${enable_progressdlg+set}" = set; then | |
9114 | enableval="$enable_progressdlg" | |
9115 | ||
9116 | if test "$enableval" = yes; then | |
9117 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9118 | else | |
9119 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9120 | fi | |
9121 | ||
9122 | else | |
9123 | ||
9124 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9125 | if test "x$LINE" != x ; then | |
9126 | eval "DEFAULT_$LINE" | |
9127 | else | |
9128 | no_cache=1 | |
9129 | fi | |
9130 | ||
9131 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9132 | ||
9133 | fi; | |
9134 | ||
9135 | eval "$ac_cv_use_progressdlg" | |
9136 | if test "$no_cache" != 1; then | |
9137 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9138 | fi | |
9139 | ||
9140 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9141 | echo "$as_me:$LINENO: result: yes" >&5 | |
9142 | echo "${ECHO_T}yes" >&6 | |
9143 | else | |
9144 | echo "$as_me:$LINENO: result: no" >&5 | |
9145 | echo "${ECHO_T}no" >&6 | |
9146 | fi | |
9147 | ||
9148 | ||
9149 | enablestring= | |
9150 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9151 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9152 | no_cache=0 | |
9153 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9154 | if test "${enable_wizarddlg+set}" = set; then | |
9155 | enableval="$enable_wizarddlg" | |
9156 | ||
9157 | if test "$enableval" = yes; then | |
9158 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9159 | else | |
9160 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9161 | fi | |
9162 | ||
9163 | else | |
9164 | ||
9165 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9166 | if test "x$LINE" != x ; then | |
9167 | eval "DEFAULT_$LINE" | |
9168 | else | |
9169 | no_cache=1 | |
9170 | fi | |
9171 | ||
9172 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9173 | ||
9174 | fi; | |
9175 | ||
9176 | eval "$ac_cv_use_wizarddlg" | |
9177 | if test "$no_cache" != 1; then | |
9178 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9179 | fi | |
9180 | ||
9181 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9182 | echo "$as_me:$LINENO: result: yes" >&5 | |
9183 | echo "${ECHO_T}yes" >&6 | |
9184 | else | |
9185 | echo "$as_me:$LINENO: result: no" >&5 | |
9186 | echo "${ECHO_T}no" >&6 | |
9187 | fi | |
9188 | ||
9189 | ||
9190 | ||
9191 | ||
9192 | enablestring= | |
9193 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9194 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9195 | no_cache=0 | |
9196 | # Check whether --enable-menus or --disable-menus was given. | |
9197 | if test "${enable_menus+set}" = set; then | |
9198 | enableval="$enable_menus" | |
9199 | ||
9200 | if test "$enableval" = yes; then | |
9201 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9202 | else | |
9203 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9204 | fi | |
9205 | ||
9206 | else | |
9207 | ||
9208 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9209 | if test "x$LINE" != x ; then | |
9210 | eval "DEFAULT_$LINE" | |
9211 | else | |
9212 | no_cache=1 | |
9213 | fi | |
9214 | ||
9215 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9216 | ||
9217 | fi; | |
9218 | ||
9219 | eval "$ac_cv_use_menus" | |
9220 | if test "$no_cache" != 1; then | |
9221 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9222 | fi | |
9223 | ||
9224 | if test "$wxUSE_MENUS" = yes; then | |
9225 | echo "$as_me:$LINENO: result: yes" >&5 | |
9226 | echo "${ECHO_T}yes" >&6 | |
9227 | else | |
9228 | echo "$as_me:$LINENO: result: no" >&5 | |
9229 | echo "${ECHO_T}no" >&6 | |
9230 | fi | |
9231 | ||
9232 | ||
9233 | enablestring= | |
9234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9235 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9236 | no_cache=0 | |
9237 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9238 | if test "${enable_miniframe+set}" = set; then | |
9239 | enableval="$enable_miniframe" | |
9240 | ||
9241 | if test "$enableval" = yes; then | |
9242 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9243 | else | |
9244 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9245 | fi | |
9246 | ||
9247 | else | |
9248 | ||
9249 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9250 | if test "x$LINE" != x ; then | |
9251 | eval "DEFAULT_$LINE" | |
9252 | else | |
9253 | no_cache=1 | |
9254 | fi | |
9255 | ||
9256 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9257 | ||
9258 | fi; | |
9259 | ||
9260 | eval "$ac_cv_use_miniframe" | |
9261 | if test "$no_cache" != 1; then | |
9262 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9263 | fi | |
9264 | ||
9265 | if test "$wxUSE_MINIFRAME" = yes; then | |
9266 | echo "$as_me:$LINENO: result: yes" >&5 | |
9267 | echo "${ECHO_T}yes" >&6 | |
9268 | else | |
9269 | echo "$as_me:$LINENO: result: no" >&5 | |
9270 | echo "${ECHO_T}no" >&6 | |
9271 | fi | |
9272 | ||
9273 | ||
9274 | enablestring= | |
9275 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9276 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9277 | no_cache=0 | |
9278 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9279 | if test "${enable_tooltips+set}" = set; then | |
9280 | enableval="$enable_tooltips" | |
9281 | ||
9282 | if test "$enableval" = yes; then | |
9283 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9284 | else | |
9285 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9286 | fi | |
9287 | ||
9288 | else | |
9289 | ||
9290 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9291 | if test "x$LINE" != x ; then | |
9292 | eval "DEFAULT_$LINE" | |
9293 | else | |
9294 | no_cache=1 | |
9295 | fi | |
9296 | ||
9297 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9298 | ||
9299 | fi; | |
9300 | ||
9301 | eval "$ac_cv_use_tooltips" | |
9302 | if test "$no_cache" != 1; then | |
9303 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9304 | fi | |
9305 | ||
9306 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9307 | echo "$as_me:$LINENO: result: yes" >&5 | |
9308 | echo "${ECHO_T}yes" >&6 | |
9309 | else | |
9310 | echo "$as_me:$LINENO: result: no" >&5 | |
9311 | echo "${ECHO_T}no" >&6 | |
9312 | fi | |
9313 | ||
9314 | ||
9315 | enablestring= | |
9316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9317 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9318 | no_cache=0 | |
9319 | # Check whether --enable-splines or --disable-splines was given. | |
9320 | if test "${enable_splines+set}" = set; then | |
9321 | enableval="$enable_splines" | |
9322 | ||
9323 | if test "$enableval" = yes; then | |
9324 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9325 | else | |
9326 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9327 | fi | |
9328 | ||
9329 | else | |
9330 | ||
9331 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9332 | if test "x$LINE" != x ; then | |
9333 | eval "DEFAULT_$LINE" | |
9334 | else | |
9335 | no_cache=1 | |
9336 | fi | |
9337 | ||
9338 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9339 | ||
9340 | fi; | |
9341 | ||
9342 | eval "$ac_cv_use_splines" | |
9343 | if test "$no_cache" != 1; then | |
9344 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9345 | fi | |
9346 | ||
9347 | if test "$wxUSE_SPLINES" = yes; then | |
9348 | echo "$as_me:$LINENO: result: yes" >&5 | |
9349 | echo "${ECHO_T}yes" >&6 | |
9350 | else | |
9351 | echo "$as_me:$LINENO: result: no" >&5 | |
9352 | echo "${ECHO_T}no" >&6 | |
9353 | fi | |
9354 | ||
9355 | ||
9356 | enablestring= | |
9357 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9358 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9359 | no_cache=0 | |
9360 | # Check whether --enable-validators or --disable-validators was given. | |
9361 | if test "${enable_validators+set}" = set; then | |
9362 | enableval="$enable_validators" | |
9363 | ||
9364 | if test "$enableval" = yes; then | |
9365 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9366 | else | |
9367 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9368 | fi | |
9369 | ||
9370 | else | |
9371 | ||
9372 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9373 | if test "x$LINE" != x ; then | |
9374 | eval "DEFAULT_$LINE" | |
9375 | else | |
9376 | no_cache=1 | |
9377 | fi | |
9378 | ||
9379 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9380 | ||
9381 | fi; | |
9382 | ||
9383 | eval "$ac_cv_use_validators" | |
9384 | if test "$no_cache" != 1; then | |
9385 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9386 | fi | |
9387 | ||
9388 | if test "$wxUSE_VALIDATORS" = yes; then | |
9389 | echo "$as_me:$LINENO: result: yes" >&5 | |
9390 | echo "${ECHO_T}yes" >&6 | |
9391 | else | |
9392 | echo "$as_me:$LINENO: result: no" >&5 | |
9393 | echo "${ECHO_T}no" >&6 | |
9394 | fi | |
9395 | ||
9396 | ||
9397 | enablestring= | |
9398 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9399 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9400 | no_cache=0 | |
9401 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9402 | if test "${enable_busyinfo+set}" = set; then | |
9403 | enableval="$enable_busyinfo" | |
9404 | ||
9405 | if test "$enableval" = yes; then | |
9406 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9407 | else | |
9408 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9409 | fi | |
9410 | ||
9411 | else | |
9412 | ||
9413 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9414 | if test "x$LINE" != x ; then | |
9415 | eval "DEFAULT_$LINE" | |
9416 | else | |
9417 | no_cache=1 | |
9418 | fi | |
9419 | ||
9420 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9421 | ||
9422 | fi; | |
9423 | ||
9424 | eval "$ac_cv_use_busyinfo" | |
9425 | if test "$no_cache" != 1; then | |
9426 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9427 | fi | |
9428 | ||
9429 | if test "$wxUSE_BUSYINFO" = yes; then | |
9430 | echo "$as_me:$LINENO: result: yes" >&5 | |
9431 | echo "${ECHO_T}yes" >&6 | |
9432 | else | |
9433 | echo "$as_me:$LINENO: result: no" >&5 | |
9434 | echo "${ECHO_T}no" >&6 | |
9435 | fi | |
9436 | ||
9437 | ||
9438 | enablestring= | |
9439 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9440 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9441 | no_cache=0 | |
9442 | # Check whether --enable-joystick or --disable-joystick was given. | |
9443 | if test "${enable_joystick+set}" = set; then | |
9444 | enableval="$enable_joystick" | |
9445 | ||
9446 | if test "$enableval" = yes; then | |
9447 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9448 | else | |
9449 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9450 | fi | |
9451 | ||
9452 | else | |
9453 | ||
9454 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9455 | if test "x$LINE" != x ; then | |
9456 | eval "DEFAULT_$LINE" | |
9457 | else | |
9458 | no_cache=1 | |
9459 | fi | |
9460 | ||
9461 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9462 | ||
9463 | fi; | |
9464 | ||
9465 | eval "$ac_cv_use_joystick" | |
9466 | if test "$no_cache" != 1; then | |
9467 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9468 | fi | |
9469 | ||
9470 | if test "$wxUSE_JOYSTICK" = yes; then | |
9471 | echo "$as_me:$LINENO: result: yes" >&5 | |
9472 | echo "${ECHO_T}yes" >&6 | |
9473 | else | |
9474 | echo "$as_me:$LINENO: result: no" >&5 | |
9475 | echo "${ECHO_T}no" >&6 | |
9476 | fi | |
9477 | ||
9478 | ||
9479 | enablestring= | |
9480 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9481 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9482 | no_cache=0 | |
9483 | # Check whether --enable-metafile or --disable-metafile was given. | |
9484 | if test "${enable_metafile+set}" = set; then | |
9485 | enableval="$enable_metafile" | |
9486 | ||
9487 | if test "$enableval" = yes; then | |
9488 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9489 | else | |
9490 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9491 | fi | |
9492 | ||
9493 | else | |
9494 | ||
9495 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9496 | if test "x$LINE" != x ; then | |
9497 | eval "DEFAULT_$LINE" | |
9498 | else | |
9499 | no_cache=1 | |
9500 | fi | |
9501 | ||
9502 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9503 | ||
9504 | fi; | |
9505 | ||
9506 | eval "$ac_cv_use_metafile" | |
9507 | if test "$no_cache" != 1; then | |
9508 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9509 | fi | |
9510 | ||
9511 | if test "$wxUSE_METAFILE" = yes; then | |
9512 | echo "$as_me:$LINENO: result: yes" >&5 | |
9513 | echo "${ECHO_T}yes" >&6 | |
9514 | else | |
9515 | echo "$as_me:$LINENO: result: no" >&5 | |
9516 | echo "${ECHO_T}no" >&6 | |
9517 | fi | |
9518 | ||
9519 | ||
9520 | enablestring= | |
9521 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9522 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9523 | no_cache=0 | |
9524 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9525 | if test "${enable_dragimage+set}" = set; then | |
9526 | enableval="$enable_dragimage" | |
9527 | ||
9528 | if test "$enableval" = yes; then | |
9529 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9530 | else | |
9531 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9532 | fi | |
9533 | ||
9534 | else | |
9535 | ||
9536 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9537 | if test "x$LINE" != x ; then | |
9538 | eval "DEFAULT_$LINE" | |
9539 | else | |
9540 | no_cache=1 | |
9541 | fi | |
9542 | ||
9543 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9544 | ||
9545 | fi; | |
9546 | ||
9547 | eval "$ac_cv_use_dragimage" | |
9548 | if test "$no_cache" != 1; then | |
9549 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9550 | fi | |
9551 | ||
9552 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9553 | echo "$as_me:$LINENO: result: yes" >&5 | |
9554 | echo "${ECHO_T}yes" >&6 | |
9555 | else | |
9556 | echo "$as_me:$LINENO: result: no" >&5 | |
9557 | echo "${ECHO_T}no" >&6 | |
9558 | fi | |
9559 | ||
9560 | ||
9561 | enablestring= | |
9562 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9563 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9564 | no_cache=0 | |
9565 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9566 | if test "${enable_accessibility+set}" = set; then | |
9567 | enableval="$enable_accessibility" | |
9568 | ||
9569 | if test "$enableval" = yes; then | |
9570 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9571 | else | |
9572 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9573 | fi | |
9574 | ||
9575 | else | |
9576 | ||
9577 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9578 | if test "x$LINE" != x ; then | |
9579 | eval "DEFAULT_$LINE" | |
9580 | else | |
9581 | no_cache=1 | |
9582 | fi | |
9583 | ||
9584 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9585 | ||
9586 | fi; | |
9587 | ||
9588 | eval "$ac_cv_use_accessibility" | |
9589 | if test "$no_cache" != 1; then | |
9590 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9591 | fi | |
9592 | ||
9593 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9594 | echo "$as_me:$LINENO: result: yes" >&5 | |
9595 | echo "${ECHO_T}yes" >&6 | |
9596 | else | |
9597 | echo "$as_me:$LINENO: result: no" >&5 | |
9598 | echo "${ECHO_T}no" >&6 | |
9599 | fi | |
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | enablestring= | |
9605 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9606 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9607 | no_cache=0 | |
9608 | # Check whether --enable-palette or --disable-palette was given. | |
9609 | if test "${enable_palette+set}" = set; then | |
9610 | enableval="$enable_palette" | |
9611 | ||
9612 | if test "$enableval" = yes; then | |
9613 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9614 | else | |
9615 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9616 | fi | |
9617 | ||
9618 | else | |
9619 | ||
9620 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9621 | if test "x$LINE" != x ; then | |
9622 | eval "DEFAULT_$LINE" | |
9623 | else | |
9624 | no_cache=1 | |
9625 | fi | |
9626 | ||
9627 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9628 | ||
9629 | fi; | |
9630 | ||
9631 | eval "$ac_cv_use_palette" | |
9632 | if test "$no_cache" != 1; then | |
9633 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9634 | fi | |
9635 | ||
9636 | if test "$wxUSE_PALETTE" = yes; then | |
9637 | echo "$as_me:$LINENO: result: yes" >&5 | |
9638 | echo "${ECHO_T}yes" >&6 | |
9639 | else | |
9640 | echo "$as_me:$LINENO: result: no" >&5 | |
9641 | echo "${ECHO_T}no" >&6 | |
9642 | fi | |
9643 | ||
9644 | ||
9645 | enablestring= | |
9646 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9647 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9648 | no_cache=0 | |
9649 | # Check whether --enable-image or --disable-image was given. | |
9650 | if test "${enable_image+set}" = set; then | |
9651 | enableval="$enable_image" | |
9652 | ||
9653 | if test "$enableval" = yes; then | |
9654 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9655 | else | |
9656 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9657 | fi | |
9658 | ||
9659 | else | |
9660 | ||
9661 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9662 | if test "x$LINE" != x ; then | |
9663 | eval "DEFAULT_$LINE" | |
9664 | else | |
9665 | no_cache=1 | |
9666 | fi | |
9667 | ||
9668 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9669 | ||
9670 | fi; | |
9671 | ||
9672 | eval "$ac_cv_use_image" | |
9673 | if test "$no_cache" != 1; then | |
9674 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9675 | fi | |
9676 | ||
9677 | if test "$wxUSE_IMAGE" = yes; then | |
9678 | echo "$as_me:$LINENO: result: yes" >&5 | |
9679 | echo "${ECHO_T}yes" >&6 | |
9680 | else | |
9681 | echo "$as_me:$LINENO: result: no" >&5 | |
9682 | echo "${ECHO_T}no" >&6 | |
9683 | fi | |
9684 | ||
9685 | ||
9686 | enablestring= | |
9687 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9688 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9689 | no_cache=0 | |
9690 | # Check whether --enable-gif or --disable-gif was given. | |
9691 | if test "${enable_gif+set}" = set; then | |
9692 | enableval="$enable_gif" | |
9693 | ||
9694 | if test "$enableval" = yes; then | |
9695 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9696 | else | |
9697 | ac_cv_use_gif='wxUSE_GIF=no' | |
9698 | fi | |
9699 | ||
9700 | else | |
9701 | ||
9702 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9703 | if test "x$LINE" != x ; then | |
9704 | eval "DEFAULT_$LINE" | |
9705 | else | |
9706 | no_cache=1 | |
9707 | fi | |
9708 | ||
9709 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9710 | ||
9711 | fi; | |
9712 | ||
9713 | eval "$ac_cv_use_gif" | |
9714 | if test "$no_cache" != 1; then | |
9715 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9716 | fi | |
9717 | ||
9718 | if test "$wxUSE_GIF" = yes; then | |
9719 | echo "$as_me:$LINENO: result: yes" >&5 | |
9720 | echo "${ECHO_T}yes" >&6 | |
9721 | else | |
9722 | echo "$as_me:$LINENO: result: no" >&5 | |
9723 | echo "${ECHO_T}no" >&6 | |
9724 | fi | |
9725 | ||
9726 | ||
9727 | enablestring= | |
9728 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9729 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9730 | no_cache=0 | |
9731 | # Check whether --enable-pcx or --disable-pcx was given. | |
9732 | if test "${enable_pcx+set}" = set; then | |
9733 | enableval="$enable_pcx" | |
9734 | ||
9735 | if test "$enableval" = yes; then | |
9736 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9737 | else | |
9738 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9739 | fi | |
9740 | ||
9741 | else | |
9742 | ||
9743 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9744 | if test "x$LINE" != x ; then | |
9745 | eval "DEFAULT_$LINE" | |
9746 | else | |
9747 | no_cache=1 | |
9748 | fi | |
9749 | ||
9750 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9751 | ||
9752 | fi; | |
9753 | ||
9754 | eval "$ac_cv_use_pcx" | |
9755 | if test "$no_cache" != 1; then | |
9756 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9757 | fi | |
9758 | ||
9759 | if test "$wxUSE_PCX" = yes; then | |
9760 | echo "$as_me:$LINENO: result: yes" >&5 | |
9761 | echo "${ECHO_T}yes" >&6 | |
9762 | else | |
9763 | echo "$as_me:$LINENO: result: no" >&5 | |
9764 | echo "${ECHO_T}no" >&6 | |
9765 | fi | |
9766 | ||
9767 | ||
9768 | enablestring= | |
9769 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9770 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9771 | no_cache=0 | |
9772 | # Check whether --enable-iff or --disable-iff was given. | |
9773 | if test "${enable_iff+set}" = set; then | |
9774 | enableval="$enable_iff" | |
9775 | ||
9776 | if test "$enableval" = yes; then | |
9777 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9778 | else | |
9779 | ac_cv_use_iff='wxUSE_IFF=no' | |
9780 | fi | |
9781 | ||
9782 | else | |
9783 | ||
9784 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9785 | if test "x$LINE" != x ; then | |
9786 | eval "DEFAULT_$LINE" | |
9787 | else | |
9788 | no_cache=1 | |
9789 | fi | |
9790 | ||
9791 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9792 | ||
9793 | fi; | |
9794 | ||
9795 | eval "$ac_cv_use_iff" | |
9796 | if test "$no_cache" != 1; then | |
9797 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9798 | fi | |
9799 | ||
9800 | if test "$wxUSE_IFF" = yes; then | |
9801 | echo "$as_me:$LINENO: result: yes" >&5 | |
9802 | echo "${ECHO_T}yes" >&6 | |
9803 | else | |
9804 | echo "$as_me:$LINENO: result: no" >&5 | |
9805 | echo "${ECHO_T}no" >&6 | |
9806 | fi | |
9807 | ||
9808 | ||
9809 | enablestring= | |
9810 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9811 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9812 | no_cache=0 | |
9813 | # Check whether --enable-pnm or --disable-pnm was given. | |
9814 | if test "${enable_pnm+set}" = set; then | |
9815 | enableval="$enable_pnm" | |
9816 | ||
9817 | if test "$enableval" = yes; then | |
9818 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9819 | else | |
9820 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9821 | fi | |
9822 | ||
9823 | else | |
9824 | ||
9825 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9826 | if test "x$LINE" != x ; then | |
9827 | eval "DEFAULT_$LINE" | |
9828 | else | |
9829 | no_cache=1 | |
9830 | fi | |
9831 | ||
9832 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9833 | ||
9834 | fi; | |
9835 | ||
9836 | eval "$ac_cv_use_pnm" | |
9837 | if test "$no_cache" != 1; then | |
9838 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9839 | fi | |
9840 | ||
9841 | if test "$wxUSE_PNM" = yes; then | |
9842 | echo "$as_me:$LINENO: result: yes" >&5 | |
9843 | echo "${ECHO_T}yes" >&6 | |
9844 | else | |
9845 | echo "$as_me:$LINENO: result: no" >&5 | |
9846 | echo "${ECHO_T}no" >&6 | |
9847 | fi | |
9848 | ||
9849 | ||
9850 | enablestring= | |
9851 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9852 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9853 | no_cache=0 | |
9854 | # Check whether --enable-xpm or --disable-xpm was given. | |
9855 | if test "${enable_xpm+set}" = set; then | |
9856 | enableval="$enable_xpm" | |
9857 | ||
9858 | if test "$enableval" = yes; then | |
9859 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9860 | else | |
9861 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9862 | fi | |
9863 | ||
9864 | else | |
9865 | ||
9866 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9867 | if test "x$LINE" != x ; then | |
9868 | eval "DEFAULT_$LINE" | |
9869 | else | |
9870 | no_cache=1 | |
9871 | fi | |
9872 | ||
9873 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9874 | ||
9875 | fi; | |
9876 | ||
9877 | eval "$ac_cv_use_xpm" | |
9878 | if test "$no_cache" != 1; then | |
9879 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9880 | fi | |
9881 | ||
9882 | if test "$wxUSE_XPM" = yes; then | |
9883 | echo "$as_me:$LINENO: result: yes" >&5 | |
9884 | echo "${ECHO_T}yes" >&6 | |
9885 | else | |
9886 | echo "$as_me:$LINENO: result: no" >&5 | |
9887 | echo "${ECHO_T}no" >&6 | |
9888 | fi | |
9889 | ||
9890 | ||
9891 | enablestring= | |
9892 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
9893 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9894 | no_cache=0 | |
9895 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9896 | if test "${enable_ico_cur+set}" = set; then | |
9897 | enableval="$enable_ico_cur" | |
9898 | ||
9899 | if test "$enableval" = yes; then | |
9900 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9901 | else | |
9902 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9903 | fi | |
9904 | ||
9905 | else | |
9906 | ||
9907 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
9908 | if test "x$LINE" != x ; then | |
9909 | eval "DEFAULT_$LINE" | |
9910 | else | |
9911 | no_cache=1 | |
9912 | fi | |
9913 | ||
9914 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9915 | ||
9916 | fi; | |
9917 | ||
9918 | eval "$ac_cv_use_ico_cur" | |
9919 | if test "$no_cache" != 1; then | |
9920 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9921 | fi | |
9922 | ||
9923 | if test "$wxUSE_ICO_CUR" = yes; then | |
9924 | echo "$as_me:$LINENO: result: yes" >&5 | |
9925 | echo "${ECHO_T}yes" >&6 | |
9926 | else | |
9927 | echo "$as_me:$LINENO: result: no" >&5 | |
9928 | echo "${ECHO_T}no" >&6 | |
9929 | fi | |
9930 | ||
9931 | ||
9932 | fi | |
9933 | ||
9934 | ||
9935 | ||
9936 | enablestring= | |
9937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9938 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9939 | no_cache=0 | |
9940 | # Check whether --enable-official_build or --disable-official_build was given. | |
9941 | if test "${enable_official_build+set}" = set; then | |
9942 | enableval="$enable_official_build" | |
9943 | ||
9944 | if test "$enableval" = yes; then | |
9945 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9946 | else | |
9947 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9948 | fi | |
9949 | ||
9950 | else | |
9951 | ||
9952 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9953 | if test "x$LINE" != x ; then | |
9954 | eval "DEFAULT_$LINE" | |
9955 | else | |
9956 | no_cache=1 | |
9957 | fi | |
9958 | ||
9959 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9960 | ||
9961 | fi; | |
9962 | ||
9963 | eval "$ac_cv_use_official_build" | |
9964 | if test "$no_cache" != 1; then | |
9965 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9966 | fi | |
9967 | ||
9968 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9969 | echo "$as_me:$LINENO: result: yes" >&5 | |
9970 | echo "${ECHO_T}yes" >&6 | |
9971 | else | |
9972 | echo "$as_me:$LINENO: result: no" >&5 | |
9973 | echo "${ECHO_T}no" >&6 | |
9974 | fi | |
9975 | ||
9976 | # Check whether --enable-vendor or --disable-vendor was given. | |
9977 | if test "${enable_vendor+set}" = set; then | |
9978 | enableval="$enable_vendor" | |
9979 | VENDOR="$enableval" | |
9980 | fi; | |
9981 | if test "x$VENDOR" = "x"; then | |
9982 | VENDOR="custom" | |
9983 | fi | |
9984 | ||
9985 | case "${host}" in | |
9986 | *-pc-os2_emx | *-pc-os2-emx ) | |
9987 | PATH_IFS=';' | |
a848cd7e SC |
9988 | ;; |
9989 | *) | |
9990 | PATH_IFS=':' | |
9991 | ;; | |
9992 | esac | |
9993 | ||
9994 | ||
9995 | ||
9996 | echo "saving argument cache $wx_arg_cache_file" | |
9997 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
9998 | ||
9999 | ||
10000 | ||
10001 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10002 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10003 | ||
10004 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10005 | if test "$wxUSE_WINE" = "yes"; then | |
10006 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10007 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10008 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10009 | wxUSE_SHARED=no | |
10010 | fi | |
10011 | ||
10012 | if test "$wxUSE_GUI" = "yes"; then | |
10013 | ||
10014 | if test "$USE_BEOS" = 1; then | |
10015 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10016 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10017 | { (exit 1); exit 1; }; } | |
10018 | fi | |
10019 | ||
10020 | if test "$TOOLKIT_GIVEN" = 1; then | |
10021 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10022 | var=wxUSE_$toolkit | |
10023 | eval "value=\$${var}" | |
10024 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10025 | done | |
10026 | else | |
10027 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10028 | if test "$has_toolkit_in_cache" != 1; then | |
10029 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10030 | else | |
10031 | var=DEFAULT_wxUSE_$toolkit | |
10032 | fi | |
10033 | eval "wxUSE_$toolkit=\$${var}" | |
10034 | done | |
10035 | fi | |
10036 | ||
10037 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10038 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10039 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10040 | ||
10041 | case "${host}" in | |
10042 | *-pc-os2_emx | *-pc-os2-emx ) | |
10043 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10044 | esac | |
10045 | ||
10046 | case "$NUM_TOOLKITS" in | |
10047 | 1) | |
10048 | ;; | |
10049 | 0) | |
10050 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10051 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10052 | { (exit 1); exit 1; }; } | |
10053 | ;; | |
10054 | *) | |
10055 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10056 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10057 | { (exit 1); exit 1; }; } | |
10058 | esac | |
10059 | ||
10060 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10061 | var=wxUSE_$toolkit | |
10062 | eval "value=\$${var}" | |
10063 | if test "x$value" != x; then | |
10064 | cache_var=CACHE_$toolkit | |
10065 | eval "cache=\$${cache_var}" | |
10066 | if test "$cache" = 1; then | |
10067 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10068 | fi | |
10069 | if test "$value" = 1; then | |
10070 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10071 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10072 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10073 | fi | |
10074 | fi | |
10075 | done | |
10076 | else | |
10077 | if test "x$host_alias" != "x"; then | |
10078 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10079 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10080 | else | |
10081 | echo "$as_me:$LINENO: result: base only" >&5 | |
10082 | echo "${ECHO_T}base only" >&6 | |
10083 | fi | |
10084 | fi | |
10085 | ||
10086 | wants_win32=0 | |
10087 | doesnt_want_win32=0 | |
10088 | case "${host}" in | |
10089 | *-*-cygwin*) | |
10090 | if test "$wxUSE_MSW" = 1 ; then | |
10091 | wants_win32=1 | |
10092 | else | |
10093 | doesnt_want_win32=1 | |
10094 | fi | |
10095 | ;; | |
10096 | *-*-mingw*) | |
10097 | wants_win32=1 | |
10098 | ;; | |
10099 | esac | |
10100 | ||
10101 | if test "$wxUSE_WINE" = "yes"; then | |
10102 | wants_win32=1 | |
10103 | CC=winegcc | |
10104 | CXX=wineg++ | |
10105 | RESCOMP=wrc | |
10106 | LDFLAGS_GUI="-mwindows" | |
10107 | fi | |
10108 | ||
10109 | if test "$wants_win32" = 1 ; then | |
10110 | USE_UNIX=0 | |
10111 | USE_WIN32=1 | |
10112 | cat >>confdefs.h <<\_ACEOF | |
10113 | #define __WIN32__ 1 | |
10114 | _ACEOF | |
10115 | ||
10116 | cat >>confdefs.h <<\_ACEOF | |
10117 | #define __WIN95__ 1 | |
10118 | _ACEOF | |
10119 | ||
10120 | cat >>confdefs.h <<\_ACEOF | |
10121 | #define __WINDOWS__ 1 | |
10122 | _ACEOF | |
10123 | ||
10124 | cat >>confdefs.h <<\_ACEOF | |
10125 | #define __GNUWIN32__ 1 | |
10126 | _ACEOF | |
10127 | ||
10128 | cat >>confdefs.h <<\_ACEOF | |
10129 | #define STRICT 1 | |
10130 | _ACEOF | |
10131 | ||
10132 | cat >>confdefs.h <<\_ACEOF | |
10133 | #define WINVER 0x0400 | |
10134 | _ACEOF | |
10135 | ||
10136 | fi | |
10137 | if test "$doesnt_want_win32" = 1 ; then | |
10138 | USE_UNIX=1 | |
10139 | USE_WIN32=0 | |
10140 | fi | |
10141 | ||
10142 | if test "$USE_UNIX" = 1 ; then | |
10143 | wxUSE_UNIX=yes | |
10144 | cat >>confdefs.h <<\_ACEOF | |
10145 | #define __UNIX__ 1 | |
10146 | _ACEOF | |
10147 | ||
10148 | fi | |
10149 | ||
10150 | ||
10151 | cat >confcache <<\_ACEOF | |
10152 | # This file is a shell script that caches the results of configure | |
10153 | # tests run on this system so they can be shared between configure | |
10154 | # scripts and configure runs, see configure's option --config-cache. | |
10155 | # It is not useful on other systems. If it contains results you don't | |
10156 | # want to keep, you may remove or edit it. | |
10157 | # | |
10158 | # config.status only pays attention to the cache file if you give it | |
10159 | # the --recheck option to rerun configure. | |
10160 | # | |
10161 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10162 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10163 | # following values. | |
10164 | ||
10165 | _ACEOF | |
10166 | ||
10167 | # The following way of writing the cache mishandles newlines in values, | |
10168 | # but we know of no workaround that is simple, portable, and efficient. | |
10169 | # So, don't put newlines in cache variables' values. | |
10170 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10171 | # and sets the high bit in the cache file unless we assign to the vars. | |
10172 | { | |
10173 | (set) 2>&1 | | |
10174 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10175 | *ac_space=\ *) | |
10176 | # `set' does not quote correctly, so add quotes (double-quote | |
10177 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10178 | sed -n \ | |
ac1cb8d3 VS |
10179 | "s/'/'\\\\''/g; |
10180 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10181 | ;; |
10182 | *) | |
10183 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10184 | sed -n \ | |
ac1cb8d3 | 10185 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10186 | ;; |
10187 | esac; | |
10188 | } | | |
10189 | sed ' | |
10190 | t clear | |
10191 | : clear | |
10192 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10193 | t end | |
10194 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10195 | : end' >>confcache | |
10196 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10197 | if test -w $cache_file; then | |
10198 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10199 | cat confcache >$cache_file | |
10200 | else | |
10201 | echo "not updating unwritable cache $cache_file" | |
10202 | fi | |
10203 | fi | |
10204 | rm -f confcache | |
10205 | ||
10206 | if test "$build" != "$host" ; then | |
10207 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10208 | CC=$host_alias-gcc | |
10209 | CXX=$host_alias-c++ | |
10210 | AR=$host_alias-ar | |
10211 | RANLIB=$host_alias-ranlib | |
10212 | DLLTOOL=$host_alias-dlltool | |
10213 | RESCOMP=$host_alias-windres | |
10214 | LD=$host_alias-ld | |
10215 | NM=$host_alias-nm | |
10216 | STRIP=$host_alias-strip | |
10217 | else | |
10218 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10219 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10220 | { (exit 1); exit 1; }; } | |
10221 | fi | |
10222 | fi | |
10223 | ||
10224 | CFLAGS=${CFLAGS:=} | |
10225 | ac_ext=c | |
10226 | ac_cpp='$CPP $CPPFLAGS' | |
10227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10230 | if test -n "$ac_tool_prefix"; then | |
10231 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10232 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10235 | if test "${ac_cv_prog_CC+set}" = set; then | |
10236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10237 | else | |
10238 | if test -n "$CC"; then | |
10239 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10240 | else | |
10241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10242 | for as_dir in $PATH | |
10243 | do | |
10244 | IFS=$as_save_IFS | |
10245 | test -z "$as_dir" && as_dir=. | |
10246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10247 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10248 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10250 | break 2 | |
10251 | fi | |
10252 | done | |
10253 | done | |
10254 | ||
10255 | fi | |
10256 | fi | |
10257 | CC=$ac_cv_prog_CC | |
10258 | if test -n "$CC"; then | |
10259 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10260 | echo "${ECHO_T}$CC" >&6 | |
10261 | else | |
10262 | echo "$as_me:$LINENO: result: no" >&5 | |
10263 | echo "${ECHO_T}no" >&6 | |
10264 | fi | |
10265 | ||
10266 | fi | |
10267 | if test -z "$ac_cv_prog_CC"; then | |
10268 | ac_ct_CC=$CC | |
10269 | # Extract the first word of "gcc", so it can be a program name with args. | |
10270 | set dummy gcc; ac_word=$2 | |
10271 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10273 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10275 | else | |
10276 | if test -n "$ac_ct_CC"; then | |
10277 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10278 | else | |
10279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10280 | for as_dir in $PATH | |
10281 | do | |
10282 | IFS=$as_save_IFS | |
10283 | test -z "$as_dir" && as_dir=. | |
10284 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10285 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10286 | ac_cv_prog_ac_ct_CC="gcc" | |
10287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10288 | break 2 | |
10289 | fi | |
10290 | done | |
10291 | done | |
10292 | ||
10293 | fi | |
10294 | fi | |
10295 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10296 | if test -n "$ac_ct_CC"; then | |
10297 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10298 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10299 | else | |
10300 | echo "$as_me:$LINENO: result: no" >&5 | |
10301 | echo "${ECHO_T}no" >&6 | |
10302 | fi | |
10303 | ||
10304 | CC=$ac_ct_CC | |
10305 | else | |
10306 | CC="$ac_cv_prog_CC" | |
10307 | fi | |
10308 | ||
10309 | if test -z "$CC"; then | |
10310 | if test -n "$ac_tool_prefix"; then | |
10311 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10312 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10315 | if test "${ac_cv_prog_CC+set}" = set; then | |
10316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10317 | else | |
10318 | if test -n "$CC"; then | |
10319 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10320 | else | |
10321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10322 | for as_dir in $PATH | |
10323 | do | |
10324 | IFS=$as_save_IFS | |
10325 | test -z "$as_dir" && as_dir=. | |
10326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10328 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10330 | break 2 | |
10331 | fi | |
10332 | done | |
10333 | done | |
10334 | ||
10335 | fi | |
10336 | fi | |
10337 | CC=$ac_cv_prog_CC | |
10338 | if test -n "$CC"; then | |
10339 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10340 | echo "${ECHO_T}$CC" >&6 | |
10341 | else | |
10342 | echo "$as_me:$LINENO: result: no" >&5 | |
10343 | echo "${ECHO_T}no" >&6 | |
10344 | fi | |
10345 | ||
10346 | fi | |
10347 | if test -z "$ac_cv_prog_CC"; then | |
10348 | ac_ct_CC=$CC | |
10349 | # Extract the first word of "cc", so it can be a program name with args. | |
10350 | set dummy cc; ac_word=$2 | |
10351 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10353 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10355 | else | |
10356 | if test -n "$ac_ct_CC"; then | |
10357 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10358 | else | |
10359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10360 | for as_dir in $PATH | |
10361 | do | |
10362 | IFS=$as_save_IFS | |
10363 | test -z "$as_dir" && as_dir=. | |
10364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10365 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10366 | ac_cv_prog_ac_ct_CC="cc" | |
10367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10368 | break 2 | |
10369 | fi | |
10370 | done | |
10371 | done | |
10372 | ||
10373 | fi | |
10374 | fi | |
10375 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10376 | if test -n "$ac_ct_CC"; then | |
10377 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10378 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10379 | else | |
10380 | echo "$as_me:$LINENO: result: no" >&5 | |
10381 | echo "${ECHO_T}no" >&6 | |
10382 | fi | |
10383 | ||
10384 | CC=$ac_ct_CC | |
10385 | else | |
10386 | CC="$ac_cv_prog_CC" | |
10387 | fi | |
10388 | ||
10389 | fi | |
10390 | if test -z "$CC"; then | |
10391 | # Extract the first word of "cc", so it can be a program name with args. | |
10392 | set dummy cc; ac_word=$2 | |
10393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10395 | if test "${ac_cv_prog_CC+set}" = set; then | |
10396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10397 | else | |
10398 | if test -n "$CC"; then | |
10399 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10400 | else | |
10401 | ac_prog_rejected=no | |
10402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10403 | for as_dir in $PATH | |
10404 | do | |
10405 | IFS=$as_save_IFS | |
10406 | test -z "$as_dir" && as_dir=. | |
10407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10408 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10409 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10410 | ac_prog_rejected=yes | |
10411 | continue | |
10412 | fi | |
10413 | ac_cv_prog_CC="cc" | |
10414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10415 | break 2 | |
10416 | fi | |
10417 | done | |
10418 | done | |
10419 | ||
10420 | if test $ac_prog_rejected = yes; then | |
10421 | # We found a bogon in the path, so make sure we never use it. | |
10422 | set dummy $ac_cv_prog_CC | |
10423 | shift | |
10424 | if test $# != 0; then | |
10425 | # We chose a different compiler from the bogus one. | |
10426 | # However, it has the same basename, so the bogon will be chosen | |
10427 | # first if we set CC to just the basename; use the full file name. | |
10428 | shift | |
10429 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10430 | fi | |
10431 | fi | |
10432 | fi | |
10433 | fi | |
10434 | CC=$ac_cv_prog_CC | |
10435 | if test -n "$CC"; then | |
10436 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10437 | echo "${ECHO_T}$CC" >&6 | |
10438 | else | |
10439 | echo "$as_me:$LINENO: result: no" >&5 | |
10440 | echo "${ECHO_T}no" >&6 | |
10441 | fi | |
10442 | ||
10443 | fi | |
10444 | if test -z "$CC"; then | |
10445 | if test -n "$ac_tool_prefix"; then | |
10446 | for ac_prog in cl | |
10447 | do | |
10448 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10449 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10450 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10451 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10452 | if test "${ac_cv_prog_CC+set}" = set; then | |
10453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10454 | else | |
10455 | if test -n "$CC"; then | |
10456 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10457 | else | |
10458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10459 | for as_dir in $PATH | |
10460 | do | |
10461 | IFS=$as_save_IFS | |
10462 | test -z "$as_dir" && as_dir=. | |
10463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10464 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10465 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10466 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10467 | break 2 | |
10468 | fi | |
10469 | done | |
10470 | done | |
10471 | ||
10472 | fi | |
10473 | fi | |
10474 | CC=$ac_cv_prog_CC | |
10475 | if test -n "$CC"; then | |
10476 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10477 | echo "${ECHO_T}$CC" >&6 | |
10478 | else | |
10479 | echo "$as_me:$LINENO: result: no" >&5 | |
10480 | echo "${ECHO_T}no" >&6 | |
10481 | fi | |
10482 | ||
10483 | test -n "$CC" && break | |
10484 | done | |
10485 | fi | |
10486 | if test -z "$CC"; then | |
10487 | ac_ct_CC=$CC | |
10488 | for ac_prog in cl | |
10489 | do | |
10490 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10491 | set dummy $ac_prog; ac_word=$2 | |
10492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10494 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10496 | else | |
10497 | if test -n "$ac_ct_CC"; then | |
10498 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10499 | else | |
10500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10501 | for as_dir in $PATH | |
10502 | do | |
10503 | IFS=$as_save_IFS | |
10504 | test -z "$as_dir" && as_dir=. | |
10505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10507 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10509 | break 2 | |
10510 | fi | |
10511 | done | |
10512 | done | |
10513 | ||
10514 | fi | |
10515 | fi | |
10516 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10517 | if test -n "$ac_ct_CC"; then | |
10518 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10519 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10520 | else | |
10521 | echo "$as_me:$LINENO: result: no" >&5 | |
10522 | echo "${ECHO_T}no" >&6 | |
10523 | fi | |
10524 | ||
10525 | test -n "$ac_ct_CC" && break | |
10526 | done | |
10527 | ||
10528 | CC=$ac_ct_CC | |
10529 | fi | |
10530 | ||
10531 | fi | |
10532 | ||
10533 | ||
10534 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10535 | See \`config.log' for more details." >&5 | |
10536 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10537 | See \`config.log' for more details." >&2;} | |
10538 | { (exit 1); exit 1; }; } | |
10539 | ||
10540 | # Provide some information about the compiler. | |
10541 | echo "$as_me:$LINENO:" \ | |
10542 | "checking for C compiler version" >&5 | |
10543 | ac_compiler=`set X $ac_compile; echo $2` | |
10544 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10545 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10546 | ac_status=$? | |
10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10548 | (exit $ac_status); } | |
10549 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10550 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10551 | ac_status=$? | |
10552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10553 | (exit $ac_status); } | |
10554 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10555 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10556 | ac_status=$? | |
10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10558 | (exit $ac_status); } | |
10559 | ||
10560 | cat >conftest.$ac_ext <<_ACEOF | |
10561 | /* confdefs.h. */ | |
10562 | _ACEOF | |
10563 | cat confdefs.h >>conftest.$ac_ext | |
10564 | cat >>conftest.$ac_ext <<_ACEOF | |
10565 | /* end confdefs.h. */ | |
10566 | ||
10567 | int | |
10568 | main () | |
10569 | { | |
10570 | ||
10571 | ; | |
10572 | return 0; | |
10573 | } | |
10574 | _ACEOF | |
10575 | ac_clean_files_save=$ac_clean_files | |
10576 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10577 | # Try to create an executable without -o first, disregard a.out. | |
10578 | # It will help us diagnose broken compilers, and finding out an intuition | |
10579 | # of exeext. | |
ac1cb8d3 VS |
10580 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10581 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10582 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10583 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10584 | (eval $ac_link_default) 2>&5 | |
10585 | ac_status=$? | |
10586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10587 | (exit $ac_status); }; then | |
10588 | # Find the output, starting from the most likely. This scheme is | |
10589 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10590 | # resort. | |
10591 | ||
10592 | # Be careful to initialize this variable, since it used to be cached. | |
10593 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10594 | ac_cv_exeext= | |
10595 | # b.out is created by i960 compilers. | |
10596 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10597 | do | |
10598 | test -f "$ac_file" || continue | |
10599 | case $ac_file in | |
10600 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10601 | ;; |
a848cd7e | 10602 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10603 | # This is the source file. |
10604 | ;; | |
a848cd7e | 10605 | [ab].out ) |
ac1cb8d3 VS |
10606 | # We found the default executable, but exeext='' is most |
10607 | # certainly right. | |
10608 | break;; | |
a848cd7e | 10609 | *.* ) |
ac1cb8d3 VS |
10610 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10611 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10612 | # but it would be cool to find out if it's true. Does anybody | |
10613 | # maintain Libtool? --akim. | |
10614 | export ac_cv_exeext | |
10615 | break;; | |
a848cd7e | 10616 | * ) |
ac1cb8d3 | 10617 | break;; |
a848cd7e SC |
10618 | esac |
10619 | done | |
10620 | else | |
10621 | echo "$as_me: failed program was:" >&5 | |
10622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10623 | ||
10624 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10625 | See \`config.log' for more details." >&5 | |
10626 | echo "$as_me: error: C compiler cannot create executables | |
10627 | See \`config.log' for more details." >&2;} | |
10628 | { (exit 77); exit 77; }; } | |
10629 | fi | |
10630 | ||
10631 | ac_exeext=$ac_cv_exeext | |
10632 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10633 | echo "${ECHO_T}$ac_file" >&6 | |
10634 | ||
10635 | # Check the compiler produces executables we can run. If not, either | |
10636 | # the compiler is broken, or we cross compile. | |
10637 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10638 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10639 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10640 | # If not cross compiling, check that we can run a simple program. | |
10641 | if test "$cross_compiling" != yes; then | |
10642 | if { ac_try='./$ac_file' | |
10643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10644 | (eval $ac_try) 2>&5 | |
10645 | ac_status=$? | |
10646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10647 | (exit $ac_status); }; }; then | |
10648 | cross_compiling=no | |
10649 | else | |
10650 | if test "$cross_compiling" = maybe; then | |
10651 | cross_compiling=yes | |
10652 | else | |
10653 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10654 | If you meant to cross compile, use \`--host'. | |
10655 | See \`config.log' for more details." >&5 | |
10656 | echo "$as_me: error: cannot run C compiled programs. | |
10657 | If you meant to cross compile, use \`--host'. | |
10658 | See \`config.log' for more details." >&2;} | |
10659 | { (exit 1); exit 1; }; } | |
10660 | fi | |
10661 | fi | |
10662 | fi | |
10663 | echo "$as_me:$LINENO: result: yes" >&5 | |
10664 | echo "${ECHO_T}yes" >&6 | |
10665 | ||
10666 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10667 | ac_clean_files=$ac_clean_files_save | |
10668 | # Check the compiler produces executables we can run. If not, either | |
10669 | # the compiler is broken, or we cross compile. | |
10670 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10671 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10672 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10673 | echo "${ECHO_T}$cross_compiling" >&6 | |
10674 | ||
10675 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10676 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10678 | (eval $ac_link) 2>&5 | |
10679 | ac_status=$? | |
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10681 | (exit $ac_status); }; then | |
10682 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10683 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10684 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10685 | # `rm'. | |
10686 | for ac_file in conftest.exe conftest conftest.*; do | |
10687 | test -f "$ac_file" || continue | |
10688 | case $ac_file in | |
10689 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10690 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10691 | export ac_cv_exeext |
10692 | break;; | |
a848cd7e SC |
10693 | * ) break;; |
10694 | esac | |
10695 | done | |
10696 | else | |
10697 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10698 | See \`config.log' for more details." >&5 | |
10699 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10700 | See \`config.log' for more details." >&2;} | |
10701 | { (exit 1); exit 1; }; } | |
10702 | fi | |
10703 | ||
10704 | rm -f conftest$ac_cv_exeext | |
10705 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10706 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10707 | ||
10708 | rm -f conftest.$ac_ext | |
10709 | EXEEXT=$ac_cv_exeext | |
10710 | ac_exeext=$EXEEXT | |
10711 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10712 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10713 | if test "${ac_cv_objext+set}" = set; then | |
10714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10715 | else | |
10716 | cat >conftest.$ac_ext <<_ACEOF | |
10717 | /* confdefs.h. */ | |
10718 | _ACEOF | |
10719 | cat confdefs.h >>conftest.$ac_ext | |
10720 | cat >>conftest.$ac_ext <<_ACEOF | |
10721 | /* end confdefs.h. */ | |
10722 | ||
10723 | int | |
10724 | main () | |
10725 | { | |
10726 | ||
10727 | ; | |
10728 | return 0; | |
10729 | } | |
10730 | _ACEOF | |
10731 | rm -f conftest.o conftest.obj | |
10732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10733 | (eval $ac_compile) 2>&5 | |
10734 | ac_status=$? | |
10735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10736 | (exit $ac_status); }; then | |
10737 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10738 | case $ac_file in | |
10739 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10740 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10741 | break;; | |
10742 | esac | |
10743 | done | |
10744 | else | |
10745 | echo "$as_me: failed program was:" >&5 | |
10746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10747 | ||
10748 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10749 | See \`config.log' for more details." >&5 | |
10750 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10751 | See \`config.log' for more details." >&2;} | |
10752 | { (exit 1); exit 1; }; } | |
10753 | fi | |
10754 | ||
10755 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10756 | fi | |
10757 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10758 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10759 | OBJEXT=$ac_cv_objext | |
10760 | ac_objext=$OBJEXT | |
10761 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10762 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10763 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10765 | else | |
10766 | cat >conftest.$ac_ext <<_ACEOF | |
10767 | /* confdefs.h. */ | |
10768 | _ACEOF | |
10769 | cat confdefs.h >>conftest.$ac_ext | |
10770 | cat >>conftest.$ac_ext <<_ACEOF | |
10771 | /* end confdefs.h. */ | |
10772 | ||
10773 | int | |
10774 | main () | |
10775 | { | |
10776 | #ifndef __GNUC__ | |
10777 | choke me | |
10778 | #endif | |
10779 | ||
10780 | ; | |
10781 | return 0; | |
10782 | } | |
10783 | _ACEOF | |
10784 | rm -f conftest.$ac_objext | |
10785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10786 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10787 | ac_status=$? |
ac1cb8d3 VS |
10788 | grep -v '^ *+' conftest.er1 >conftest.err |
10789 | rm -f conftest.er1 | |
10790 | cat conftest.err >&5 | |
a848cd7e SC |
10791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10792 | (exit $ac_status); } && | |
4d4ff94c | 10793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10795 | (eval $ac_try) 2>&5 | |
10796 | ac_status=$? | |
10797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10798 | (exit $ac_status); }; } && | |
10799 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10801 | (eval $ac_try) 2>&5 | |
10802 | ac_status=$? | |
10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10804 | (exit $ac_status); }; }; then | |
10805 | ac_compiler_gnu=yes | |
10806 | else | |
10807 | echo "$as_me: failed program was:" >&5 | |
10808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10809 | ||
10810 | ac_compiler_gnu=no | |
10811 | fi | |
ac1cb8d3 | 10812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10813 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10814 | ||
10815 | fi | |
10816 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10817 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10818 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10819 | ac_test_CFLAGS=${CFLAGS+set} | |
10820 | ac_save_CFLAGS=$CFLAGS | |
10821 | CFLAGS="-g" | |
10822 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10823 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10824 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10826 | else | |
10827 | cat >conftest.$ac_ext <<_ACEOF | |
10828 | /* confdefs.h. */ | |
10829 | _ACEOF | |
10830 | cat confdefs.h >>conftest.$ac_ext | |
10831 | cat >>conftest.$ac_ext <<_ACEOF | |
10832 | /* end confdefs.h. */ | |
10833 | ||
10834 | int | |
10835 | main () | |
10836 | { | |
10837 | ||
10838 | ; | |
10839 | return 0; | |
10840 | } | |
10841 | _ACEOF | |
10842 | rm -f conftest.$ac_objext | |
10843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10844 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10845 | ac_status=$? |
ac1cb8d3 VS |
10846 | grep -v '^ *+' conftest.er1 >conftest.err |
10847 | rm -f conftest.er1 | |
10848 | cat conftest.err >&5 | |
a848cd7e SC |
10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10850 | (exit $ac_status); } && | |
4d4ff94c | 10851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10853 | (eval $ac_try) 2>&5 | |
10854 | ac_status=$? | |
10855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10856 | (exit $ac_status); }; } && | |
10857 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10859 | (eval $ac_try) 2>&5 | |
10860 | ac_status=$? | |
10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10862 | (exit $ac_status); }; }; then | |
10863 | ac_cv_prog_cc_g=yes | |
10864 | else | |
10865 | echo "$as_me: failed program was:" >&5 | |
10866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10867 | ||
10868 | ac_cv_prog_cc_g=no | |
10869 | fi | |
ac1cb8d3 | 10870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10871 | fi |
10872 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10873 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10874 | if test "$ac_test_CFLAGS" = set; then | |
10875 | CFLAGS=$ac_save_CFLAGS | |
10876 | elif test $ac_cv_prog_cc_g = yes; then | |
10877 | if test "$GCC" = yes; then | |
10878 | CFLAGS="-g -O2" | |
10879 | else | |
10880 | CFLAGS="-g" | |
10881 | fi | |
10882 | else | |
10883 | if test "$GCC" = yes; then | |
10884 | CFLAGS="-O2" | |
10885 | else | |
10886 | CFLAGS= | |
10887 | fi | |
10888 | fi | |
10889 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10890 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10891 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10893 | else | |
10894 | ac_cv_prog_cc_stdc=no | |
10895 | ac_save_CC=$CC | |
10896 | cat >conftest.$ac_ext <<_ACEOF | |
10897 | /* confdefs.h. */ | |
10898 | _ACEOF | |
10899 | cat confdefs.h >>conftest.$ac_ext | |
10900 | cat >>conftest.$ac_ext <<_ACEOF | |
10901 | /* end confdefs.h. */ | |
10902 | #include <stdarg.h> | |
10903 | #include <stdio.h> | |
10904 | #include <sys/types.h> | |
10905 | #include <sys/stat.h> | |
10906 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10907 | struct buf { int x; }; | |
10908 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10909 | static char *e (p, i) | |
10910 | char **p; | |
10911 | int i; | |
10912 | { | |
10913 | return p[i]; | |
10914 | } | |
10915 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10916 | { | |
10917 | char *s; | |
10918 | va_list v; | |
10919 | va_start (v,p); | |
10920 | s = g (p, va_arg (v,int)); | |
10921 | va_end (v); | |
10922 | return s; | |
10923 | } | |
ac1cb8d3 VS |
10924 | |
10925 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10926 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10927 | These don't provoke an error unfortunately, instead are silently treated | |
10928 | as 'x'. The following induces an error, until -std1 is added to get | |
10929 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10930 | array size at least. It's necessary to write '\x00'==0 to get something | |
10931 | that's true only with -std1. */ | |
10932 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10933 | ||
a848cd7e SC |
10934 | int test (int i, double x); |
10935 | struct s1 {int (*f) (int a);}; | |
10936 | struct s2 {int (*f) (double a);}; | |
10937 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10938 | int argc; | |
10939 | char **argv; | |
10940 | int | |
10941 | main () | |
10942 | { | |
10943 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10944 | ; | |
10945 | return 0; | |
10946 | } | |
10947 | _ACEOF | |
10948 | # Don't try gcc -ansi; that turns off useful extensions and | |
10949 | # breaks some systems' header files. | |
10950 | # AIX -qlanglvl=ansi | |
10951 | # Ultrix and OSF/1 -std1 | |
10952 | # HP-UX 10.20 and later -Ae | |
10953 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10954 | # SVR4 -Xc -D__EXTENSIONS__ | |
10955 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10956 | do | |
10957 | CC="$ac_save_CC $ac_arg" | |
10958 | rm -f conftest.$ac_objext | |
10959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10960 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10961 | ac_status=$? |
ac1cb8d3 VS |
10962 | grep -v '^ *+' conftest.er1 >conftest.err |
10963 | rm -f conftest.er1 | |
10964 | cat conftest.err >&5 | |
a848cd7e SC |
10965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10966 | (exit $ac_status); } && | |
4d4ff94c | 10967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10969 | (eval $ac_try) 2>&5 | |
10970 | ac_status=$? | |
10971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10972 | (exit $ac_status); }; } && | |
10973 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10975 | (eval $ac_try) 2>&5 | |
10976 | ac_status=$? | |
10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10978 | (exit $ac_status); }; }; then | |
10979 | ac_cv_prog_cc_stdc=$ac_arg | |
10980 | break | |
10981 | else | |
10982 | echo "$as_me: failed program was:" >&5 | |
10983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10984 | ||
10985 | fi | |
ac1cb8d3 | 10986 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
10987 | done |
10988 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10989 | CC=$ac_save_CC | |
10990 | ||
10991 | fi | |
10992 | ||
10993 | case "x$ac_cv_prog_cc_stdc" in | |
10994 | x|xno) | |
10995 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10996 | echo "${ECHO_T}none needed" >&6 ;; | |
10997 | *) | |
10998 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10999 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11000 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11001 | esac | |
11002 | ||
11003 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11004 | # in C++ we need to declare it. In case someone uses the same compiler | |
11005 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11006 | # the declaration of exit, since it's the most demanding environment. | |
11007 | cat >conftest.$ac_ext <<_ACEOF | |
11008 | #ifndef __cplusplus | |
11009 | choke me | |
11010 | #endif | |
11011 | _ACEOF | |
11012 | rm -f conftest.$ac_objext | |
11013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11014 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11015 | ac_status=$? |
ac1cb8d3 VS |
11016 | grep -v '^ *+' conftest.er1 >conftest.err |
11017 | rm -f conftest.er1 | |
11018 | cat conftest.err >&5 | |
a848cd7e SC |
11019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11020 | (exit $ac_status); } && | |
4d4ff94c | 11021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11023 | (eval $ac_try) 2>&5 | |
11024 | ac_status=$? | |
11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11026 | (exit $ac_status); }; } && | |
11027 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11029 | (eval $ac_try) 2>&5 | |
11030 | ac_status=$? | |
11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11032 | (exit $ac_status); }; }; then | |
11033 | for ac_declaration in \ | |
ac1cb8d3 | 11034 | '' \ |
a848cd7e SC |
11035 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11036 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11037 | 'extern "C" void exit (int) throw ();' \ | |
11038 | 'extern "C" void exit (int);' \ | |
11039 | 'void exit (int);' | |
11040 | do | |
11041 | cat >conftest.$ac_ext <<_ACEOF | |
11042 | /* confdefs.h. */ | |
11043 | _ACEOF | |
11044 | cat confdefs.h >>conftest.$ac_ext | |
11045 | cat >>conftest.$ac_ext <<_ACEOF | |
11046 | /* end confdefs.h. */ | |
de59c161 | 11047 | $ac_declaration |
ac1cb8d3 | 11048 | #include <stdlib.h> |
a848cd7e SC |
11049 | int |
11050 | main () | |
11051 | { | |
11052 | exit (42); | |
11053 | ; | |
11054 | return 0; | |
11055 | } | |
11056 | _ACEOF | |
11057 | rm -f conftest.$ac_objext | |
11058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11059 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11060 | ac_status=$? |
ac1cb8d3 VS |
11061 | grep -v '^ *+' conftest.er1 >conftest.err |
11062 | rm -f conftest.er1 | |
11063 | cat conftest.err >&5 | |
a848cd7e SC |
11064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11065 | (exit $ac_status); } && | |
4d4ff94c | 11066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11068 | (eval $ac_try) 2>&5 | |
11069 | ac_status=$? | |
11070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11071 | (exit $ac_status); }; } && | |
11072 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11074 | (eval $ac_try) 2>&5 | |
11075 | ac_status=$? | |
11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11077 | (exit $ac_status); }; }; then | |
11078 | : | |
11079 | else | |
11080 | echo "$as_me: failed program was:" >&5 | |
11081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11082 | ||
11083 | continue | |
11084 | fi | |
ac1cb8d3 | 11085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11086 | cat >conftest.$ac_ext <<_ACEOF |
11087 | /* confdefs.h. */ | |
11088 | _ACEOF | |
11089 | cat confdefs.h >>conftest.$ac_ext | |
11090 | cat >>conftest.$ac_ext <<_ACEOF | |
11091 | /* end confdefs.h. */ | |
11092 | $ac_declaration | |
11093 | int | |
11094 | main () | |
11095 | { | |
11096 | exit (42); | |
11097 | ; | |
11098 | return 0; | |
11099 | } | |
11100 | _ACEOF | |
11101 | rm -f conftest.$ac_objext | |
11102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11103 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11104 | ac_status=$? |
ac1cb8d3 VS |
11105 | grep -v '^ *+' conftest.er1 >conftest.err |
11106 | rm -f conftest.er1 | |
11107 | cat conftest.err >&5 | |
a848cd7e SC |
11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11109 | (exit $ac_status); } && | |
4d4ff94c | 11110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11112 | (eval $ac_try) 2>&5 | |
11113 | ac_status=$? | |
11114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11115 | (exit $ac_status); }; } && | |
11116 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11118 | (eval $ac_try) 2>&5 | |
11119 | ac_status=$? | |
11120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11121 | (exit $ac_status); }; }; then | |
11122 | break | |
11123 | else | |
11124 | echo "$as_me: failed program was:" >&5 | |
11125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11126 | ||
11127 | fi | |
ac1cb8d3 | 11128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11129 | done |
11130 | rm -f conftest* | |
11131 | if test -n "$ac_declaration"; then | |
11132 | echo '#ifdef __cplusplus' >>confdefs.h | |
11133 | echo $ac_declaration >>confdefs.h | |
11134 | echo '#endif' >>confdefs.h | |
11135 | fi | |
11136 | ||
11137 | else | |
11138 | echo "$as_me: failed program was:" >&5 | |
11139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11140 | ||
11141 | fi | |
ac1cb8d3 | 11142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11143 | ac_ext=c |
11144 | ac_cpp='$CPP $CPPFLAGS' | |
11145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11148 | ||
11149 | ||
11150 | ||
11151 | ac_ext=c | |
11152 | ac_cpp='$CPP $CPPFLAGS' | |
11153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11156 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11157 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11158 | # On Suns, sometimes $CPP names a directory. | |
11159 | if test -n "$CPP" && test -d "$CPP"; then | |
11160 | CPP= | |
11161 | fi | |
11162 | if test -z "$CPP"; then | |
11163 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11165 | else | |
11166 | # Double quotes because CPP needs to be expanded | |
11167 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11168 | do | |
11169 | ac_preproc_ok=false | |
11170 | for ac_c_preproc_warn_flag in '' yes | |
11171 | do | |
11172 | # Use a header file that comes with gcc, so configuring glibc | |
11173 | # with a fresh cross-compiler works. | |
11174 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11175 | # <limits.h> exists even on freestanding compilers. | |
11176 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11177 | # not just through cpp. "Syntax error" is here to catch this case. | |
11178 | cat >conftest.$ac_ext <<_ACEOF | |
11179 | /* confdefs.h. */ | |
11180 | _ACEOF | |
11181 | cat confdefs.h >>conftest.$ac_ext | |
11182 | cat >>conftest.$ac_ext <<_ACEOF | |
11183 | /* end confdefs.h. */ | |
11184 | #ifdef __STDC__ | |
11185 | # include <limits.h> | |
11186 | #else | |
11187 | # include <assert.h> | |
11188 | #endif | |
ac1cb8d3 | 11189 | Syntax error |
a848cd7e SC |
11190 | _ACEOF |
11191 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11192 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11193 | ac_status=$? | |
11194 | grep -v '^ *+' conftest.er1 >conftest.err | |
11195 | rm -f conftest.er1 | |
11196 | cat conftest.err >&5 | |
11197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11198 | (exit $ac_status); } >/dev/null; then | |
11199 | if test -s conftest.err; then | |
11200 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11201 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11202 | else |
11203 | ac_cpp_err= | |
11204 | fi | |
11205 | else | |
11206 | ac_cpp_err=yes | |
11207 | fi | |
11208 | if test -z "$ac_cpp_err"; then | |
11209 | : | |
11210 | else | |
11211 | echo "$as_me: failed program was:" >&5 | |
11212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11213 | ||
11214 | # Broken: fails on valid input. | |
11215 | continue | |
11216 | fi | |
11217 | rm -f conftest.err conftest.$ac_ext | |
11218 | ||
11219 | # OK, works on sane cases. Now check whether non-existent headers | |
11220 | # can be detected and how. | |
11221 | cat >conftest.$ac_ext <<_ACEOF | |
11222 | /* confdefs.h. */ | |
11223 | _ACEOF | |
11224 | cat confdefs.h >>conftest.$ac_ext | |
11225 | cat >>conftest.$ac_ext <<_ACEOF | |
11226 | /* end confdefs.h. */ | |
11227 | #include <ac_nonexistent.h> | |
11228 | _ACEOF | |
11229 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11230 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11231 | ac_status=$? | |
11232 | grep -v '^ *+' conftest.er1 >conftest.err | |
11233 | rm -f conftest.er1 | |
11234 | cat conftest.err >&5 | |
11235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11236 | (exit $ac_status); } >/dev/null; then | |
11237 | if test -s conftest.err; then | |
11238 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11239 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11240 | else |
11241 | ac_cpp_err= | |
11242 | fi | |
11243 | else | |
11244 | ac_cpp_err=yes | |
11245 | fi | |
11246 | if test -z "$ac_cpp_err"; then | |
11247 | # Broken: success on invalid input. | |
11248 | continue | |
11249 | else | |
11250 | echo "$as_me: failed program was:" >&5 | |
11251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11252 | ||
11253 | # Passes both tests. | |
11254 | ac_preproc_ok=: | |
11255 | break | |
11256 | fi | |
11257 | rm -f conftest.err conftest.$ac_ext | |
11258 | ||
11259 | done | |
11260 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11261 | rm -f conftest.err conftest.$ac_ext | |
11262 | if $ac_preproc_ok; then | |
11263 | break | |
11264 | fi | |
11265 | ||
11266 | done | |
11267 | ac_cv_prog_CPP=$CPP | |
11268 | ||
11269 | fi | |
11270 | CPP=$ac_cv_prog_CPP | |
11271 | else | |
11272 | ac_cv_prog_CPP=$CPP | |
11273 | fi | |
11274 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11275 | echo "${ECHO_T}$CPP" >&6 | |
11276 | ac_preproc_ok=false | |
11277 | for ac_c_preproc_warn_flag in '' yes | |
11278 | do | |
11279 | # Use a header file that comes with gcc, so configuring glibc | |
11280 | # with a fresh cross-compiler works. | |
11281 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11282 | # <limits.h> exists even on freestanding compilers. | |
11283 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11284 | # not just through cpp. "Syntax error" is here to catch this case. | |
11285 | cat >conftest.$ac_ext <<_ACEOF | |
11286 | /* confdefs.h. */ | |
11287 | _ACEOF | |
11288 | cat confdefs.h >>conftest.$ac_ext | |
11289 | cat >>conftest.$ac_ext <<_ACEOF | |
11290 | /* end confdefs.h. */ | |
11291 | #ifdef __STDC__ | |
11292 | # include <limits.h> | |
11293 | #else | |
11294 | # include <assert.h> | |
11295 | #endif | |
ac1cb8d3 | 11296 | Syntax error |
a848cd7e SC |
11297 | _ACEOF |
11298 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11299 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11300 | ac_status=$? | |
11301 | grep -v '^ *+' conftest.er1 >conftest.err | |
11302 | rm -f conftest.er1 | |
11303 | cat conftest.err >&5 | |
11304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11305 | (exit $ac_status); } >/dev/null; then | |
11306 | if test -s conftest.err; then | |
11307 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11308 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11309 | else |
11310 | ac_cpp_err= | |
11311 | fi | |
11312 | else | |
11313 | ac_cpp_err=yes | |
11314 | fi | |
11315 | if test -z "$ac_cpp_err"; then | |
11316 | : | |
11317 | else | |
11318 | echo "$as_me: failed program was:" >&5 | |
11319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11320 | ||
11321 | # Broken: fails on valid input. | |
11322 | continue | |
11323 | fi | |
11324 | rm -f conftest.err conftest.$ac_ext | |
11325 | ||
11326 | # OK, works on sane cases. Now check whether non-existent headers | |
11327 | # can be detected and how. | |
11328 | cat >conftest.$ac_ext <<_ACEOF | |
11329 | /* confdefs.h. */ | |
11330 | _ACEOF | |
11331 | cat confdefs.h >>conftest.$ac_ext | |
11332 | cat >>conftest.$ac_ext <<_ACEOF | |
11333 | /* end confdefs.h. */ | |
11334 | #include <ac_nonexistent.h> | |
11335 | _ACEOF | |
11336 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11337 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11338 | ac_status=$? | |
11339 | grep -v '^ *+' conftest.er1 >conftest.err | |
11340 | rm -f conftest.er1 | |
11341 | cat conftest.err >&5 | |
11342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11343 | (exit $ac_status); } >/dev/null; then | |
11344 | if test -s conftest.err; then | |
11345 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11346 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11347 | else |
11348 | ac_cpp_err= | |
11349 | fi | |
11350 | else | |
11351 | ac_cpp_err=yes | |
11352 | fi | |
11353 | if test -z "$ac_cpp_err"; then | |
11354 | # Broken: success on invalid input. | |
11355 | continue | |
11356 | else | |
11357 | echo "$as_me: failed program was:" >&5 | |
11358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11359 | ||
11360 | # Passes both tests. | |
11361 | ac_preproc_ok=: | |
11362 | break | |
11363 | fi | |
11364 | rm -f conftest.err conftest.$ac_ext | |
11365 | ||
11366 | done | |
11367 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11368 | rm -f conftest.err conftest.$ac_ext | |
11369 | if $ac_preproc_ok; then | |
11370 | : | |
11371 | else | |
11372 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11373 | See \`config.log' for more details." >&5 | |
11374 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11375 | See \`config.log' for more details." >&2;} | |
11376 | { (exit 1); exit 1; }; } | |
11377 | fi | |
11378 | ||
11379 | ac_ext=c | |
11380 | ac_cpp='$CPP $CPPFLAGS' | |
11381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11384 | ||
11385 | ||
11386 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11387 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11388 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11390 | else | |
11391 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11392 | then ac_cv_prog_egrep='grep -E' | |
11393 | else ac_cv_prog_egrep='egrep' | |
11394 | fi | |
11395 | fi | |
11396 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11397 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11398 | EGREP=$ac_cv_prog_egrep | |
11399 | ||
11400 | ||
11401 | if test $ac_cv_c_compiler_gnu = yes; then | |
11402 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11403 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11404 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11406 | else | |
11407 | ac_pattern="Autoconf.*'x'" | |
11408 | cat >conftest.$ac_ext <<_ACEOF | |
11409 | /* confdefs.h. */ | |
11410 | _ACEOF | |
11411 | cat confdefs.h >>conftest.$ac_ext | |
11412 | cat >>conftest.$ac_ext <<_ACEOF | |
11413 | /* end confdefs.h. */ | |
11414 | #include <sgtty.h> | |
11415 | Autoconf TIOCGETP | |
11416 | _ACEOF | |
11417 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11418 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11419 | ac_cv_prog_gcc_traditional=yes | |
11420 | else | |
11421 | ac_cv_prog_gcc_traditional=no | |
11422 | fi | |
11423 | rm -f conftest* | |
11424 | ||
11425 | ||
11426 | if test $ac_cv_prog_gcc_traditional = no; then | |
11427 | cat >conftest.$ac_ext <<_ACEOF | |
11428 | /* confdefs.h. */ | |
11429 | _ACEOF | |
11430 | cat confdefs.h >>conftest.$ac_ext | |
11431 | cat >>conftest.$ac_ext <<_ACEOF | |
11432 | /* end confdefs.h. */ | |
11433 | #include <termio.h> | |
11434 | Autoconf TCGETA | |
11435 | _ACEOF | |
11436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11437 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11438 | ac_cv_prog_gcc_traditional=yes | |
11439 | fi | |
11440 | rm -f conftest* | |
11441 | ||
11442 | fi | |
11443 | fi | |
11444 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11445 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11446 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11447 | CC="$CC -traditional" | |
11448 | fi | |
11449 | fi | |
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ac_ext=cc | |
11455 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11456 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11457 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11458 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11459 | ||
11460 | ||
11461 | CXXFLAGS=${CXXFLAGS:=} | |
11462 | ac_ext=cc | |
11463 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11464 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11465 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11466 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11467 | if test -n "$ac_tool_prefix"; then | |
11468 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11469 | do | |
11470 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11471 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11472 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11474 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11476 | else | |
11477 | if test -n "$CXX"; then | |
11478 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11479 | else | |
11480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11481 | for as_dir in $PATH | |
11482 | do | |
11483 | IFS=$as_save_IFS | |
11484 | test -z "$as_dir" && as_dir=. | |
11485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11486 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11487 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11489 | break 2 | |
11490 | fi | |
11491 | done | |
11492 | done | |
11493 | ||
11494 | fi | |
11495 | fi | |
11496 | CXX=$ac_cv_prog_CXX | |
11497 | if test -n "$CXX"; then | |
11498 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11499 | echo "${ECHO_T}$CXX" >&6 | |
11500 | else | |
11501 | echo "$as_me:$LINENO: result: no" >&5 | |
11502 | echo "${ECHO_T}no" >&6 | |
11503 | fi | |
11504 | ||
11505 | test -n "$CXX" && break | |
11506 | done | |
11507 | fi | |
11508 | if test -z "$CXX"; then | |
11509 | ac_ct_CXX=$CXX | |
11510 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11511 | do | |
11512 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11513 | set dummy $ac_prog; ac_word=$2 | |
11514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11516 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11518 | else | |
11519 | if test -n "$ac_ct_CXX"; then | |
11520 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11521 | else | |
11522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11523 | for as_dir in $PATH | |
11524 | do | |
11525 | IFS=$as_save_IFS | |
11526 | test -z "$as_dir" && as_dir=. | |
11527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11529 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11531 | break 2 | |
11532 | fi | |
11533 | done | |
11534 | done | |
11535 | ||
11536 | fi | |
11537 | fi | |
11538 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11539 | if test -n "$ac_ct_CXX"; then | |
11540 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11541 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11542 | else | |
11543 | echo "$as_me:$LINENO: result: no" >&5 | |
11544 | echo "${ECHO_T}no" >&6 | |
11545 | fi | |
11546 | ||
11547 | test -n "$ac_ct_CXX" && break | |
11548 | done | |
11549 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11550 | ||
11551 | CXX=$ac_ct_CXX | |
11552 | fi | |
11553 | ||
11554 | ||
11555 | # Provide some information about the compiler. | |
11556 | echo "$as_me:$LINENO:" \ | |
11557 | "checking for C++ compiler version" >&5 | |
11558 | ac_compiler=`set X $ac_compile; echo $2` | |
11559 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11560 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11561 | ac_status=$? | |
11562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11563 | (exit $ac_status); } | |
11564 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11565 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11566 | ac_status=$? | |
11567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11568 | (exit $ac_status); } | |
11569 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11570 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11571 | ac_status=$? | |
11572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11573 | (exit $ac_status); } | |
11574 | ||
11575 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11576 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11577 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11579 | else | |
11580 | cat >conftest.$ac_ext <<_ACEOF | |
11581 | /* confdefs.h. */ | |
11582 | _ACEOF | |
11583 | cat confdefs.h >>conftest.$ac_ext | |
11584 | cat >>conftest.$ac_ext <<_ACEOF | |
11585 | /* end confdefs.h. */ | |
11586 | ||
11587 | int | |
11588 | main () | |
11589 | { | |
11590 | #ifndef __GNUC__ | |
11591 | choke me | |
11592 | #endif | |
11593 | ||
11594 | ; | |
11595 | return 0; | |
11596 | } | |
11597 | _ACEOF | |
11598 | rm -f conftest.$ac_objext | |
11599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11600 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11601 | ac_status=$? |
ac1cb8d3 VS |
11602 | grep -v '^ *+' conftest.er1 >conftest.err |
11603 | rm -f conftest.er1 | |
11604 | cat conftest.err >&5 | |
a848cd7e SC |
11605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11606 | (exit $ac_status); } && | |
4d4ff94c | 11607 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11609 | (eval $ac_try) 2>&5 | |
11610 | ac_status=$? | |
11611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11612 | (exit $ac_status); }; } && | |
11613 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11615 | (eval $ac_try) 2>&5 | |
11616 | ac_status=$? | |
11617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11618 | (exit $ac_status); }; }; then | |
11619 | ac_compiler_gnu=yes | |
11620 | else | |
11621 | echo "$as_me: failed program was:" >&5 | |
11622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11623 | ||
11624 | ac_compiler_gnu=no | |
11625 | fi | |
ac1cb8d3 | 11626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11627 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11628 | ||
11629 | fi | |
11630 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11631 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11632 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11633 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11634 | ac_save_CXXFLAGS=$CXXFLAGS | |
11635 | CXXFLAGS="-g" | |
11636 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11637 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11638 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11640 | else | |
11641 | cat >conftest.$ac_ext <<_ACEOF | |
11642 | /* confdefs.h. */ | |
11643 | _ACEOF | |
11644 | cat confdefs.h >>conftest.$ac_ext | |
11645 | cat >>conftest.$ac_ext <<_ACEOF | |
11646 | /* end confdefs.h. */ | |
11647 | ||
11648 | int | |
11649 | main () | |
11650 | { | |
11651 | ||
11652 | ; | |
11653 | return 0; | |
11654 | } | |
11655 | _ACEOF | |
11656 | rm -f conftest.$ac_objext | |
11657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11658 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11659 | ac_status=$? |
ac1cb8d3 VS |
11660 | grep -v '^ *+' conftest.er1 >conftest.err |
11661 | rm -f conftest.er1 | |
11662 | cat conftest.err >&5 | |
a848cd7e SC |
11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11664 | (exit $ac_status); } && | |
4d4ff94c | 11665 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11667 | (eval $ac_try) 2>&5 | |
11668 | ac_status=$? | |
11669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11670 | (exit $ac_status); }; } && | |
11671 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11673 | (eval $ac_try) 2>&5 | |
11674 | ac_status=$? | |
11675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11676 | (exit $ac_status); }; }; then | |
11677 | ac_cv_prog_cxx_g=yes | |
11678 | else | |
11679 | echo "$as_me: failed program was:" >&5 | |
11680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11681 | ||
11682 | ac_cv_prog_cxx_g=no | |
11683 | fi | |
ac1cb8d3 | 11684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11685 | fi |
11686 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11687 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11688 | if test "$ac_test_CXXFLAGS" = set; then | |
11689 | CXXFLAGS=$ac_save_CXXFLAGS | |
11690 | elif test $ac_cv_prog_cxx_g = yes; then | |
11691 | if test "$GXX" = yes; then | |
11692 | CXXFLAGS="-g -O2" | |
11693 | else | |
11694 | CXXFLAGS="-g" | |
11695 | fi | |
11696 | else | |
11697 | if test "$GXX" = yes; then | |
11698 | CXXFLAGS="-O2" | |
11699 | else | |
11700 | CXXFLAGS= | |
11701 | fi | |
11702 | fi | |
11703 | for ac_declaration in \ | |
ac1cb8d3 | 11704 | '' \ |
a848cd7e SC |
11705 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11706 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11707 | 'extern "C" void exit (int) throw ();' \ | |
11708 | 'extern "C" void exit (int);' \ | |
11709 | 'void exit (int);' | |
11710 | do | |
11711 | cat >conftest.$ac_ext <<_ACEOF | |
11712 | /* confdefs.h. */ | |
11713 | _ACEOF | |
11714 | cat confdefs.h >>conftest.$ac_ext | |
11715 | cat >>conftest.$ac_ext <<_ACEOF | |
11716 | /* end confdefs.h. */ | |
de59c161 | 11717 | $ac_declaration |
ac1cb8d3 | 11718 | #include <stdlib.h> |
a848cd7e SC |
11719 | int |
11720 | main () | |
11721 | { | |
11722 | exit (42); | |
11723 | ; | |
11724 | return 0; | |
11725 | } | |
11726 | _ACEOF | |
11727 | rm -f conftest.$ac_objext | |
11728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11729 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11730 | ac_status=$? |
ac1cb8d3 VS |
11731 | grep -v '^ *+' conftest.er1 >conftest.err |
11732 | rm -f conftest.er1 | |
11733 | cat conftest.err >&5 | |
a848cd7e SC |
11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11735 | (exit $ac_status); } && | |
4d4ff94c | 11736 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11738 | (eval $ac_try) 2>&5 | |
11739 | ac_status=$? | |
11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11741 | (exit $ac_status); }; } && | |
11742 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11744 | (eval $ac_try) 2>&5 | |
11745 | ac_status=$? | |
11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11747 | (exit $ac_status); }; }; then | |
11748 | : | |
11749 | else | |
11750 | echo "$as_me: failed program was:" >&5 | |
11751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11752 | ||
11753 | continue | |
11754 | fi | |
ac1cb8d3 | 11755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11756 | cat >conftest.$ac_ext <<_ACEOF |
11757 | /* confdefs.h. */ | |
11758 | _ACEOF | |
11759 | cat confdefs.h >>conftest.$ac_ext | |
11760 | cat >>conftest.$ac_ext <<_ACEOF | |
11761 | /* end confdefs.h. */ | |
11762 | $ac_declaration | |
11763 | int | |
11764 | main () | |
11765 | { | |
11766 | exit (42); | |
11767 | ; | |
11768 | return 0; | |
11769 | } | |
11770 | _ACEOF | |
11771 | rm -f conftest.$ac_objext | |
11772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11773 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11774 | ac_status=$? |
ac1cb8d3 VS |
11775 | grep -v '^ *+' conftest.er1 >conftest.err |
11776 | rm -f conftest.er1 | |
11777 | cat conftest.err >&5 | |
a848cd7e SC |
11778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11779 | (exit $ac_status); } && | |
4d4ff94c | 11780 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11782 | (eval $ac_try) 2>&5 | |
11783 | ac_status=$? | |
11784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11785 | (exit $ac_status); }; } && | |
11786 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11788 | (eval $ac_try) 2>&5 | |
11789 | ac_status=$? | |
11790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11791 | (exit $ac_status); }; }; then | |
11792 | break | |
11793 | else | |
11794 | echo "$as_me: failed program was:" >&5 | |
11795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11796 | ||
11797 | fi | |
ac1cb8d3 | 11798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11799 | done |
11800 | rm -f conftest* | |
11801 | if test -n "$ac_declaration"; then | |
11802 | echo '#ifdef __cplusplus' >>confdefs.h | |
11803 | echo $ac_declaration >>confdefs.h | |
11804 | echo '#endif' >>confdefs.h | |
11805 | fi | |
11806 | ||
11807 | ac_ext=cc | |
11808 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11809 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11810 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11811 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11812 | ||
11813 | ||
11814 | ac_ext=c | |
11815 | ac_cpp='$CPP $CPPFLAGS' | |
11816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11819 | ||
11820 | ||
a848cd7e SC |
11821 | if test -n "$ac_tool_prefix"; then |
11822 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11823 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11824 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11826 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11828 | else | |
11829 | if test -n "$RANLIB"; then | |
11830 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11831 | else | |
11832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11833 | for as_dir in $PATH | |
11834 | do | |
11835 | IFS=$as_save_IFS | |
11836 | test -z "$as_dir" && as_dir=. | |
11837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11839 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11841 | break 2 | |
11842 | fi | |
11843 | done | |
11844 | done | |
11845 | ||
11846 | fi | |
11847 | fi | |
11848 | RANLIB=$ac_cv_prog_RANLIB | |
11849 | if test -n "$RANLIB"; then | |
11850 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11851 | echo "${ECHO_T}$RANLIB" >&6 | |
11852 | else | |
11853 | echo "$as_me:$LINENO: result: no" >&5 | |
11854 | echo "${ECHO_T}no" >&6 | |
11855 | fi | |
11856 | ||
11857 | fi | |
11858 | if test -z "$ac_cv_prog_RANLIB"; then | |
11859 | ac_ct_RANLIB=$RANLIB | |
11860 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11861 | set dummy ranlib; ac_word=$2 | |
11862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11864 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11866 | else | |
11867 | if test -n "$ac_ct_RANLIB"; then | |
11868 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11869 | else | |
11870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11871 | for as_dir in $PATH | |
11872 | do | |
11873 | IFS=$as_save_IFS | |
11874 | test -z "$as_dir" && as_dir=. | |
11875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11877 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11879 | break 2 | |
11880 | fi | |
11881 | done | |
11882 | done | |
11883 | ||
11884 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11885 | fi | |
11886 | fi | |
11887 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11888 | if test -n "$ac_ct_RANLIB"; then | |
11889 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11890 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11891 | else | |
11892 | echo "$as_me:$LINENO: result: no" >&5 | |
11893 | echo "${ECHO_T}no" >&6 | |
11894 | fi | |
11895 | ||
11896 | RANLIB=$ac_ct_RANLIB | |
11897 | else | |
11898 | RANLIB="$ac_cv_prog_RANLIB" | |
11899 | fi | |
11900 | ||
11901 | ||
11902 | # Extract the first word of "ar", so it can be a program name with args. | |
11903 | set dummy ar; ac_word=$2 | |
11904 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11906 | if test "${ac_cv_prog_AR+set}" = set; then | |
11907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11908 | else | |
11909 | if test -n "$AR"; then | |
11910 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11911 | else | |
11912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11913 | for as_dir in $PATH | |
11914 | do | |
11915 | IFS=$as_save_IFS | |
11916 | test -z "$as_dir" && as_dir=. | |
11917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11918 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11919 | ac_cv_prog_AR="ar" | |
11920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11921 | break 2 | |
11922 | fi | |
11923 | done | |
11924 | done | |
11925 | ||
11926 | fi | |
11927 | fi | |
11928 | AR=$ac_cv_prog_AR | |
11929 | if test -n "$AR"; then | |
11930 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11931 | echo "${ECHO_T}$AR" >&6 | |
11932 | else | |
11933 | echo "$as_me:$LINENO: result: no" >&5 | |
11934 | echo "${ECHO_T}no" >&6 | |
11935 | fi | |
11936 | ||
11937 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
11938 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
11939 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
11940 | { (exit 1); exit 1; }; } |
11941 | fi | |
11942 | ||
11943 | # Find a good install program. We prefer a C program (faster), | |
11944 | # so one script is as good as another. But avoid the broken or | |
11945 | # incompatible versions: | |
11946 | # SysV /etc/install, /usr/sbin/install | |
11947 | # SunOS /usr/etc/install | |
11948 | # IRIX /sbin/install | |
11949 | # AIX /bin/install | |
11950 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11951 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11952 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11953 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 11954 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
11955 | # ./install, which can be erroneously created by make from ./install.sh. |
11956 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
11957 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
11958 | if test -z "$INSTALL"; then | |
11959 | if test "${ac_cv_path_install+set}" = set; then | |
11960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11961 | else | |
11962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11963 | for as_dir in $PATH | |
11964 | do | |
11965 | IFS=$as_save_IFS | |
11966 | test -z "$as_dir" && as_dir=. | |
11967 | # Account for people who put trailing slashes in PATH elements. | |
11968 | case $as_dir/ in | |
11969 | ./ | .// | /cC/* | \ | |
11970 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 11971 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
11972 | /usr/ucb/* ) ;; |
11973 | *) | |
11974 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11975 | # Don't use installbsd from OSF since it installs stuff as root | |
11976 | # by default. | |
11977 | for ac_prog in ginstall scoinst install; do | |
11978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
11979 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11980 | if test $ac_prog = install && | |
11981 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11982 | # AIX install. It has an incompatible calling convention. | |
11983 | : | |
11984 | elif test $ac_prog = install && | |
11985 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11986 | # program-specific install script used by HP pwplus--don't use. | |
11987 | : | |
11988 | else | |
11989 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11990 | break 3 | |
11991 | fi | |
11992 | fi | |
a848cd7e SC |
11993 | done |
11994 | done | |
11995 | ;; | |
11996 | esac | |
11997 | done | |
11998 | ||
11999 | ||
12000 | fi | |
12001 | if test "${ac_cv_path_install+set}" = set; then | |
12002 | INSTALL=$ac_cv_path_install | |
12003 | else | |
12004 | # As a last resort, use the slow shell script. We don't cache a | |
12005 | # path for INSTALL within a source directory, because that will | |
12006 | # break other packages using the cache if that directory is | |
12007 | # removed, or if the path is relative. | |
12008 | INSTALL=$ac_install_sh | |
12009 | fi | |
12010 | fi | |
12011 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12012 | echo "${ECHO_T}$INSTALL" >&6 | |
12013 | ||
12014 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12015 | # It thinks the first close brace ends the variable substitution. | |
12016 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12017 | ||
12018 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12019 | ||
12020 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12021 | ||
12022 | ||
12023 | case ${INSTALL} in | |
12024 | /* ) # Absolute | |
12025 | ;; | |
12026 | ?:* ) # Drive letter, considered as absolute. | |
12027 | ;; | |
12028 | *) | |
12029 | INSTALL=`pwd`/${INSTALL} ;; | |
12030 | esac | |
12031 | ||
a848cd7e SC |
12032 | |
12033 | case "${host}" in | |
12034 | ||
12035 | powerpc-*-darwin* ) | |
12036 | INSTALL_PROGRAM="cp -fp" | |
12037 | INSTALL_DATA="cp -fp" | |
12038 | ;; | |
12039 | *) | |
12040 | ;; | |
12041 | esac | |
12042 | ||
12043 | # Extract the first word of "strip", so it can be a program name with args. | |
12044 | set dummy strip; ac_word=$2 | |
12045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12047 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12049 | else | |
12050 | if test -n "$STRIP"; then | |
12051 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12052 | else | |
12053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12054 | for as_dir in $PATH | |
12055 | do | |
12056 | IFS=$as_save_IFS | |
12057 | test -z "$as_dir" && as_dir=. | |
12058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12060 | ac_cv_prog_STRIP="strip" | |
12061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12062 | break 2 | |
12063 | fi | |
12064 | done | |
12065 | done | |
12066 | ||
12067 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12068 | fi | |
12069 | fi | |
12070 | STRIP=$ac_cv_prog_STRIP | |
12071 | if test -n "$STRIP"; then | |
12072 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12073 | echo "${ECHO_T}$STRIP" >&6 | |
12074 | else | |
12075 | echo "$as_me:$LINENO: result: no" >&5 | |
12076 | echo "${ECHO_T}no" >&6 | |
12077 | fi | |
12078 | ||
12079 | ||
12080 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12081 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12082 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12084 | else | |
12085 | ||
12086 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12087 | egrep -s GNU > /dev/null); then | |
12088 | wx_cv_prog_makeisgnu="yes" | |
12089 | else | |
12090 | wx_cv_prog_makeisgnu="no" | |
12091 | fi | |
12092 | ||
12093 | fi | |
12094 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12095 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12096 | ||
12097 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12098 | IF_GNU_MAKE="" | |
12099 | else | |
12100 | IF_GNU_MAKE="#" | |
12101 | fi | |
12102 | ||
12103 | ||
12104 | ||
12105 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12106 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12107 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12108 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12110 | else | |
12111 | ||
12112 | cat - << EOF > confMake | |
12113 | check : file | |
12114 | cp \$? \$@ | |
12115 | cp \$? final_file | |
12116 | EOF | |
12117 | ||
12118 | if test ! -d sub ; then | |
12119 | mkdir sub | |
12120 | fi | |
12121 | echo dummy > sub/file | |
12122 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12123 | RESULT=$? | |
12124 | rm -f sub/file check final_file confMake | |
12125 | rmdir sub | |
12126 | if test "$RESULT" = 0; then | |
12127 | wx_cv_prog_makevpath="yes" | |
12128 | else | |
12129 | wx_cv_prog_makevpath="no" | |
12130 | fi | |
12131 | ||
12132 | fi | |
12133 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12134 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12135 | ||
12136 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12137 | { { echo "$as_me:$LINENO: error: | |
12138 | You need a make-utility that is able to use the variable | |
12139 | VPATH correctly. | |
12140 | If your version of make does not support VPATH correctly, | |
12141 | please install GNU-make (possibly as gmake), and start | |
12142 | configure with the following command: | |
12143 | export MAKE=gmake; ./configure for sh-type shells | |
12144 | setenv MAKE gmake; ./configure for csh-type shells | |
12145 | Also please do remember to use gmake in this case every time | |
12146 | you are trying to compile. | |
12147 | " >&5 | |
12148 | echo "$as_me: error: | |
12149 | You need a make-utility that is able to use the variable | |
12150 | VPATH correctly. | |
12151 | If your version of make does not support VPATH correctly, | |
12152 | please install GNU-make (possibly as gmake), and start | |
12153 | configure with the following command: | |
12154 | export MAKE=gmake; ./configure for sh-type shells | |
12155 | setenv MAKE gmake; ./configure for csh-type shells | |
12156 | Also please do remember to use gmake in this case every time | |
12157 | you are trying to compile. | |
12158 | " >&2;} | |
12159 | { (exit 1); exit 1; }; } | |
12160 | fi fi | |
12161 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12162 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12163 | LN_S=$as_ln_s | |
12164 | if test "$LN_S" = "ln -s"; then | |
12165 | echo "$as_me:$LINENO: result: yes" >&5 | |
12166 | echo "${ECHO_T}yes" >&6 | |
12167 | else | |
12168 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12169 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12170 | fi | |
12171 | ||
12172 | ||
12173 | ||
12174 | case "${host}" in | |
12175 | *-pc-os2_emx | *-pc-os2-emx ) | |
12176 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12177 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12178 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12179 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12181 | else | |
12182 | ac_check_lib_save_LIBS=$LIBS | |
12183 | LIBS="-lcExt $LIBS" | |
12184 | cat >conftest.$ac_ext <<_ACEOF | |
12185 | /* confdefs.h. */ | |
12186 | _ACEOF | |
12187 | cat confdefs.h >>conftest.$ac_ext | |
12188 | cat >>conftest.$ac_ext <<_ACEOF | |
12189 | /* end confdefs.h. */ | |
12190 | ||
12191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12192 | #ifdef __cplusplus | |
12193 | extern "C" | |
12194 | #endif | |
12195 | /* We use char because int might match the return type of a gcc2 | |
12196 | builtin and then its argument prototype would still apply. */ | |
12197 | char drand48 (); | |
12198 | int | |
12199 | main () | |
12200 | { | |
12201 | drand48 (); | |
12202 | ; | |
12203 | return 0; | |
12204 | } | |
12205 | _ACEOF | |
12206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12208 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12209 | ac_status=$? |
ac1cb8d3 VS |
12210 | grep -v '^ *+' conftest.er1 >conftest.err |
12211 | rm -f conftest.er1 | |
12212 | cat conftest.err >&5 | |
a848cd7e SC |
12213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12214 | (exit $ac_status); } && | |
4d4ff94c | 12215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12217 | (eval $ac_try) 2>&5 | |
12218 | ac_status=$? | |
12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12220 | (exit $ac_status); }; } && | |
12221 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12223 | (eval $ac_try) 2>&5 | |
12224 | ac_status=$? | |
12225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12226 | (exit $ac_status); }; }; then | |
12227 | ac_cv_lib_cExt_drand48=yes | |
12228 | else | |
12229 | echo "$as_me: failed program was:" >&5 | |
12230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12231 | ||
12232 | ac_cv_lib_cExt_drand48=no | |
12233 | fi | |
ac1cb8d3 VS |
12234 | rm -f conftest.err conftest.$ac_objext \ |
12235 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12236 | LIBS=$ac_check_lib_save_LIBS |
12237 | fi | |
12238 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12239 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12240 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12241 | LIBS="$LIBS -lcExt" | |
12242 | fi | |
12243 | ||
12244 | else | |
12245 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12246 | fi | |
12247 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12248 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12249 | if test "${wx_cv_gccversion+set}" = set; then | |
12250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12251 | else | |
12252 | ||
12253 | cat >conftest.$ac_ext <<_ACEOF | |
12254 | /* confdefs.h. */ | |
12255 | _ACEOF | |
12256 | cat confdefs.h >>conftest.$ac_ext | |
12257 | cat >>conftest.$ac_ext <<_ACEOF | |
12258 | /* end confdefs.h. */ | |
12259 | ||
12260 | int | |
12261 | main () | |
12262 | { | |
12263 | ||
12264 | #if (__GNUC__ < 3) | |
12265 | #error old gcc | |
12266 | #endif | |
12267 | ||
12268 | ; | |
12269 | return 0; | |
12270 | } | |
12271 | _ACEOF | |
12272 | rm -f conftest.$ac_objext | |
12273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12274 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12275 | ac_status=$? |
ac1cb8d3 VS |
12276 | grep -v '^ *+' conftest.er1 >conftest.err |
12277 | rm -f conftest.er1 | |
12278 | cat conftest.err >&5 | |
a848cd7e SC |
12279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12280 | (exit $ac_status); } && | |
4d4ff94c | 12281 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12283 | (eval $ac_try) 2>&5 | |
12284 | ac_status=$? | |
12285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12286 | (exit $ac_status); }; } && | |
12287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12289 | (eval $ac_try) 2>&5 | |
12290 | ac_status=$? | |
12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12292 | (exit $ac_status); }; }; then | |
12293 | ||
12294 | cat >conftest.$ac_ext <<_ACEOF | |
12295 | /* confdefs.h. */ | |
12296 | _ACEOF | |
12297 | cat confdefs.h >>conftest.$ac_ext | |
12298 | cat >>conftest.$ac_ext <<_ACEOF | |
12299 | /* end confdefs.h. */ | |
12300 | ||
12301 | int | |
12302 | main () | |
12303 | { | |
12304 | ||
12305 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12306 | #error intermediate gcc | |
12307 | #endif | |
12308 | ||
12309 | ; | |
12310 | return 0; | |
12311 | } | |
12312 | _ACEOF | |
12313 | rm -f conftest.$ac_objext | |
12314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12315 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12316 | ac_status=$? |
ac1cb8d3 VS |
12317 | grep -v '^ *+' conftest.er1 >conftest.err |
12318 | rm -f conftest.er1 | |
12319 | cat conftest.err >&5 | |
a848cd7e SC |
12320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12321 | (exit $ac_status); } && | |
4d4ff94c | 12322 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12324 | (eval $ac_try) 2>&5 | |
12325 | ac_status=$? | |
12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12327 | (exit $ac_status); }; } && | |
12328 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12330 | (eval $ac_try) 2>&5 | |
12331 | ac_status=$? | |
12332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12333 | (exit $ac_status); }; }; then | |
12334 | ||
12335 | wx_cv_gccversion=Innotek | |
12336 | ||
12337 | else | |
12338 | echo "$as_me: failed program was:" >&5 | |
12339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12340 | ||
12341 | ||
12342 | wx_cv_gccversion=3 | |
12343 | ||
12344 | ||
12345 | fi | |
ac1cb8d3 | 12346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12347 | |
12348 | else | |
12349 | echo "$as_me: failed program was:" >&5 | |
12350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12351 | ||
12352 | ||
12353 | wx_cv_gccversion=2 | |
12354 | ||
12355 | ||
12356 | fi | |
ac1cb8d3 | 12357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12358 | |
12359 | fi | |
12360 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12361 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12362 | if test "$wx_cv_gccversion" = "2"; then | |
12363 | LIBS="$LIBS -lstdcpp" | |
12364 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12365 | else | |
12366 | if test "$wx_cv_gccversion" = "3"; then | |
12367 | LIBS="$LIBS -lstdcxx" | |
12368 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12369 | else | |
12370 | LIBS="$LIBS -lstdc++" | |
12371 | fi | |
12372 | fi | |
12373 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12374 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12375 | fi |
12376 | ;; | |
12377 | *) | |
12378 | ||
12379 | ||
12380 | ||
12381 | ac_ext=cc | |
12382 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12383 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12384 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12385 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12386 | ||
12387 | ||
12388 | ||
12389 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12390 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12391 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12393 | else | |
12394 | ||
12395 | cat >conftest.$ac_ext <<_ACEOF | |
12396 | /* confdefs.h. */ | |
12397 | _ACEOF | |
12398 | cat confdefs.h >>conftest.$ac_ext | |
12399 | cat >>conftest.$ac_ext <<_ACEOF | |
12400 | /* end confdefs.h. */ | |
12401 | ||
12402 | #include <string.h> | |
12403 | ||
12404 | int | |
12405 | main () | |
12406 | { | |
12407 | ||
12408 | strcasecmp("foo", "bar"); | |
12409 | ||
12410 | ; | |
12411 | return 0; | |
12412 | } | |
12413 | _ACEOF | |
12414 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12416 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12417 | ac_status=$? |
ac1cb8d3 VS |
12418 | grep -v '^ *+' conftest.er1 >conftest.err |
12419 | rm -f conftest.er1 | |
12420 | cat conftest.err >&5 | |
a848cd7e SC |
12421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12422 | (exit $ac_status); } && | |
4d4ff94c | 12423 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12425 | (eval $ac_try) 2>&5 | |
12426 | ac_status=$? | |
12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12428 | (exit $ac_status); }; } && | |
12429 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12431 | (eval $ac_try) 2>&5 | |
12432 | ac_status=$? | |
12433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12434 | (exit $ac_status); }; }; then | |
12435 | ac_cv_string_strcasecmp=yes | |
12436 | else | |
12437 | echo "$as_me: failed program was:" >&5 | |
12438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12439 | ||
12440 | ac_cv_string_strcasecmp=no | |
12441 | ||
12442 | fi | |
ac1cb8d3 VS |
12443 | rm -f conftest.err conftest.$ac_objext \ |
12444 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12445 | |
12446 | fi | |
12447 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12448 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12449 | ||
12450 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12451 | cat >>confdefs.h <<\_ACEOF | |
12452 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12453 | _ACEOF | |
12454 | ||
12455 | else | |
12456 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12457 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12458 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12460 | else | |
12461 | ||
12462 | cat >conftest.$ac_ext <<_ACEOF | |
12463 | /* confdefs.h. */ | |
12464 | _ACEOF | |
12465 | cat confdefs.h >>conftest.$ac_ext | |
12466 | cat >>conftest.$ac_ext <<_ACEOF | |
12467 | /* end confdefs.h. */ | |
12468 | ||
12469 | #include <strings.h> | |
12470 | ||
12471 | int | |
12472 | main () | |
12473 | { | |
12474 | ||
12475 | strcasecmp("foo", "bar"); | |
12476 | ||
12477 | ; | |
12478 | return 0; | |
12479 | } | |
12480 | _ACEOF | |
12481 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12483 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12484 | ac_status=$? |
ac1cb8d3 VS |
12485 | grep -v '^ *+' conftest.er1 >conftest.err |
12486 | rm -f conftest.er1 | |
12487 | cat conftest.err >&5 | |
a848cd7e SC |
12488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12489 | (exit $ac_status); } && | |
4d4ff94c | 12490 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12492 | (eval $ac_try) 2>&5 | |
12493 | ac_status=$? | |
12494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12495 | (exit $ac_status); }; } && | |
12496 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12498 | (eval $ac_try) 2>&5 | |
12499 | ac_status=$? | |
12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12501 | (exit $ac_status); }; }; then | |
12502 | ac_cv_strings_strcasecmp=yes | |
12503 | else | |
12504 | echo "$as_me: failed program was:" >&5 | |
12505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12506 | ||
12507 | ac_cv_strings_strcasecmp=no | |
12508 | ||
12509 | fi | |
ac1cb8d3 VS |
12510 | rm -f conftest.err conftest.$ac_objext \ |
12511 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12512 | |
12513 | fi | |
12514 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12515 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12516 | ||
0c3c69fc | 12517 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12518 | cat >>confdefs.h <<\_ACEOF |
12519 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12520 | _ACEOF | |
12521 | ||
12522 | else | |
12523 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12524 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12525 | { (exit 1); exit 1; }; } | |
12526 | fi | |
12527 | fi | |
12528 | ||
12529 | ac_ext=c | |
12530 | ac_cpp='$CPP $CPPFLAGS' | |
12531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12534 | ||
12535 | ;; | |
12536 | esac | |
12537 | ||
12538 | ||
12539 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12540 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12541 | if test "${ac_cv_header_stdc+set}" = set; then | |
12542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12543 | else | |
12544 | cat >conftest.$ac_ext <<_ACEOF | |
12545 | /* confdefs.h. */ | |
12546 | _ACEOF | |
12547 | cat confdefs.h >>conftest.$ac_ext | |
12548 | cat >>conftest.$ac_ext <<_ACEOF | |
12549 | /* end confdefs.h. */ | |
12550 | #include <stdlib.h> | |
12551 | #include <stdarg.h> | |
12552 | #include <string.h> | |
12553 | #include <float.h> | |
12554 | ||
12555 | int | |
12556 | main () | |
12557 | { | |
12558 | ||
12559 | ; | |
12560 | return 0; | |
12561 | } | |
12562 | _ACEOF | |
12563 | rm -f conftest.$ac_objext | |
12564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12566 | ac_status=$? |
ac1cb8d3 VS |
12567 | grep -v '^ *+' conftest.er1 >conftest.err |
12568 | rm -f conftest.er1 | |
12569 | cat conftest.err >&5 | |
a848cd7e SC |
12570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12571 | (exit $ac_status); } && | |
4d4ff94c | 12572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12574 | (eval $ac_try) 2>&5 | |
12575 | ac_status=$? | |
12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12577 | (exit $ac_status); }; } && | |
12578 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12580 | (eval $ac_try) 2>&5 | |
12581 | ac_status=$? | |
12582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12583 | (exit $ac_status); }; }; then | |
12584 | ac_cv_header_stdc=yes | |
12585 | else | |
12586 | echo "$as_me: failed program was:" >&5 | |
12587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12588 | ||
12589 | ac_cv_header_stdc=no | |
12590 | fi | |
ac1cb8d3 | 12591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12592 | |
12593 | if test $ac_cv_header_stdc = yes; then | |
12594 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12595 | cat >conftest.$ac_ext <<_ACEOF | |
12596 | /* confdefs.h. */ | |
12597 | _ACEOF | |
12598 | cat confdefs.h >>conftest.$ac_ext | |
12599 | cat >>conftest.$ac_ext <<_ACEOF | |
12600 | /* end confdefs.h. */ | |
12601 | #include <string.h> | |
12602 | ||
12603 | _ACEOF | |
12604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12605 | $EGREP "memchr" >/dev/null 2>&1; then | |
12606 | : | |
12607 | else | |
12608 | ac_cv_header_stdc=no | |
12609 | fi | |
12610 | rm -f conftest* | |
12611 | ||
12612 | fi | |
12613 | ||
12614 | if test $ac_cv_header_stdc = yes; then | |
12615 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12616 | cat >conftest.$ac_ext <<_ACEOF | |
12617 | /* confdefs.h. */ | |
12618 | _ACEOF | |
12619 | cat confdefs.h >>conftest.$ac_ext | |
12620 | cat >>conftest.$ac_ext <<_ACEOF | |
12621 | /* end confdefs.h. */ | |
12622 | #include <stdlib.h> | |
12623 | ||
12624 | _ACEOF | |
12625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12626 | $EGREP "free" >/dev/null 2>&1; then | |
12627 | : | |
12628 | else | |
12629 | ac_cv_header_stdc=no | |
12630 | fi | |
12631 | rm -f conftest* | |
12632 | ||
12633 | fi | |
12634 | ||
12635 | if test $ac_cv_header_stdc = yes; then | |
12636 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12637 | if test "$cross_compiling" = yes; then | |
12638 | : | |
12639 | else | |
12640 | cat >conftest.$ac_ext <<_ACEOF | |
12641 | /* confdefs.h. */ | |
12642 | _ACEOF | |
12643 | cat confdefs.h >>conftest.$ac_ext | |
12644 | cat >>conftest.$ac_ext <<_ACEOF | |
12645 | /* end confdefs.h. */ | |
12646 | #include <ctype.h> | |
12647 | #if ((' ' & 0x0FF) == 0x020) | |
12648 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12649 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12650 | #else | |
12651 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12652 | (('a' <= (c) && (c) <= 'i') \ |
12653 | || ('j' <= (c) && (c) <= 'r') \ | |
12654 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12655 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12656 | #endif | |
12657 | ||
12658 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12659 | int | |
12660 | main () | |
12661 | { | |
12662 | int i; | |
12663 | for (i = 0; i < 256; i++) | |
12664 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12665 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12666 | exit(2); |
12667 | exit (0); | |
12668 | } | |
12669 | _ACEOF | |
12670 | rm -f conftest$ac_exeext | |
12671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12672 | (eval $ac_link) 2>&5 | |
12673 | ac_status=$? | |
12674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12677 | (eval $ac_try) 2>&5 | |
12678 | ac_status=$? | |
12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12680 | (exit $ac_status); }; }; then | |
12681 | : | |
12682 | else | |
12683 | echo "$as_me: program exited with status $ac_status" >&5 | |
12684 | echo "$as_me: failed program was:" >&5 | |
12685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12686 | ||
12687 | ( exit $ac_status ) | |
12688 | ac_cv_header_stdc=no | |
12689 | fi | |
ac1cb8d3 | 12690 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12691 | fi |
12692 | fi | |
12693 | fi | |
12694 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12695 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12696 | if test $ac_cv_header_stdc = yes; then | |
12697 | ||
12698 | cat >>confdefs.h <<\_ACEOF | |
12699 | #define STDC_HEADERS 1 | |
12700 | _ACEOF | |
12701 | ||
12702 | fi | |
12703 | ||
12704 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12705 | ||
12706 | ||
12707 | ||
12708 | ||
12709 | ||
12710 | ||
12711 | ||
12712 | ||
12713 | ||
12714 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12715 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12716 | do |
12717 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12718 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12719 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12720 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12722 | else | |
12723 | cat >conftest.$ac_ext <<_ACEOF | |
12724 | /* confdefs.h. */ | |
12725 | _ACEOF | |
12726 | cat confdefs.h >>conftest.$ac_ext | |
12727 | cat >>conftest.$ac_ext <<_ACEOF | |
12728 | /* end confdefs.h. */ | |
12729 | $ac_includes_default | |
12730 | ||
12731 | #include <$ac_header> | |
12732 | _ACEOF | |
12733 | rm -f conftest.$ac_objext | |
12734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12735 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12736 | ac_status=$? |
ac1cb8d3 VS |
12737 | grep -v '^ *+' conftest.er1 >conftest.err |
12738 | rm -f conftest.er1 | |
12739 | cat conftest.err >&5 | |
a848cd7e SC |
12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12741 | (exit $ac_status); } && | |
4d4ff94c | 12742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12744 | (eval $ac_try) 2>&5 | |
12745 | ac_status=$? | |
12746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12747 | (exit $ac_status); }; } && | |
12748 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12750 | (eval $ac_try) 2>&5 | |
12751 | ac_status=$? | |
12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12753 | (exit $ac_status); }; }; then | |
12754 | eval "$as_ac_Header=yes" | |
12755 | else | |
12756 | echo "$as_me: failed program was:" >&5 | |
12757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12758 | ||
12759 | eval "$as_ac_Header=no" | |
12760 | fi | |
ac1cb8d3 | 12761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12762 | fi |
12763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12764 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12766 | cat >>confdefs.h <<_ACEOF | |
12767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12768 | _ACEOF | |
12769 | ||
12770 | fi | |
12771 | ||
12772 | done | |
12773 | ||
12774 | ||
12775 | ||
12776 | for ac_header in stdlib.h | |
12777 | do | |
12778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12779 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12780 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12784 | fi | |
12785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12786 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12787 | else | |
12788 | # Is the header compilable? | |
12789 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12790 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12791 | cat >conftest.$ac_ext <<_ACEOF | |
12792 | /* confdefs.h. */ | |
12793 | _ACEOF | |
12794 | cat confdefs.h >>conftest.$ac_ext | |
12795 | cat >>conftest.$ac_ext <<_ACEOF | |
12796 | /* end confdefs.h. */ | |
12797 | $ac_includes_default | |
12798 | #include <$ac_header> | |
12799 | _ACEOF | |
12800 | rm -f conftest.$ac_objext | |
12801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12802 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12803 | ac_status=$? |
ac1cb8d3 VS |
12804 | grep -v '^ *+' conftest.er1 >conftest.err |
12805 | rm -f conftest.er1 | |
12806 | cat conftest.err >&5 | |
a848cd7e SC |
12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12808 | (exit $ac_status); } && | |
4d4ff94c | 12809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
12815 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12817 | (eval $ac_try) 2>&5 | |
12818 | ac_status=$? | |
12819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12820 | (exit $ac_status); }; }; then | |
12821 | ac_header_compiler=yes | |
12822 | else | |
12823 | echo "$as_me: failed program was:" >&5 | |
12824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12825 | ||
12826 | ac_header_compiler=no | |
12827 | fi | |
ac1cb8d3 | 12828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12829 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12830 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12831 | ||
12832 | # Is the header present? | |
12833 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12834 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12835 | cat >conftest.$ac_ext <<_ACEOF | |
12836 | /* confdefs.h. */ | |
12837 | _ACEOF | |
12838 | cat confdefs.h >>conftest.$ac_ext | |
12839 | cat >>conftest.$ac_ext <<_ACEOF | |
12840 | /* end confdefs.h. */ | |
12841 | #include <$ac_header> | |
12842 | _ACEOF | |
12843 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12844 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12845 | ac_status=$? | |
12846 | grep -v '^ *+' conftest.er1 >conftest.err | |
12847 | rm -f conftest.er1 | |
12848 | cat conftest.err >&5 | |
12849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12850 | (exit $ac_status); } >/dev/null; then | |
12851 | if test -s conftest.err; then | |
12852 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12853 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12854 | else |
12855 | ac_cpp_err= | |
12856 | fi | |
12857 | else | |
12858 | ac_cpp_err=yes | |
12859 | fi | |
12860 | if test -z "$ac_cpp_err"; then | |
12861 | ac_header_preproc=yes | |
12862 | else | |
12863 | echo "$as_me: failed program was:" >&5 | |
12864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12865 | ||
12866 | ac_header_preproc=no | |
12867 | fi | |
12868 | rm -f conftest.err conftest.$ac_ext | |
12869 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12870 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12871 | ||
12872 | # So? What about this header? | |
ac1cb8d3 VS |
12873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12874 | yes:no: ) | |
a848cd7e SC |
12875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12879 | ac_header_preproc=yes | |
a848cd7e | 12880 | ;; |
ac1cb8d3 | 12881 | no:yes:* ) |
a848cd7e SC |
12882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
12890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
12892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
12894 | ( |
12895 | cat <<\_ASBOX | |
ac1cb8d3 VS |
12896 | ## ----------------------------------------- ## |
12897 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
12898 | ## ----------------------------------------- ## | |
a848cd7e SC |
12899 | _ASBOX |
12900 | ) | | |
12901 | sed "s/^/$as_me: WARNING: /" >&2 | |
12902 | ;; | |
12903 | esac | |
12904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12908 | else | |
ac1cb8d3 | 12909 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
12910 | fi |
12911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12913 | ||
12914 | fi | |
12915 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12916 | cat >>confdefs.h <<_ACEOF | |
12917 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12918 | _ACEOF | |
12919 | ||
12920 | fi | |
12921 | ||
12922 | done | |
12923 | ||
12924 | ||
12925 | for ac_header in malloc.h | |
12926 | do | |
12927 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12933 | fi | |
12934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12935 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12936 | else | |
12937 | # Is the header compilable? | |
12938 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12939 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12940 | cat >conftest.$ac_ext <<_ACEOF | |
12941 | /* confdefs.h. */ | |
12942 | _ACEOF | |
12943 | cat confdefs.h >>conftest.$ac_ext | |
12944 | cat >>conftest.$ac_ext <<_ACEOF | |
12945 | /* end confdefs.h. */ | |
12946 | $ac_includes_default | |
12947 | #include <$ac_header> | |
12948 | _ACEOF | |
12949 | rm -f conftest.$ac_objext | |
12950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12951 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12952 | ac_status=$? |
ac1cb8d3 VS |
12953 | grep -v '^ *+' conftest.er1 >conftest.err |
12954 | rm -f conftest.er1 | |
12955 | cat conftest.err >&5 | |
a848cd7e SC |
12956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12957 | (exit $ac_status); } && | |
4d4ff94c | 12958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12960 | (eval $ac_try) 2>&5 | |
12961 | ac_status=$? | |
12962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12963 | (exit $ac_status); }; } && | |
12964 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12966 | (eval $ac_try) 2>&5 | |
12967 | ac_status=$? | |
12968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12969 | (exit $ac_status); }; }; then | |
12970 | ac_header_compiler=yes | |
12971 | else | |
12972 | echo "$as_me: failed program was:" >&5 | |
12973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12974 | ||
12975 | ac_header_compiler=no | |
12976 | fi | |
ac1cb8d3 | 12977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12978 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12979 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12980 | ||
12981 | # Is the header present? | |
12982 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12983 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12984 | cat >conftest.$ac_ext <<_ACEOF | |
12985 | /* confdefs.h. */ | |
12986 | _ACEOF | |
12987 | cat confdefs.h >>conftest.$ac_ext | |
12988 | cat >>conftest.$ac_ext <<_ACEOF | |
12989 | /* end confdefs.h. */ | |
12990 | #include <$ac_header> | |
12991 | _ACEOF | |
12992 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12993 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12994 | ac_status=$? | |
12995 | grep -v '^ *+' conftest.er1 >conftest.err | |
12996 | rm -f conftest.er1 | |
12997 | cat conftest.err >&5 | |
12998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12999 | (exit $ac_status); } >/dev/null; then | |
13000 | if test -s conftest.err; then | |
13001 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13002 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13003 | else |
13004 | ac_cpp_err= | |
13005 | fi | |
13006 | else | |
13007 | ac_cpp_err=yes | |
13008 | fi | |
13009 | if test -z "$ac_cpp_err"; then | |
13010 | ac_header_preproc=yes | |
13011 | else | |
13012 | echo "$as_me: failed program was:" >&5 | |
13013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13014 | ||
13015 | ac_header_preproc=no | |
13016 | fi | |
13017 | rm -f conftest.err conftest.$ac_ext | |
13018 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13019 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13020 | ||
13021 | # So? What about this header? | |
ac1cb8d3 VS |
13022 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13023 | yes:no: ) | |
a848cd7e SC |
13024 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13025 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13026 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13027 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13028 | ac_header_preproc=yes | |
a848cd7e | 13029 | ;; |
ac1cb8d3 | 13030 | no:yes:* ) |
a848cd7e SC |
13031 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13032 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13033 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13034 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13035 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13036 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13037 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13038 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13039 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13040 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13041 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13042 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13043 | ( |
13044 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13045 | ## ----------------------------------------- ## |
13046 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13047 | ## ----------------------------------------- ## | |
a848cd7e SC |
13048 | _ASBOX |
13049 | ) | | |
13050 | sed "s/^/$as_me: WARNING: /" >&2 | |
13051 | ;; | |
13052 | esac | |
13053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13057 | else | |
ac1cb8d3 | 13058 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13059 | fi |
13060 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13062 | ||
13063 | fi | |
13064 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13065 | cat >>confdefs.h <<_ACEOF | |
13066 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13067 | _ACEOF | |
13068 | ||
13069 | fi | |
13070 | ||
13071 | done | |
13072 | ||
13073 | ||
13074 | for ac_header in unistd.h | |
13075 | do | |
13076 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13078 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13079 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13080 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13082 | fi | |
13083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13084 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13085 | else | |
13086 | # Is the header compilable? | |
13087 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13088 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13089 | cat >conftest.$ac_ext <<_ACEOF | |
13090 | /* confdefs.h. */ | |
13091 | _ACEOF | |
13092 | cat confdefs.h >>conftest.$ac_ext | |
13093 | cat >>conftest.$ac_ext <<_ACEOF | |
13094 | /* end confdefs.h. */ | |
13095 | $ac_includes_default | |
13096 | #include <$ac_header> | |
13097 | _ACEOF | |
13098 | rm -f conftest.$ac_objext | |
13099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13100 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13101 | ac_status=$? |
ac1cb8d3 VS |
13102 | grep -v '^ *+' conftest.er1 >conftest.err |
13103 | rm -f conftest.er1 | |
13104 | cat conftest.err >&5 | |
a848cd7e SC |
13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13106 | (exit $ac_status); } && | |
4d4ff94c | 13107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13109 | (eval $ac_try) 2>&5 | |
13110 | ac_status=$? | |
13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13112 | (exit $ac_status); }; } && | |
13113 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13115 | (eval $ac_try) 2>&5 | |
13116 | ac_status=$? | |
13117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13118 | (exit $ac_status); }; }; then | |
13119 | ac_header_compiler=yes | |
13120 | else | |
13121 | echo "$as_me: failed program was:" >&5 | |
13122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13123 | ||
13124 | ac_header_compiler=no | |
13125 | fi | |
ac1cb8d3 | 13126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13127 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13128 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13129 | ||
13130 | # Is the header present? | |
13131 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13132 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13133 | cat >conftest.$ac_ext <<_ACEOF | |
13134 | /* confdefs.h. */ | |
13135 | _ACEOF | |
13136 | cat confdefs.h >>conftest.$ac_ext | |
13137 | cat >>conftest.$ac_ext <<_ACEOF | |
13138 | /* end confdefs.h. */ | |
13139 | #include <$ac_header> | |
13140 | _ACEOF | |
13141 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13142 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13143 | ac_status=$? | |
13144 | grep -v '^ *+' conftest.er1 >conftest.err | |
13145 | rm -f conftest.er1 | |
13146 | cat conftest.err >&5 | |
13147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13148 | (exit $ac_status); } >/dev/null; then | |
13149 | if test -s conftest.err; then | |
13150 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13151 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13152 | else |
13153 | ac_cpp_err= | |
13154 | fi | |
13155 | else | |
13156 | ac_cpp_err=yes | |
13157 | fi | |
13158 | if test -z "$ac_cpp_err"; then | |
13159 | ac_header_preproc=yes | |
13160 | else | |
13161 | echo "$as_me: failed program was:" >&5 | |
13162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13163 | ||
13164 | ac_header_preproc=no | |
13165 | fi | |
13166 | rm -f conftest.err conftest.$ac_ext | |
13167 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13168 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13169 | ||
13170 | # So? What about this header? | |
ac1cb8d3 VS |
13171 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13172 | yes:no: ) | |
a848cd7e SC |
13173 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13174 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13176 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13177 | ac_header_preproc=yes | |
a848cd7e | 13178 | ;; |
ac1cb8d3 | 13179 | no:yes:* ) |
a848cd7e SC |
13180 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13181 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13182 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13183 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13184 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13185 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13186 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13187 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13188 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13189 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13190 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13191 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13192 | ( |
13193 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13194 | ## ----------------------------------------- ## |
13195 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13196 | ## ----------------------------------------- ## | |
a848cd7e SC |
13197 | _ASBOX |
13198 | ) | | |
13199 | sed "s/^/$as_me: WARNING: /" >&2 | |
13200 | ;; | |
13201 | esac | |
13202 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13206 | else | |
ac1cb8d3 | 13207 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13208 | fi |
13209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13211 | ||
13212 | fi | |
13213 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13214 | cat >>confdefs.h <<_ACEOF | |
13215 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13216 | _ACEOF | |
13217 | ||
13218 | fi | |
13219 | ||
13220 | done | |
13221 | ||
13222 | ||
13223 | for ac_header in wchar.h | |
13224 | do | |
13225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13227 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13231 | fi | |
13232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13233 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13234 | else | |
13235 | # Is the header compilable? | |
13236 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13237 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13238 | cat >conftest.$ac_ext <<_ACEOF | |
13239 | /* confdefs.h. */ | |
13240 | _ACEOF | |
13241 | cat confdefs.h >>conftest.$ac_ext | |
13242 | cat >>conftest.$ac_ext <<_ACEOF | |
13243 | /* end confdefs.h. */ | |
13244 | $ac_includes_default | |
13245 | #include <$ac_header> | |
13246 | _ACEOF | |
13247 | rm -f conftest.$ac_objext | |
13248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13249 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13250 | ac_status=$? |
ac1cb8d3 VS |
13251 | grep -v '^ *+' conftest.er1 >conftest.err |
13252 | rm -f conftest.er1 | |
13253 | cat conftest.err >&5 | |
a848cd7e SC |
13254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13255 | (exit $ac_status); } && | |
4d4ff94c | 13256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13258 | (eval $ac_try) 2>&5 | |
13259 | ac_status=$? | |
13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13261 | (exit $ac_status); }; } && | |
13262 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13264 | (eval $ac_try) 2>&5 | |
13265 | ac_status=$? | |
13266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13267 | (exit $ac_status); }; }; then | |
13268 | ac_header_compiler=yes | |
13269 | else | |
13270 | echo "$as_me: failed program was:" >&5 | |
13271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13272 | ||
13273 | ac_header_compiler=no | |
13274 | fi | |
ac1cb8d3 | 13275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13276 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13277 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13278 | ||
13279 | # Is the header present? | |
13280 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13281 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13282 | cat >conftest.$ac_ext <<_ACEOF | |
13283 | /* confdefs.h. */ | |
13284 | _ACEOF | |
13285 | cat confdefs.h >>conftest.$ac_ext | |
13286 | cat >>conftest.$ac_ext <<_ACEOF | |
13287 | /* end confdefs.h. */ | |
13288 | #include <$ac_header> | |
13289 | _ACEOF | |
13290 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13291 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13292 | ac_status=$? | |
13293 | grep -v '^ *+' conftest.er1 >conftest.err | |
13294 | rm -f conftest.er1 | |
13295 | cat conftest.err >&5 | |
13296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13297 | (exit $ac_status); } >/dev/null; then | |
13298 | if test -s conftest.err; then | |
13299 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13300 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13301 | else |
13302 | ac_cpp_err= | |
13303 | fi | |
13304 | else | |
13305 | ac_cpp_err=yes | |
13306 | fi | |
13307 | if test -z "$ac_cpp_err"; then | |
13308 | ac_header_preproc=yes | |
13309 | else | |
13310 | echo "$as_me: failed program was:" >&5 | |
13311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13312 | ||
13313 | ac_header_preproc=no | |
13314 | fi | |
13315 | rm -f conftest.err conftest.$ac_ext | |
13316 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13317 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13318 | ||
13319 | # So? What about this header? | |
ac1cb8d3 VS |
13320 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13321 | yes:no: ) | |
a848cd7e SC |
13322 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13323 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13324 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13325 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13326 | ac_header_preproc=yes | |
a848cd7e | 13327 | ;; |
ac1cb8d3 | 13328 | no:yes:* ) |
a848cd7e SC |
13329 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13330 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13331 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13332 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13333 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13334 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13335 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13336 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13337 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13338 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13339 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13340 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13341 | ( |
13342 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13343 | ## ----------------------------------------- ## |
13344 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13345 | ## ----------------------------------------- ## | |
a848cd7e SC |
13346 | _ASBOX |
13347 | ) | | |
13348 | sed "s/^/$as_me: WARNING: /" >&2 | |
13349 | ;; | |
13350 | esac | |
13351 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13355 | else | |
ac1cb8d3 | 13356 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13357 | fi |
13358 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13359 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13360 | ||
13361 | fi | |
13362 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13363 | cat >>confdefs.h <<_ACEOF | |
13364 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13365 | _ACEOF | |
13366 | ||
13367 | fi | |
13368 | ||
13369 | done | |
13370 | ||
13371 | ||
13372 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13373 | ||
13374 | for ac_header in wcstr.h | |
13375 | do | |
13376 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13377 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13378 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13379 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13382 | fi | |
13383 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13384 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13385 | else | |
13386 | # Is the header compilable? | |
13387 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13388 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13389 | cat >conftest.$ac_ext <<_ACEOF | |
13390 | /* confdefs.h. */ | |
13391 | _ACEOF | |
13392 | cat confdefs.h >>conftest.$ac_ext | |
13393 | cat >>conftest.$ac_ext <<_ACEOF | |
13394 | /* end confdefs.h. */ | |
13395 | $ac_includes_default | |
13396 | #include <$ac_header> | |
13397 | _ACEOF | |
13398 | rm -f conftest.$ac_objext | |
13399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13400 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13401 | ac_status=$? |
ac1cb8d3 VS |
13402 | grep -v '^ *+' conftest.er1 >conftest.err |
13403 | rm -f conftest.er1 | |
13404 | cat conftest.err >&5 | |
a848cd7e SC |
13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13406 | (exit $ac_status); } && | |
4d4ff94c | 13407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13409 | (eval $ac_try) 2>&5 | |
13410 | ac_status=$? | |
13411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13412 | (exit $ac_status); }; } && | |
13413 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13415 | (eval $ac_try) 2>&5 | |
13416 | ac_status=$? | |
13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13418 | (exit $ac_status); }; }; then | |
13419 | ac_header_compiler=yes | |
13420 | else | |
13421 | echo "$as_me: failed program was:" >&5 | |
13422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13423 | ||
13424 | ac_header_compiler=no | |
13425 | fi | |
ac1cb8d3 | 13426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13427 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13428 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13429 | ||
13430 | # Is the header present? | |
13431 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13432 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13433 | cat >conftest.$ac_ext <<_ACEOF | |
13434 | /* confdefs.h. */ | |
13435 | _ACEOF | |
13436 | cat confdefs.h >>conftest.$ac_ext | |
13437 | cat >>conftest.$ac_ext <<_ACEOF | |
13438 | /* end confdefs.h. */ | |
13439 | #include <$ac_header> | |
13440 | _ACEOF | |
13441 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13442 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13443 | ac_status=$? | |
13444 | grep -v '^ *+' conftest.er1 >conftest.err | |
13445 | rm -f conftest.er1 | |
13446 | cat conftest.err >&5 | |
13447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13448 | (exit $ac_status); } >/dev/null; then | |
13449 | if test -s conftest.err; then | |
13450 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13451 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13452 | else |
13453 | ac_cpp_err= | |
13454 | fi | |
13455 | else | |
13456 | ac_cpp_err=yes | |
13457 | fi | |
13458 | if test -z "$ac_cpp_err"; then | |
13459 | ac_header_preproc=yes | |
13460 | else | |
13461 | echo "$as_me: failed program was:" >&5 | |
13462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13463 | ||
13464 | ac_header_preproc=no | |
13465 | fi | |
13466 | rm -f conftest.err conftest.$ac_ext | |
13467 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13468 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13469 | ||
13470 | # So? What about this header? | |
ac1cb8d3 VS |
13471 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13472 | yes:no: ) | |
a848cd7e SC |
13473 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13474 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13475 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13476 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13477 | ac_header_preproc=yes | |
a848cd7e | 13478 | ;; |
ac1cb8d3 | 13479 | no:yes:* ) |
a848cd7e SC |
13480 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13481 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13482 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13483 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13484 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13485 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13486 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13487 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13488 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13489 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13490 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13491 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13492 | ( |
13493 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13494 | ## ----------------------------------------- ## |
13495 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13496 | ## ----------------------------------------- ## | |
a848cd7e SC |
13497 | _ASBOX |
13498 | ) | | |
13499 | sed "s/^/$as_me: WARNING: /" >&2 | |
13500 | ;; | |
13501 | esac | |
13502 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13503 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13506 | else | |
ac1cb8d3 | 13507 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13508 | fi |
13509 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13510 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13511 | ||
13512 | fi | |
13513 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13514 | cat >>confdefs.h <<_ACEOF | |
13515 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13516 | _ACEOF | |
13517 | ||
13518 | fi | |
13519 | ||
13520 | done | |
13521 | ||
13522 | fi | |
13523 | ||
13524 | ||
13525 | for ac_header in fnmatch.h | |
13526 | do | |
13527 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13529 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13530 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13533 | fi | |
13534 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13535 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13536 | else | |
13537 | # Is the header compilable? | |
13538 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13539 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13540 | cat >conftest.$ac_ext <<_ACEOF | |
13541 | /* confdefs.h. */ | |
13542 | _ACEOF | |
13543 | cat confdefs.h >>conftest.$ac_ext | |
13544 | cat >>conftest.$ac_ext <<_ACEOF | |
13545 | /* end confdefs.h. */ | |
13546 | $ac_includes_default | |
13547 | #include <$ac_header> | |
13548 | _ACEOF | |
13549 | rm -f conftest.$ac_objext | |
13550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13551 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13552 | ac_status=$? |
ac1cb8d3 VS |
13553 | grep -v '^ *+' conftest.er1 >conftest.err |
13554 | rm -f conftest.er1 | |
13555 | cat conftest.err >&5 | |
a848cd7e SC |
13556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13557 | (exit $ac_status); } && | |
4d4ff94c | 13558 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13560 | (eval $ac_try) 2>&5 | |
13561 | ac_status=$? | |
13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13563 | (exit $ac_status); }; } && | |
13564 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13566 | (eval $ac_try) 2>&5 | |
13567 | ac_status=$? | |
13568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13569 | (exit $ac_status); }; }; then | |
13570 | ac_header_compiler=yes | |
13571 | else | |
13572 | echo "$as_me: failed program was:" >&5 | |
13573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13574 | ||
13575 | ac_header_compiler=no | |
13576 | fi | |
ac1cb8d3 | 13577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13578 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13579 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13580 | ||
13581 | # Is the header present? | |
13582 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13583 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13584 | cat >conftest.$ac_ext <<_ACEOF | |
13585 | /* confdefs.h. */ | |
13586 | _ACEOF | |
13587 | cat confdefs.h >>conftest.$ac_ext | |
13588 | cat >>conftest.$ac_ext <<_ACEOF | |
13589 | /* end confdefs.h. */ | |
13590 | #include <$ac_header> | |
13591 | _ACEOF | |
13592 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13593 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13594 | ac_status=$? | |
13595 | grep -v '^ *+' conftest.er1 >conftest.err | |
13596 | rm -f conftest.er1 | |
13597 | cat conftest.err >&5 | |
13598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13599 | (exit $ac_status); } >/dev/null; then | |
13600 | if test -s conftest.err; then | |
13601 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13602 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13603 | else |
13604 | ac_cpp_err= | |
13605 | fi | |
13606 | else | |
13607 | ac_cpp_err=yes | |
13608 | fi | |
13609 | if test -z "$ac_cpp_err"; then | |
13610 | ac_header_preproc=yes | |
13611 | else | |
13612 | echo "$as_me: failed program was:" >&5 | |
13613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13614 | ||
13615 | ac_header_preproc=no | |
13616 | fi | |
13617 | rm -f conftest.err conftest.$ac_ext | |
13618 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13619 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13620 | ||
13621 | # So? What about this header? | |
ac1cb8d3 VS |
13622 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13623 | yes:no: ) | |
a848cd7e SC |
13624 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13625 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13627 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13628 | ac_header_preproc=yes | |
a848cd7e | 13629 | ;; |
ac1cb8d3 | 13630 | no:yes:* ) |
a848cd7e SC |
13631 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13632 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13633 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13634 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13635 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13636 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13637 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13638 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13640 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13641 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13642 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13643 | ( |
13644 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13645 | ## ----------------------------------------- ## |
13646 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13647 | ## ----------------------------------------- ## | |
a848cd7e SC |
13648 | _ASBOX |
13649 | ) | | |
13650 | sed "s/^/$as_me: WARNING: /" >&2 | |
13651 | ;; | |
13652 | esac | |
13653 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13657 | else | |
ac1cb8d3 | 13658 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13659 | fi |
13660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13662 | ||
13663 | fi | |
13664 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13665 | cat >>confdefs.h <<_ACEOF | |
13666 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13667 | _ACEOF | |
13668 | ||
13669 | fi | |
13670 | ||
13671 | done | |
13672 | ||
13673 | ||
13674 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13675 | ||
13676 | for ac_func in fnmatch | |
13677 | do | |
13678 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13679 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13680 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13681 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13683 | else | |
13684 | cat >conftest.$ac_ext <<_ACEOF | |
13685 | /* confdefs.h. */ | |
13686 | _ACEOF | |
13687 | cat confdefs.h >>conftest.$ac_ext | |
13688 | cat >>conftest.$ac_ext <<_ACEOF | |
13689 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13690 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13691 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13692 | #define $ac_func innocuous_$ac_func | |
13693 | ||
a848cd7e SC |
13694 | /* System header to define __stub macros and hopefully few prototypes, |
13695 | which can conflict with char $ac_func (); below. | |
13696 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13697 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13698 | |
a848cd7e SC |
13699 | #ifdef __STDC__ |
13700 | # include <limits.h> | |
13701 | #else | |
13702 | # include <assert.h> | |
13703 | #endif | |
ac1cb8d3 VS |
13704 | |
13705 | #undef $ac_func | |
13706 | ||
a848cd7e SC |
13707 | /* Override any gcc2 internal prototype to avoid an error. */ |
13708 | #ifdef __cplusplus | |
13709 | extern "C" | |
13710 | { | |
13711 | #endif | |
13712 | /* We use char because int might match the return type of a gcc2 | |
13713 | builtin and then its argument prototype would still apply. */ | |
13714 | char $ac_func (); | |
13715 | /* The GNU C library defines this for functions which it implements | |
13716 | to always fail with ENOSYS. Some functions are actually named | |
13717 | something starting with __ and the normal name is an alias. */ | |
13718 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13719 | choke me | |
13720 | #else | |
13721 | char (*f) () = $ac_func; | |
13722 | #endif | |
13723 | #ifdef __cplusplus | |
13724 | } | |
13725 | #endif | |
13726 | ||
13727 | int | |
13728 | main () | |
13729 | { | |
13730 | return f != $ac_func; | |
13731 | ; | |
13732 | return 0; | |
13733 | } | |
13734 | _ACEOF | |
13735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13737 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13738 | ac_status=$? |
ac1cb8d3 VS |
13739 | grep -v '^ *+' conftest.er1 >conftest.err |
13740 | rm -f conftest.er1 | |
13741 | cat conftest.err >&5 | |
a848cd7e SC |
13742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13743 | (exit $ac_status); } && | |
4d4ff94c | 13744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13746 | (eval $ac_try) 2>&5 | |
13747 | ac_status=$? | |
13748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13749 | (exit $ac_status); }; } && | |
13750 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13752 | (eval $ac_try) 2>&5 | |
13753 | ac_status=$? | |
13754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13755 | (exit $ac_status); }; }; then | |
13756 | eval "$as_ac_var=yes" | |
13757 | else | |
13758 | echo "$as_me: failed program was:" >&5 | |
13759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13760 | ||
13761 | eval "$as_ac_var=no" | |
13762 | fi | |
ac1cb8d3 VS |
13763 | rm -f conftest.err conftest.$ac_objext \ |
13764 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13765 | fi |
13766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13767 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13768 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13769 | cat >>confdefs.h <<_ACEOF | |
13770 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13771 | _ACEOF | |
13772 | ||
13773 | fi | |
13774 | done | |
13775 | ||
13776 | fi | |
13777 | ||
13778 | ||
13779 | for ac_header in langinfo.h | |
13780 | do | |
13781 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13783 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13787 | fi | |
13788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13789 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13790 | else | |
13791 | # Is the header compilable? | |
13792 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13793 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13794 | cat >conftest.$ac_ext <<_ACEOF | |
13795 | /* confdefs.h. */ | |
13796 | _ACEOF | |
13797 | cat confdefs.h >>conftest.$ac_ext | |
13798 | cat >>conftest.$ac_ext <<_ACEOF | |
13799 | /* end confdefs.h. */ | |
13800 | $ac_includes_default | |
13801 | #include <$ac_header> | |
13802 | _ACEOF | |
13803 | rm -f conftest.$ac_objext | |
13804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13805 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13806 | ac_status=$? |
ac1cb8d3 VS |
13807 | grep -v '^ *+' conftest.er1 >conftest.err |
13808 | rm -f conftest.er1 | |
13809 | cat conftest.err >&5 | |
a848cd7e SC |
13810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13811 | (exit $ac_status); } && | |
4d4ff94c | 13812 | { ac_try='test -z "$ac_c_werror_flag" || 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_objext' | |
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 | ac_header_compiler=yes | |
13825 | else | |
13826 | echo "$as_me: failed program was:" >&5 | |
13827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13828 | ||
13829 | ac_header_compiler=no | |
13830 | fi | |
ac1cb8d3 | 13831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13832 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13833 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13834 | ||
13835 | # Is the header present? | |
13836 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13837 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13838 | cat >conftest.$ac_ext <<_ACEOF | |
13839 | /* confdefs.h. */ | |
13840 | _ACEOF | |
13841 | cat confdefs.h >>conftest.$ac_ext | |
13842 | cat >>conftest.$ac_ext <<_ACEOF | |
13843 | /* end confdefs.h. */ | |
13844 | #include <$ac_header> | |
13845 | _ACEOF | |
13846 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13848 | ac_status=$? | |
13849 | grep -v '^ *+' conftest.er1 >conftest.err | |
13850 | rm -f conftest.er1 | |
13851 | cat conftest.err >&5 | |
13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13853 | (exit $ac_status); } >/dev/null; then | |
13854 | if test -s conftest.err; then | |
13855 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13856 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13857 | else |
13858 | ac_cpp_err= | |
13859 | fi | |
13860 | else | |
13861 | ac_cpp_err=yes | |
13862 | fi | |
13863 | if test -z "$ac_cpp_err"; then | |
13864 | ac_header_preproc=yes | |
13865 | else | |
13866 | echo "$as_me: failed program was:" >&5 | |
13867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13868 | ||
13869 | ac_header_preproc=no | |
13870 | fi | |
13871 | rm -f conftest.err conftest.$ac_ext | |
13872 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13873 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13874 | ||
13875 | # So? What about this header? | |
ac1cb8d3 VS |
13876 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13877 | yes:no: ) | |
a848cd7e SC |
13878 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13879 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13880 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13881 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13882 | ac_header_preproc=yes | |
a848cd7e | 13883 | ;; |
ac1cb8d3 | 13884 | no:yes:* ) |
a848cd7e SC |
13885 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13886 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13887 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13888 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13889 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13890 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13891 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13892 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13893 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13894 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13895 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13896 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13897 | ( |
13898 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13899 | ## ----------------------------------------- ## |
13900 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13901 | ## ----------------------------------------- ## | |
a848cd7e SC |
13902 | _ASBOX |
13903 | ) | | |
13904 | sed "s/^/$as_me: WARNING: /" >&2 | |
13905 | ;; | |
13906 | esac | |
13907 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13911 | else | |
ac1cb8d3 | 13912 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13913 | fi |
13914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13915 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13916 | ||
13917 | fi | |
13918 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13919 | cat >>confdefs.h <<_ACEOF | |
13920 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13921 | _ACEOF | |
13922 | ||
13923 | fi | |
13924 | ||
13925 | done | |
13926 | ||
13927 | ||
13928 | case "${host}" in | |
13929 | *-pc-os2_emx | *-pc-os2-emx ) | |
13930 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13931 | LIBS="$LIBS -lintl" | |
13932 | fi | |
13933 | ;; | |
13934 | esac | |
13935 | ||
13936 | if test "$wxUSE_GUI" = "yes"; then | |
13937 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
13938 | ||
13939 | for ac_header in X11/Xlib.h | |
13940 | do | |
13941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13947 | fi | |
13948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13950 | else | |
13951 | # Is the header compilable? | |
13952 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13953 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13954 | cat >conftest.$ac_ext <<_ACEOF | |
13955 | /* confdefs.h. */ | |
13956 | _ACEOF | |
13957 | cat confdefs.h >>conftest.$ac_ext | |
13958 | cat >>conftest.$ac_ext <<_ACEOF | |
13959 | /* end confdefs.h. */ | |
13960 | $ac_includes_default | |
13961 | #include <$ac_header> | |
13962 | _ACEOF | |
13963 | rm -f conftest.$ac_objext | |
13964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13965 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13966 | ac_status=$? |
ac1cb8d3 VS |
13967 | grep -v '^ *+' conftest.er1 >conftest.err |
13968 | rm -f conftest.er1 | |
13969 | cat conftest.err >&5 | |
a848cd7e SC |
13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13971 | (exit $ac_status); } && | |
4d4ff94c | 13972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13974 | (eval $ac_try) 2>&5 | |
13975 | ac_status=$? | |
13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13977 | (exit $ac_status); }; } && | |
13978 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13980 | (eval $ac_try) 2>&5 | |
13981 | ac_status=$? | |
13982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13983 | (exit $ac_status); }; }; then | |
13984 | ac_header_compiler=yes | |
13985 | else | |
13986 | echo "$as_me: failed program was:" >&5 | |
13987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13988 | ||
13989 | ac_header_compiler=no | |
13990 | fi | |
ac1cb8d3 | 13991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13992 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13993 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13994 | ||
13995 | # Is the header present? | |
13996 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13997 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13998 | cat >conftest.$ac_ext <<_ACEOF | |
13999 | /* confdefs.h. */ | |
14000 | _ACEOF | |
14001 | cat confdefs.h >>conftest.$ac_ext | |
14002 | cat >>conftest.$ac_ext <<_ACEOF | |
14003 | /* end confdefs.h. */ | |
14004 | #include <$ac_header> | |
14005 | _ACEOF | |
14006 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14007 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14008 | ac_status=$? | |
14009 | grep -v '^ *+' conftest.er1 >conftest.err | |
14010 | rm -f conftest.er1 | |
14011 | cat conftest.err >&5 | |
14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14013 | (exit $ac_status); } >/dev/null; then | |
14014 | if test -s conftest.err; then | |
14015 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14016 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14017 | else |
14018 | ac_cpp_err= | |
14019 | fi | |
14020 | else | |
14021 | ac_cpp_err=yes | |
14022 | fi | |
14023 | if test -z "$ac_cpp_err"; then | |
14024 | ac_header_preproc=yes | |
14025 | else | |
14026 | echo "$as_me: failed program was:" >&5 | |
14027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14028 | ||
14029 | ac_header_preproc=no | |
14030 | fi | |
14031 | rm -f conftest.err conftest.$ac_ext | |
14032 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14033 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14034 | ||
14035 | # So? What about this header? | |
ac1cb8d3 VS |
14036 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14037 | yes:no: ) | |
a848cd7e SC |
14038 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14039 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14041 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14042 | ac_header_preproc=yes | |
a848cd7e | 14043 | ;; |
ac1cb8d3 | 14044 | no:yes:* ) |
a848cd7e SC |
14045 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14046 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14047 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14048 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14049 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14050 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14051 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14052 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14053 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14054 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14055 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14056 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14057 | ( |
14058 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14059 | ## ----------------------------------------- ## |
14060 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14061 | ## ----------------------------------------- ## | |
a848cd7e SC |
14062 | _ASBOX |
14063 | ) | | |
14064 | sed "s/^/$as_me: WARNING: /" >&2 | |
14065 | ;; | |
14066 | esac | |
14067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14071 | else | |
ac1cb8d3 | 14072 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14073 | fi |
14074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14076 | ||
14077 | fi | |
14078 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14079 | cat >>confdefs.h <<_ACEOF | |
14080 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14081 | _ACEOF | |
14082 | ||
14083 | fi | |
14084 | ||
14085 | done | |
14086 | ||
14087 | ||
14088 | for ac_header in X11/XKBlib.h | |
14089 | do | |
14090 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14091 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14095 | else | |
14096 | cat >conftest.$ac_ext <<_ACEOF | |
14097 | /* confdefs.h. */ | |
14098 | _ACEOF | |
14099 | cat confdefs.h >>conftest.$ac_ext | |
14100 | cat >>conftest.$ac_ext <<_ACEOF | |
14101 | /* end confdefs.h. */ | |
14102 | ||
14103 | #if HAVE_X11_XLIB_H | |
14104 | #include <X11/Xlib.h> | |
14105 | #endif | |
14106 | ||
14107 | ||
14108 | #include <$ac_header> | |
14109 | _ACEOF | |
14110 | rm -f conftest.$ac_objext | |
14111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14113 | ac_status=$? |
ac1cb8d3 VS |
14114 | grep -v '^ *+' conftest.er1 >conftest.err |
14115 | rm -f conftest.er1 | |
14116 | cat conftest.err >&5 | |
a848cd7e SC |
14117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14118 | (exit $ac_status); } && | |
4d4ff94c | 14119 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14121 | (eval $ac_try) 2>&5 | |
14122 | ac_status=$? | |
14123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14124 | (exit $ac_status); }; } && | |
14125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14127 | (eval $ac_try) 2>&5 | |
14128 | ac_status=$? | |
14129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14130 | (exit $ac_status); }; }; then | |
14131 | eval "$as_ac_Header=yes" | |
14132 | else | |
14133 | echo "$as_me: failed program was:" >&5 | |
14134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14135 | ||
14136 | eval "$as_ac_Header=no" | |
14137 | fi | |
ac1cb8d3 | 14138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14139 | fi |
14140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14143 | cat >>confdefs.h <<_ACEOF | |
14144 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14145 | _ACEOF | |
14146 | ||
14147 | fi | |
14148 | ||
14149 | done | |
14150 | ||
14151 | fi | |
14152 | fi | |
14153 | ||
14154 | ||
14155 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14156 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14157 | if test "${ac_cv_c_const+set}" = set; then | |
14158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14159 | else | |
14160 | cat >conftest.$ac_ext <<_ACEOF | |
14161 | /* confdefs.h. */ | |
14162 | _ACEOF | |
14163 | cat confdefs.h >>conftest.$ac_ext | |
14164 | cat >>conftest.$ac_ext <<_ACEOF | |
14165 | /* end confdefs.h. */ | |
14166 | ||
14167 | int | |
14168 | main () | |
14169 | { | |
14170 | /* FIXME: Include the comments suggested by Paul. */ | |
14171 | #ifndef __cplusplus | |
14172 | /* Ultrix mips cc rejects this. */ | |
14173 | typedef int charset[2]; | |
14174 | const charset x; | |
14175 | /* SunOS 4.1.1 cc rejects this. */ | |
14176 | char const *const *ccp; | |
14177 | char **p; | |
14178 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14179 | struct point {int x, y;}; | |
14180 | static struct point const zero = {0,0}; | |
14181 | /* AIX XL C 1.02.0.0 rejects this. | |
14182 | It does not let you subtract one const X* pointer from another in | |
14183 | an arm of an if-expression whose if-part is not a constant | |
14184 | expression */ | |
14185 | const char *g = "string"; | |
14186 | ccp = &g + (g ? g-g : 0); | |
14187 | /* HPUX 7.0 cc rejects these. */ | |
14188 | ++ccp; | |
14189 | p = (char**) ccp; | |
14190 | ccp = (char const *const *) p; | |
14191 | { /* SCO 3.2v4 cc rejects this. */ | |
14192 | char *t; | |
14193 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14194 | ||
14195 | *t++ = 0; | |
14196 | } | |
14197 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14198 | int x[] = {25, 17}; | |
14199 | const int *foo = &x[0]; | |
14200 | ++foo; | |
14201 | } | |
14202 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14203 | typedef const int *iptr; | |
14204 | iptr p = 0; | |
14205 | ++p; | |
14206 | } | |
14207 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14208 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14209 | struct s { int j; const int *ap[3]; }; | |
14210 | struct s *b; b->j = 5; | |
14211 | } | |
14212 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14213 | const int foo = 10; | |
14214 | } | |
14215 | #endif | |
14216 | ||
14217 | ; | |
14218 | return 0; | |
14219 | } | |
14220 | _ACEOF | |
14221 | rm -f conftest.$ac_objext | |
14222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14223 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14224 | ac_status=$? |
ac1cb8d3 VS |
14225 | grep -v '^ *+' conftest.er1 >conftest.err |
14226 | rm -f conftest.er1 | |
14227 | cat conftest.err >&5 | |
a848cd7e SC |
14228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14229 | (exit $ac_status); } && | |
4d4ff94c | 14230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14232 | (eval $ac_try) 2>&5 | |
14233 | ac_status=$? | |
14234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14235 | (exit $ac_status); }; } && | |
14236 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14238 | (eval $ac_try) 2>&5 | |
14239 | ac_status=$? | |
14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14241 | (exit $ac_status); }; }; then | |
14242 | ac_cv_c_const=yes | |
14243 | else | |
14244 | echo "$as_me: failed program was:" >&5 | |
14245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14246 | ||
14247 | ac_cv_c_const=no | |
14248 | fi | |
ac1cb8d3 | 14249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14250 | fi |
14251 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14252 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14253 | if test $ac_cv_c_const = no; then | |
14254 | ||
14255 | cat >>confdefs.h <<\_ACEOF | |
14256 | #define const | |
14257 | _ACEOF | |
14258 | ||
14259 | fi | |
14260 | ||
14261 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14262 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14263 | if test "${ac_cv_c_inline+set}" = set; then | |
14264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14265 | else | |
14266 | ac_cv_c_inline=no | |
14267 | for ac_kw in inline __inline__ __inline; do | |
14268 | cat >conftest.$ac_ext <<_ACEOF | |
14269 | /* confdefs.h. */ | |
14270 | _ACEOF | |
14271 | cat confdefs.h >>conftest.$ac_ext | |
14272 | cat >>conftest.$ac_ext <<_ACEOF | |
14273 | /* end confdefs.h. */ | |
14274 | #ifndef __cplusplus | |
14275 | typedef int foo_t; | |
14276 | static $ac_kw foo_t static_foo () {return 0; } | |
14277 | $ac_kw foo_t foo () {return 0; } | |
14278 | #endif | |
14279 | ||
14280 | _ACEOF | |
14281 | rm -f conftest.$ac_objext | |
14282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14283 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14284 | ac_status=$? |
ac1cb8d3 VS |
14285 | grep -v '^ *+' conftest.er1 >conftest.err |
14286 | rm -f conftest.er1 | |
14287 | cat conftest.err >&5 | |
a848cd7e SC |
14288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14289 | (exit $ac_status); } && | |
4d4ff94c | 14290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14292 | (eval $ac_try) 2>&5 | |
14293 | ac_status=$? | |
14294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14295 | (exit $ac_status); }; } && | |
14296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14298 | (eval $ac_try) 2>&5 | |
14299 | ac_status=$? | |
14300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14301 | (exit $ac_status); }; }; then | |
14302 | ac_cv_c_inline=$ac_kw; break | |
14303 | else | |
14304 | echo "$as_me: failed program was:" >&5 | |
14305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14306 | ||
14307 | fi | |
ac1cb8d3 | 14308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14309 | done |
14310 | ||
14311 | fi | |
14312 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14313 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14314 | |
14315 | ||
a848cd7e SC |
14316 | case $ac_cv_c_inline in |
14317 | inline | yes) ;; | |
ac1cb8d3 VS |
14318 | *) |
14319 | case $ac_cv_c_inline in | |
14320 | no) ac_val=;; | |
14321 | *) ac_val=$ac_cv_c_inline;; | |
14322 | esac | |
14323 | cat >>confdefs.h <<_ACEOF | |
14324 | #ifndef __cplusplus | |
14325 | #define inline $ac_val | |
14326 | #endif | |
de59c161 | 14327 | _ACEOF |
ac1cb8d3 | 14328 | ;; |
a848cd7e SC |
14329 | esac |
14330 | ||
14331 | ||
14332 | echo "$as_me:$LINENO: checking for char" >&5 | |
14333 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14334 | if test "${ac_cv_type_char+set}" = set; then | |
14335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14336 | else | |
14337 | cat >conftest.$ac_ext <<_ACEOF | |
14338 | /* confdefs.h. */ | |
14339 | _ACEOF | |
14340 | cat confdefs.h >>conftest.$ac_ext | |
14341 | cat >>conftest.$ac_ext <<_ACEOF | |
14342 | /* end confdefs.h. */ | |
14343 | $ac_includes_default | |
14344 | int | |
14345 | main () | |
14346 | { | |
14347 | if ((char *) 0) | |
14348 | return 0; | |
14349 | if (sizeof (char)) | |
14350 | return 0; | |
14351 | ; | |
14352 | return 0; | |
14353 | } | |
14354 | _ACEOF | |
14355 | rm -f conftest.$ac_objext | |
14356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14357 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14358 | ac_status=$? |
ac1cb8d3 VS |
14359 | grep -v '^ *+' conftest.er1 >conftest.err |
14360 | rm -f conftest.er1 | |
14361 | cat conftest.err >&5 | |
a848cd7e SC |
14362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14363 | (exit $ac_status); } && | |
4d4ff94c | 14364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14366 | (eval $ac_try) 2>&5 | |
14367 | ac_status=$? | |
14368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14369 | (exit $ac_status); }; } && | |
14370 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14372 | (eval $ac_try) 2>&5 | |
14373 | ac_status=$? | |
14374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14375 | (exit $ac_status); }; }; then | |
14376 | ac_cv_type_char=yes | |
14377 | else | |
14378 | echo "$as_me: failed program was:" >&5 | |
14379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14380 | ||
14381 | ac_cv_type_char=no | |
14382 | fi | |
ac1cb8d3 | 14383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14384 | fi |
14385 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14386 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14387 | ||
14388 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14389 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14390 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14392 | else | |
14393 | if test "$ac_cv_type_char" = yes; then | |
14394 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14395 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14396 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14397 | # This bug is HP SR number 8606223364. | |
14398 | if test "$cross_compiling" = yes; then | |
14399 | # Depending upon the size, compute the lo and hi bounds. | |
14400 | cat >conftest.$ac_ext <<_ACEOF | |
14401 | /* confdefs.h. */ | |
14402 | _ACEOF | |
14403 | cat confdefs.h >>conftest.$ac_ext | |
14404 | cat >>conftest.$ac_ext <<_ACEOF | |
14405 | /* end confdefs.h. */ | |
14406 | $ac_includes_default | |
14407 | int | |
14408 | main () | |
14409 | { | |
14410 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14411 | test_array [0] = 0 | |
14412 | ||
14413 | ; | |
14414 | return 0; | |
14415 | } | |
14416 | _ACEOF | |
14417 | rm -f conftest.$ac_objext | |
14418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14419 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14420 | ac_status=$? |
ac1cb8d3 VS |
14421 | grep -v '^ *+' conftest.er1 >conftest.err |
14422 | rm -f conftest.er1 | |
14423 | cat conftest.err >&5 | |
a848cd7e SC |
14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14425 | (exit $ac_status); } && | |
4d4ff94c | 14426 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14428 | (eval $ac_try) 2>&5 | |
14429 | ac_status=$? | |
14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14431 | (exit $ac_status); }; } && | |
14432 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14434 | (eval $ac_try) 2>&5 | |
14435 | ac_status=$? | |
14436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14437 | (exit $ac_status); }; }; then | |
14438 | ac_lo=0 ac_mid=0 | |
14439 | while :; do | |
14440 | cat >conftest.$ac_ext <<_ACEOF | |
14441 | /* confdefs.h. */ | |
14442 | _ACEOF | |
14443 | cat confdefs.h >>conftest.$ac_ext | |
14444 | cat >>conftest.$ac_ext <<_ACEOF | |
14445 | /* end confdefs.h. */ | |
14446 | $ac_includes_default | |
14447 | int | |
14448 | main () | |
14449 | { | |
14450 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14451 | test_array [0] = 0 | |
14452 | ||
14453 | ; | |
14454 | return 0; | |
14455 | } | |
14456 | _ACEOF | |
14457 | rm -f conftest.$ac_objext | |
14458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14459 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14460 | ac_status=$? |
ac1cb8d3 VS |
14461 | grep -v '^ *+' conftest.er1 >conftest.err |
14462 | rm -f conftest.er1 | |
14463 | cat conftest.err >&5 | |
a848cd7e SC |
14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14465 | (exit $ac_status); } && | |
4d4ff94c | 14466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14468 | (eval $ac_try) 2>&5 | |
14469 | ac_status=$? | |
14470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14471 | (exit $ac_status); }; } && | |
14472 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14474 | (eval $ac_try) 2>&5 | |
14475 | ac_status=$? | |
14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14477 | (exit $ac_status); }; }; then | |
14478 | ac_hi=$ac_mid; break | |
14479 | else | |
14480 | echo "$as_me: failed program was:" >&5 | |
14481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14482 | ||
14483 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14484 | if test $ac_lo -le $ac_mid; then |
14485 | ac_lo= ac_hi= | |
14486 | break | |
14487 | fi | |
14488 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14489 | fi |
ac1cb8d3 | 14490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14491 | done |
14492 | else | |
14493 | echo "$as_me: failed program was:" >&5 | |
14494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14495 | ||
14496 | cat >conftest.$ac_ext <<_ACEOF | |
14497 | /* confdefs.h. */ | |
14498 | _ACEOF | |
14499 | cat confdefs.h >>conftest.$ac_ext | |
14500 | cat >>conftest.$ac_ext <<_ACEOF | |
14501 | /* end confdefs.h. */ | |
14502 | $ac_includes_default | |
14503 | int | |
14504 | main () | |
14505 | { | |
14506 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14507 | test_array [0] = 0 | |
14508 | ||
14509 | ; | |
14510 | return 0; | |
14511 | } | |
14512 | _ACEOF | |
14513 | rm -f conftest.$ac_objext | |
14514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14515 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14516 | ac_status=$? |
ac1cb8d3 VS |
14517 | grep -v '^ *+' conftest.er1 >conftest.err |
14518 | rm -f conftest.er1 | |
14519 | cat conftest.err >&5 | |
a848cd7e SC |
14520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14521 | (exit $ac_status); } && | |
4d4ff94c | 14522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14524 | (eval $ac_try) 2>&5 | |
14525 | ac_status=$? | |
14526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14527 | (exit $ac_status); }; } && | |
14528 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14530 | (eval $ac_try) 2>&5 | |
14531 | ac_status=$? | |
14532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14533 | (exit $ac_status); }; }; then | |
14534 | ac_hi=-1 ac_mid=-1 | |
14535 | while :; do | |
14536 | cat >conftest.$ac_ext <<_ACEOF | |
14537 | /* confdefs.h. */ | |
14538 | _ACEOF | |
14539 | cat confdefs.h >>conftest.$ac_ext | |
14540 | cat >>conftest.$ac_ext <<_ACEOF | |
14541 | /* end confdefs.h. */ | |
14542 | $ac_includes_default | |
14543 | int | |
14544 | main () | |
14545 | { | |
14546 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14547 | test_array [0] = 0 | |
14548 | ||
14549 | ; | |
14550 | return 0; | |
14551 | } | |
14552 | _ACEOF | |
14553 | rm -f conftest.$ac_objext | |
14554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14555 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14556 | ac_status=$? |
ac1cb8d3 VS |
14557 | grep -v '^ *+' conftest.er1 >conftest.err |
14558 | rm -f conftest.er1 | |
14559 | cat conftest.err >&5 | |
a848cd7e SC |
14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14561 | (exit $ac_status); } && | |
4d4ff94c | 14562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14564 | (eval $ac_try) 2>&5 | |
14565 | ac_status=$? | |
14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14567 | (exit $ac_status); }; } && | |
14568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14570 | (eval $ac_try) 2>&5 | |
14571 | ac_status=$? | |
14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14573 | (exit $ac_status); }; }; then | |
14574 | ac_lo=$ac_mid; break | |
14575 | else | |
14576 | echo "$as_me: failed program was:" >&5 | |
14577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14578 | ||
14579 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14580 | if test $ac_mid -le $ac_hi; then |
14581 | ac_lo= ac_hi= | |
14582 | break | |
14583 | fi | |
14584 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14585 | fi |
ac1cb8d3 | 14586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14587 | done |
14588 | else | |
14589 | echo "$as_me: failed program was:" >&5 | |
14590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14591 | ||
14592 | ac_lo= ac_hi= | |
14593 | fi | |
ac1cb8d3 | 14594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14595 | fi |
ac1cb8d3 | 14596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14597 | # Binary search between lo and hi bounds. |
14598 | while test "x$ac_lo" != "x$ac_hi"; do | |
14599 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14600 | cat >conftest.$ac_ext <<_ACEOF | |
14601 | /* confdefs.h. */ | |
14602 | _ACEOF | |
14603 | cat confdefs.h >>conftest.$ac_ext | |
14604 | cat >>conftest.$ac_ext <<_ACEOF | |
14605 | /* end confdefs.h. */ | |
14606 | $ac_includes_default | |
14607 | int | |
14608 | main () | |
14609 | { | |
14610 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14611 | test_array [0] = 0 | |
14612 | ||
14613 | ; | |
14614 | return 0; | |
14615 | } | |
14616 | _ACEOF | |
14617 | rm -f conftest.$ac_objext | |
14618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14619 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14620 | ac_status=$? |
ac1cb8d3 VS |
14621 | grep -v '^ *+' conftest.er1 >conftest.err |
14622 | rm -f conftest.er1 | |
14623 | cat conftest.err >&5 | |
a848cd7e SC |
14624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14625 | (exit $ac_status); } && | |
4d4ff94c | 14626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14628 | (eval $ac_try) 2>&5 | |
14629 | ac_status=$? | |
14630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14631 | (exit $ac_status); }; } && | |
14632 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14634 | (eval $ac_try) 2>&5 | |
14635 | ac_status=$? | |
14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14637 | (exit $ac_status); }; }; then | |
14638 | ac_hi=$ac_mid | |
14639 | else | |
14640 | echo "$as_me: failed program was:" >&5 | |
14641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14642 | ||
14643 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14644 | fi | |
ac1cb8d3 | 14645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14646 | done |
14647 | case $ac_lo in | |
14648 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14649 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14650 | See \`config.log' for more details." >&5 | |
14651 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14652 | See \`config.log' for more details." >&2;} | |
14653 | { (exit 1); exit 1; }; } ;; | |
14654 | esac | |
14655 | else | |
14656 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
14657 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14658 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
14659 | { (exit 1); exit 1; }; } |
14660 | else | |
14661 | cat >conftest.$ac_ext <<_ACEOF | |
14662 | /* confdefs.h. */ | |
14663 | _ACEOF | |
14664 | cat confdefs.h >>conftest.$ac_ext | |
14665 | cat >>conftest.$ac_ext <<_ACEOF | |
14666 | /* end confdefs.h. */ | |
14667 | $ac_includes_default | |
14668 | long longval () { return (long) (sizeof (char)); } | |
14669 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14670 | #include <stdio.h> | |
14671 | #include <stdlib.h> | |
14672 | int | |
14673 | main () | |
14674 | { | |
14675 | ||
14676 | FILE *f = fopen ("conftest.val", "w"); | |
14677 | if (! f) | |
14678 | exit (1); | |
14679 | if (((long) (sizeof (char))) < 0) | |
14680 | { | |
14681 | long i = longval (); | |
14682 | if (i != ((long) (sizeof (char)))) | |
14683 | exit (1); | |
14684 | fprintf (f, "%ld\n", i); | |
14685 | } | |
14686 | else | |
14687 | { | |
14688 | unsigned long i = ulongval (); | |
14689 | if (i != ((long) (sizeof (char)))) | |
14690 | exit (1); | |
14691 | fprintf (f, "%lu\n", i); | |
14692 | } | |
14693 | exit (ferror (f) || fclose (f) != 0); | |
14694 | ||
14695 | ; | |
14696 | return 0; | |
14697 | } | |
14698 | _ACEOF | |
14699 | rm -f conftest$ac_exeext | |
14700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14701 | (eval $ac_link) 2>&5 | |
14702 | ac_status=$? | |
14703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14704 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14706 | (eval $ac_try) 2>&5 | |
14707 | ac_status=$? | |
14708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14709 | (exit $ac_status); }; }; then | |
14710 | ac_cv_sizeof_char=`cat conftest.val` | |
14711 | else | |
14712 | echo "$as_me: program exited with status $ac_status" >&5 | |
14713 | echo "$as_me: failed program was:" >&5 | |
14714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14715 | ||
14716 | ( exit $ac_status ) | |
14717 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14718 | See \`config.log' for more details." >&5 | |
14719 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14720 | See \`config.log' for more details." >&2;} | |
14721 | { (exit 1); exit 1; }; } | |
14722 | fi | |
ac1cb8d3 | 14723 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14724 | fi |
14725 | fi | |
14726 | rm -f conftest.val | |
14727 | else | |
14728 | ac_cv_sizeof_char=0 | |
14729 | fi | |
14730 | fi | |
14731 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14732 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14733 | cat >>confdefs.h <<_ACEOF | |
14734 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14735 | _ACEOF | |
14736 | ||
14737 | ||
14738 | echo "$as_me:$LINENO: checking for short" >&5 | |
14739 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14740 | if test "${ac_cv_type_short+set}" = set; then | |
14741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14742 | else | |
14743 | cat >conftest.$ac_ext <<_ACEOF | |
14744 | /* confdefs.h. */ | |
14745 | _ACEOF | |
14746 | cat confdefs.h >>conftest.$ac_ext | |
14747 | cat >>conftest.$ac_ext <<_ACEOF | |
14748 | /* end confdefs.h. */ | |
14749 | $ac_includes_default | |
14750 | int | |
14751 | main () | |
14752 | { | |
14753 | if ((short *) 0) | |
14754 | return 0; | |
14755 | if (sizeof (short)) | |
14756 | return 0; | |
14757 | ; | |
14758 | return 0; | |
14759 | } | |
14760 | _ACEOF | |
14761 | rm -f conftest.$ac_objext | |
14762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14763 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14764 | ac_status=$? |
ac1cb8d3 VS |
14765 | grep -v '^ *+' conftest.er1 >conftest.err |
14766 | rm -f conftest.er1 | |
14767 | cat conftest.err >&5 | |
a848cd7e SC |
14768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14769 | (exit $ac_status); } && | |
4d4ff94c | 14770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14772 | (eval $ac_try) 2>&5 | |
14773 | ac_status=$? | |
14774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14775 | (exit $ac_status); }; } && | |
14776 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14778 | (eval $ac_try) 2>&5 | |
14779 | ac_status=$? | |
14780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14781 | (exit $ac_status); }; }; then | |
14782 | ac_cv_type_short=yes | |
14783 | else | |
14784 | echo "$as_me: failed program was:" >&5 | |
14785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14786 | ||
14787 | ac_cv_type_short=no | |
14788 | fi | |
ac1cb8d3 | 14789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14790 | fi |
14791 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14792 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14793 | ||
14794 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14795 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14796 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14798 | else | |
14799 | if test "$ac_cv_type_short" = yes; then | |
14800 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14801 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14802 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14803 | # This bug is HP SR number 8606223364. | |
14804 | if test "$cross_compiling" = yes; then | |
14805 | # Depending upon the size, compute the lo and hi bounds. | |
14806 | cat >conftest.$ac_ext <<_ACEOF | |
14807 | /* confdefs.h. */ | |
14808 | _ACEOF | |
14809 | cat confdefs.h >>conftest.$ac_ext | |
14810 | cat >>conftest.$ac_ext <<_ACEOF | |
14811 | /* end confdefs.h. */ | |
14812 | $ac_includes_default | |
14813 | int | |
14814 | main () | |
14815 | { | |
14816 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14817 | test_array [0] = 0 | |
14818 | ||
14819 | ; | |
14820 | return 0; | |
14821 | } | |
14822 | _ACEOF | |
14823 | rm -f conftest.$ac_objext | |
14824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14825 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14826 | ac_status=$? |
ac1cb8d3 VS |
14827 | grep -v '^ *+' conftest.er1 >conftest.err |
14828 | rm -f conftest.er1 | |
14829 | cat conftest.err >&5 | |
a848cd7e SC |
14830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14831 | (exit $ac_status); } && | |
4d4ff94c | 14832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14834 | (eval $ac_try) 2>&5 | |
14835 | ac_status=$? | |
14836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14837 | (exit $ac_status); }; } && | |
14838 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14840 | (eval $ac_try) 2>&5 | |
14841 | ac_status=$? | |
14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14843 | (exit $ac_status); }; }; then | |
14844 | ac_lo=0 ac_mid=0 | |
14845 | while :; do | |
14846 | cat >conftest.$ac_ext <<_ACEOF | |
14847 | /* confdefs.h. */ | |
14848 | _ACEOF | |
14849 | cat confdefs.h >>conftest.$ac_ext | |
14850 | cat >>conftest.$ac_ext <<_ACEOF | |
14851 | /* end confdefs.h. */ | |
14852 | $ac_includes_default | |
14853 | int | |
14854 | main () | |
14855 | { | |
14856 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14857 | test_array [0] = 0 | |
14858 | ||
14859 | ; | |
14860 | return 0; | |
14861 | } | |
14862 | _ACEOF | |
14863 | rm -f conftest.$ac_objext | |
14864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14865 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14866 | ac_status=$? |
ac1cb8d3 VS |
14867 | grep -v '^ *+' conftest.er1 >conftest.err |
14868 | rm -f conftest.er1 | |
14869 | cat conftest.err >&5 | |
a848cd7e SC |
14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14871 | (exit $ac_status); } && | |
4d4ff94c | 14872 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14874 | (eval $ac_try) 2>&5 | |
14875 | ac_status=$? | |
14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14877 | (exit $ac_status); }; } && | |
14878 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14880 | (eval $ac_try) 2>&5 | |
14881 | ac_status=$? | |
14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14883 | (exit $ac_status); }; }; then | |
14884 | ac_hi=$ac_mid; break | |
14885 | else | |
14886 | echo "$as_me: failed program was:" >&5 | |
14887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14888 | ||
14889 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14890 | if test $ac_lo -le $ac_mid; then |
14891 | ac_lo= ac_hi= | |
14892 | break | |
14893 | fi | |
14894 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14895 | fi |
ac1cb8d3 | 14896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14897 | done |
14898 | else | |
14899 | echo "$as_me: failed program was:" >&5 | |
14900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14901 | ||
14902 | cat >conftest.$ac_ext <<_ACEOF | |
14903 | /* confdefs.h. */ | |
14904 | _ACEOF | |
14905 | cat confdefs.h >>conftest.$ac_ext | |
14906 | cat >>conftest.$ac_ext <<_ACEOF | |
14907 | /* end confdefs.h. */ | |
14908 | $ac_includes_default | |
14909 | int | |
14910 | main () | |
14911 | { | |
14912 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14913 | test_array [0] = 0 | |
14914 | ||
14915 | ; | |
14916 | return 0; | |
14917 | } | |
14918 | _ACEOF | |
14919 | rm -f conftest.$ac_objext | |
14920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14921 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14922 | ac_status=$? |
ac1cb8d3 VS |
14923 | grep -v '^ *+' conftest.er1 >conftest.err |
14924 | rm -f conftest.er1 | |
14925 | cat conftest.err >&5 | |
a848cd7e SC |
14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14927 | (exit $ac_status); } && | |
4d4ff94c | 14928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14930 | (eval $ac_try) 2>&5 | |
14931 | ac_status=$? | |
14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14933 | (exit $ac_status); }; } && | |
14934 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14936 | (eval $ac_try) 2>&5 | |
14937 | ac_status=$? | |
14938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14939 | (exit $ac_status); }; }; then | |
14940 | ac_hi=-1 ac_mid=-1 | |
14941 | while :; do | |
14942 | cat >conftest.$ac_ext <<_ACEOF | |
14943 | /* confdefs.h. */ | |
14944 | _ACEOF | |
14945 | cat confdefs.h >>conftest.$ac_ext | |
14946 | cat >>conftest.$ac_ext <<_ACEOF | |
14947 | /* end confdefs.h. */ | |
14948 | $ac_includes_default | |
14949 | int | |
14950 | main () | |
14951 | { | |
14952 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14953 | test_array [0] = 0 | |
14954 | ||
14955 | ; | |
14956 | return 0; | |
14957 | } | |
14958 | _ACEOF | |
14959 | rm -f conftest.$ac_objext | |
14960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14961 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14962 | ac_status=$? |
ac1cb8d3 VS |
14963 | grep -v '^ *+' conftest.er1 >conftest.err |
14964 | rm -f conftest.er1 | |
14965 | cat conftest.err >&5 | |
a848cd7e SC |
14966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14967 | (exit $ac_status); } && | |
4d4ff94c | 14968 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14970 | (eval $ac_try) 2>&5 | |
14971 | ac_status=$? | |
14972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14973 | (exit $ac_status); }; } && | |
14974 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14976 | (eval $ac_try) 2>&5 | |
14977 | ac_status=$? | |
14978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14979 | (exit $ac_status); }; }; then | |
14980 | ac_lo=$ac_mid; break | |
14981 | else | |
14982 | echo "$as_me: failed program was:" >&5 | |
14983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14984 | ||
14985 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14986 | if test $ac_mid -le $ac_hi; then |
14987 | ac_lo= ac_hi= | |
14988 | break | |
14989 | fi | |
14990 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14991 | fi |
ac1cb8d3 | 14992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14993 | done |
14994 | else | |
14995 | echo "$as_me: failed program was:" >&5 | |
14996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14997 | ||
14998 | ac_lo= ac_hi= | |
14999 | fi | |
ac1cb8d3 | 15000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15001 | fi |
ac1cb8d3 | 15002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15003 | # Binary search between lo and hi bounds. |
15004 | while test "x$ac_lo" != "x$ac_hi"; do | |
15005 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15006 | cat >conftest.$ac_ext <<_ACEOF | |
15007 | /* confdefs.h. */ | |
15008 | _ACEOF | |
15009 | cat confdefs.h >>conftest.$ac_ext | |
15010 | cat >>conftest.$ac_ext <<_ACEOF | |
15011 | /* end confdefs.h. */ | |
15012 | $ac_includes_default | |
15013 | int | |
15014 | main () | |
15015 | { | |
15016 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15017 | test_array [0] = 0 | |
15018 | ||
15019 | ; | |
15020 | return 0; | |
15021 | } | |
15022 | _ACEOF | |
15023 | rm -f conftest.$ac_objext | |
15024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15025 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15026 | ac_status=$? |
ac1cb8d3 VS |
15027 | grep -v '^ *+' conftest.er1 >conftest.err |
15028 | rm -f conftest.er1 | |
15029 | cat conftest.err >&5 | |
a848cd7e SC |
15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15031 | (exit $ac_status); } && | |
4d4ff94c | 15032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15034 | (eval $ac_try) 2>&5 | |
15035 | ac_status=$? | |
15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15037 | (exit $ac_status); }; } && | |
15038 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15040 | (eval $ac_try) 2>&5 | |
15041 | ac_status=$? | |
15042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15043 | (exit $ac_status); }; }; then | |
15044 | ac_hi=$ac_mid | |
15045 | else | |
15046 | echo "$as_me: failed program was:" >&5 | |
15047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15048 | ||
15049 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15050 | fi | |
ac1cb8d3 | 15051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15052 | done |
15053 | case $ac_lo in | |
15054 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15055 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15056 | See \`config.log' for more details." >&5 | |
15057 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15058 | See \`config.log' for more details." >&2;} | |
15059 | { (exit 1); exit 1; }; } ;; | |
15060 | esac | |
15061 | else | |
15062 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
15063 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15064 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15065 | { (exit 1); exit 1; }; } |
15066 | else | |
15067 | cat >conftest.$ac_ext <<_ACEOF | |
15068 | /* confdefs.h. */ | |
15069 | _ACEOF | |
15070 | cat confdefs.h >>conftest.$ac_ext | |
15071 | cat >>conftest.$ac_ext <<_ACEOF | |
15072 | /* end confdefs.h. */ | |
15073 | $ac_includes_default | |
15074 | long longval () { return (long) (sizeof (short)); } | |
15075 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15076 | #include <stdio.h> | |
15077 | #include <stdlib.h> | |
15078 | int | |
15079 | main () | |
15080 | { | |
15081 | ||
15082 | FILE *f = fopen ("conftest.val", "w"); | |
15083 | if (! f) | |
15084 | exit (1); | |
15085 | if (((long) (sizeof (short))) < 0) | |
15086 | { | |
15087 | long i = longval (); | |
15088 | if (i != ((long) (sizeof (short)))) | |
15089 | exit (1); | |
15090 | fprintf (f, "%ld\n", i); | |
15091 | } | |
15092 | else | |
15093 | { | |
15094 | unsigned long i = ulongval (); | |
15095 | if (i != ((long) (sizeof (short)))) | |
15096 | exit (1); | |
15097 | fprintf (f, "%lu\n", i); | |
15098 | } | |
15099 | exit (ferror (f) || fclose (f) != 0); | |
15100 | ||
15101 | ; | |
15102 | return 0; | |
15103 | } | |
15104 | _ACEOF | |
15105 | rm -f conftest$ac_exeext | |
15106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15107 | (eval $ac_link) 2>&5 | |
15108 | ac_status=$? | |
15109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15110 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15112 | (eval $ac_try) 2>&5 | |
15113 | ac_status=$? | |
15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15115 | (exit $ac_status); }; }; then | |
15116 | ac_cv_sizeof_short=`cat conftest.val` | |
15117 | else | |
15118 | echo "$as_me: program exited with status $ac_status" >&5 | |
15119 | echo "$as_me: failed program was:" >&5 | |
15120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15121 | ||
15122 | ( exit $ac_status ) | |
15123 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15124 | See \`config.log' for more details." >&5 | |
15125 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15126 | See \`config.log' for more details." >&2;} | |
15127 | { (exit 1); exit 1; }; } | |
15128 | fi | |
ac1cb8d3 | 15129 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15130 | fi |
15131 | fi | |
15132 | rm -f conftest.val | |
15133 | else | |
15134 | ac_cv_sizeof_short=0 | |
15135 | fi | |
15136 | fi | |
15137 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15138 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15139 | cat >>confdefs.h <<_ACEOF | |
15140 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15141 | _ACEOF | |
15142 | ||
15143 | ||
15144 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15145 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15146 | if test "${ac_cv_type_void_p+set}" = set; then | |
15147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15148 | else | |
15149 | cat >conftest.$ac_ext <<_ACEOF | |
15150 | /* confdefs.h. */ | |
15151 | _ACEOF | |
15152 | cat confdefs.h >>conftest.$ac_ext | |
15153 | cat >>conftest.$ac_ext <<_ACEOF | |
15154 | /* end confdefs.h. */ | |
15155 | $ac_includes_default | |
15156 | int | |
15157 | main () | |
15158 | { | |
15159 | if ((void * *) 0) | |
15160 | return 0; | |
15161 | if (sizeof (void *)) | |
15162 | return 0; | |
15163 | ; | |
15164 | return 0; | |
15165 | } | |
15166 | _ACEOF | |
15167 | rm -f conftest.$ac_objext | |
15168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15169 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15170 | ac_status=$? |
ac1cb8d3 VS |
15171 | grep -v '^ *+' conftest.er1 >conftest.err |
15172 | rm -f conftest.er1 | |
15173 | cat conftest.err >&5 | |
a848cd7e SC |
15174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15175 | (exit $ac_status); } && | |
4d4ff94c | 15176 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15178 | (eval $ac_try) 2>&5 | |
15179 | ac_status=$? | |
15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15181 | (exit $ac_status); }; } && | |
15182 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15184 | (eval $ac_try) 2>&5 | |
15185 | ac_status=$? | |
15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15187 | (exit $ac_status); }; }; then | |
15188 | ac_cv_type_void_p=yes | |
15189 | else | |
15190 | echo "$as_me: failed program was:" >&5 | |
15191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15192 | ||
15193 | ac_cv_type_void_p=no | |
15194 | fi | |
ac1cb8d3 | 15195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15196 | fi |
15197 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15198 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15199 | ||
15200 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15201 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15202 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15204 | else | |
15205 | if test "$ac_cv_type_void_p" = yes; then | |
15206 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15207 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15208 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15209 | # This bug is HP SR number 8606223364. | |
15210 | if test "$cross_compiling" = yes; then | |
15211 | # Depending upon the size, compute the lo and hi bounds. | |
15212 | cat >conftest.$ac_ext <<_ACEOF | |
15213 | /* confdefs.h. */ | |
15214 | _ACEOF | |
15215 | cat confdefs.h >>conftest.$ac_ext | |
15216 | cat >>conftest.$ac_ext <<_ACEOF | |
15217 | /* end confdefs.h. */ | |
15218 | $ac_includes_default | |
15219 | int | |
15220 | main () | |
15221 | { | |
15222 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15223 | test_array [0] = 0 | |
15224 | ||
15225 | ; | |
15226 | return 0; | |
15227 | } | |
15228 | _ACEOF | |
15229 | rm -f conftest.$ac_objext | |
15230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15231 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15232 | ac_status=$? |
ac1cb8d3 VS |
15233 | grep -v '^ *+' conftest.er1 >conftest.err |
15234 | rm -f conftest.er1 | |
15235 | cat conftest.err >&5 | |
a848cd7e SC |
15236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15237 | (exit $ac_status); } && | |
4d4ff94c | 15238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15240 | (eval $ac_try) 2>&5 | |
15241 | ac_status=$? | |
15242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15243 | (exit $ac_status); }; } && | |
15244 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15246 | (eval $ac_try) 2>&5 | |
15247 | ac_status=$? | |
15248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15249 | (exit $ac_status); }; }; then | |
15250 | ac_lo=0 ac_mid=0 | |
15251 | while :; do | |
15252 | cat >conftest.$ac_ext <<_ACEOF | |
15253 | /* confdefs.h. */ | |
15254 | _ACEOF | |
15255 | cat confdefs.h >>conftest.$ac_ext | |
15256 | cat >>conftest.$ac_ext <<_ACEOF | |
15257 | /* end confdefs.h. */ | |
15258 | $ac_includes_default | |
15259 | int | |
15260 | main () | |
15261 | { | |
15262 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15263 | test_array [0] = 0 | |
15264 | ||
15265 | ; | |
15266 | return 0; | |
15267 | } | |
15268 | _ACEOF | |
15269 | rm -f conftest.$ac_objext | |
15270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15271 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15272 | ac_status=$? |
ac1cb8d3 VS |
15273 | grep -v '^ *+' conftest.er1 >conftest.err |
15274 | rm -f conftest.er1 | |
15275 | cat conftest.err >&5 | |
a848cd7e SC |
15276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15277 | (exit $ac_status); } && | |
4d4ff94c | 15278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15280 | (eval $ac_try) 2>&5 | |
15281 | ac_status=$? | |
15282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15283 | (exit $ac_status); }; } && | |
15284 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15286 | (eval $ac_try) 2>&5 | |
15287 | ac_status=$? | |
15288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15289 | (exit $ac_status); }; }; then | |
15290 | ac_hi=$ac_mid; break | |
15291 | else | |
15292 | echo "$as_me: failed program was:" >&5 | |
15293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15294 | ||
15295 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15296 | if test $ac_lo -le $ac_mid; then |
15297 | ac_lo= ac_hi= | |
15298 | break | |
15299 | fi | |
15300 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15301 | fi |
ac1cb8d3 | 15302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15303 | done |
15304 | else | |
15305 | echo "$as_me: failed program was:" >&5 | |
15306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15307 | ||
15308 | cat >conftest.$ac_ext <<_ACEOF | |
15309 | /* confdefs.h. */ | |
15310 | _ACEOF | |
15311 | cat confdefs.h >>conftest.$ac_ext | |
15312 | cat >>conftest.$ac_ext <<_ACEOF | |
15313 | /* end confdefs.h. */ | |
15314 | $ac_includes_default | |
15315 | int | |
15316 | main () | |
15317 | { | |
15318 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15319 | test_array [0] = 0 | |
15320 | ||
15321 | ; | |
15322 | return 0; | |
15323 | } | |
15324 | _ACEOF | |
15325 | rm -f conftest.$ac_objext | |
15326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15327 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15328 | ac_status=$? |
ac1cb8d3 VS |
15329 | grep -v '^ *+' conftest.er1 >conftest.err |
15330 | rm -f conftest.er1 | |
15331 | cat conftest.err >&5 | |
a848cd7e SC |
15332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15333 | (exit $ac_status); } && | |
4d4ff94c | 15334 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15336 | (eval $ac_try) 2>&5 | |
15337 | ac_status=$? | |
15338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15339 | (exit $ac_status); }; } && | |
15340 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15342 | (eval $ac_try) 2>&5 | |
15343 | ac_status=$? | |
15344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15345 | (exit $ac_status); }; }; then | |
15346 | ac_hi=-1 ac_mid=-1 | |
15347 | while :; do | |
15348 | cat >conftest.$ac_ext <<_ACEOF | |
15349 | /* confdefs.h. */ | |
15350 | _ACEOF | |
15351 | cat confdefs.h >>conftest.$ac_ext | |
15352 | cat >>conftest.$ac_ext <<_ACEOF | |
15353 | /* end confdefs.h. */ | |
15354 | $ac_includes_default | |
15355 | int | |
15356 | main () | |
15357 | { | |
15358 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15359 | test_array [0] = 0 | |
15360 | ||
15361 | ; | |
15362 | return 0; | |
15363 | } | |
15364 | _ACEOF | |
15365 | rm -f conftest.$ac_objext | |
15366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15367 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15368 | ac_status=$? |
ac1cb8d3 VS |
15369 | grep -v '^ *+' conftest.er1 >conftest.err |
15370 | rm -f conftest.er1 | |
15371 | cat conftest.err >&5 | |
a848cd7e SC |
15372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15373 | (exit $ac_status); } && | |
4d4ff94c | 15374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15376 | (eval $ac_try) 2>&5 | |
15377 | ac_status=$? | |
15378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15379 | (exit $ac_status); }; } && | |
15380 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15382 | (eval $ac_try) 2>&5 | |
15383 | ac_status=$? | |
15384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15385 | (exit $ac_status); }; }; then | |
15386 | ac_lo=$ac_mid; break | |
15387 | else | |
15388 | echo "$as_me: failed program was:" >&5 | |
15389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15390 | ||
15391 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15392 | if test $ac_mid -le $ac_hi; then |
15393 | ac_lo= ac_hi= | |
15394 | break | |
15395 | fi | |
15396 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15397 | fi |
ac1cb8d3 | 15398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15399 | done |
15400 | else | |
15401 | echo "$as_me: failed program was:" >&5 | |
15402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15403 | ||
15404 | ac_lo= ac_hi= | |
15405 | fi | |
ac1cb8d3 | 15406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15407 | fi |
ac1cb8d3 | 15408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15409 | # Binary search between lo and hi bounds. |
15410 | while test "x$ac_lo" != "x$ac_hi"; do | |
15411 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15412 | cat >conftest.$ac_ext <<_ACEOF | |
15413 | /* confdefs.h. */ | |
15414 | _ACEOF | |
15415 | cat confdefs.h >>conftest.$ac_ext | |
15416 | cat >>conftest.$ac_ext <<_ACEOF | |
15417 | /* end confdefs.h. */ | |
15418 | $ac_includes_default | |
15419 | int | |
15420 | main () | |
15421 | { | |
15422 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15423 | test_array [0] = 0 | |
15424 | ||
15425 | ; | |
15426 | return 0; | |
15427 | } | |
15428 | _ACEOF | |
15429 | rm -f conftest.$ac_objext | |
15430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15431 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15432 | ac_status=$? |
ac1cb8d3 VS |
15433 | grep -v '^ *+' conftest.er1 >conftest.err |
15434 | rm -f conftest.er1 | |
15435 | cat conftest.err >&5 | |
a848cd7e SC |
15436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15437 | (exit $ac_status); } && | |
4d4ff94c | 15438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15440 | (eval $ac_try) 2>&5 | |
15441 | ac_status=$? | |
15442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15443 | (exit $ac_status); }; } && | |
15444 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15446 | (eval $ac_try) 2>&5 | |
15447 | ac_status=$? | |
15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15449 | (exit $ac_status); }; }; then | |
15450 | ac_hi=$ac_mid | |
15451 | else | |
15452 | echo "$as_me: failed program was:" >&5 | |
15453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15454 | ||
15455 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15456 | fi | |
ac1cb8d3 | 15457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15458 | done |
15459 | case $ac_lo in | |
15460 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15461 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15462 | See \`config.log' for more details." >&5 | |
15463 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15464 | See \`config.log' for more details." >&2;} | |
15465 | { (exit 1); exit 1; }; } ;; | |
15466 | esac | |
15467 | else | |
15468 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
15469 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15470 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15471 | { (exit 1); exit 1; }; } |
15472 | else | |
15473 | cat >conftest.$ac_ext <<_ACEOF | |
15474 | /* confdefs.h. */ | |
15475 | _ACEOF | |
15476 | cat confdefs.h >>conftest.$ac_ext | |
15477 | cat >>conftest.$ac_ext <<_ACEOF | |
15478 | /* end confdefs.h. */ | |
15479 | $ac_includes_default | |
15480 | long longval () { return (long) (sizeof (void *)); } | |
15481 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15482 | #include <stdio.h> | |
15483 | #include <stdlib.h> | |
15484 | int | |
15485 | main () | |
15486 | { | |
15487 | ||
15488 | FILE *f = fopen ("conftest.val", "w"); | |
15489 | if (! f) | |
15490 | exit (1); | |
15491 | if (((long) (sizeof (void *))) < 0) | |
15492 | { | |
15493 | long i = longval (); | |
15494 | if (i != ((long) (sizeof (void *)))) | |
15495 | exit (1); | |
15496 | fprintf (f, "%ld\n", i); | |
15497 | } | |
15498 | else | |
15499 | { | |
15500 | unsigned long i = ulongval (); | |
15501 | if (i != ((long) (sizeof (void *)))) | |
15502 | exit (1); | |
15503 | fprintf (f, "%lu\n", i); | |
15504 | } | |
15505 | exit (ferror (f) || fclose (f) != 0); | |
15506 | ||
15507 | ; | |
15508 | return 0; | |
15509 | } | |
15510 | _ACEOF | |
15511 | rm -f conftest$ac_exeext | |
15512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15513 | (eval $ac_link) 2>&5 | |
15514 | ac_status=$? | |
15515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15516 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15518 | (eval $ac_try) 2>&5 | |
15519 | ac_status=$? | |
15520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15521 | (exit $ac_status); }; }; then | |
15522 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15523 | else | |
15524 | echo "$as_me: program exited with status $ac_status" >&5 | |
15525 | echo "$as_me: failed program was:" >&5 | |
15526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15527 | ||
15528 | ( exit $ac_status ) | |
15529 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15530 | See \`config.log' for more details." >&5 | |
15531 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15532 | See \`config.log' for more details." >&2;} | |
15533 | { (exit 1); exit 1; }; } | |
15534 | fi | |
ac1cb8d3 | 15535 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15536 | fi |
15537 | fi | |
15538 | rm -f conftest.val | |
15539 | else | |
15540 | ac_cv_sizeof_void_p=0 | |
15541 | fi | |
15542 | fi | |
15543 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15544 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15545 | cat >>confdefs.h <<_ACEOF | |
15546 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15547 | _ACEOF | |
15548 | ||
15549 | ||
15550 | echo "$as_me:$LINENO: checking for int" >&5 | |
15551 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15552 | if test "${ac_cv_type_int+set}" = set; then | |
15553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15554 | else | |
15555 | cat >conftest.$ac_ext <<_ACEOF | |
15556 | /* confdefs.h. */ | |
15557 | _ACEOF | |
15558 | cat confdefs.h >>conftest.$ac_ext | |
15559 | cat >>conftest.$ac_ext <<_ACEOF | |
15560 | /* end confdefs.h. */ | |
15561 | $ac_includes_default | |
15562 | int | |
15563 | main () | |
15564 | { | |
15565 | if ((int *) 0) | |
15566 | return 0; | |
15567 | if (sizeof (int)) | |
15568 | return 0; | |
15569 | ; | |
15570 | return 0; | |
15571 | } | |
15572 | _ACEOF | |
15573 | rm -f conftest.$ac_objext | |
15574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15575 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15576 | ac_status=$? |
ac1cb8d3 VS |
15577 | grep -v '^ *+' conftest.er1 >conftest.err |
15578 | rm -f conftest.er1 | |
15579 | cat conftest.err >&5 | |
a848cd7e SC |
15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15581 | (exit $ac_status); } && | |
4d4ff94c | 15582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15584 | (eval $ac_try) 2>&5 | |
15585 | ac_status=$? | |
15586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15587 | (exit $ac_status); }; } && | |
15588 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15590 | (eval $ac_try) 2>&5 | |
15591 | ac_status=$? | |
15592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15593 | (exit $ac_status); }; }; then | |
15594 | ac_cv_type_int=yes | |
15595 | else | |
15596 | echo "$as_me: failed program was:" >&5 | |
15597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15598 | ||
15599 | ac_cv_type_int=no | |
15600 | fi | |
ac1cb8d3 | 15601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15602 | fi |
15603 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15604 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15605 | ||
15606 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15607 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15608 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15610 | else | |
15611 | if test "$ac_cv_type_int" = yes; then | |
15612 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15613 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15614 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15615 | # This bug is HP SR number 8606223364. | |
15616 | if test "$cross_compiling" = yes; then | |
15617 | # Depending upon the size, compute the lo and hi bounds. | |
15618 | cat >conftest.$ac_ext <<_ACEOF | |
15619 | /* confdefs.h. */ | |
15620 | _ACEOF | |
15621 | cat confdefs.h >>conftest.$ac_ext | |
15622 | cat >>conftest.$ac_ext <<_ACEOF | |
15623 | /* end confdefs.h. */ | |
15624 | $ac_includes_default | |
15625 | int | |
15626 | main () | |
15627 | { | |
15628 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15629 | test_array [0] = 0 | |
15630 | ||
15631 | ; | |
15632 | return 0; | |
15633 | } | |
15634 | _ACEOF | |
15635 | rm -f conftest.$ac_objext | |
15636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15637 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15638 | ac_status=$? |
ac1cb8d3 VS |
15639 | grep -v '^ *+' conftest.er1 >conftest.err |
15640 | rm -f conftest.er1 | |
15641 | cat conftest.err >&5 | |
a848cd7e SC |
15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15643 | (exit $ac_status); } && | |
4d4ff94c | 15644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15646 | (eval $ac_try) 2>&5 | |
15647 | ac_status=$? | |
15648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15649 | (exit $ac_status); }; } && | |
15650 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15652 | (eval $ac_try) 2>&5 | |
15653 | ac_status=$? | |
15654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15655 | (exit $ac_status); }; }; then | |
15656 | ac_lo=0 ac_mid=0 | |
15657 | while :; do | |
15658 | cat >conftest.$ac_ext <<_ACEOF | |
15659 | /* confdefs.h. */ | |
15660 | _ACEOF | |
15661 | cat confdefs.h >>conftest.$ac_ext | |
15662 | cat >>conftest.$ac_ext <<_ACEOF | |
15663 | /* end confdefs.h. */ | |
15664 | $ac_includes_default | |
15665 | int | |
15666 | main () | |
15667 | { | |
15668 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15669 | test_array [0] = 0 | |
15670 | ||
15671 | ; | |
15672 | return 0; | |
15673 | } | |
15674 | _ACEOF | |
15675 | rm -f conftest.$ac_objext | |
15676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15677 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15678 | ac_status=$? |
ac1cb8d3 VS |
15679 | grep -v '^ *+' conftest.er1 >conftest.err |
15680 | rm -f conftest.er1 | |
15681 | cat conftest.err >&5 | |
a848cd7e SC |
15682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15683 | (exit $ac_status); } && | |
4d4ff94c | 15684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15686 | (eval $ac_try) 2>&5 | |
15687 | ac_status=$? | |
15688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15689 | (exit $ac_status); }; } && | |
15690 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15692 | (eval $ac_try) 2>&5 | |
15693 | ac_status=$? | |
15694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15695 | (exit $ac_status); }; }; then | |
15696 | ac_hi=$ac_mid; break | |
15697 | else | |
15698 | echo "$as_me: failed program was:" >&5 | |
15699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15700 | ||
15701 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15702 | if test $ac_lo -le $ac_mid; then |
15703 | ac_lo= ac_hi= | |
15704 | break | |
15705 | fi | |
15706 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15707 | fi |
ac1cb8d3 | 15708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15709 | done |
15710 | else | |
15711 | echo "$as_me: failed program was:" >&5 | |
15712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15713 | ||
15714 | cat >conftest.$ac_ext <<_ACEOF | |
15715 | /* confdefs.h. */ | |
15716 | _ACEOF | |
15717 | cat confdefs.h >>conftest.$ac_ext | |
15718 | cat >>conftest.$ac_ext <<_ACEOF | |
15719 | /* end confdefs.h. */ | |
15720 | $ac_includes_default | |
15721 | int | |
15722 | main () | |
15723 | { | |
15724 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15725 | test_array [0] = 0 | |
15726 | ||
15727 | ; | |
15728 | return 0; | |
15729 | } | |
15730 | _ACEOF | |
15731 | rm -f conftest.$ac_objext | |
15732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15733 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15734 | ac_status=$? |
ac1cb8d3 VS |
15735 | grep -v '^ *+' conftest.er1 >conftest.err |
15736 | rm -f conftest.er1 | |
15737 | cat conftest.err >&5 | |
a848cd7e SC |
15738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15739 | (exit $ac_status); } && | |
4d4ff94c | 15740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15742 | (eval $ac_try) 2>&5 | |
15743 | ac_status=$? | |
15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15745 | (exit $ac_status); }; } && | |
15746 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15748 | (eval $ac_try) 2>&5 | |
15749 | ac_status=$? | |
15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15751 | (exit $ac_status); }; }; then | |
15752 | ac_hi=-1 ac_mid=-1 | |
15753 | while :; do | |
15754 | cat >conftest.$ac_ext <<_ACEOF | |
15755 | /* confdefs.h. */ | |
15756 | _ACEOF | |
15757 | cat confdefs.h >>conftest.$ac_ext | |
15758 | cat >>conftest.$ac_ext <<_ACEOF | |
15759 | /* end confdefs.h. */ | |
15760 | $ac_includes_default | |
15761 | int | |
15762 | main () | |
15763 | { | |
15764 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15765 | test_array [0] = 0 | |
15766 | ||
15767 | ; | |
15768 | return 0; | |
15769 | } | |
15770 | _ACEOF | |
15771 | rm -f conftest.$ac_objext | |
15772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15773 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15774 | ac_status=$? |
ac1cb8d3 VS |
15775 | grep -v '^ *+' conftest.er1 >conftest.err |
15776 | rm -f conftest.er1 | |
15777 | cat conftest.err >&5 | |
a848cd7e SC |
15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15779 | (exit $ac_status); } && | |
4d4ff94c | 15780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15782 | (eval $ac_try) 2>&5 | |
15783 | ac_status=$? | |
15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15785 | (exit $ac_status); }; } && | |
15786 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15788 | (eval $ac_try) 2>&5 | |
15789 | ac_status=$? | |
15790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15791 | (exit $ac_status); }; }; then | |
15792 | ac_lo=$ac_mid; break | |
15793 | else | |
15794 | echo "$as_me: failed program was:" >&5 | |
15795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15796 | ||
15797 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15798 | if test $ac_mid -le $ac_hi; then |
15799 | ac_lo= ac_hi= | |
15800 | break | |
15801 | fi | |
15802 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15803 | fi |
ac1cb8d3 | 15804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15805 | done |
15806 | else | |
15807 | echo "$as_me: failed program was:" >&5 | |
15808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15809 | ||
15810 | ac_lo= ac_hi= | |
15811 | fi | |
ac1cb8d3 | 15812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15813 | fi |
ac1cb8d3 | 15814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15815 | # Binary search between lo and hi bounds. |
15816 | while test "x$ac_lo" != "x$ac_hi"; do | |
15817 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15818 | cat >conftest.$ac_ext <<_ACEOF | |
15819 | /* confdefs.h. */ | |
15820 | _ACEOF | |
15821 | cat confdefs.h >>conftest.$ac_ext | |
15822 | cat >>conftest.$ac_ext <<_ACEOF | |
15823 | /* end confdefs.h. */ | |
15824 | $ac_includes_default | |
15825 | int | |
15826 | main () | |
15827 | { | |
15828 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15829 | test_array [0] = 0 | |
15830 | ||
15831 | ; | |
15832 | return 0; | |
15833 | } | |
15834 | _ACEOF | |
15835 | rm -f conftest.$ac_objext | |
15836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15837 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15838 | ac_status=$? |
ac1cb8d3 VS |
15839 | grep -v '^ *+' conftest.er1 >conftest.err |
15840 | rm -f conftest.er1 | |
15841 | cat conftest.err >&5 | |
a848cd7e SC |
15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15843 | (exit $ac_status); } && | |
4d4ff94c | 15844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15846 | (eval $ac_try) 2>&5 | |
15847 | ac_status=$? | |
15848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15849 | (exit $ac_status); }; } && | |
15850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15852 | (eval $ac_try) 2>&5 | |
15853 | ac_status=$? | |
15854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15855 | (exit $ac_status); }; }; then | |
15856 | ac_hi=$ac_mid | |
15857 | else | |
15858 | echo "$as_me: failed program was:" >&5 | |
15859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15860 | ||
15861 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15862 | fi | |
ac1cb8d3 | 15863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15864 | done |
15865 | case $ac_lo in | |
15866 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15867 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15868 | See \`config.log' for more details." >&5 | |
15869 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15870 | See \`config.log' for more details." >&2;} | |
15871 | { (exit 1); exit 1; }; } ;; | |
15872 | esac | |
15873 | else | |
15874 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
15875 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15876 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15877 | { (exit 1); exit 1; }; } |
15878 | else | |
15879 | cat >conftest.$ac_ext <<_ACEOF | |
15880 | /* confdefs.h. */ | |
15881 | _ACEOF | |
15882 | cat confdefs.h >>conftest.$ac_ext | |
15883 | cat >>conftest.$ac_ext <<_ACEOF | |
15884 | /* end confdefs.h. */ | |
15885 | $ac_includes_default | |
15886 | long longval () { return (long) (sizeof (int)); } | |
15887 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15888 | #include <stdio.h> | |
15889 | #include <stdlib.h> | |
15890 | int | |
15891 | main () | |
15892 | { | |
15893 | ||
15894 | FILE *f = fopen ("conftest.val", "w"); | |
15895 | if (! f) | |
15896 | exit (1); | |
15897 | if (((long) (sizeof (int))) < 0) | |
15898 | { | |
15899 | long i = longval (); | |
15900 | if (i != ((long) (sizeof (int)))) | |
15901 | exit (1); | |
15902 | fprintf (f, "%ld\n", i); | |
15903 | } | |
15904 | else | |
15905 | { | |
15906 | unsigned long i = ulongval (); | |
15907 | if (i != ((long) (sizeof (int)))) | |
15908 | exit (1); | |
15909 | fprintf (f, "%lu\n", i); | |
15910 | } | |
15911 | exit (ferror (f) || fclose (f) != 0); | |
15912 | ||
15913 | ; | |
15914 | return 0; | |
15915 | } | |
15916 | _ACEOF | |
15917 | rm -f conftest$ac_exeext | |
15918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15919 | (eval $ac_link) 2>&5 | |
15920 | ac_status=$? | |
15921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15924 | (eval $ac_try) 2>&5 | |
15925 | ac_status=$? | |
15926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15927 | (exit $ac_status); }; }; then | |
15928 | ac_cv_sizeof_int=`cat conftest.val` | |
15929 | else | |
15930 | echo "$as_me: program exited with status $ac_status" >&5 | |
15931 | echo "$as_me: failed program was:" >&5 | |
15932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15933 | ||
15934 | ( exit $ac_status ) | |
15935 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15936 | See \`config.log' for more details." >&5 | |
15937 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15938 | See \`config.log' for more details." >&2;} | |
15939 | { (exit 1); exit 1; }; } | |
15940 | fi | |
ac1cb8d3 | 15941 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15942 | fi |
15943 | fi | |
15944 | rm -f conftest.val | |
15945 | else | |
15946 | ac_cv_sizeof_int=0 | |
15947 | fi | |
15948 | fi | |
15949 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
15950 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15951 | cat >>confdefs.h <<_ACEOF | |
15952 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15953 | _ACEOF | |
15954 | ||
15955 | ||
15956 | echo "$as_me:$LINENO: checking for long" >&5 | |
15957 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15958 | if test "${ac_cv_type_long+set}" = set; then | |
15959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15960 | else | |
15961 | cat >conftest.$ac_ext <<_ACEOF | |
15962 | /* confdefs.h. */ | |
15963 | _ACEOF | |
15964 | cat confdefs.h >>conftest.$ac_ext | |
15965 | cat >>conftest.$ac_ext <<_ACEOF | |
15966 | /* end confdefs.h. */ | |
15967 | $ac_includes_default | |
15968 | int | |
15969 | main () | |
15970 | { | |
15971 | if ((long *) 0) | |
15972 | return 0; | |
15973 | if (sizeof (long)) | |
15974 | return 0; | |
15975 | ; | |
15976 | return 0; | |
15977 | } | |
15978 | _ACEOF | |
15979 | rm -f conftest.$ac_objext | |
15980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15982 | ac_status=$? |
ac1cb8d3 VS |
15983 | grep -v '^ *+' conftest.er1 >conftest.err |
15984 | rm -f conftest.er1 | |
15985 | cat conftest.err >&5 | |
a848cd7e SC |
15986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15987 | (exit $ac_status); } && | |
4d4ff94c | 15988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15990 | (eval $ac_try) 2>&5 | |
15991 | ac_status=$? | |
15992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15993 | (exit $ac_status); }; } && | |
15994 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15996 | (eval $ac_try) 2>&5 | |
15997 | ac_status=$? | |
15998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15999 | (exit $ac_status); }; }; then | |
16000 | ac_cv_type_long=yes | |
16001 | else | |
16002 | echo "$as_me: failed program was:" >&5 | |
16003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16004 | ||
16005 | ac_cv_type_long=no | |
16006 | fi | |
ac1cb8d3 | 16007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16008 | fi |
16009 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16010 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16011 | ||
16012 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16013 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16014 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16016 | else | |
16017 | if test "$ac_cv_type_long" = yes; then | |
16018 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16019 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16020 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16021 | # This bug is HP SR number 8606223364. | |
16022 | if test "$cross_compiling" = yes; then | |
16023 | # Depending upon the size, compute the lo and hi bounds. | |
16024 | cat >conftest.$ac_ext <<_ACEOF | |
16025 | /* confdefs.h. */ | |
16026 | _ACEOF | |
16027 | cat confdefs.h >>conftest.$ac_ext | |
16028 | cat >>conftest.$ac_ext <<_ACEOF | |
16029 | /* end confdefs.h. */ | |
16030 | $ac_includes_default | |
16031 | int | |
16032 | main () | |
16033 | { | |
16034 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16035 | test_array [0] = 0 | |
16036 | ||
16037 | ; | |
16038 | return 0; | |
16039 | } | |
16040 | _ACEOF | |
16041 | rm -f conftest.$ac_objext | |
16042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16043 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16044 | ac_status=$? |
ac1cb8d3 VS |
16045 | grep -v '^ *+' conftest.er1 >conftest.err |
16046 | rm -f conftest.er1 | |
16047 | cat conftest.err >&5 | |
a848cd7e SC |
16048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16049 | (exit $ac_status); } && | |
4d4ff94c | 16050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16052 | (eval $ac_try) 2>&5 | |
16053 | ac_status=$? | |
16054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16055 | (exit $ac_status); }; } && | |
16056 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16058 | (eval $ac_try) 2>&5 | |
16059 | ac_status=$? | |
16060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16061 | (exit $ac_status); }; }; then | |
16062 | ac_lo=0 ac_mid=0 | |
16063 | while :; do | |
16064 | cat >conftest.$ac_ext <<_ACEOF | |
16065 | /* confdefs.h. */ | |
16066 | _ACEOF | |
16067 | cat confdefs.h >>conftest.$ac_ext | |
16068 | cat >>conftest.$ac_ext <<_ACEOF | |
16069 | /* end confdefs.h. */ | |
16070 | $ac_includes_default | |
16071 | int | |
16072 | main () | |
16073 | { | |
16074 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16075 | test_array [0] = 0 | |
16076 | ||
16077 | ; | |
16078 | return 0; | |
16079 | } | |
16080 | _ACEOF | |
16081 | rm -f conftest.$ac_objext | |
16082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16083 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16084 | ac_status=$? |
ac1cb8d3 VS |
16085 | grep -v '^ *+' conftest.er1 >conftest.err |
16086 | rm -f conftest.er1 | |
16087 | cat conftest.err >&5 | |
a848cd7e SC |
16088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16089 | (exit $ac_status); } && | |
4d4ff94c | 16090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16092 | (eval $ac_try) 2>&5 | |
16093 | ac_status=$? | |
16094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16095 | (exit $ac_status); }; } && | |
16096 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16098 | (eval $ac_try) 2>&5 | |
16099 | ac_status=$? | |
16100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16101 | (exit $ac_status); }; }; then | |
16102 | ac_hi=$ac_mid; break | |
16103 | else | |
16104 | echo "$as_me: failed program was:" >&5 | |
16105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16106 | ||
16107 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16108 | if test $ac_lo -le $ac_mid; then |
16109 | ac_lo= ac_hi= | |
16110 | break | |
16111 | fi | |
16112 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16113 | fi |
ac1cb8d3 | 16114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16115 | done |
16116 | else | |
16117 | echo "$as_me: failed program was:" >&5 | |
16118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16119 | ||
16120 | cat >conftest.$ac_ext <<_ACEOF | |
16121 | /* confdefs.h. */ | |
16122 | _ACEOF | |
16123 | cat confdefs.h >>conftest.$ac_ext | |
16124 | cat >>conftest.$ac_ext <<_ACEOF | |
16125 | /* end confdefs.h. */ | |
16126 | $ac_includes_default | |
16127 | int | |
16128 | main () | |
16129 | { | |
16130 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16131 | test_array [0] = 0 | |
16132 | ||
16133 | ; | |
16134 | return 0; | |
16135 | } | |
16136 | _ACEOF | |
16137 | rm -f conftest.$ac_objext | |
16138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16139 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16140 | ac_status=$? |
ac1cb8d3 VS |
16141 | grep -v '^ *+' conftest.er1 >conftest.err |
16142 | rm -f conftest.er1 | |
16143 | cat conftest.err >&5 | |
a848cd7e SC |
16144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16145 | (exit $ac_status); } && | |
4d4ff94c | 16146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16148 | (eval $ac_try) 2>&5 | |
16149 | ac_status=$? | |
16150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16151 | (exit $ac_status); }; } && | |
16152 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16154 | (eval $ac_try) 2>&5 | |
16155 | ac_status=$? | |
16156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16157 | (exit $ac_status); }; }; then | |
16158 | ac_hi=-1 ac_mid=-1 | |
16159 | while :; do | |
16160 | cat >conftest.$ac_ext <<_ACEOF | |
16161 | /* confdefs.h. */ | |
16162 | _ACEOF | |
16163 | cat confdefs.h >>conftest.$ac_ext | |
16164 | cat >>conftest.$ac_ext <<_ACEOF | |
16165 | /* end confdefs.h. */ | |
16166 | $ac_includes_default | |
16167 | int | |
16168 | main () | |
16169 | { | |
16170 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16171 | test_array [0] = 0 | |
16172 | ||
16173 | ; | |
16174 | return 0; | |
16175 | } | |
16176 | _ACEOF | |
16177 | rm -f conftest.$ac_objext | |
16178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16179 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16180 | ac_status=$? |
ac1cb8d3 VS |
16181 | grep -v '^ *+' conftest.er1 >conftest.err |
16182 | rm -f conftest.er1 | |
16183 | cat conftest.err >&5 | |
a848cd7e SC |
16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16185 | (exit $ac_status); } && | |
4d4ff94c | 16186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16188 | (eval $ac_try) 2>&5 | |
16189 | ac_status=$? | |
16190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16191 | (exit $ac_status); }; } && | |
16192 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16194 | (eval $ac_try) 2>&5 | |
16195 | ac_status=$? | |
16196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16197 | (exit $ac_status); }; }; then | |
16198 | ac_lo=$ac_mid; break | |
16199 | else | |
16200 | echo "$as_me: failed program was:" >&5 | |
16201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16202 | ||
16203 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16204 | if test $ac_mid -le $ac_hi; then |
16205 | ac_lo= ac_hi= | |
16206 | break | |
16207 | fi | |
16208 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16209 | fi |
ac1cb8d3 | 16210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16211 | done |
16212 | else | |
16213 | echo "$as_me: failed program was:" >&5 | |
16214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16215 | ||
16216 | ac_lo= ac_hi= | |
16217 | fi | |
ac1cb8d3 | 16218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16219 | fi |
ac1cb8d3 | 16220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16221 | # Binary search between lo and hi bounds. |
16222 | while test "x$ac_lo" != "x$ac_hi"; do | |
16223 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16224 | cat >conftest.$ac_ext <<_ACEOF | |
16225 | /* confdefs.h. */ | |
16226 | _ACEOF | |
16227 | cat confdefs.h >>conftest.$ac_ext | |
16228 | cat >>conftest.$ac_ext <<_ACEOF | |
16229 | /* end confdefs.h. */ | |
16230 | $ac_includes_default | |
16231 | int | |
16232 | main () | |
16233 | { | |
16234 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16235 | test_array [0] = 0 | |
16236 | ||
16237 | ; | |
16238 | return 0; | |
16239 | } | |
16240 | _ACEOF | |
16241 | rm -f conftest.$ac_objext | |
16242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16243 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16244 | ac_status=$? |
ac1cb8d3 VS |
16245 | grep -v '^ *+' conftest.er1 >conftest.err |
16246 | rm -f conftest.er1 | |
16247 | cat conftest.err >&5 | |
a848cd7e SC |
16248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16249 | (exit $ac_status); } && | |
4d4ff94c | 16250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16252 | (eval $ac_try) 2>&5 | |
16253 | ac_status=$? | |
16254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16255 | (exit $ac_status); }; } && | |
16256 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16258 | (eval $ac_try) 2>&5 | |
16259 | ac_status=$? | |
16260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16261 | (exit $ac_status); }; }; then | |
16262 | ac_hi=$ac_mid | |
16263 | else | |
16264 | echo "$as_me: failed program was:" >&5 | |
16265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16266 | ||
16267 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16268 | fi | |
ac1cb8d3 | 16269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16270 | done |
16271 | case $ac_lo in | |
16272 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16273 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16274 | See \`config.log' for more details." >&5 | |
16275 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16276 | See \`config.log' for more details." >&2;} | |
16277 | { (exit 1); exit 1; }; } ;; | |
16278 | esac | |
16279 | else | |
16280 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
16281 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16282 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16283 | { (exit 1); exit 1; }; } |
16284 | else | |
16285 | cat >conftest.$ac_ext <<_ACEOF | |
16286 | /* confdefs.h. */ | |
16287 | _ACEOF | |
16288 | cat confdefs.h >>conftest.$ac_ext | |
16289 | cat >>conftest.$ac_ext <<_ACEOF | |
16290 | /* end confdefs.h. */ | |
16291 | $ac_includes_default | |
16292 | long longval () { return (long) (sizeof (long)); } | |
16293 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16294 | #include <stdio.h> | |
16295 | #include <stdlib.h> | |
16296 | int | |
16297 | main () | |
16298 | { | |
16299 | ||
16300 | FILE *f = fopen ("conftest.val", "w"); | |
16301 | if (! f) | |
16302 | exit (1); | |
16303 | if (((long) (sizeof (long))) < 0) | |
16304 | { | |
16305 | long i = longval (); | |
16306 | if (i != ((long) (sizeof (long)))) | |
16307 | exit (1); | |
16308 | fprintf (f, "%ld\n", i); | |
16309 | } | |
16310 | else | |
16311 | { | |
16312 | unsigned long i = ulongval (); | |
16313 | if (i != ((long) (sizeof (long)))) | |
16314 | exit (1); | |
16315 | fprintf (f, "%lu\n", i); | |
16316 | } | |
16317 | exit (ferror (f) || fclose (f) != 0); | |
16318 | ||
16319 | ; | |
16320 | return 0; | |
16321 | } | |
16322 | _ACEOF | |
16323 | rm -f conftest$ac_exeext | |
16324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16325 | (eval $ac_link) 2>&5 | |
16326 | ac_status=$? | |
16327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16328 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16330 | (eval $ac_try) 2>&5 | |
16331 | ac_status=$? | |
16332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16333 | (exit $ac_status); }; }; then | |
16334 | ac_cv_sizeof_long=`cat conftest.val` | |
16335 | else | |
16336 | echo "$as_me: program exited with status $ac_status" >&5 | |
16337 | echo "$as_me: failed program was:" >&5 | |
16338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16339 | ||
16340 | ( exit $ac_status ) | |
16341 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16342 | See \`config.log' for more details." >&5 | |
16343 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16344 | See \`config.log' for more details." >&2;} | |
16345 | { (exit 1); exit 1; }; } | |
16346 | fi | |
ac1cb8d3 | 16347 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16348 | fi |
16349 | fi | |
16350 | rm -f conftest.val | |
16351 | else | |
16352 | ac_cv_sizeof_long=0 | |
16353 | fi | |
16354 | fi | |
16355 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16356 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16357 | cat >>confdefs.h <<_ACEOF | |
16358 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16359 | _ACEOF | |
16360 | ||
16361 | ||
16362 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16363 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16364 | if test "${ac_cv_type_size_t+set}" = set; then | |
16365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16366 | else | |
16367 | cat >conftest.$ac_ext <<_ACEOF | |
16368 | /* confdefs.h. */ | |
16369 | _ACEOF | |
16370 | cat confdefs.h >>conftest.$ac_ext | |
16371 | cat >>conftest.$ac_ext <<_ACEOF | |
16372 | /* end confdefs.h. */ | |
16373 | $ac_includes_default | |
16374 | int | |
16375 | main () | |
16376 | { | |
16377 | if ((size_t *) 0) | |
16378 | return 0; | |
16379 | if (sizeof (size_t)) | |
16380 | return 0; | |
16381 | ; | |
16382 | return 0; | |
16383 | } | |
16384 | _ACEOF | |
16385 | rm -f conftest.$ac_objext | |
16386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16387 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16388 | ac_status=$? |
ac1cb8d3 VS |
16389 | grep -v '^ *+' conftest.er1 >conftest.err |
16390 | rm -f conftest.er1 | |
16391 | cat conftest.err >&5 | |
a848cd7e SC |
16392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16393 | (exit $ac_status); } && | |
4d4ff94c | 16394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16396 | (eval $ac_try) 2>&5 | |
16397 | ac_status=$? | |
16398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16399 | (exit $ac_status); }; } && | |
16400 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16402 | (eval $ac_try) 2>&5 | |
16403 | ac_status=$? | |
16404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16405 | (exit $ac_status); }; }; then | |
16406 | ac_cv_type_size_t=yes | |
16407 | else | |
16408 | echo "$as_me: failed program was:" >&5 | |
16409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16410 | ||
16411 | ac_cv_type_size_t=no | |
16412 | fi | |
ac1cb8d3 | 16413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16414 | fi |
16415 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16416 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16417 | ||
16418 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16419 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16420 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16422 | else | |
16423 | if test "$ac_cv_type_size_t" = yes; then | |
16424 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16425 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16426 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16427 | # This bug is HP SR number 8606223364. | |
16428 | if test "$cross_compiling" = yes; then | |
16429 | # Depending upon the size, compute the lo and hi bounds. | |
16430 | cat >conftest.$ac_ext <<_ACEOF | |
16431 | /* confdefs.h. */ | |
16432 | _ACEOF | |
16433 | cat confdefs.h >>conftest.$ac_ext | |
16434 | cat >>conftest.$ac_ext <<_ACEOF | |
16435 | /* end confdefs.h. */ | |
16436 | $ac_includes_default | |
16437 | int | |
16438 | main () | |
16439 | { | |
16440 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16441 | test_array [0] = 0 | |
16442 | ||
16443 | ; | |
16444 | return 0; | |
16445 | } | |
16446 | _ACEOF | |
16447 | rm -f conftest.$ac_objext | |
16448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16449 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16450 | ac_status=$? |
ac1cb8d3 VS |
16451 | grep -v '^ *+' conftest.er1 >conftest.err |
16452 | rm -f conftest.er1 | |
16453 | cat conftest.err >&5 | |
a848cd7e SC |
16454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16455 | (exit $ac_status); } && | |
4d4ff94c | 16456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16458 | (eval $ac_try) 2>&5 | |
16459 | ac_status=$? | |
16460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16461 | (exit $ac_status); }; } && | |
16462 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16464 | (eval $ac_try) 2>&5 | |
16465 | ac_status=$? | |
16466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16467 | (exit $ac_status); }; }; then | |
16468 | ac_lo=0 ac_mid=0 | |
16469 | while :; do | |
16470 | cat >conftest.$ac_ext <<_ACEOF | |
16471 | /* confdefs.h. */ | |
16472 | _ACEOF | |
16473 | cat confdefs.h >>conftest.$ac_ext | |
16474 | cat >>conftest.$ac_ext <<_ACEOF | |
16475 | /* end confdefs.h. */ | |
16476 | $ac_includes_default | |
16477 | int | |
16478 | main () | |
16479 | { | |
16480 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16481 | test_array [0] = 0 | |
16482 | ||
16483 | ; | |
16484 | return 0; | |
16485 | } | |
16486 | _ACEOF | |
16487 | rm -f conftest.$ac_objext | |
16488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16489 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16490 | ac_status=$? |
ac1cb8d3 VS |
16491 | grep -v '^ *+' conftest.er1 >conftest.err |
16492 | rm -f conftest.er1 | |
16493 | cat conftest.err >&5 | |
a848cd7e SC |
16494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16495 | (exit $ac_status); } && | |
4d4ff94c | 16496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16498 | (eval $ac_try) 2>&5 | |
16499 | ac_status=$? | |
16500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16501 | (exit $ac_status); }; } && | |
16502 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16504 | (eval $ac_try) 2>&5 | |
16505 | ac_status=$? | |
16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16507 | (exit $ac_status); }; }; then | |
16508 | ac_hi=$ac_mid; break | |
16509 | else | |
16510 | echo "$as_me: failed program was:" >&5 | |
16511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16512 | ||
16513 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16514 | if test $ac_lo -le $ac_mid; then |
16515 | ac_lo= ac_hi= | |
16516 | break | |
16517 | fi | |
16518 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16519 | fi |
ac1cb8d3 | 16520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16521 | done |
16522 | else | |
16523 | echo "$as_me: failed program was:" >&5 | |
16524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16525 | ||
16526 | cat >conftest.$ac_ext <<_ACEOF | |
16527 | /* confdefs.h. */ | |
16528 | _ACEOF | |
16529 | cat confdefs.h >>conftest.$ac_ext | |
16530 | cat >>conftest.$ac_ext <<_ACEOF | |
16531 | /* end confdefs.h. */ | |
16532 | $ac_includes_default | |
16533 | int | |
16534 | main () | |
16535 | { | |
16536 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16537 | test_array [0] = 0 | |
16538 | ||
16539 | ; | |
16540 | return 0; | |
16541 | } | |
16542 | _ACEOF | |
16543 | rm -f conftest.$ac_objext | |
16544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16545 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16546 | ac_status=$? |
ac1cb8d3 VS |
16547 | grep -v '^ *+' conftest.er1 >conftest.err |
16548 | rm -f conftest.er1 | |
16549 | cat conftest.err >&5 | |
a848cd7e SC |
16550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16551 | (exit $ac_status); } && | |
4d4ff94c | 16552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16554 | (eval $ac_try) 2>&5 | |
16555 | ac_status=$? | |
16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16557 | (exit $ac_status); }; } && | |
16558 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16560 | (eval $ac_try) 2>&5 | |
16561 | ac_status=$? | |
16562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16563 | (exit $ac_status); }; }; then | |
16564 | ac_hi=-1 ac_mid=-1 | |
16565 | while :; do | |
16566 | cat >conftest.$ac_ext <<_ACEOF | |
16567 | /* confdefs.h. */ | |
16568 | _ACEOF | |
16569 | cat confdefs.h >>conftest.$ac_ext | |
16570 | cat >>conftest.$ac_ext <<_ACEOF | |
16571 | /* end confdefs.h. */ | |
16572 | $ac_includes_default | |
16573 | int | |
16574 | main () | |
16575 | { | |
16576 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16577 | test_array [0] = 0 | |
16578 | ||
16579 | ; | |
16580 | return 0; | |
16581 | } | |
16582 | _ACEOF | |
16583 | rm -f conftest.$ac_objext | |
16584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16585 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16586 | ac_status=$? |
ac1cb8d3 VS |
16587 | grep -v '^ *+' conftest.er1 >conftest.err |
16588 | rm -f conftest.er1 | |
16589 | cat conftest.err >&5 | |
a848cd7e SC |
16590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16591 | (exit $ac_status); } && | |
4d4ff94c | 16592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16594 | (eval $ac_try) 2>&5 | |
16595 | ac_status=$? | |
16596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16597 | (exit $ac_status); }; } && | |
16598 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16600 | (eval $ac_try) 2>&5 | |
16601 | ac_status=$? | |
16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16603 | (exit $ac_status); }; }; then | |
16604 | ac_lo=$ac_mid; break | |
16605 | else | |
16606 | echo "$as_me: failed program was:" >&5 | |
16607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16608 | ||
16609 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16610 | if test $ac_mid -le $ac_hi; then |
16611 | ac_lo= ac_hi= | |
16612 | break | |
16613 | fi | |
16614 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16615 | fi |
ac1cb8d3 | 16616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16617 | done |
16618 | else | |
16619 | echo "$as_me: failed program was:" >&5 | |
16620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16621 | ||
16622 | ac_lo= ac_hi= | |
16623 | fi | |
ac1cb8d3 | 16624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16625 | fi |
ac1cb8d3 | 16626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16627 | # Binary search between lo and hi bounds. |
16628 | while test "x$ac_lo" != "x$ac_hi"; do | |
16629 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16630 | cat >conftest.$ac_ext <<_ACEOF | |
16631 | /* confdefs.h. */ | |
16632 | _ACEOF | |
16633 | cat confdefs.h >>conftest.$ac_ext | |
16634 | cat >>conftest.$ac_ext <<_ACEOF | |
16635 | /* end confdefs.h. */ | |
16636 | $ac_includes_default | |
16637 | int | |
16638 | main () | |
16639 | { | |
16640 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16641 | test_array [0] = 0 | |
16642 | ||
16643 | ; | |
16644 | return 0; | |
16645 | } | |
16646 | _ACEOF | |
16647 | rm -f conftest.$ac_objext | |
16648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16649 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16650 | ac_status=$? |
ac1cb8d3 VS |
16651 | grep -v '^ *+' conftest.er1 >conftest.err |
16652 | rm -f conftest.er1 | |
16653 | cat conftest.err >&5 | |
a848cd7e SC |
16654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16655 | (exit $ac_status); } && | |
4d4ff94c | 16656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16658 | (eval $ac_try) 2>&5 | |
16659 | ac_status=$? | |
16660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16661 | (exit $ac_status); }; } && | |
16662 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16664 | (eval $ac_try) 2>&5 | |
16665 | ac_status=$? | |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16667 | (exit $ac_status); }; }; then | |
16668 | ac_hi=$ac_mid | |
16669 | else | |
16670 | echo "$as_me: failed program was:" >&5 | |
16671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16672 | ||
16673 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16674 | fi | |
ac1cb8d3 | 16675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16676 | done |
16677 | case $ac_lo in | |
16678 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16679 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16680 | See \`config.log' for more details." >&5 | |
16681 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16682 | See \`config.log' for more details." >&2;} | |
16683 | { (exit 1); exit 1; }; } ;; | |
16684 | esac | |
16685 | else | |
16686 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
16687 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16688 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16689 | { (exit 1); exit 1; }; } |
16690 | else | |
16691 | cat >conftest.$ac_ext <<_ACEOF | |
16692 | /* confdefs.h. */ | |
16693 | _ACEOF | |
16694 | cat confdefs.h >>conftest.$ac_ext | |
16695 | cat >>conftest.$ac_ext <<_ACEOF | |
16696 | /* end confdefs.h. */ | |
16697 | $ac_includes_default | |
16698 | long longval () { return (long) (sizeof (size_t)); } | |
16699 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16700 | #include <stdio.h> | |
16701 | #include <stdlib.h> | |
16702 | int | |
16703 | main () | |
16704 | { | |
16705 | ||
16706 | FILE *f = fopen ("conftest.val", "w"); | |
16707 | if (! f) | |
16708 | exit (1); | |
16709 | if (((long) (sizeof (size_t))) < 0) | |
16710 | { | |
16711 | long i = longval (); | |
16712 | if (i != ((long) (sizeof (size_t)))) | |
16713 | exit (1); | |
16714 | fprintf (f, "%ld\n", i); | |
16715 | } | |
16716 | else | |
16717 | { | |
16718 | unsigned long i = ulongval (); | |
16719 | if (i != ((long) (sizeof (size_t)))) | |
16720 | exit (1); | |
16721 | fprintf (f, "%lu\n", i); | |
16722 | } | |
16723 | exit (ferror (f) || fclose (f) != 0); | |
16724 | ||
16725 | ; | |
16726 | return 0; | |
16727 | } | |
16728 | _ACEOF | |
16729 | rm -f conftest$ac_exeext | |
16730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16731 | (eval $ac_link) 2>&5 | |
16732 | ac_status=$? | |
16733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16734 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16736 | (eval $ac_try) 2>&5 | |
16737 | ac_status=$? | |
16738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16739 | (exit $ac_status); }; }; then | |
16740 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16741 | else | |
16742 | echo "$as_me: program exited with status $ac_status" >&5 | |
16743 | echo "$as_me: failed program was:" >&5 | |
16744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16745 | ||
16746 | ( exit $ac_status ) | |
16747 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16748 | See \`config.log' for more details." >&5 | |
16749 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16750 | See \`config.log' for more details." >&2;} | |
16751 | { (exit 1); exit 1; }; } | |
16752 | fi | |
ac1cb8d3 | 16753 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16754 | fi |
16755 | fi | |
16756 | rm -f conftest.val | |
16757 | else | |
16758 | ac_cv_sizeof_size_t=0 | |
16759 | fi | |
16760 | fi | |
16761 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16762 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16763 | cat >>confdefs.h <<_ACEOF | |
16764 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16765 | _ACEOF | |
16766 | ||
16767 | ||
16768 | ||
16769 | case "${host}" in | |
16770 | arm-*-linux* ) | |
16771 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16772 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16773 | if test "${ac_cv_type_long_long+set}" = set; then | |
16774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16775 | else | |
16776 | cat >conftest.$ac_ext <<_ACEOF | |
16777 | /* confdefs.h. */ | |
16778 | _ACEOF | |
16779 | cat confdefs.h >>conftest.$ac_ext | |
16780 | cat >>conftest.$ac_ext <<_ACEOF | |
16781 | /* end confdefs.h. */ | |
16782 | $ac_includes_default | |
16783 | int | |
16784 | main () | |
16785 | { | |
16786 | if ((long long *) 0) | |
16787 | return 0; | |
16788 | if (sizeof (long long)) | |
16789 | return 0; | |
16790 | ; | |
16791 | return 0; | |
16792 | } | |
16793 | _ACEOF | |
16794 | rm -f conftest.$ac_objext | |
16795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16796 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16797 | ac_status=$? |
ac1cb8d3 VS |
16798 | grep -v '^ *+' conftest.er1 >conftest.err |
16799 | rm -f conftest.er1 | |
16800 | cat conftest.err >&5 | |
a848cd7e SC |
16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16802 | (exit $ac_status); } && | |
4d4ff94c | 16803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16805 | (eval $ac_try) 2>&5 | |
16806 | ac_status=$? | |
16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16808 | (exit $ac_status); }; } && | |
16809 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16811 | (eval $ac_try) 2>&5 | |
16812 | ac_status=$? | |
16813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16814 | (exit $ac_status); }; }; then | |
16815 | ac_cv_type_long_long=yes | |
16816 | else | |
16817 | echo "$as_me: failed program was:" >&5 | |
16818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16819 | ||
16820 | ac_cv_type_long_long=no | |
16821 | fi | |
ac1cb8d3 | 16822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16823 | fi |
16824 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16825 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16826 | ||
16827 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16828 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16829 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16831 | else | |
16832 | if test "$ac_cv_type_long_long" = yes; then | |
16833 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16834 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16835 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16836 | # This bug is HP SR number 8606223364. | |
16837 | if test "$cross_compiling" = yes; then | |
16838 | # Depending upon the size, compute the lo and hi bounds. | |
16839 | cat >conftest.$ac_ext <<_ACEOF | |
16840 | /* confdefs.h. */ | |
16841 | _ACEOF | |
16842 | cat confdefs.h >>conftest.$ac_ext | |
16843 | cat >>conftest.$ac_ext <<_ACEOF | |
16844 | /* end confdefs.h. */ | |
16845 | $ac_includes_default | |
16846 | int | |
16847 | main () | |
16848 | { | |
16849 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16850 | test_array [0] = 0 | |
16851 | ||
16852 | ; | |
16853 | return 0; | |
16854 | } | |
16855 | _ACEOF | |
16856 | rm -f conftest.$ac_objext | |
16857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16858 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16859 | ac_status=$? |
ac1cb8d3 VS |
16860 | grep -v '^ *+' conftest.er1 >conftest.err |
16861 | rm -f conftest.er1 | |
16862 | cat conftest.err >&5 | |
a848cd7e SC |
16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16864 | (exit $ac_status); } && | |
4d4ff94c | 16865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16867 | (eval $ac_try) 2>&5 | |
16868 | ac_status=$? | |
16869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16870 | (exit $ac_status); }; } && | |
16871 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16873 | (eval $ac_try) 2>&5 | |
16874 | ac_status=$? | |
16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16876 | (exit $ac_status); }; }; then | |
16877 | ac_lo=0 ac_mid=0 | |
16878 | while :; do | |
16879 | cat >conftest.$ac_ext <<_ACEOF | |
16880 | /* confdefs.h. */ | |
16881 | _ACEOF | |
16882 | cat confdefs.h >>conftest.$ac_ext | |
16883 | cat >>conftest.$ac_ext <<_ACEOF | |
16884 | /* end confdefs.h. */ | |
16885 | $ac_includes_default | |
16886 | int | |
16887 | main () | |
16888 | { | |
16889 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16890 | test_array [0] = 0 | |
16891 | ||
16892 | ; | |
16893 | return 0; | |
16894 | } | |
16895 | _ACEOF | |
16896 | rm -f conftest.$ac_objext | |
16897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16898 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16899 | ac_status=$? |
ac1cb8d3 VS |
16900 | grep -v '^ *+' conftest.er1 >conftest.err |
16901 | rm -f conftest.er1 | |
16902 | cat conftest.err >&5 | |
a848cd7e SC |
16903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16904 | (exit $ac_status); } && | |
4d4ff94c | 16905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16907 | (eval $ac_try) 2>&5 | |
16908 | ac_status=$? | |
16909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16910 | (exit $ac_status); }; } && | |
16911 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16913 | (eval $ac_try) 2>&5 | |
16914 | ac_status=$? | |
16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16916 | (exit $ac_status); }; }; then | |
16917 | ac_hi=$ac_mid; break | |
16918 | else | |
16919 | echo "$as_me: failed program was:" >&5 | |
16920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16921 | ||
16922 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16923 | if test $ac_lo -le $ac_mid; then |
16924 | ac_lo= ac_hi= | |
16925 | break | |
16926 | fi | |
16927 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16928 | fi |
ac1cb8d3 | 16929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16930 | done |
16931 | else | |
16932 | echo "$as_me: failed program was:" >&5 | |
16933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16934 | ||
16935 | cat >conftest.$ac_ext <<_ACEOF | |
16936 | /* confdefs.h. */ | |
16937 | _ACEOF | |
16938 | cat confdefs.h >>conftest.$ac_ext | |
16939 | cat >>conftest.$ac_ext <<_ACEOF | |
16940 | /* end confdefs.h. */ | |
16941 | $ac_includes_default | |
16942 | int | |
16943 | main () | |
16944 | { | |
16945 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16946 | test_array [0] = 0 | |
16947 | ||
16948 | ; | |
16949 | return 0; | |
16950 | } | |
16951 | _ACEOF | |
16952 | rm -f conftest.$ac_objext | |
16953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16954 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16955 | ac_status=$? |
ac1cb8d3 VS |
16956 | grep -v '^ *+' conftest.er1 >conftest.err |
16957 | rm -f conftest.er1 | |
16958 | cat conftest.err >&5 | |
a848cd7e SC |
16959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16960 | (exit $ac_status); } && | |
4d4ff94c | 16961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16963 | (eval $ac_try) 2>&5 | |
16964 | ac_status=$? | |
16965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16966 | (exit $ac_status); }; } && | |
16967 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16969 | (eval $ac_try) 2>&5 | |
16970 | ac_status=$? | |
16971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16972 | (exit $ac_status); }; }; then | |
16973 | ac_hi=-1 ac_mid=-1 | |
16974 | while :; do | |
16975 | cat >conftest.$ac_ext <<_ACEOF | |
16976 | /* confdefs.h. */ | |
16977 | _ACEOF | |
16978 | cat confdefs.h >>conftest.$ac_ext | |
16979 | cat >>conftest.$ac_ext <<_ACEOF | |
16980 | /* end confdefs.h. */ | |
16981 | $ac_includes_default | |
16982 | int | |
16983 | main () | |
16984 | { | |
16985 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16986 | test_array [0] = 0 | |
16987 | ||
16988 | ; | |
16989 | return 0; | |
16990 | } | |
16991 | _ACEOF | |
16992 | rm -f conftest.$ac_objext | |
16993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16994 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16995 | ac_status=$? |
ac1cb8d3 VS |
16996 | grep -v '^ *+' conftest.er1 >conftest.err |
16997 | rm -f conftest.er1 | |
16998 | cat conftest.err >&5 | |
a848cd7e SC |
16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17000 | (exit $ac_status); } && | |
4d4ff94c | 17001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17003 | (eval $ac_try) 2>&5 | |
17004 | ac_status=$? | |
17005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17006 | (exit $ac_status); }; } && | |
17007 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17009 | (eval $ac_try) 2>&5 | |
17010 | ac_status=$? | |
17011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17012 | (exit $ac_status); }; }; then | |
17013 | ac_lo=$ac_mid; break | |
17014 | else | |
17015 | echo "$as_me: failed program was:" >&5 | |
17016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17017 | ||
17018 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17019 | if test $ac_mid -le $ac_hi; then |
17020 | ac_lo= ac_hi= | |
17021 | break | |
17022 | fi | |
17023 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17024 | fi |
ac1cb8d3 | 17025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17026 | done |
17027 | else | |
17028 | echo "$as_me: failed program was:" >&5 | |
17029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17030 | ||
17031 | ac_lo= ac_hi= | |
17032 | fi | |
ac1cb8d3 | 17033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17034 | fi |
ac1cb8d3 | 17035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17036 | # Binary search between lo and hi bounds. |
17037 | while test "x$ac_lo" != "x$ac_hi"; do | |
17038 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17039 | cat >conftest.$ac_ext <<_ACEOF | |
17040 | /* confdefs.h. */ | |
17041 | _ACEOF | |
17042 | cat confdefs.h >>conftest.$ac_ext | |
17043 | cat >>conftest.$ac_ext <<_ACEOF | |
17044 | /* end confdefs.h. */ | |
17045 | $ac_includes_default | |
17046 | int | |
17047 | main () | |
17048 | { | |
17049 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17050 | test_array [0] = 0 | |
17051 | ||
17052 | ; | |
17053 | return 0; | |
17054 | } | |
17055 | _ACEOF | |
17056 | rm -f conftest.$ac_objext | |
17057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17059 | ac_status=$? |
ac1cb8d3 VS |
17060 | grep -v '^ *+' conftest.er1 >conftest.err |
17061 | rm -f conftest.er1 | |
17062 | cat conftest.err >&5 | |
a848cd7e SC |
17063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17064 | (exit $ac_status); } && | |
4d4ff94c | 17065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17067 | (eval $ac_try) 2>&5 | |
17068 | ac_status=$? | |
17069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17070 | (exit $ac_status); }; } && | |
17071 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17073 | (eval $ac_try) 2>&5 | |
17074 | ac_status=$? | |
17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17076 | (exit $ac_status); }; }; then | |
17077 | ac_hi=$ac_mid | |
17078 | else | |
17079 | echo "$as_me: failed program was:" >&5 | |
17080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17081 | ||
17082 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17083 | fi | |
ac1cb8d3 | 17084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17085 | done |
17086 | case $ac_lo in | |
17087 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17088 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17089 | See \`config.log' for more details." >&5 | |
17090 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17091 | See \`config.log' for more details." >&2;} | |
17092 | { (exit 1); exit 1; }; } ;; | |
17093 | esac | |
17094 | else | |
17095 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
17096 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17097 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17098 | { (exit 1); exit 1; }; } |
17099 | else | |
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 | long longval () { return (long) (sizeof (long long)); } | |
17108 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17109 | #include <stdio.h> | |
17110 | #include <stdlib.h> | |
17111 | int | |
17112 | main () | |
17113 | { | |
17114 | ||
17115 | FILE *f = fopen ("conftest.val", "w"); | |
17116 | if (! f) | |
17117 | exit (1); | |
17118 | if (((long) (sizeof (long long))) < 0) | |
17119 | { | |
17120 | long i = longval (); | |
17121 | if (i != ((long) (sizeof (long long)))) | |
17122 | exit (1); | |
17123 | fprintf (f, "%ld\n", i); | |
17124 | } | |
17125 | else | |
17126 | { | |
17127 | unsigned long i = ulongval (); | |
17128 | if (i != ((long) (sizeof (long long)))) | |
17129 | exit (1); | |
17130 | fprintf (f, "%lu\n", i); | |
17131 | } | |
17132 | exit (ferror (f) || fclose (f) != 0); | |
17133 | ||
17134 | ; | |
17135 | return 0; | |
17136 | } | |
17137 | _ACEOF | |
17138 | rm -f conftest$ac_exeext | |
17139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17140 | (eval $ac_link) 2>&5 | |
17141 | ac_status=$? | |
17142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17143 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17145 | (eval $ac_try) 2>&5 | |
17146 | ac_status=$? | |
17147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17148 | (exit $ac_status); }; }; then | |
17149 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17150 | else | |
17151 | echo "$as_me: program exited with status $ac_status" >&5 | |
17152 | echo "$as_me: failed program was:" >&5 | |
17153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17154 | ||
17155 | ( exit $ac_status ) | |
17156 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17157 | See \`config.log' for more details." >&5 | |
17158 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17159 | See \`config.log' for more details." >&2;} | |
17160 | { (exit 1); exit 1; }; } | |
17161 | fi | |
ac1cb8d3 | 17162 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17163 | fi |
17164 | fi | |
17165 | rm -f conftest.val | |
17166 | else | |
17167 | ac_cv_sizeof_long_long=0 | |
17168 | fi | |
17169 | fi | |
17170 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17171 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17172 | cat >>confdefs.h <<_ACEOF | |
17173 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17174 | _ACEOF | |
17175 | ||
17176 | ||
17177 | ;; | |
17178 | *-hp-hpux* ) | |
17179 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17180 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17181 | if test "${ac_cv_type_long_long+set}" = set; then | |
17182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17183 | else | |
17184 | cat >conftest.$ac_ext <<_ACEOF | |
17185 | /* confdefs.h. */ | |
17186 | _ACEOF | |
17187 | cat confdefs.h >>conftest.$ac_ext | |
17188 | cat >>conftest.$ac_ext <<_ACEOF | |
17189 | /* end confdefs.h. */ | |
17190 | $ac_includes_default | |
17191 | int | |
17192 | main () | |
17193 | { | |
17194 | if ((long long *) 0) | |
17195 | return 0; | |
17196 | if (sizeof (long long)) | |
17197 | return 0; | |
17198 | ; | |
17199 | return 0; | |
17200 | } | |
17201 | _ACEOF | |
17202 | rm -f conftest.$ac_objext | |
17203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17204 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17205 | ac_status=$? |
ac1cb8d3 VS |
17206 | grep -v '^ *+' conftest.er1 >conftest.err |
17207 | rm -f conftest.er1 | |
17208 | cat conftest.err >&5 | |
a848cd7e SC |
17209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17210 | (exit $ac_status); } && | |
4d4ff94c | 17211 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17213 | (eval $ac_try) 2>&5 | |
17214 | ac_status=$? | |
17215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17216 | (exit $ac_status); }; } && | |
17217 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17219 | (eval $ac_try) 2>&5 | |
17220 | ac_status=$? | |
17221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17222 | (exit $ac_status); }; }; then | |
17223 | ac_cv_type_long_long=yes | |
17224 | else | |
17225 | echo "$as_me: failed program was:" >&5 | |
17226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17227 | ||
17228 | ac_cv_type_long_long=no | |
17229 | fi | |
ac1cb8d3 | 17230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17231 | fi |
17232 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17233 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17234 | ||
17235 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17236 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17237 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17239 | else | |
17240 | if test "$ac_cv_type_long_long" = yes; then | |
17241 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17242 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17243 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17244 | # This bug is HP SR number 8606223364. | |
17245 | if test "$cross_compiling" = yes; then | |
17246 | # Depending upon the size, compute the lo and hi bounds. | |
17247 | cat >conftest.$ac_ext <<_ACEOF | |
17248 | /* confdefs.h. */ | |
17249 | _ACEOF | |
17250 | cat confdefs.h >>conftest.$ac_ext | |
17251 | cat >>conftest.$ac_ext <<_ACEOF | |
17252 | /* end confdefs.h. */ | |
17253 | $ac_includes_default | |
17254 | int | |
17255 | main () | |
17256 | { | |
17257 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17258 | test_array [0] = 0 | |
17259 | ||
17260 | ; | |
17261 | return 0; | |
17262 | } | |
17263 | _ACEOF | |
17264 | rm -f conftest.$ac_objext | |
17265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17266 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17267 | ac_status=$? |
ac1cb8d3 VS |
17268 | grep -v '^ *+' conftest.er1 >conftest.err |
17269 | rm -f conftest.er1 | |
17270 | cat conftest.err >&5 | |
a848cd7e SC |
17271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17272 | (exit $ac_status); } && | |
4d4ff94c | 17273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17275 | (eval $ac_try) 2>&5 | |
17276 | ac_status=$? | |
17277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17278 | (exit $ac_status); }; } && | |
17279 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17281 | (eval $ac_try) 2>&5 | |
17282 | ac_status=$? | |
17283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17284 | (exit $ac_status); }; }; then | |
17285 | ac_lo=0 ac_mid=0 | |
17286 | while :; do | |
17287 | cat >conftest.$ac_ext <<_ACEOF | |
17288 | /* confdefs.h. */ | |
17289 | _ACEOF | |
17290 | cat confdefs.h >>conftest.$ac_ext | |
17291 | cat >>conftest.$ac_ext <<_ACEOF | |
17292 | /* end confdefs.h. */ | |
17293 | $ac_includes_default | |
17294 | int | |
17295 | main () | |
17296 | { | |
17297 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17298 | test_array [0] = 0 | |
17299 | ||
17300 | ; | |
17301 | return 0; | |
17302 | } | |
17303 | _ACEOF | |
17304 | rm -f conftest.$ac_objext | |
17305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17306 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17307 | ac_status=$? |
ac1cb8d3 VS |
17308 | grep -v '^ *+' conftest.er1 >conftest.err |
17309 | rm -f conftest.er1 | |
17310 | cat conftest.err >&5 | |
a848cd7e SC |
17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17312 | (exit $ac_status); } && | |
4d4ff94c | 17313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17315 | (eval $ac_try) 2>&5 | |
17316 | ac_status=$? | |
17317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17318 | (exit $ac_status); }; } && | |
17319 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17321 | (eval $ac_try) 2>&5 | |
17322 | ac_status=$? | |
17323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17324 | (exit $ac_status); }; }; then | |
17325 | ac_hi=$ac_mid; break | |
17326 | else | |
17327 | echo "$as_me: failed program was:" >&5 | |
17328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17329 | ||
17330 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17331 | if test $ac_lo -le $ac_mid; then |
17332 | ac_lo= ac_hi= | |
17333 | break | |
17334 | fi | |
17335 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17336 | fi |
ac1cb8d3 | 17337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17338 | done |
17339 | else | |
17340 | echo "$as_me: failed program was:" >&5 | |
17341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17342 | ||
17343 | cat >conftest.$ac_ext <<_ACEOF | |
17344 | /* confdefs.h. */ | |
17345 | _ACEOF | |
17346 | cat confdefs.h >>conftest.$ac_ext | |
17347 | cat >>conftest.$ac_ext <<_ACEOF | |
17348 | /* end confdefs.h. */ | |
17349 | $ac_includes_default | |
17350 | int | |
17351 | main () | |
17352 | { | |
17353 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17354 | test_array [0] = 0 | |
17355 | ||
17356 | ; | |
17357 | return 0; | |
17358 | } | |
17359 | _ACEOF | |
17360 | rm -f conftest.$ac_objext | |
17361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17362 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17363 | ac_status=$? |
ac1cb8d3 VS |
17364 | grep -v '^ *+' conftest.er1 >conftest.err |
17365 | rm -f conftest.er1 | |
17366 | cat conftest.err >&5 | |
a848cd7e SC |
17367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17368 | (exit $ac_status); } && | |
4d4ff94c | 17369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17371 | (eval $ac_try) 2>&5 | |
17372 | ac_status=$? | |
17373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17374 | (exit $ac_status); }; } && | |
17375 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17377 | (eval $ac_try) 2>&5 | |
17378 | ac_status=$? | |
17379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17380 | (exit $ac_status); }; }; then | |
17381 | ac_hi=-1 ac_mid=-1 | |
17382 | while :; do | |
17383 | cat >conftest.$ac_ext <<_ACEOF | |
17384 | /* confdefs.h. */ | |
17385 | _ACEOF | |
17386 | cat confdefs.h >>conftest.$ac_ext | |
17387 | cat >>conftest.$ac_ext <<_ACEOF | |
17388 | /* end confdefs.h. */ | |
17389 | $ac_includes_default | |
17390 | int | |
17391 | main () | |
17392 | { | |
17393 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17394 | test_array [0] = 0 | |
17395 | ||
17396 | ; | |
17397 | return 0; | |
17398 | } | |
17399 | _ACEOF | |
17400 | rm -f conftest.$ac_objext | |
17401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17402 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17403 | ac_status=$? |
ac1cb8d3 VS |
17404 | grep -v '^ *+' conftest.er1 >conftest.err |
17405 | rm -f conftest.er1 | |
17406 | cat conftest.err >&5 | |
a848cd7e SC |
17407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17408 | (exit $ac_status); } && | |
4d4ff94c | 17409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17411 | (eval $ac_try) 2>&5 | |
17412 | ac_status=$? | |
17413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17414 | (exit $ac_status); }; } && | |
17415 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17417 | (eval $ac_try) 2>&5 | |
17418 | ac_status=$? | |
17419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17420 | (exit $ac_status); }; }; then | |
17421 | ac_lo=$ac_mid; break | |
17422 | else | |
17423 | echo "$as_me: failed program was:" >&5 | |
17424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17425 | ||
17426 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17427 | if test $ac_mid -le $ac_hi; then |
17428 | ac_lo= ac_hi= | |
17429 | break | |
17430 | fi | |
17431 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17432 | fi |
ac1cb8d3 | 17433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17434 | done |
17435 | else | |
17436 | echo "$as_me: failed program was:" >&5 | |
17437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17438 | ||
17439 | ac_lo= ac_hi= | |
17440 | fi | |
ac1cb8d3 | 17441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17442 | fi |
ac1cb8d3 | 17443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17444 | # Binary search between lo and hi bounds. |
17445 | while test "x$ac_lo" != "x$ac_hi"; do | |
17446 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17447 | cat >conftest.$ac_ext <<_ACEOF | |
17448 | /* confdefs.h. */ | |
17449 | _ACEOF | |
17450 | cat confdefs.h >>conftest.$ac_ext | |
17451 | cat >>conftest.$ac_ext <<_ACEOF | |
17452 | /* end confdefs.h. */ | |
17453 | $ac_includes_default | |
17454 | int | |
17455 | main () | |
17456 | { | |
17457 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17458 | test_array [0] = 0 | |
17459 | ||
17460 | ; | |
17461 | return 0; | |
17462 | } | |
17463 | _ACEOF | |
17464 | rm -f conftest.$ac_objext | |
17465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17466 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17467 | ac_status=$? |
ac1cb8d3 VS |
17468 | grep -v '^ *+' conftest.er1 >conftest.err |
17469 | rm -f conftest.er1 | |
17470 | cat conftest.err >&5 | |
a848cd7e SC |
17471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17472 | (exit $ac_status); } && | |
4d4ff94c | 17473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17475 | (eval $ac_try) 2>&5 | |
17476 | ac_status=$? | |
17477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17478 | (exit $ac_status); }; } && | |
17479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17481 | (eval $ac_try) 2>&5 | |
17482 | ac_status=$? | |
17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17484 | (exit $ac_status); }; }; then | |
17485 | ac_hi=$ac_mid | |
17486 | else | |
17487 | echo "$as_me: failed program was:" >&5 | |
17488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17489 | ||
17490 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17491 | fi | |
ac1cb8d3 | 17492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17493 | done |
17494 | case $ac_lo in | |
17495 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17496 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17497 | See \`config.log' for more details." >&5 | |
17498 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17499 | See \`config.log' for more details." >&2;} | |
17500 | { (exit 1); exit 1; }; } ;; | |
17501 | esac | |
17502 | else | |
17503 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
17504 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17505 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17506 | { (exit 1); exit 1; }; } |
17507 | else | |
17508 | cat >conftest.$ac_ext <<_ACEOF | |
17509 | /* confdefs.h. */ | |
17510 | _ACEOF | |
17511 | cat confdefs.h >>conftest.$ac_ext | |
17512 | cat >>conftest.$ac_ext <<_ACEOF | |
17513 | /* end confdefs.h. */ | |
17514 | $ac_includes_default | |
17515 | long longval () { return (long) (sizeof (long long)); } | |
17516 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17517 | #include <stdio.h> | |
17518 | #include <stdlib.h> | |
17519 | int | |
17520 | main () | |
17521 | { | |
17522 | ||
17523 | FILE *f = fopen ("conftest.val", "w"); | |
17524 | if (! f) | |
17525 | exit (1); | |
17526 | if (((long) (sizeof (long long))) < 0) | |
17527 | { | |
17528 | long i = longval (); | |
17529 | if (i != ((long) (sizeof (long long)))) | |
17530 | exit (1); | |
17531 | fprintf (f, "%ld\n", i); | |
17532 | } | |
17533 | else | |
17534 | { | |
17535 | unsigned long i = ulongval (); | |
17536 | if (i != ((long) (sizeof (long long)))) | |
17537 | exit (1); | |
17538 | fprintf (f, "%lu\n", i); | |
17539 | } | |
17540 | exit (ferror (f) || fclose (f) != 0); | |
17541 | ||
17542 | ; | |
17543 | return 0; | |
17544 | } | |
17545 | _ACEOF | |
17546 | rm -f conftest$ac_exeext | |
17547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17548 | (eval $ac_link) 2>&5 | |
17549 | ac_status=$? | |
17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17551 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17553 | (eval $ac_try) 2>&5 | |
17554 | ac_status=$? | |
17555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17556 | (exit $ac_status); }; }; then | |
17557 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17558 | else | |
17559 | echo "$as_me: program exited with status $ac_status" >&5 | |
17560 | echo "$as_me: failed program was:" >&5 | |
17561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17562 | ||
17563 | ( exit $ac_status ) | |
17564 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17565 | See \`config.log' for more details." >&5 | |
17566 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17567 | See \`config.log' for more details." >&2;} | |
17568 | { (exit 1); exit 1; }; } | |
17569 | fi | |
ac1cb8d3 | 17570 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17571 | fi |
17572 | fi | |
17573 | rm -f conftest.val | |
17574 | else | |
17575 | ac_cv_sizeof_long_long=0 | |
17576 | fi | |
17577 | fi | |
17578 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17579 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17580 | cat >>confdefs.h <<_ACEOF | |
17581 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17582 | _ACEOF | |
17583 | ||
17584 | ||
17585 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17586 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17587 | fi | |
17588 | ;; | |
17589 | * ) | |
17590 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17591 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17592 | if test "${ac_cv_type_long_long+set}" = set; then | |
17593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17594 | else | |
17595 | cat >conftest.$ac_ext <<_ACEOF | |
17596 | /* confdefs.h. */ | |
17597 | _ACEOF | |
17598 | cat confdefs.h >>conftest.$ac_ext | |
17599 | cat >>conftest.$ac_ext <<_ACEOF | |
17600 | /* end confdefs.h. */ | |
17601 | $ac_includes_default | |
17602 | int | |
17603 | main () | |
17604 | { | |
17605 | if ((long long *) 0) | |
17606 | return 0; | |
17607 | if (sizeof (long long)) | |
17608 | return 0; | |
17609 | ; | |
17610 | return 0; | |
17611 | } | |
17612 | _ACEOF | |
17613 | rm -f conftest.$ac_objext | |
17614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17615 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17616 | ac_status=$? |
ac1cb8d3 VS |
17617 | grep -v '^ *+' conftest.er1 >conftest.err |
17618 | rm -f conftest.er1 | |
17619 | cat conftest.err >&5 | |
a848cd7e SC |
17620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17621 | (exit $ac_status); } && | |
4d4ff94c | 17622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17624 | (eval $ac_try) 2>&5 | |
17625 | ac_status=$? | |
17626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17627 | (exit $ac_status); }; } && | |
17628 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17630 | (eval $ac_try) 2>&5 | |
17631 | ac_status=$? | |
17632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17633 | (exit $ac_status); }; }; then | |
17634 | ac_cv_type_long_long=yes | |
17635 | else | |
17636 | echo "$as_me: failed program was:" >&5 | |
17637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17638 | ||
17639 | ac_cv_type_long_long=no | |
17640 | fi | |
ac1cb8d3 | 17641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17642 | fi |
17643 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17644 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17645 | ||
17646 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17647 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17648 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17650 | else | |
17651 | if test "$ac_cv_type_long_long" = yes; then | |
17652 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17653 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17654 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17655 | # This bug is HP SR number 8606223364. | |
17656 | if test "$cross_compiling" = yes; then | |
17657 | # Depending upon the size, compute the lo and hi bounds. | |
17658 | cat >conftest.$ac_ext <<_ACEOF | |
17659 | /* confdefs.h. */ | |
17660 | _ACEOF | |
17661 | cat confdefs.h >>conftest.$ac_ext | |
17662 | cat >>conftest.$ac_ext <<_ACEOF | |
17663 | /* end confdefs.h. */ | |
17664 | $ac_includes_default | |
17665 | int | |
17666 | main () | |
17667 | { | |
17668 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17669 | test_array [0] = 0 | |
17670 | ||
17671 | ; | |
17672 | return 0; | |
17673 | } | |
17674 | _ACEOF | |
17675 | rm -f conftest.$ac_objext | |
17676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17677 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17678 | ac_status=$? |
ac1cb8d3 VS |
17679 | grep -v '^ *+' conftest.er1 >conftest.err |
17680 | rm -f conftest.er1 | |
17681 | cat conftest.err >&5 | |
a848cd7e SC |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17683 | (exit $ac_status); } && | |
4d4ff94c | 17684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17686 | (eval $ac_try) 2>&5 | |
17687 | ac_status=$? | |
17688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17689 | (exit $ac_status); }; } && | |
17690 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17692 | (eval $ac_try) 2>&5 | |
17693 | ac_status=$? | |
17694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17695 | (exit $ac_status); }; }; then | |
17696 | ac_lo=0 ac_mid=0 | |
17697 | while :; do | |
17698 | cat >conftest.$ac_ext <<_ACEOF | |
17699 | /* confdefs.h. */ | |
17700 | _ACEOF | |
17701 | cat confdefs.h >>conftest.$ac_ext | |
17702 | cat >>conftest.$ac_ext <<_ACEOF | |
17703 | /* end confdefs.h. */ | |
17704 | $ac_includes_default | |
17705 | int | |
17706 | main () | |
17707 | { | |
17708 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17709 | test_array [0] = 0 | |
17710 | ||
17711 | ; | |
17712 | return 0; | |
17713 | } | |
17714 | _ACEOF | |
17715 | rm -f conftest.$ac_objext | |
17716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17717 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17718 | ac_status=$? |
ac1cb8d3 VS |
17719 | grep -v '^ *+' conftest.er1 >conftest.err |
17720 | rm -f conftest.er1 | |
17721 | cat conftest.err >&5 | |
a848cd7e SC |
17722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17723 | (exit $ac_status); } && | |
4d4ff94c | 17724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17726 | (eval $ac_try) 2>&5 | |
17727 | ac_status=$? | |
17728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17729 | (exit $ac_status); }; } && | |
17730 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17732 | (eval $ac_try) 2>&5 | |
17733 | ac_status=$? | |
17734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17735 | (exit $ac_status); }; }; then | |
17736 | ac_hi=$ac_mid; break | |
17737 | else | |
17738 | echo "$as_me: failed program was:" >&5 | |
17739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17740 | ||
17741 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17742 | if test $ac_lo -le $ac_mid; then |
17743 | ac_lo= ac_hi= | |
17744 | break | |
17745 | fi | |
17746 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17747 | fi |
ac1cb8d3 | 17748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17749 | done |
17750 | else | |
17751 | echo "$as_me: failed program was:" >&5 | |
17752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17753 | ||
17754 | cat >conftest.$ac_ext <<_ACEOF | |
17755 | /* confdefs.h. */ | |
17756 | _ACEOF | |
17757 | cat confdefs.h >>conftest.$ac_ext | |
17758 | cat >>conftest.$ac_ext <<_ACEOF | |
17759 | /* end confdefs.h. */ | |
17760 | $ac_includes_default | |
17761 | int | |
17762 | main () | |
17763 | { | |
17764 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17765 | test_array [0] = 0 | |
17766 | ||
17767 | ; | |
17768 | return 0; | |
17769 | } | |
17770 | _ACEOF | |
17771 | rm -f conftest.$ac_objext | |
17772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17773 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17774 | ac_status=$? |
ac1cb8d3 VS |
17775 | grep -v '^ *+' conftest.er1 >conftest.err |
17776 | rm -f conftest.er1 | |
17777 | cat conftest.err >&5 | |
a848cd7e SC |
17778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17779 | (exit $ac_status); } && | |
4d4ff94c | 17780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17782 | (eval $ac_try) 2>&5 | |
17783 | ac_status=$? | |
17784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17785 | (exit $ac_status); }; } && | |
17786 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17788 | (eval $ac_try) 2>&5 | |
17789 | ac_status=$? | |
17790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17791 | (exit $ac_status); }; }; then | |
17792 | ac_hi=-1 ac_mid=-1 | |
17793 | while :; do | |
17794 | cat >conftest.$ac_ext <<_ACEOF | |
17795 | /* confdefs.h. */ | |
17796 | _ACEOF | |
17797 | cat confdefs.h >>conftest.$ac_ext | |
17798 | cat >>conftest.$ac_ext <<_ACEOF | |
17799 | /* end confdefs.h. */ | |
17800 | $ac_includes_default | |
17801 | int | |
17802 | main () | |
17803 | { | |
17804 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17805 | test_array [0] = 0 | |
17806 | ||
17807 | ; | |
17808 | return 0; | |
17809 | } | |
17810 | _ACEOF | |
17811 | rm -f conftest.$ac_objext | |
17812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17813 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17814 | ac_status=$? |
ac1cb8d3 VS |
17815 | grep -v '^ *+' conftest.er1 >conftest.err |
17816 | rm -f conftest.er1 | |
17817 | cat conftest.err >&5 | |
a848cd7e SC |
17818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17819 | (exit $ac_status); } && | |
4d4ff94c | 17820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17822 | (eval $ac_try) 2>&5 | |
17823 | ac_status=$? | |
17824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17825 | (exit $ac_status); }; } && | |
17826 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17828 | (eval $ac_try) 2>&5 | |
17829 | ac_status=$? | |
17830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17831 | (exit $ac_status); }; }; then | |
17832 | ac_lo=$ac_mid; break | |
17833 | else | |
17834 | echo "$as_me: failed program was:" >&5 | |
17835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17836 | ||
17837 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17838 | if test $ac_mid -le $ac_hi; then |
17839 | ac_lo= ac_hi= | |
17840 | break | |
17841 | fi | |
17842 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17843 | fi |
ac1cb8d3 | 17844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17845 | done |
17846 | else | |
17847 | echo "$as_me: failed program was:" >&5 | |
17848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17849 | ||
17850 | ac_lo= ac_hi= | |
17851 | fi | |
ac1cb8d3 | 17852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17853 | fi |
ac1cb8d3 | 17854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17855 | # Binary search between lo and hi bounds. |
17856 | while test "x$ac_lo" != "x$ac_hi"; do | |
17857 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17858 | cat >conftest.$ac_ext <<_ACEOF | |
17859 | /* confdefs.h. */ | |
17860 | _ACEOF | |
17861 | cat confdefs.h >>conftest.$ac_ext | |
17862 | cat >>conftest.$ac_ext <<_ACEOF | |
17863 | /* end confdefs.h. */ | |
17864 | $ac_includes_default | |
17865 | int | |
17866 | main () | |
17867 | { | |
17868 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17869 | test_array [0] = 0 | |
17870 | ||
17871 | ; | |
17872 | return 0; | |
17873 | } | |
17874 | _ACEOF | |
17875 | rm -f conftest.$ac_objext | |
17876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17877 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17878 | ac_status=$? |
ac1cb8d3 VS |
17879 | grep -v '^ *+' conftest.er1 >conftest.err |
17880 | rm -f conftest.er1 | |
17881 | cat conftest.err >&5 | |
a848cd7e SC |
17882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17883 | (exit $ac_status); } && | |
4d4ff94c | 17884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17886 | (eval $ac_try) 2>&5 | |
17887 | ac_status=$? | |
17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17889 | (exit $ac_status); }; } && | |
17890 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17892 | (eval $ac_try) 2>&5 | |
17893 | ac_status=$? | |
17894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17895 | (exit $ac_status); }; }; then | |
17896 | ac_hi=$ac_mid | |
17897 | else | |
17898 | echo "$as_me: failed program was:" >&5 | |
17899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17900 | ||
17901 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17902 | fi | |
ac1cb8d3 | 17903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17904 | done |
17905 | case $ac_lo in | |
17906 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17907 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17908 | See \`config.log' for more details." >&5 | |
17909 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17910 | See \`config.log' for more details." >&2;} | |
17911 | { (exit 1); exit 1; }; } ;; | |
17912 | esac | |
17913 | else | |
17914 | if test "$cross_compiling" = yes; then | |
4d4ff94c VZ |
17915 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17916 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17917 | { (exit 1); exit 1; }; } |
17918 | else | |
17919 | cat >conftest.$ac_ext <<_ACEOF | |
17920 | /* confdefs.h. */ | |
17921 | _ACEOF | |
17922 | cat confdefs.h >>conftest.$ac_ext | |
17923 | cat >>conftest.$ac_ext <<_ACEOF | |
17924 | /* end confdefs.h. */ | |
17925 | $ac_includes_default | |
17926 | long longval () { return (long) (sizeof (long long)); } | |
17927 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17928 | #include <stdio.h> | |
17929 | #include <stdlib.h> | |
17930 | int | |
17931 | main () | |
17932 | { | |
17933 | ||
17934 | FILE *f = fopen ("conftest.val", "w"); | |
17935 | if (! f) | |
17936 | exit (1); | |
17937 | if (((long) (sizeof (long long))) < 0) | |
17938 | { | |
17939 | long i = longval (); | |
17940 | if (i != ((long) (sizeof (long long)))) | |
17941 | exit (1); | |
17942 | fprintf (f, "%ld\n", i); | |
17943 | } | |
17944 | else | |
17945 | { | |
17946 | unsigned long i = ulongval (); | |
17947 | if (i != ((long) (sizeof (long long)))) | |
17948 | exit (1); | |
17949 | fprintf (f, "%lu\n", i); | |
17950 | } | |
17951 | exit (ferror (f) || fclose (f) != 0); | |
17952 | ||
17953 | ; | |
17954 | return 0; | |
17955 | } | |
17956 | _ACEOF | |
17957 | rm -f conftest$ac_exeext | |
17958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17959 | (eval $ac_link) 2>&5 | |
17960 | ac_status=$? | |
17961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17962 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17964 | (eval $ac_try) 2>&5 | |
17965 | ac_status=$? | |
17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17967 | (exit $ac_status); }; }; then | |
17968 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17969 | else | |
17970 | echo "$as_me: program exited with status $ac_status" >&5 | |
17971 | echo "$as_me: failed program was:" >&5 | |
17972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17973 | ||
17974 | ( exit $ac_status ) | |
17975 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17976 | See \`config.log' for more details." >&5 | |
17977 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17978 | See \`config.log' for more details." >&2;} | |
17979 | { (exit 1); exit 1; }; } | |
17980 | fi | |
ac1cb8d3 | 17981 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17982 | fi |
17983 | fi | |
17984 | rm -f conftest.val | |
17985 | else | |
17986 | ac_cv_sizeof_long_long=0 | |
17987 | fi | |
17988 | fi | |
17989 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17990 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17991 | cat >>confdefs.h <<_ACEOF | |
17992 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17993 | _ACEOF | |
17994 | ||
17995 | ||
17996 | esac | |
17997 | ||
17998 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
17999 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18000 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18002 | else | |
18003 | ||
18004 | if test "$cross_compiling" = yes; then | |
18005 | ||
18006 | case "${host}" in | |
18007 | *-pc-msdosdjgpp ) | |
18008 | wx_cv_sizeof_wchar_t=0 | |
18009 | ;; | |
18010 | * ) | |
18011 | wx_cv_sizeof_wchar_t=4 | |
18012 | ;; | |
18013 | esac | |
18014 | ||
18015 | ||
18016 | else | |
18017 | cat >conftest.$ac_ext <<_ACEOF | |
18018 | /* confdefs.h. */ | |
18019 | _ACEOF | |
18020 | cat confdefs.h >>conftest.$ac_ext | |
18021 | cat >>conftest.$ac_ext <<_ACEOF | |
18022 | /* end confdefs.h. */ | |
18023 | ||
18024 | /* DJGPP only has fake wchar_t: */ | |
18025 | #ifdef __DJGPP__ | |
18026 | # error "fake wchar_t" | |
18027 | #endif | |
18028 | #ifdef HAVE_WCHAR_H | |
18029 | # ifdef __CYGWIN__ | |
18030 | # include <stddef.h> | |
18031 | # endif | |
18032 | # include <wchar.h> | |
18033 | #endif | |
18034 | #ifdef HAVE_STDLIB_H | |
18035 | # include <stdlib.h> | |
18036 | #endif | |
18037 | #include <stdio.h> | |
18038 | int main() | |
18039 | { | |
18040 | FILE *f=fopen("conftestval", "w"); | |
18041 | if (!f) exit(1); | |
18042 | fprintf(f, "%i", sizeof(wchar_t)); | |
18043 | exit(0); | |
18044 | } | |
18045 | ||
18046 | _ACEOF | |
18047 | rm -f conftest$ac_exeext | |
18048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18049 | (eval $ac_link) 2>&5 | |
18050 | ac_status=$? | |
18051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18052 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18054 | (eval $ac_try) 2>&5 | |
18055 | ac_status=$? | |
18056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18057 | (exit $ac_status); }; }; then | |
18058 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18059 | else | |
18060 | echo "$as_me: program exited with status $ac_status" >&5 | |
18061 | echo "$as_me: failed program was:" >&5 | |
18062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18063 | ||
18064 | ( exit $ac_status ) | |
18065 | wx_cv_sizeof_wchar_t=0 | |
18066 | fi | |
ac1cb8d3 | 18067 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18068 | fi |
18069 | ||
18070 | fi | |
18071 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18072 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18073 | ||
18074 | cat >>confdefs.h <<_ACEOF | |
18075 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18076 | _ACEOF | |
18077 | ||
18078 | ||
18079 | # Check whether --enable-largefile or --disable-largefile was given. | |
18080 | if test "${enable_largefile+set}" = set; then | |
18081 | enableval="$enable_largefile" | |
18082 | ||
18083 | fi; | |
18084 | if test "$enable_largefile" != no; then | |
18085 | wx_largefile=no | |
18086 | ||
18087 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18088 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18089 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18091 | else | |
18092 | ||
18093 | cat >conftest.$ac_ext <<_ACEOF | |
18094 | /* confdefs.h. */ | |
18095 | _ACEOF | |
18096 | cat confdefs.h >>conftest.$ac_ext | |
18097 | cat >>conftest.$ac_ext <<_ACEOF | |
18098 | /* end confdefs.h. */ | |
18099 | #define _FILE_OFFSET_BITS 64 | |
18100 | #include <sys/types.h> | |
18101 | int | |
18102 | main () | |
18103 | { | |
18104 | typedef struct { | |
18105 | unsigned int field: sizeof(off_t) == 8; | |
18106 | } wxlf; | |
18107 | ||
18108 | ; | |
18109 | return 0; | |
18110 | } | |
18111 | _ACEOF | |
18112 | rm -f conftest.$ac_objext | |
18113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18114 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18115 | ac_status=$? |
ac1cb8d3 VS |
18116 | grep -v '^ *+' conftest.er1 >conftest.err |
18117 | rm -f conftest.er1 | |
18118 | cat conftest.err >&5 | |
a848cd7e SC |
18119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18120 | (exit $ac_status); } && | |
4d4ff94c | 18121 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18123 | (eval $ac_try) 2>&5 | |
18124 | ac_status=$? | |
18125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18126 | (exit $ac_status); }; } && | |
18127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18129 | (eval $ac_try) 2>&5 | |
18130 | ac_status=$? | |
18131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18132 | (exit $ac_status); }; }; then | |
18133 | ac_cv_sys_file_offset_bits=64 | |
18134 | else | |
18135 | echo "$as_me: failed program was:" >&5 | |
18136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18137 | ||
18138 | ac_cv_sys_file_offset_bits=no | |
18139 | fi | |
ac1cb8d3 | 18140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18141 | |
18142 | ||
18143 | fi | |
18144 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18145 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18146 | ||
18147 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18148 | wx_largefile=yes | |
18149 | cat >>confdefs.h <<_ACEOF | |
18150 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18151 | _ACEOF | |
18152 | ||
18153 | fi | |
18154 | ||
18155 | if test "x$wx_largefile" != "xyes"; then | |
18156 | ||
18157 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18158 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18159 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18161 | else | |
18162 | ||
18163 | cat >conftest.$ac_ext <<_ACEOF | |
18164 | /* confdefs.h. */ | |
18165 | _ACEOF | |
18166 | cat confdefs.h >>conftest.$ac_ext | |
18167 | cat >>conftest.$ac_ext <<_ACEOF | |
18168 | /* end confdefs.h. */ | |
18169 | #define _LARGE_FILES 1 | |
18170 | #include <sys/types.h> | |
18171 | int | |
18172 | main () | |
18173 | { | |
18174 | typedef struct { | |
18175 | unsigned int field: sizeof(off_t) == 8; | |
18176 | } wxlf; | |
18177 | ||
18178 | ; | |
18179 | return 0; | |
18180 | } | |
18181 | _ACEOF | |
18182 | rm -f conftest.$ac_objext | |
18183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18184 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18185 | ac_status=$? |
ac1cb8d3 VS |
18186 | grep -v '^ *+' conftest.er1 >conftest.err |
18187 | rm -f conftest.er1 | |
18188 | cat conftest.err >&5 | |
a848cd7e SC |
18189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18190 | (exit $ac_status); } && | |
4d4ff94c | 18191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18193 | (eval $ac_try) 2>&5 | |
18194 | ac_status=$? | |
18195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18196 | (exit $ac_status); }; } && | |
18197 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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 | ac_cv_sys_large_files=1 | |
18204 | else | |
18205 | echo "$as_me: failed program was:" >&5 | |
18206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18207 | ||
18208 | ac_cv_sys_large_files=no | |
18209 | fi | |
ac1cb8d3 | 18210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18211 | |
18212 | ||
18213 | fi | |
18214 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18215 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18216 | ||
18217 | if test "$ac_cv_sys_large_files" != no; then | |
18218 | wx_largefile=yes | |
18219 | cat >>confdefs.h <<_ACEOF | |
18220 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18221 | _ACEOF | |
18222 | ||
18223 | fi | |
18224 | ||
18225 | fi | |
18226 | ||
18227 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18228 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18229 | if test "x$wx_largefile" = "xyes"; then | |
18230 | cat >>confdefs.h <<\_ACEOF | |
18231 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18232 | _ACEOF | |
18233 | ||
18234 | fi | |
18235 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18236 | echo "${ECHO_T}$wx_largefile" >&6 | |
18237 | fi | |
18238 | ||
18239 | ||
18240 | if test "x$wx_largefile" = "xyes"; then | |
18241 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18242 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18243 | else | |
18244 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18245 | fi | |
18246 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18247 | fi | |
18248 | ||
18249 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18250 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18251 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18253 | else | |
18254 | ac_cv_c_bigendian=unknown | |
18255 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18256 | cat >conftest.$ac_ext <<_ACEOF | |
18257 | /* confdefs.h. */ | |
18258 | _ACEOF | |
18259 | cat confdefs.h >>conftest.$ac_ext | |
18260 | cat >>conftest.$ac_ext <<_ACEOF | |
18261 | /* end confdefs.h. */ | |
18262 | #include <sys/types.h> | |
18263 | #include <sys/param.h> | |
18264 | int | |
18265 | main () | |
18266 | { | |
18267 | ||
18268 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18269 | bogus endian macros | |
18270 | #endif | |
18271 | ; | |
18272 | return 0; | |
18273 | } | |
18274 | _ACEOF | |
18275 | rm -f conftest.$ac_objext | |
18276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18277 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18278 | ac_status=$? |
ac1cb8d3 VS |
18279 | grep -v '^ *+' conftest.er1 >conftest.err |
18280 | rm -f conftest.er1 | |
18281 | cat conftest.err >&5 | |
a848cd7e SC |
18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18283 | (exit $ac_status); } && | |
4d4ff94c | 18284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18286 | (eval $ac_try) 2>&5 | |
18287 | ac_status=$? | |
18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18289 | (exit $ac_status); }; } && | |
18290 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18292 | (eval $ac_try) 2>&5 | |
18293 | ac_status=$? | |
18294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18295 | (exit $ac_status); }; }; then | |
18296 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18297 | cat >conftest.$ac_ext <<_ACEOF | |
18298 | /* confdefs.h. */ | |
18299 | _ACEOF | |
18300 | cat confdefs.h >>conftest.$ac_ext | |
18301 | cat >>conftest.$ac_ext <<_ACEOF | |
18302 | /* end confdefs.h. */ | |
18303 | #include <sys/types.h> | |
18304 | #include <sys/param.h> | |
18305 | int | |
18306 | main () | |
18307 | { | |
18308 | ||
18309 | #if BYTE_ORDER != BIG_ENDIAN | |
18310 | not big endian | |
18311 | #endif | |
18312 | ; | |
18313 | return 0; | |
18314 | } | |
18315 | _ACEOF | |
18316 | rm -f conftest.$ac_objext | |
18317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18318 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18319 | ac_status=$? |
ac1cb8d3 VS |
18320 | grep -v '^ *+' conftest.er1 >conftest.err |
18321 | rm -f conftest.er1 | |
18322 | cat conftest.err >&5 | |
a848cd7e SC |
18323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18324 | (exit $ac_status); } && | |
4d4ff94c | 18325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18327 | (eval $ac_try) 2>&5 | |
18328 | ac_status=$? | |
18329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18330 | (exit $ac_status); }; } && | |
18331 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18333 | (eval $ac_try) 2>&5 | |
18334 | ac_status=$? | |
18335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18336 | (exit $ac_status); }; }; then | |
18337 | ac_cv_c_bigendian=yes | |
18338 | else | |
18339 | echo "$as_me: failed program was:" >&5 | |
18340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18341 | ||
18342 | ac_cv_c_bigendian=no | |
18343 | fi | |
ac1cb8d3 | 18344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18345 | else |
18346 | echo "$as_me: failed program was:" >&5 | |
18347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18348 | ||
18349 | fi | |
ac1cb8d3 | 18350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18351 | if test $ac_cv_c_bigendian = unknown; then |
18352 | if test "$cross_compiling" = yes; then | |
18353 | ac_cv_c_bigendian=unknown | |
18354 | else | |
18355 | cat >conftest.$ac_ext <<_ACEOF | |
18356 | /* confdefs.h. */ | |
18357 | _ACEOF | |
18358 | cat confdefs.h >>conftest.$ac_ext | |
18359 | cat >>conftest.$ac_ext <<_ACEOF | |
18360 | /* end confdefs.h. */ | |
18361 | main () { | |
18362 | /* Are we little or big endian? From Harbison&Steele. */ | |
18363 | union | |
18364 | { | |
18365 | long l; | |
18366 | char c[sizeof (long)]; | |
18367 | } u; | |
18368 | u.l = 1; | |
18369 | exit (u.c[sizeof (long) - 1] == 1); | |
18370 | } | |
18371 | _ACEOF | |
18372 | rm -f conftest$ac_exeext | |
18373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18374 | (eval $ac_link) 2>&5 | |
18375 | ac_status=$? | |
18376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18379 | (eval $ac_try) 2>&5 | |
18380 | ac_status=$? | |
18381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18382 | (exit $ac_status); }; }; then | |
18383 | ac_cv_c_bigendian=no | |
18384 | else | |
18385 | echo "$as_me: program exited with status $ac_status" >&5 | |
18386 | echo "$as_me: failed program was:" >&5 | |
18387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18388 | ||
18389 | ( exit $ac_status ) | |
18390 | ac_cv_c_bigendian=yes | |
18391 | fi | |
ac1cb8d3 | 18392 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18393 | fi |
18394 | fi | |
18395 | fi | |
18396 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18397 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18398 | if test $ac_cv_c_bigendian = unknown; then | |
18399 | { 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 | |
18400 | 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;} | |
18401 | fi | |
18402 | if test $ac_cv_c_bigendian = yes; then | |
18403 | cat >>confdefs.h <<\_ACEOF | |
18404 | #define WORDS_BIGENDIAN 1 | |
18405 | _ACEOF | |
18406 | ||
18407 | fi | |
18408 | ||
18409 | ||
18410 | ac_ext=cc | |
18411 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18412 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18413 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18414 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18415 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18416 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18417 | if test -z "$CXXCPP"; then | |
18418 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18420 | else | |
18421 | # Double quotes because CXXCPP needs to be expanded | |
18422 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18423 | do | |
18424 | ac_preproc_ok=false | |
18425 | for ac_cxx_preproc_warn_flag in '' yes | |
18426 | do | |
18427 | # Use a header file that comes with gcc, so configuring glibc | |
18428 | # with a fresh cross-compiler works. | |
18429 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18430 | # <limits.h> exists even on freestanding compilers. | |
18431 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18432 | # not just through cpp. "Syntax error" is here to catch this case. | |
18433 | cat >conftest.$ac_ext <<_ACEOF | |
18434 | /* confdefs.h. */ | |
18435 | _ACEOF | |
18436 | cat confdefs.h >>conftest.$ac_ext | |
18437 | cat >>conftest.$ac_ext <<_ACEOF | |
18438 | /* end confdefs.h. */ | |
18439 | #ifdef __STDC__ | |
18440 | # include <limits.h> | |
18441 | #else | |
18442 | # include <assert.h> | |
18443 | #endif | |
ac1cb8d3 | 18444 | Syntax error |
a848cd7e SC |
18445 | _ACEOF |
18446 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18447 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18448 | ac_status=$? | |
18449 | grep -v '^ *+' conftest.er1 >conftest.err | |
18450 | rm -f conftest.er1 | |
18451 | cat conftest.err >&5 | |
18452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18453 | (exit $ac_status); } >/dev/null; then | |
18454 | if test -s conftest.err; then | |
18455 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18456 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18457 | else |
18458 | ac_cpp_err= | |
18459 | fi | |
18460 | else | |
18461 | ac_cpp_err=yes | |
18462 | fi | |
18463 | if test -z "$ac_cpp_err"; then | |
18464 | : | |
18465 | else | |
18466 | echo "$as_me: failed program was:" >&5 | |
18467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18468 | ||
18469 | # Broken: fails on valid input. | |
18470 | continue | |
18471 | fi | |
18472 | rm -f conftest.err conftest.$ac_ext | |
18473 | ||
18474 | # OK, works on sane cases. Now check whether non-existent headers | |
18475 | # can be detected and how. | |
18476 | cat >conftest.$ac_ext <<_ACEOF | |
18477 | /* confdefs.h. */ | |
18478 | _ACEOF | |
18479 | cat confdefs.h >>conftest.$ac_ext | |
18480 | cat >>conftest.$ac_ext <<_ACEOF | |
18481 | /* end confdefs.h. */ | |
18482 | #include <ac_nonexistent.h> | |
18483 | _ACEOF | |
18484 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18485 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18486 | ac_status=$? | |
18487 | grep -v '^ *+' conftest.er1 >conftest.err | |
18488 | rm -f conftest.er1 | |
18489 | cat conftest.err >&5 | |
18490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18491 | (exit $ac_status); } >/dev/null; then | |
18492 | if test -s conftest.err; then | |
18493 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18494 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18495 | else |
18496 | ac_cpp_err= | |
18497 | fi | |
18498 | else | |
18499 | ac_cpp_err=yes | |
18500 | fi | |
18501 | if test -z "$ac_cpp_err"; then | |
18502 | # Broken: success on invalid input. | |
18503 | continue | |
18504 | else | |
18505 | echo "$as_me: failed program was:" >&5 | |
18506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18507 | ||
18508 | # Passes both tests. | |
18509 | ac_preproc_ok=: | |
18510 | break | |
18511 | fi | |
18512 | rm -f conftest.err conftest.$ac_ext | |
18513 | ||
18514 | done | |
18515 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18516 | rm -f conftest.err conftest.$ac_ext | |
18517 | if $ac_preproc_ok; then | |
18518 | break | |
18519 | fi | |
18520 | ||
18521 | done | |
18522 | ac_cv_prog_CXXCPP=$CXXCPP | |
18523 | ||
18524 | fi | |
18525 | CXXCPP=$ac_cv_prog_CXXCPP | |
18526 | else | |
18527 | ac_cv_prog_CXXCPP=$CXXCPP | |
18528 | fi | |
18529 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18530 | echo "${ECHO_T}$CXXCPP" >&6 | |
18531 | ac_preproc_ok=false | |
18532 | for ac_cxx_preproc_warn_flag in '' yes | |
18533 | do | |
18534 | # Use a header file that comes with gcc, so configuring glibc | |
18535 | # with a fresh cross-compiler works. | |
18536 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18537 | # <limits.h> exists even on freestanding compilers. | |
18538 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18539 | # not just through cpp. "Syntax error" is here to catch this case. | |
18540 | cat >conftest.$ac_ext <<_ACEOF | |
18541 | /* confdefs.h. */ | |
18542 | _ACEOF | |
18543 | cat confdefs.h >>conftest.$ac_ext | |
18544 | cat >>conftest.$ac_ext <<_ACEOF | |
18545 | /* end confdefs.h. */ | |
18546 | #ifdef __STDC__ | |
18547 | # include <limits.h> | |
18548 | #else | |
18549 | # include <assert.h> | |
18550 | #endif | |
ac1cb8d3 | 18551 | Syntax error |
a848cd7e SC |
18552 | _ACEOF |
18553 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18554 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18555 | ac_status=$? | |
18556 | grep -v '^ *+' conftest.er1 >conftest.err | |
18557 | rm -f conftest.er1 | |
18558 | cat conftest.err >&5 | |
18559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18560 | (exit $ac_status); } >/dev/null; then | |
18561 | if test -s conftest.err; then | |
18562 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18563 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18564 | else |
18565 | ac_cpp_err= | |
18566 | fi | |
18567 | else | |
18568 | ac_cpp_err=yes | |
18569 | fi | |
18570 | if test -z "$ac_cpp_err"; then | |
18571 | : | |
18572 | else | |
18573 | echo "$as_me: failed program was:" >&5 | |
18574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18575 | ||
18576 | # Broken: fails on valid input. | |
18577 | continue | |
18578 | fi | |
18579 | rm -f conftest.err conftest.$ac_ext | |
18580 | ||
18581 | # OK, works on sane cases. Now check whether non-existent headers | |
18582 | # can be detected and how. | |
18583 | cat >conftest.$ac_ext <<_ACEOF | |
18584 | /* confdefs.h. */ | |
18585 | _ACEOF | |
18586 | cat confdefs.h >>conftest.$ac_ext | |
18587 | cat >>conftest.$ac_ext <<_ACEOF | |
18588 | /* end confdefs.h. */ | |
18589 | #include <ac_nonexistent.h> | |
18590 | _ACEOF | |
18591 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18592 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18593 | ac_status=$? | |
18594 | grep -v '^ *+' conftest.er1 >conftest.err | |
18595 | rm -f conftest.er1 | |
18596 | cat conftest.err >&5 | |
18597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18598 | (exit $ac_status); } >/dev/null; then | |
18599 | if test -s conftest.err; then | |
18600 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18601 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18602 | else |
18603 | ac_cpp_err= | |
18604 | fi | |
18605 | else | |
18606 | ac_cpp_err=yes | |
18607 | fi | |
18608 | if test -z "$ac_cpp_err"; then | |
18609 | # Broken: success on invalid input. | |
18610 | continue | |
18611 | else | |
18612 | echo "$as_me: failed program was:" >&5 | |
18613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18614 | ||
18615 | # Passes both tests. | |
18616 | ac_preproc_ok=: | |
18617 | break | |
18618 | fi | |
18619 | rm -f conftest.err conftest.$ac_ext | |
18620 | ||
18621 | done | |
18622 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18623 | rm -f conftest.err conftest.$ac_ext | |
18624 | if $ac_preproc_ok; then | |
18625 | : | |
18626 | else | |
18627 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18628 | See \`config.log' for more details." >&5 | |
18629 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18630 | See \`config.log' for more details." >&2;} | |
18631 | { (exit 1); exit 1; }; } | |
18632 | fi | |
18633 | ||
18634 | ac_ext=cc | |
18635 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18636 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18637 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18638 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18639 | ||
18640 | ||
18641 | ||
18642 | ||
18643 | ||
18644 | ac_ext=cc | |
18645 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18646 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18647 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18648 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18649 | ||
18650 | ||
18651 | ||
18652 | for ac_header in iostream | |
18653 | do | |
18654 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18656 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18658 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18660 | fi | |
18661 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18662 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18663 | else | |
18664 | # Is the header compilable? | |
18665 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18666 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18667 | cat >conftest.$ac_ext <<_ACEOF | |
18668 | /* confdefs.h. */ | |
18669 | _ACEOF | |
18670 | cat confdefs.h >>conftest.$ac_ext | |
18671 | cat >>conftest.$ac_ext <<_ACEOF | |
18672 | /* end confdefs.h. */ | |
18673 | $ac_includes_default | |
18674 | #include <$ac_header> | |
18675 | _ACEOF | |
18676 | rm -f conftest.$ac_objext | |
18677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18678 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18679 | ac_status=$? |
ac1cb8d3 VS |
18680 | grep -v '^ *+' conftest.er1 >conftest.err |
18681 | rm -f conftest.er1 | |
18682 | cat conftest.err >&5 | |
a848cd7e SC |
18683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18684 | (exit $ac_status); } && | |
4d4ff94c | 18685 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18687 | (eval $ac_try) 2>&5 | |
18688 | ac_status=$? | |
18689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18690 | (exit $ac_status); }; } && | |
18691 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18693 | (eval $ac_try) 2>&5 | |
18694 | ac_status=$? | |
18695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18696 | (exit $ac_status); }; }; then | |
18697 | ac_header_compiler=yes | |
18698 | else | |
18699 | echo "$as_me: failed program was:" >&5 | |
18700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18701 | ||
18702 | ac_header_compiler=no | |
18703 | fi | |
ac1cb8d3 | 18704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18705 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18706 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18707 | ||
18708 | # Is the header present? | |
18709 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18710 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18711 | cat >conftest.$ac_ext <<_ACEOF | |
18712 | /* confdefs.h. */ | |
18713 | _ACEOF | |
18714 | cat confdefs.h >>conftest.$ac_ext | |
18715 | cat >>conftest.$ac_ext <<_ACEOF | |
18716 | /* end confdefs.h. */ | |
18717 | #include <$ac_header> | |
18718 | _ACEOF | |
18719 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18720 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18721 | ac_status=$? | |
18722 | grep -v '^ *+' conftest.er1 >conftest.err | |
18723 | rm -f conftest.er1 | |
18724 | cat conftest.err >&5 | |
18725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18726 | (exit $ac_status); } >/dev/null; then | |
18727 | if test -s conftest.err; then | |
18728 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18729 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18730 | else |
18731 | ac_cpp_err= | |
18732 | fi | |
18733 | else | |
18734 | ac_cpp_err=yes | |
18735 | fi | |
18736 | if test -z "$ac_cpp_err"; then | |
18737 | ac_header_preproc=yes | |
18738 | else | |
18739 | echo "$as_me: failed program was:" >&5 | |
18740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18741 | ||
18742 | ac_header_preproc=no | |
18743 | fi | |
18744 | rm -f conftest.err conftest.$ac_ext | |
18745 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18746 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18747 | ||
18748 | # So? What about this header? | |
ac1cb8d3 VS |
18749 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18750 | yes:no: ) | |
a848cd7e SC |
18751 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18752 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
18753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18754 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18755 | ac_header_preproc=yes | |
a848cd7e | 18756 | ;; |
ac1cb8d3 | 18757 | no:yes:* ) |
a848cd7e SC |
18758 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18759 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
18760 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18761 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18762 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18763 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18764 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18765 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
18766 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18767 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
18768 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18769 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
18770 | ( |
18771 | cat <<\_ASBOX | |
ac1cb8d3 VS |
18772 | ## ----------------------------------------- ## |
18773 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
18774 | ## ----------------------------------------- ## | |
a848cd7e SC |
18775 | _ASBOX |
18776 | ) | | |
18777 | sed "s/^/$as_me: WARNING: /" >&2 | |
18778 | ;; | |
18779 | esac | |
18780 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18784 | else | |
ac1cb8d3 | 18785 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
18786 | fi |
18787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18788 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18789 | ||
18790 | fi | |
18791 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18792 | cat >>confdefs.h <<_ACEOF | |
18793 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18794 | _ACEOF | |
18795 | ||
18796 | fi | |
18797 | ||
18798 | done | |
18799 | ||
18800 | ||
18801 | if test "$ac_cv_header_iostream" = "yes" ; then | |
18802 | : | |
18803 | else | |
18804 | cat >>confdefs.h <<\_ACEOF | |
18805 | #define wxUSE_IOSTREAMH 1 | |
18806 | _ACEOF | |
18807 | ||
18808 | fi | |
18809 | ||
18810 | ac_ext=c | |
18811 | ac_cpp='$CPP $CPPFLAGS' | |
18812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18815 | ||
18816 | ||
18817 | ||
18818 | ||
18819 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
18820 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18821 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18823 | else | |
18824 | ||
18825 | ||
18826 | ||
18827 | ac_ext=cc | |
18828 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18829 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18830 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18831 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18832 | ||
18833 | ||
18834 | cat >conftest.$ac_ext <<_ACEOF | |
18835 | /* confdefs.h. */ | |
18836 | _ACEOF | |
18837 | cat confdefs.h >>conftest.$ac_ext | |
18838 | cat >>conftest.$ac_ext <<_ACEOF | |
18839 | /* end confdefs.h. */ | |
18840 | ||
18841 | ||
18842 | int | |
18843 | main () | |
18844 | { | |
18845 | ||
18846 | bool b = true; | |
18847 | ||
18848 | return 0; | |
18849 | ||
18850 | ; | |
18851 | return 0; | |
18852 | } | |
18853 | _ACEOF | |
18854 | rm -f conftest.$ac_objext | |
18855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18856 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18857 | ac_status=$? |
ac1cb8d3 VS |
18858 | grep -v '^ *+' conftest.er1 >conftest.err |
18859 | rm -f conftest.er1 | |
18860 | cat conftest.err >&5 | |
a848cd7e SC |
18861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18862 | (exit $ac_status); } && | |
4d4ff94c | 18863 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18865 | (eval $ac_try) 2>&5 | |
18866 | ac_status=$? | |
18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18868 | (exit $ac_status); }; } && | |
18869 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18871 | (eval $ac_try) 2>&5 | |
18872 | ac_status=$? | |
18873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18874 | (exit $ac_status); }; }; then | |
18875 | ||
18876 | wx_cv_cpp_bool=yes | |
18877 | ||
18878 | else | |
18879 | echo "$as_me: failed program was:" >&5 | |
18880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18881 | ||
18882 | ||
18883 | wx_cv_cpp_bool=no | |
18884 | ||
18885 | ||
18886 | fi | |
ac1cb8d3 | 18887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18888 | |
18889 | ac_ext=c | |
18890 | ac_cpp='$CPP $CPPFLAGS' | |
18891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18894 | ||
18895 | ||
18896 | fi | |
18897 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18898 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
18899 | ||
18900 | if test "$wx_cv_cpp_bool" = "yes"; then | |
18901 | cat >>confdefs.h <<\_ACEOF | |
18902 | #define HAVE_BOOL 1 | |
18903 | _ACEOF | |
18904 | ||
18905 | fi | |
18906 | ||
18907 | ||
18908 | ||
18909 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
18910 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18911 | if test "${wx_cv_explicit+set}" = set; then | |
18912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18913 | else | |
18914 | ||
18915 | ||
18916 | ||
18917 | ac_ext=cc | |
18918 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18919 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18920 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18921 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18922 | ||
18923 | ||
18924 | cat >conftest.$ac_ext <<_ACEOF | |
18925 | /* confdefs.h. */ | |
18926 | _ACEOF | |
18927 | cat confdefs.h >>conftest.$ac_ext | |
18928 | cat >>conftest.$ac_ext <<_ACEOF | |
18929 | /* end confdefs.h. */ | |
18930 | ||
18931 | class Foo { public: explicit Foo(int) {} }; | |
18932 | ||
18933 | int | |
18934 | main () | |
18935 | { | |
18936 | ||
18937 | return 0; | |
18938 | ||
18939 | ; | |
18940 | return 0; | |
18941 | } | |
18942 | _ACEOF | |
18943 | rm -f conftest.$ac_objext | |
18944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18945 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18946 | ac_status=$? |
ac1cb8d3 VS |
18947 | grep -v '^ *+' conftest.er1 >conftest.err |
18948 | rm -f conftest.er1 | |
18949 | cat conftest.err >&5 | |
a848cd7e SC |
18950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18951 | (exit $ac_status); } && | |
4d4ff94c | 18952 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18954 | (eval $ac_try) 2>&5 | |
18955 | ac_status=$? | |
18956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18957 | (exit $ac_status); }; } && | |
18958 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18960 | (eval $ac_try) 2>&5 | |
18961 | ac_status=$? | |
18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18963 | (exit $ac_status); }; }; then | |
18964 | ||
18965 | cat >conftest.$ac_ext <<_ACEOF | |
18966 | /* confdefs.h. */ | |
18967 | _ACEOF | |
18968 | cat confdefs.h >>conftest.$ac_ext | |
18969 | cat >>conftest.$ac_ext <<_ACEOF | |
18970 | /* end confdefs.h. */ | |
18971 | ||
18972 | class Foo { public: explicit Foo(int) {} }; | |
18973 | static void TakeFoo(const Foo& foo) { } | |
18974 | ||
18975 | int | |
18976 | main () | |
18977 | { | |
18978 | ||
18979 | TakeFoo(17); | |
18980 | return 0; | |
18981 | ||
18982 | ; | |
18983 | return 0; | |
18984 | } | |
18985 | _ACEOF | |
18986 | rm -f conftest.$ac_objext | |
18987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18988 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18989 | ac_status=$? |
ac1cb8d3 VS |
18990 | grep -v '^ *+' conftest.er1 >conftest.err |
18991 | rm -f conftest.er1 | |
18992 | cat conftest.err >&5 | |
a848cd7e SC |
18993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18994 | (exit $ac_status); } && | |
4d4ff94c | 18995 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18997 | (eval $ac_try) 2>&5 | |
18998 | ac_status=$? | |
18999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19000 | (exit $ac_status); }; } && | |
19001 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19003 | (eval $ac_try) 2>&5 | |
19004 | ac_status=$? | |
19005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19006 | (exit $ac_status); }; }; then | |
19007 | wx_cv_explicit=no | |
19008 | else | |
19009 | echo "$as_me: failed program was:" >&5 | |
19010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19011 | ||
19012 | wx_cv_explicit=yes | |
19013 | ||
19014 | fi | |
ac1cb8d3 | 19015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19016 | |
19017 | else | |
19018 | echo "$as_me: failed program was:" >&5 | |
19019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19020 | ||
19021 | wx_cv_explicit=no | |
19022 | ||
19023 | fi | |
ac1cb8d3 | 19024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19025 | |
19026 | ac_ext=c | |
19027 | ac_cpp='$CPP $CPPFLAGS' | |
19028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19031 | ||
19032 | ||
19033 | fi | |
19034 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19035 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19036 | ||
19037 | if test "$wx_cv_explicit" = "yes"; then | |
19038 | cat >>confdefs.h <<\_ACEOF | |
19039 | #define HAVE_EXPLICIT 1 | |
19040 | _ACEOF | |
19041 | ||
19042 | fi | |
19043 | ||
19044 | ||
19045 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19046 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19047 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19049 | else | |
19050 | ||
19051 | ||
19052 | ac_ext=cc | |
19053 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19054 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19055 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19056 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19057 | ||
19058 | cat >conftest.$ac_ext <<_ACEOF | |
19059 | /* confdefs.h. */ | |
19060 | _ACEOF | |
19061 | cat confdefs.h >>conftest.$ac_ext | |
19062 | cat >>conftest.$ac_ext <<_ACEOF | |
19063 | /* end confdefs.h. */ | |
19064 | ||
19065 | int | |
19066 | main () | |
19067 | { | |
19068 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19069 | ; | |
19070 | return 0; | |
19071 | } | |
19072 | _ACEOF | |
19073 | rm -f conftest.$ac_objext | |
19074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19076 | ac_status=$? |
ac1cb8d3 VS |
19077 | grep -v '^ *+' conftest.er1 >conftest.err |
19078 | rm -f conftest.er1 | |
19079 | cat conftest.err >&5 | |
a848cd7e SC |
19080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19081 | (exit $ac_status); } && | |
4d4ff94c | 19082 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19084 | (eval $ac_try) 2>&5 | |
19085 | ac_status=$? | |
19086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19087 | (exit $ac_status); }; } && | |
19088 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19090 | (eval $ac_try) 2>&5 | |
19091 | ac_status=$? | |
19092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19093 | (exit $ac_status); }; }; then | |
19094 | ac_cv_cxx_const_cast=yes | |
19095 | else | |
19096 | echo "$as_me: failed program was:" >&5 | |
19097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19098 | ||
19099 | ac_cv_cxx_const_cast=no | |
19100 | fi | |
ac1cb8d3 | 19101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19102 | ac_ext=c |
19103 | ac_cpp='$CPP $CPPFLAGS' | |
19104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19107 | ||
19108 | ||
19109 | fi | |
19110 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19111 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19112 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19113 | ||
19114 | cat >>confdefs.h <<\_ACEOF | |
19115 | #define HAVE_CONST_CAST | |
19116 | _ACEOF | |
19117 | ||
19118 | fi | |
19119 | ||
19120 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 | |
19121 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19122 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19124 | else | |
19125 | ||
19126 | ||
19127 | ac_ext=cc | |
19128 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19129 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19130 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19131 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19132 | ||
19133 | cat >conftest.$ac_ext <<_ACEOF | |
19134 | /* confdefs.h. */ | |
19135 | _ACEOF | |
19136 | cat confdefs.h >>conftest.$ac_ext | |
19137 | cat >>conftest.$ac_ext <<_ACEOF | |
19138 | /* end confdefs.h. */ | |
19139 | #include <typeinfo> | |
19140 | class Base { public : Base () {} virtual void f () = 0; }; | |
19141 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19142 | int g (Derived&) { return 0; } | |
19143 | int | |
19144 | main () | |
19145 | { | |
19146 | ||
19147 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19148 | ; | |
19149 | return 0; | |
19150 | } | |
19151 | _ACEOF | |
19152 | rm -f conftest.$ac_objext | |
19153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19154 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19155 | ac_status=$? |
ac1cb8d3 VS |
19156 | grep -v '^ *+' conftest.er1 >conftest.err |
19157 | rm -f conftest.er1 | |
19158 | cat conftest.err >&5 | |
a848cd7e SC |
19159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19160 | (exit $ac_status); } && | |
4d4ff94c | 19161 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19163 | (eval $ac_try) 2>&5 | |
19164 | ac_status=$? | |
19165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19166 | (exit $ac_status); }; } && | |
19167 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19169 | (eval $ac_try) 2>&5 | |
19170 | ac_status=$? | |
19171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19172 | (exit $ac_status); }; }; then | |
19173 | ac_cv_cxx_static_cast=yes | |
19174 | else | |
19175 | echo "$as_me: failed program was:" >&5 | |
19176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19177 | ||
19178 | ac_cv_cxx_static_cast=no | |
19179 | fi | |
ac1cb8d3 | 19180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19181 | ac_ext=c |
19182 | ac_cpp='$CPP $CPPFLAGS' | |
19183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19186 | ||
19187 | ||
19188 | fi | |
19189 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19190 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19191 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19192 | ||
19193 | cat >>confdefs.h <<\_ACEOF | |
19194 | #define HAVE_STATIC_CAST | |
19195 | _ACEOF | |
19196 | ||
19197 | fi | |
19198 | ||
19199 | ||
19200 | if test "$wxUSE_STL" = "yes"; then | |
19201 | ac_ext=cc | |
19202 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19203 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19204 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19205 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19206 | ||
19207 | ||
19208 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19209 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19210 | cat >conftest.$ac_ext <<_ACEOF | |
19211 | /* confdefs.h. */ | |
19212 | _ACEOF | |
19213 | cat confdefs.h >>conftest.$ac_ext | |
19214 | cat >>conftest.$ac_ext <<_ACEOF | |
19215 | /* end confdefs.h. */ | |
19216 | #include <string> | |
19217 | #include <functional> | |
19218 | #include <algorithm> | |
19219 | #include <vector> | |
19220 | #include <list> | |
19221 | int | |
19222 | main () | |
19223 | { | |
19224 | std::vector<int> moo; | |
19225 | std::list<int> foo; | |
19226 | std::vector<int>::iterator it = | |
19227 | std::find_if(moo.begin(), moo.end(), | |
19228 | std::bind2nd(std::less<int>(), 3)); | |
19229 | ; | |
19230 | return 0; | |
19231 | } | |
19232 | _ACEOF | |
19233 | rm -f conftest.$ac_objext | |
19234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19235 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19236 | ac_status=$? |
ac1cb8d3 VS |
19237 | grep -v '^ *+' conftest.er1 >conftest.err |
19238 | rm -f conftest.er1 | |
19239 | cat conftest.err >&5 | |
a848cd7e SC |
19240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19241 | (exit $ac_status); } && | |
4d4ff94c | 19242 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
19248 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19250 | (eval $ac_try) 2>&5 | |
19251 | ac_status=$? | |
19252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19253 | (exit $ac_status); }; }; then | |
19254 | echo "$as_me:$LINENO: result: yes" >&5 | |
19255 | echo "${ECHO_T}yes" >&6 | |
19256 | else | |
19257 | echo "$as_me: failed program was:" >&5 | |
19258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19259 | ||
19260 | echo "$as_me:$LINENO: result: no" >&5 | |
19261 | echo "${ECHO_T}no" >&6 | |
19262 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19263 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19264 | { (exit 1); exit 1; }; } | |
19265 | fi | |
ac1cb8d3 | 19266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19267 | |
19268 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19269 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19270 | cat >conftest.$ac_ext <<_ACEOF | |
19271 | /* confdefs.h. */ | |
19272 | _ACEOF | |
19273 | cat confdefs.h >>conftest.$ac_ext | |
19274 | cat >>conftest.$ac_ext <<_ACEOF | |
19275 | /* end confdefs.h. */ | |
19276 | #include <string> | |
19277 | int | |
19278 | main () | |
19279 | { | |
19280 | std::wstring foo; | |
19281 | ; | |
19282 | return 0; | |
19283 | } | |
19284 | _ACEOF | |
19285 | rm -f conftest.$ac_objext | |
19286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19287 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19288 | ac_status=$? |
ac1cb8d3 VS |
19289 | grep -v '^ *+' conftest.er1 >conftest.err |
19290 | rm -f conftest.er1 | |
19291 | cat conftest.err >&5 | |
a848cd7e SC |
19292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19293 | (exit $ac_status); } && | |
4d4ff94c | 19294 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19296 | (eval $ac_try) 2>&5 | |
19297 | ac_status=$? | |
19298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19299 | (exit $ac_status); }; } && | |
19300 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19302 | (eval $ac_try) 2>&5 | |
19303 | ac_status=$? | |
19304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19305 | (exit $ac_status); }; }; then | |
19306 | echo "$as_me:$LINENO: result: yes" >&5 | |
19307 | echo "${ECHO_T}yes" >&6 | |
19308 | cat >>confdefs.h <<\_ACEOF | |
19309 | #define HAVE_STD_WSTRING 1 | |
19310 | _ACEOF | |
19311 | ||
19312 | else | |
19313 | echo "$as_me: failed program was:" >&5 | |
19314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19315 | ||
19316 | echo "$as_me:$LINENO: result: no" >&5 | |
19317 | echo "${ECHO_T}no" >&6 | |
19318 | fi | |
ac1cb8d3 | 19319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19320 | |
19321 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19322 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19323 | cat >conftest.$ac_ext <<_ACEOF | |
19324 | /* confdefs.h. */ | |
19325 | _ACEOF | |
19326 | cat confdefs.h >>conftest.$ac_ext | |
19327 | cat >>conftest.$ac_ext <<_ACEOF | |
19328 | /* end confdefs.h. */ | |
19329 | #include <string> | |
19330 | int | |
19331 | main () | |
19332 | { | |
19333 | std::string foo, bar; | |
19334 | foo.compare(bar); | |
19335 | foo.compare(1, 1, bar); | |
19336 | foo.compare(1, 1, bar, 1, 1); | |
19337 | foo.compare(""); | |
19338 | foo.compare(1, 1, ""); | |
19339 | foo.compare(1, 1, "", 2); | |
19340 | ; | |
19341 | return 0; | |
19342 | } | |
19343 | _ACEOF | |
19344 | rm -f conftest.$ac_objext | |
19345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19347 | ac_status=$? |
ac1cb8d3 VS |
19348 | grep -v '^ *+' conftest.er1 >conftest.err |
19349 | rm -f conftest.er1 | |
19350 | cat conftest.err >&5 | |
a848cd7e SC |
19351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19352 | (exit $ac_status); } && | |
4d4ff94c | 19353 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19355 | (eval $ac_try) 2>&5 | |
19356 | ac_status=$? | |
19357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19358 | (exit $ac_status); }; } && | |
19359 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19361 | (eval $ac_try) 2>&5 | |
19362 | ac_status=$? | |
19363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19364 | (exit $ac_status); }; }; then | |
19365 | echo "$as_me:$LINENO: result: yes" >&5 | |
19366 | echo "${ECHO_T}yes" >&6 | |
19367 | cat >>confdefs.h <<\_ACEOF | |
19368 | #define HAVE_STD_STRING_COMPARE 1 | |
19369 | _ACEOF | |
19370 | ||
19371 | else | |
19372 | echo "$as_me: failed program was:" >&5 | |
19373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19374 | ||
19375 | echo "$as_me:$LINENO: result: no" >&5 | |
19376 | echo "${ECHO_T}no" >&6 | |
19377 | fi | |
ac1cb8d3 | 19378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19379 | |
19380 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19381 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19382 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19383 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19385 | fi | |
19386 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19387 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19388 | else | |
19389 | # Is the header compilable? | |
19390 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19391 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19392 | cat >conftest.$ac_ext <<_ACEOF | |
19393 | /* confdefs.h. */ | |
19394 | _ACEOF | |
19395 | cat confdefs.h >>conftest.$ac_ext | |
19396 | cat >>conftest.$ac_ext <<_ACEOF | |
19397 | /* end confdefs.h. */ | |
19398 | $ac_includes_default | |
19399 | #include <hash_map> | |
19400 | _ACEOF | |
19401 | rm -f conftest.$ac_objext | |
19402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19403 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19404 | ac_status=$? |
ac1cb8d3 VS |
19405 | grep -v '^ *+' conftest.er1 >conftest.err |
19406 | rm -f conftest.er1 | |
19407 | cat conftest.err >&5 | |
bdcade0a MB |
19408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19409 | (exit $ac_status); } && | |
4d4ff94c | 19410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19412 | (eval $ac_try) 2>&5 | |
19413 | ac_status=$? | |
19414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19415 | (exit $ac_status); }; } && | |
19416 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19418 | (eval $ac_try) 2>&5 | |
19419 | ac_status=$? | |
19420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19421 | (exit $ac_status); }; }; then | |
19422 | ac_header_compiler=yes | |
19423 | else | |
19424 | echo "$as_me: failed program was:" >&5 | |
19425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19426 | ||
19427 | ac_header_compiler=no | |
19428 | fi | |
ac1cb8d3 | 19429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19431 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19432 | ||
19433 | # Is the header present? | |
19434 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19435 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19436 | cat >conftest.$ac_ext <<_ACEOF | |
19437 | /* confdefs.h. */ | |
19438 | _ACEOF | |
19439 | cat confdefs.h >>conftest.$ac_ext | |
19440 | cat >>conftest.$ac_ext <<_ACEOF | |
19441 | /* end confdefs.h. */ | |
19442 | #include <hash_map> | |
19443 | _ACEOF | |
19444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19446 | ac_status=$? | |
19447 | grep -v '^ *+' conftest.er1 >conftest.err | |
19448 | rm -f conftest.er1 | |
19449 | cat conftest.err >&5 | |
19450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19451 | (exit $ac_status); } >/dev/null; then | |
19452 | if test -s conftest.err; then | |
19453 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19454 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19455 | else |
19456 | ac_cpp_err= | |
19457 | fi | |
19458 | else | |
19459 | ac_cpp_err=yes | |
19460 | fi | |
19461 | if test -z "$ac_cpp_err"; then | |
19462 | ac_header_preproc=yes | |
19463 | else | |
19464 | echo "$as_me: failed program was:" >&5 | |
19465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19466 | ||
19467 | ac_header_preproc=no | |
19468 | fi | |
19469 | rm -f conftest.err conftest.$ac_ext | |
19470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19471 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19472 | ||
19473 | # So? What about this header? | |
ac1cb8d3 VS |
19474 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19475 | yes:no: ) | |
bdcade0a MB |
19476 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19477 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19478 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19479 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19480 | ac_header_preproc=yes | |
bdcade0a | 19481 | ;; |
ac1cb8d3 | 19482 | no:yes:* ) |
bdcade0a MB |
19483 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19484 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19485 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19486 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19487 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19488 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19489 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19490 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19491 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19492 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19493 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19494 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19495 | ( |
19496 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19497 | ## ----------------------------------------- ## |
19498 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19499 | ## ----------------------------------------- ## | |
bdcade0a MB |
19500 | _ASBOX |
19501 | ) | | |
19502 | sed "s/^/$as_me: WARNING: /" >&2 | |
19503 | ;; | |
19504 | esac | |
19505 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19506 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19507 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19509 | else | |
19510 | ac_cv_header_hash_map=$ac_header_preproc | |
19511 | fi | |
19512 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19513 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19514 | ||
19515 | fi | |
19516 | if test $ac_cv_header_hash_map = yes; then | |
19517 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19518 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19519 | cat >conftest.$ac_ext <<_ACEOF | |
19520 | /* confdefs.h. */ | |
19521 | _ACEOF | |
19522 | cat confdefs.h >>conftest.$ac_ext | |
19523 | cat >>conftest.$ac_ext <<_ACEOF | |
19524 | /* end confdefs.h. */ | |
19525 | #include <hash_map> | |
19526 | #include <hash_set> | |
19527 | int | |
19528 | main () | |
19529 | { | |
19530 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19531 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19532 | ; | |
19533 | return 0; | |
19534 | } | |
19535 | _ACEOF | |
19536 | rm -f conftest.$ac_objext | |
19537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19538 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19539 | ac_status=$? |
ac1cb8d3 VS |
19540 | grep -v '^ *+' conftest.er1 >conftest.err |
19541 | rm -f conftest.er1 | |
19542 | cat conftest.err >&5 | |
bdcade0a MB |
19543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19544 | (exit $ac_status); } && | |
4d4ff94c | 19545 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19547 | (eval $ac_try) 2>&5 | |
19548 | ac_status=$? | |
19549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19550 | (exit $ac_status); }; } && | |
19551 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19553 | (eval $ac_try) 2>&5 | |
19554 | ac_status=$? | |
19555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19556 | (exit $ac_status); }; }; then | |
19557 | echo "$as_me:$LINENO: result: yes" >&5 | |
19558 | echo "${ECHO_T}yes" >&6 | |
19559 | cat >>confdefs.h <<\_ACEOF | |
19560 | #define HAVE_HASH_MAP 1 | |
19561 | _ACEOF | |
19562 | ||
19563 | cat >>confdefs.h <<\_ACEOF | |
19564 | #define HAVE_STD_HASH_MAP 1 | |
19565 | _ACEOF | |
19566 | ||
19567 | else | |
19568 | echo "$as_me: failed program was:" >&5 | |
19569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19570 | ||
19571 | echo "$as_me:$LINENO: result: no" >&5 | |
19572 | echo "${ECHO_T}no" >&6 | |
19573 | fi | |
ac1cb8d3 | 19574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19575 | |
19576 | fi | |
19577 | ||
19578 | ||
19579 | ||
19580 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19581 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19582 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19583 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19585 | fi | |
19586 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19587 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19588 | else | |
19589 | # Is the header compilable? | |
19590 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19591 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19592 | cat >conftest.$ac_ext <<_ACEOF | |
19593 | /* confdefs.h. */ | |
19594 | _ACEOF | |
19595 | cat confdefs.h >>conftest.$ac_ext | |
19596 | cat >>conftest.$ac_ext <<_ACEOF | |
19597 | /* end confdefs.h. */ | |
19598 | $ac_includes_default | |
19599 | #include <ext/hash_map> | |
19600 | _ACEOF | |
19601 | rm -f conftest.$ac_objext | |
19602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19603 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19604 | ac_status=$? |
ac1cb8d3 VS |
19605 | grep -v '^ *+' conftest.er1 >conftest.err |
19606 | rm -f conftest.er1 | |
19607 | cat conftest.err >&5 | |
bdcade0a MB |
19608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19609 | (exit $ac_status); } && | |
4d4ff94c | 19610 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19612 | (eval $ac_try) 2>&5 | |
19613 | ac_status=$? | |
19614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19615 | (exit $ac_status); }; } && | |
19616 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19618 | (eval $ac_try) 2>&5 | |
19619 | ac_status=$? | |
19620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19621 | (exit $ac_status); }; }; then | |
19622 | ac_header_compiler=yes | |
19623 | else | |
19624 | echo "$as_me: failed program was:" >&5 | |
19625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19626 | ||
19627 | ac_header_compiler=no | |
19628 | fi | |
ac1cb8d3 | 19629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19630 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19631 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19632 | ||
19633 | # Is the header present? | |
19634 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
19635 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
19636 | cat >conftest.$ac_ext <<_ACEOF | |
19637 | /* confdefs.h. */ | |
19638 | _ACEOF | |
19639 | cat confdefs.h >>conftest.$ac_ext | |
19640 | cat >>conftest.$ac_ext <<_ACEOF | |
19641 | /* end confdefs.h. */ | |
19642 | #include <ext/hash_map> | |
19643 | _ACEOF | |
19644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19646 | ac_status=$? | |
19647 | grep -v '^ *+' conftest.er1 >conftest.err | |
19648 | rm -f conftest.er1 | |
19649 | cat conftest.err >&5 | |
19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19651 | (exit $ac_status); } >/dev/null; then | |
19652 | if test -s conftest.err; then | |
19653 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19654 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19655 | else |
19656 | ac_cpp_err= | |
19657 | fi | |
19658 | else | |
19659 | ac_cpp_err=yes | |
19660 | fi | |
19661 | if test -z "$ac_cpp_err"; then | |
19662 | ac_header_preproc=yes | |
19663 | else | |
19664 | echo "$as_me: failed program was:" >&5 | |
19665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19666 | ||
19667 | ac_header_preproc=no | |
19668 | fi | |
19669 | rm -f conftest.err conftest.$ac_ext | |
19670 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19671 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19672 | ||
19673 | # So? What about this header? | |
ac1cb8d3 VS |
19674 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19675 | yes:no: ) | |
bdcade0a MB |
19676 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19677 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19678 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
19679 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
19680 | ac_header_preproc=yes | |
bdcade0a | 19681 | ;; |
ac1cb8d3 | 19682 | no:yes:* ) |
bdcade0a MB |
19683 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
19684 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19685 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
19686 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
19687 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
19688 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
19689 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19690 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19691 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
19692 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19693 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
19694 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19695 | ( |
19696 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19697 | ## ----------------------------------------- ## |
19698 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19699 | ## ----------------------------------------- ## | |
bdcade0a MB |
19700 | _ASBOX |
19701 | ) | | |
19702 | sed "s/^/$as_me: WARNING: /" >&2 | |
19703 | ;; | |
19704 | esac | |
19705 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19706 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19707 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19709 | else | |
19710 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
19711 | fi | |
19712 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19713 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19714 | ||
19715 | fi | |
19716 | if test $ac_cv_header_ext_hash_map = yes; then | |
19717 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19718 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19719 | cat >conftest.$ac_ext <<_ACEOF | |
19720 | /* confdefs.h. */ | |
19721 | _ACEOF | |
19722 | cat confdefs.h >>conftest.$ac_ext | |
19723 | cat >>conftest.$ac_ext <<_ACEOF | |
19724 | /* end confdefs.h. */ | |
19725 | #include <ext/hash_map> | |
19726 | #include <ext/hash_set> | |
19727 | int | |
19728 | main () | |
19729 | { | |
19730 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
19731 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
19732 | ; | |
19733 | return 0; | |
19734 | } | |
19735 | _ACEOF | |
19736 | rm -f conftest.$ac_objext | |
19737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19738 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19739 | ac_status=$? |
ac1cb8d3 VS |
19740 | grep -v '^ *+' conftest.er1 >conftest.err |
19741 | rm -f conftest.er1 | |
19742 | cat conftest.err >&5 | |
bdcade0a MB |
19743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19744 | (exit $ac_status); } && | |
4d4ff94c | 19745 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19747 | (eval $ac_try) 2>&5 | |
19748 | ac_status=$? | |
19749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19750 | (exit $ac_status); }; } && | |
19751 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19753 | (eval $ac_try) 2>&5 | |
19754 | ac_status=$? | |
19755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19756 | (exit $ac_status); }; }; then | |
19757 | echo "$as_me:$LINENO: result: yes" >&5 | |
19758 | echo "${ECHO_T}yes" >&6 | |
19759 | cat >>confdefs.h <<\_ACEOF | |
19760 | #define HAVE_EXT_HASH_MAP 1 | |
19761 | _ACEOF | |
19762 | ||
19763 | cat >>confdefs.h <<\_ACEOF | |
19764 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
19765 | _ACEOF | |
19766 | ||
19767 | else | |
19768 | echo "$as_me: failed program was:" >&5 | |
19769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19770 | ||
19771 | echo "$as_me:$LINENO: result: no" >&5 | |
19772 | echo "${ECHO_T}no" >&6 | |
19773 | fi | |
ac1cb8d3 | 19774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19775 | |
19776 | fi | |
19777 | ||
19778 | ||
a848cd7e SC |
19779 | |
19780 | ac_ext=c | |
19781 | ac_cpp='$CPP $CPPFLAGS' | |
19782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19785 | ||
19786 | fi | |
19787 | ||
19788 | ||
19789 | SEARCH_INCLUDE="\ | |
19790 | /usr/local/include \ | |
19791 | \ | |
19792 | /usr/Motif-2.1/include \ | |
19793 | /usr/Motif-1.2/include \ | |
19794 | /usr/include/Motif1.2 \ | |
19795 | /opt/xpm/include/X11 \ | |
19796 | /opt/GBxpm/include/ \ | |
19797 | /opt/GBxpm/X11/include/ \ | |
19798 | \ | |
19799 | /usr/dt/include \ | |
19800 | /usr/openwin/include \ | |
19801 | \ | |
19802 | /usr/include/Xm \ | |
19803 | \ | |
19804 | /usr/X11R6/include \ | |
19805 | /usr/X11R6.4/include \ | |
19806 | /usr/X11R5/include \ | |
19807 | /usr/X11R4/include \ | |
19808 | \ | |
19809 | /usr/include/X11R6 \ | |
19810 | /usr/include/X11R5 \ | |
19811 | /usr/include/X11R4 \ | |
19812 | \ | |
19813 | /usr/local/X11R6/include \ | |
19814 | /usr/local/X11R5/include \ | |
19815 | /usr/local/X11R4/include \ | |
19816 | \ | |
19817 | /usr/local/include/X11R6 \ | |
19818 | /usr/local/include/X11R5 \ | |
19819 | /usr/local/include/X11R4 \ | |
19820 | \ | |
19821 | /usr/X11/include \ | |
19822 | /usr/include/X11 \ | |
19823 | /usr/local/X11/include \ | |
19824 | /usr/local/include/X11 \ | |
19825 | \ | |
19826 | /usr/X386/include \ | |
19827 | /usr/x386/include \ | |
19828 | /usr/XFree86/include/X11 \ | |
19829 | \ | |
19830 | X:/XFree86/include \ | |
19831 | X:/XFree86/include/X11 \ | |
19832 | \ | |
19833 | /usr/include/gtk \ | |
19834 | /usr/local/include/gtk \ | |
19835 | /usr/include/glib \ | |
19836 | /usr/local/include/glib \ | |
19837 | \ | |
19838 | /usr/include/qt \ | |
19839 | /usr/local/include/qt \ | |
19840 | \ | |
19841 | /usr/local/arm/3.3.2/include \ | |
19842 | \ | |
19843 | /usr/include/windows \ | |
19844 | /usr/include/wine \ | |
19845 | /usr/local/include/wine \ | |
19846 | \ | |
19847 | /usr/unsupported/include \ | |
19848 | /usr/athena/include \ | |
19849 | /usr/local/x11r5/include \ | |
19850 | /usr/lpp/Xamples/include \ | |
19851 | \ | |
19852 | /usr/openwin/share/include" | |
19853 | ||
19854 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
19855 | ||
19856 | ||
19857 | cat >confcache <<\_ACEOF | |
19858 | # This file is a shell script that caches the results of configure | |
19859 | # tests run on this system so they can be shared between configure | |
19860 | # scripts and configure runs, see configure's option --config-cache. | |
19861 | # It is not useful on other systems. If it contains results you don't | |
19862 | # want to keep, you may remove or edit it. | |
19863 | # | |
19864 | # config.status only pays attention to the cache file if you give it | |
19865 | # the --recheck option to rerun configure. | |
19866 | # | |
19867 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19868 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19869 | # following values. | |
19870 | ||
19871 | _ACEOF | |
19872 | ||
19873 | # The following way of writing the cache mishandles newlines in values, | |
19874 | # but we know of no workaround that is simple, portable, and efficient. | |
19875 | # So, don't put newlines in cache variables' values. | |
19876 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19877 | # and sets the high bit in the cache file unless we assign to the vars. | |
19878 | { | |
19879 | (set) 2>&1 | | |
19880 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19881 | *ac_space=\ *) | |
19882 | # `set' does not quote correctly, so add quotes (double-quote | |
19883 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19884 | sed -n \ | |
ac1cb8d3 VS |
19885 | "s/'/'\\\\''/g; |
19886 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
19887 | ;; |
19888 | *) | |
19889 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19890 | sed -n \ | |
ac1cb8d3 | 19891 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
19892 | ;; |
19893 | esac; | |
19894 | } | | |
19895 | sed ' | |
19896 | t clear | |
19897 | : clear | |
19898 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19899 | t end | |
19900 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19901 | : end' >>confcache | |
19902 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
19903 | if test -w $cache_file; then | |
19904 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
19905 | cat confcache >$cache_file | |
19906 | else | |
19907 | echo "not updating unwritable cache $cache_file" | |
19908 | fi | |
19909 | fi | |
19910 | rm -f confcache | |
19911 | ||
19912 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
19913 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
19914 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
19915 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
19916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19917 | else | |
19918 | ||
19919 | cat >conftest.$ac_ext <<_ACEOF | |
19920 | /* confdefs.h. */ | |
19921 | _ACEOF | |
19922 | cat confdefs.h >>conftest.$ac_ext | |
19923 | cat >>conftest.$ac_ext <<_ACEOF | |
19924 | /* end confdefs.h. */ | |
19925 | #include <features.h> | |
19926 | int | |
19927 | main () | |
19928 | { | |
19929 | ||
19930 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
19931 | #error not glibc2.1 | |
19932 | #endif | |
19933 | ||
19934 | ; | |
19935 | return 0; | |
19936 | } | |
19937 | _ACEOF | |
19938 | rm -f conftest.$ac_objext | |
19939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19940 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19941 | ac_status=$? |
ac1cb8d3 VS |
19942 | grep -v '^ *+' conftest.er1 >conftest.err |
19943 | rm -f conftest.er1 | |
19944 | cat conftest.err >&5 | |
a848cd7e SC |
19945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19946 | (exit $ac_status); } && | |
4d4ff94c | 19947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19949 | (eval $ac_try) 2>&5 | |
19950 | ac_status=$? | |
19951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19952 | (exit $ac_status); }; } && | |
19953 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19955 | (eval $ac_try) 2>&5 | |
19956 | ac_status=$? | |
19957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19958 | (exit $ac_status); }; }; then | |
19959 | ||
19960 | wx_cv_lib_glibc21=yes | |
19961 | ||
19962 | else | |
19963 | echo "$as_me: failed program was:" >&5 | |
19964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19965 | ||
19966 | ||
19967 | wx_cv_lib_glibc21=no | |
19968 | ||
19969 | ||
19970 | fi | |
ac1cb8d3 | 19971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19972 | |
19973 | fi | |
19974 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
19975 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
19976 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
19977 | cat >>confdefs.h <<\_ACEOF | |
19978 | #define wxHAVE_GLIBC2 1 | |
19979 | _ACEOF | |
19980 | ||
19981 | fi | |
19982 | fi | |
19983 | ||
19984 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
19985 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
19986 | cat >>confdefs.h <<\_ACEOF | |
19987 | #define _GNU_SOURCE 1 | |
19988 | _ACEOF | |
19989 | ||
19990 | fi | |
19991 | fi | |
19992 | ||
19993 | ||
19994 | ||
19995 | if test "$wxUSE_REGEX" != "no"; then | |
19996 | cat >>confdefs.h <<\_ACEOF | |
19997 | #define wxUSE_REGEX 1 | |
19998 | _ACEOF | |
19999 | ||
20000 | ||
20001 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20002 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20003 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20004 | wxUSE_REGEX=builtin | |
20005 | fi | |
20006 | ||
20007 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20008 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20009 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20010 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20011 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20013 | fi | |
20014 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20015 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20016 | else | |
20017 | # Is the header compilable? | |
20018 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20019 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20020 | cat >conftest.$ac_ext <<_ACEOF | |
20021 | /* confdefs.h. */ | |
20022 | _ACEOF | |
20023 | cat confdefs.h >>conftest.$ac_ext | |
20024 | cat >>conftest.$ac_ext <<_ACEOF | |
20025 | /* end confdefs.h. */ | |
20026 | $ac_includes_default | |
20027 | #include <regex.h> | |
20028 | _ACEOF | |
20029 | rm -f conftest.$ac_objext | |
20030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20031 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20032 | ac_status=$? |
ac1cb8d3 VS |
20033 | grep -v '^ *+' conftest.er1 >conftest.err |
20034 | rm -f conftest.er1 | |
20035 | cat conftest.err >&5 | |
a848cd7e SC |
20036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20037 | (exit $ac_status); } && | |
4d4ff94c | 20038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20040 | (eval $ac_try) 2>&5 | |
20041 | ac_status=$? | |
20042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20043 | (exit $ac_status); }; } && | |
20044 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20046 | (eval $ac_try) 2>&5 | |
20047 | ac_status=$? | |
20048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20049 | (exit $ac_status); }; }; then | |
20050 | ac_header_compiler=yes | |
20051 | else | |
20052 | echo "$as_me: failed program was:" >&5 | |
20053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20054 | ||
20055 | ac_header_compiler=no | |
20056 | fi | |
ac1cb8d3 | 20057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20058 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20059 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20060 | ||
20061 | # Is the header present? | |
20062 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20063 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20064 | cat >conftest.$ac_ext <<_ACEOF | |
20065 | /* confdefs.h. */ | |
20066 | _ACEOF | |
20067 | cat confdefs.h >>conftest.$ac_ext | |
20068 | cat >>conftest.$ac_ext <<_ACEOF | |
20069 | /* end confdefs.h. */ | |
20070 | #include <regex.h> | |
20071 | _ACEOF | |
20072 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20073 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20074 | ac_status=$? | |
20075 | grep -v '^ *+' conftest.er1 >conftest.err | |
20076 | rm -f conftest.er1 | |
20077 | cat conftest.err >&5 | |
20078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20079 | (exit $ac_status); } >/dev/null; then | |
20080 | if test -s conftest.err; then | |
20081 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20082 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20083 | else |
20084 | ac_cpp_err= | |
20085 | fi | |
20086 | else | |
20087 | ac_cpp_err=yes | |
20088 | fi | |
20089 | if test -z "$ac_cpp_err"; then | |
20090 | ac_header_preproc=yes | |
20091 | else | |
20092 | echo "$as_me: failed program was:" >&5 | |
20093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20094 | ||
20095 | ac_header_preproc=no | |
20096 | fi | |
20097 | rm -f conftest.err conftest.$ac_ext | |
20098 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20099 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20100 | ||
20101 | # So? What about this header? | |
ac1cb8d3 VS |
20102 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20103 | yes:no: ) | |
a848cd7e SC |
20104 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20105 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20106 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20107 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20108 | ac_header_preproc=yes | |
a848cd7e | 20109 | ;; |
ac1cb8d3 | 20110 | no:yes:* ) |
a848cd7e SC |
20111 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20112 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20113 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20114 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20115 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20116 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20117 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20118 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20119 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20120 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20121 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20122 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20123 | ( |
20124 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20125 | ## ----------------------------------------- ## |
20126 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20127 | ## ----------------------------------------- ## | |
a848cd7e SC |
20128 | _ASBOX |
20129 | ) | | |
20130 | sed "s/^/$as_me: WARNING: /" >&2 | |
20131 | ;; | |
20132 | esac | |
20133 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20134 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20135 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20137 | else | |
20138 | ac_cv_header_regex_h=$ac_header_preproc | |
20139 | fi | |
20140 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20141 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20142 | ||
20143 | fi | |
20144 | if test $ac_cv_header_regex_h = yes; then | |
20145 | ||
20146 | for ac_func in regcomp | |
20147 | do | |
20148 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20149 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20150 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20151 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20153 | else | |
20154 | cat >conftest.$ac_ext <<_ACEOF | |
20155 | /* confdefs.h. */ | |
20156 | _ACEOF | |
20157 | cat confdefs.h >>conftest.$ac_ext | |
20158 | cat >>conftest.$ac_ext <<_ACEOF | |
20159 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20160 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20161 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20162 | #define $ac_func innocuous_$ac_func | |
20163 | ||
a848cd7e SC |
20164 | /* System header to define __stub macros and hopefully few prototypes, |
20165 | which can conflict with char $ac_func (); below. | |
20166 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20167 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20168 | |
a848cd7e SC |
20169 | #ifdef __STDC__ |
20170 | # include <limits.h> | |
20171 | #else | |
20172 | # include <assert.h> | |
20173 | #endif | |
ac1cb8d3 VS |
20174 | |
20175 | #undef $ac_func | |
20176 | ||
a848cd7e SC |
20177 | /* Override any gcc2 internal prototype to avoid an error. */ |
20178 | #ifdef __cplusplus | |
20179 | extern "C" | |
20180 | { | |
20181 | #endif | |
20182 | /* We use char because int might match the return type of a gcc2 | |
20183 | builtin and then its argument prototype would still apply. */ | |
20184 | char $ac_func (); | |
20185 | /* The GNU C library defines this for functions which it implements | |
20186 | to always fail with ENOSYS. Some functions are actually named | |
20187 | something starting with __ and the normal name is an alias. */ | |
20188 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20189 | choke me | |
20190 | #else | |
20191 | char (*f) () = $ac_func; | |
20192 | #endif | |
20193 | #ifdef __cplusplus | |
20194 | } | |
20195 | #endif | |
20196 | ||
20197 | int | |
20198 | main () | |
20199 | { | |
20200 | return f != $ac_func; | |
20201 | ; | |
20202 | return 0; | |
20203 | } | |
20204 | _ACEOF | |
20205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20207 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20208 | ac_status=$? |
ac1cb8d3 VS |
20209 | grep -v '^ *+' conftest.er1 >conftest.err |
20210 | rm -f conftest.er1 | |
20211 | cat conftest.err >&5 | |
a848cd7e SC |
20212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20213 | (exit $ac_status); } && | |
4d4ff94c | 20214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20216 | (eval $ac_try) 2>&5 | |
20217 | ac_status=$? | |
20218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20219 | (exit $ac_status); }; } && | |
20220 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20222 | (eval $ac_try) 2>&5 | |
20223 | ac_status=$? | |
20224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20225 | (exit $ac_status); }; }; then | |
20226 | eval "$as_ac_var=yes" | |
20227 | else | |
20228 | echo "$as_me: failed program was:" >&5 | |
20229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20230 | ||
20231 | eval "$as_ac_var=no" | |
20232 | fi | |
ac1cb8d3 VS |
20233 | rm -f conftest.err conftest.$ac_objext \ |
20234 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20235 | fi |
20236 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20237 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20238 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20239 | cat >>confdefs.h <<_ACEOF | |
20240 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20241 | _ACEOF | |
20242 | ||
20243 | fi | |
20244 | done | |
20245 | ||
20246 | fi | |
20247 | ||
20248 | ||
20249 | ||
20250 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20251 | if test "$wxUSE_REGEX" = "sys" ; then | |
20252 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20253 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20254 | { (exit 1); exit 1; }; } | |
20255 | else | |
20256 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20257 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20258 | wxUSE_REGEX=builtin | |
20259 | fi | |
20260 | else | |
20261 | wxUSE_REGEX=sys | |
20262 | cat >>confdefs.h <<\_ACEOF | |
20263 | #define WX_NO_REGEX_ADVANCED 1 | |
20264 | _ACEOF | |
20265 | ||
20266 | fi | |
20267 | fi | |
20268 | fi | |
20269 | ||
20270 | ||
20271 | ZLIB_LINK= | |
20272 | if test "$wxUSE_ZLIB" != "no" ; then | |
20273 | cat >>confdefs.h <<\_ACEOF | |
20274 | #define wxUSE_ZLIB 1 | |
20275 | _ACEOF | |
20276 | ||
20277 | ||
20278 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20279 | if test "$USE_DARWIN" = 1; then | |
20280 | system_zlib_h_ok="yes" | |
20281 | else | |
20282 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20283 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20284 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20286 | else | |
20287 | if test "$cross_compiling" = yes; then | |
20288 | unset ac_cv_header_zlib_h | |
20289 | ||
20290 | else | |
20291 | cat >conftest.$ac_ext <<_ACEOF | |
20292 | /* confdefs.h. */ | |
20293 | _ACEOF | |
20294 | cat confdefs.h >>conftest.$ac_ext | |
20295 | cat >>conftest.$ac_ext <<_ACEOF | |
20296 | /* end confdefs.h. */ | |
20297 | ||
20298 | #include <zlib.h> | |
20299 | #include <stdio.h> | |
20300 | ||
20301 | int main() | |
20302 | { | |
20303 | FILE *f=fopen("conftestval", "w"); | |
20304 | if (!f) exit(1); | |
20305 | fprintf(f, "%s", | |
20306 | ZLIB_VERSION[0] == '1' && | |
20307 | (ZLIB_VERSION[2] > '1' || | |
20308 | (ZLIB_VERSION[2] == '1' && | |
20309 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20310 | exit(0); | |
20311 | } | |
20312 | ||
20313 | _ACEOF | |
20314 | rm -f conftest$ac_exeext | |
20315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20316 | (eval $ac_link) 2>&5 | |
20317 | ac_status=$? | |
20318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20319 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20321 | (eval $ac_try) 2>&5 | |
20322 | ac_status=$? | |
20323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20324 | (exit $ac_status); }; }; then | |
20325 | ac_cv_header_zlib_h=`cat conftestval` | |
20326 | else | |
20327 | echo "$as_me: program exited with status $ac_status" >&5 | |
20328 | echo "$as_me: failed program was:" >&5 | |
20329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20330 | ||
20331 | ( exit $ac_status ) | |
20332 | ac_cv_header_zlib_h=no | |
20333 | fi | |
ac1cb8d3 | 20334 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20335 | fi |
20336 | ||
20337 | fi | |
20338 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20339 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20340 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20341 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20342 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20343 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20345 | fi | |
20346 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20347 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20348 | else | |
20349 | # Is the header compilable? | |
20350 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20351 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20352 | cat >conftest.$ac_ext <<_ACEOF | |
20353 | /* confdefs.h. */ | |
20354 | _ACEOF | |
20355 | cat confdefs.h >>conftest.$ac_ext | |
20356 | cat >>conftest.$ac_ext <<_ACEOF | |
20357 | /* end confdefs.h. */ | |
20358 | $ac_includes_default | |
20359 | #include <zlib.h> | |
20360 | _ACEOF | |
20361 | rm -f conftest.$ac_objext | |
20362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20364 | ac_status=$? |
ac1cb8d3 VS |
20365 | grep -v '^ *+' conftest.er1 >conftest.err |
20366 | rm -f conftest.er1 | |
20367 | cat conftest.err >&5 | |
a848cd7e SC |
20368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20369 | (exit $ac_status); } && | |
4d4ff94c | 20370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20372 | (eval $ac_try) 2>&5 | |
20373 | ac_status=$? | |
20374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20375 | (exit $ac_status); }; } && | |
20376 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20378 | (eval $ac_try) 2>&5 | |
20379 | ac_status=$? | |
20380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20381 | (exit $ac_status); }; }; then | |
20382 | ac_header_compiler=yes | |
20383 | else | |
20384 | echo "$as_me: failed program was:" >&5 | |
20385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20386 | ||
20387 | ac_header_compiler=no | |
20388 | fi | |
ac1cb8d3 | 20389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20390 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20391 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20392 | ||
20393 | # Is the header present? | |
20394 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20395 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20396 | cat >conftest.$ac_ext <<_ACEOF | |
20397 | /* confdefs.h. */ | |
20398 | _ACEOF | |
20399 | cat confdefs.h >>conftest.$ac_ext | |
20400 | cat >>conftest.$ac_ext <<_ACEOF | |
20401 | /* end confdefs.h. */ | |
20402 | #include <zlib.h> | |
20403 | _ACEOF | |
20404 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20405 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20406 | ac_status=$? | |
20407 | grep -v '^ *+' conftest.er1 >conftest.err | |
20408 | rm -f conftest.er1 | |
20409 | cat conftest.err >&5 | |
20410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20411 | (exit $ac_status); } >/dev/null; then | |
20412 | if test -s conftest.err; then | |
20413 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20414 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20415 | else |
20416 | ac_cpp_err= | |
20417 | fi | |
20418 | else | |
20419 | ac_cpp_err=yes | |
20420 | fi | |
20421 | if test -z "$ac_cpp_err"; then | |
20422 | ac_header_preproc=yes | |
20423 | else | |
20424 | echo "$as_me: failed program was:" >&5 | |
20425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20426 | ||
20427 | ac_header_preproc=no | |
20428 | fi | |
20429 | rm -f conftest.err conftest.$ac_ext | |
20430 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20431 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20432 | ||
20433 | # So? What about this header? | |
ac1cb8d3 VS |
20434 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20435 | yes:no: ) | |
a848cd7e SC |
20436 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20437 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20438 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20439 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20440 | ac_header_preproc=yes | |
a848cd7e | 20441 | ;; |
ac1cb8d3 | 20442 | no:yes:* ) |
a848cd7e SC |
20443 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20444 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20445 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20446 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20447 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20448 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20449 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20450 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20451 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20452 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20453 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20454 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20455 | ( |
20456 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20457 | ## ----------------------------------------- ## |
20458 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20459 | ## ----------------------------------------- ## | |
a848cd7e SC |
20460 | _ASBOX |
20461 | ) | | |
20462 | sed "s/^/$as_me: WARNING: /" >&2 | |
20463 | ;; | |
20464 | esac | |
20465 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20466 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20467 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20469 | else | |
20470 | ac_cv_header_zlib_h=$ac_header_preproc | |
20471 | fi | |
20472 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20473 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20474 | ||
20475 | fi | |
20476 | ||
20477 | ||
20478 | ||
20479 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20480 | fi | |
20481 | ||
20482 | if test "$system_zlib_h_ok" = "yes"; then | |
20483 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20484 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20485 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20487 | else | |
20488 | ac_check_lib_save_LIBS=$LIBS | |
20489 | LIBS="-lz $LIBS" | |
20490 | cat >conftest.$ac_ext <<_ACEOF | |
20491 | /* confdefs.h. */ | |
20492 | _ACEOF | |
20493 | cat confdefs.h >>conftest.$ac_ext | |
20494 | cat >>conftest.$ac_ext <<_ACEOF | |
20495 | /* end confdefs.h. */ | |
20496 | ||
20497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20498 | #ifdef __cplusplus | |
20499 | extern "C" | |
20500 | #endif | |
20501 | /* We use char because int might match the return type of a gcc2 | |
20502 | builtin and then its argument prototype would still apply. */ | |
20503 | char deflate (); | |
20504 | int | |
20505 | main () | |
20506 | { | |
20507 | deflate (); | |
20508 | ; | |
20509 | return 0; | |
20510 | } | |
20511 | _ACEOF | |
20512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20514 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20515 | ac_status=$? |
ac1cb8d3 VS |
20516 | grep -v '^ *+' conftest.er1 >conftest.err |
20517 | rm -f conftest.er1 | |
20518 | cat conftest.err >&5 | |
a848cd7e SC |
20519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20520 | (exit $ac_status); } && | |
4d4ff94c | 20521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20523 | (eval $ac_try) 2>&5 | |
20524 | ac_status=$? | |
20525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20526 | (exit $ac_status); }; } && | |
20527 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20529 | (eval $ac_try) 2>&5 | |
20530 | ac_status=$? | |
20531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20532 | (exit $ac_status); }; }; then | |
20533 | ac_cv_lib_z_deflate=yes | |
20534 | else | |
20535 | echo "$as_me: failed program was:" >&5 | |
20536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20537 | ||
20538 | ac_cv_lib_z_deflate=no | |
20539 | fi | |
ac1cb8d3 VS |
20540 | rm -f conftest.err conftest.$ac_objext \ |
20541 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20542 | LIBS=$ac_check_lib_save_LIBS |
20543 | fi | |
20544 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20545 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20546 | if test $ac_cv_lib_z_deflate = yes; then | |
20547 | ZLIB_LINK=" -lz" | |
20548 | fi | |
20549 | ||
20550 | fi | |
20551 | ||
20552 | if test "x$ZLIB_LINK" = "x" ; then | |
20553 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20554 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20555 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20556 | { (exit 1); exit 1; }; } | |
20557 | else | |
20558 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20559 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20560 | wxUSE_ZLIB=builtin | |
20561 | fi | |
20562 | else | |
20563 | wxUSE_ZLIB=sys | |
20564 | fi | |
20565 | fi | |
20566 | fi | |
20567 | ||
20568 | ||
20569 | PNG_LINK= | |
20570 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20571 | cat >>confdefs.h <<\_ACEOF | |
20572 | #define wxUSE_LIBPNG 1 | |
20573 | _ACEOF | |
20574 | ||
20575 | ||
20576 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20577 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20578 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20579 | wxUSE_LIBPNG=sys | |
20580 | fi | |
20581 | ||
20582 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20583 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20584 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20585 | wxUSE_LIBPNG=builtin | |
20586 | fi | |
20587 | ||
20588 | if test "$wxUSE_MGL" != 1 ; then | |
20589 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20590 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20591 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20592 | if test "${ac_cv_header_png_h+set}" = set; then | |
20593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20594 | else | |
20595 | if test "$cross_compiling" = yes; then | |
20596 | unset ac_cv_header_png_h | |
20597 | ||
20598 | else | |
20599 | cat >conftest.$ac_ext <<_ACEOF | |
20600 | /* confdefs.h. */ | |
20601 | _ACEOF | |
20602 | cat confdefs.h >>conftest.$ac_ext | |
20603 | cat >>conftest.$ac_ext <<_ACEOF | |
20604 | /* end confdefs.h. */ | |
20605 | ||
20606 | #include <png.h> | |
20607 | #include <stdio.h> | |
20608 | ||
20609 | int main() | |
20610 | { | |
20611 | FILE *f=fopen("conftestval", "w"); | |
20612 | if (!f) exit(1); | |
20613 | fprintf(f, "%s", | |
20614 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20615 | exit(0); | |
20616 | } | |
20617 | ||
20618 | _ACEOF | |
20619 | rm -f conftest$ac_exeext | |
20620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20621 | (eval $ac_link) 2>&5 | |
20622 | ac_status=$? | |
20623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20624 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20626 | (eval $ac_try) 2>&5 | |
20627 | ac_status=$? | |
20628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20629 | (exit $ac_status); }; }; then | |
20630 | ac_cv_header_png_h=`cat conftestval` | |
20631 | else | |
20632 | echo "$as_me: program exited with status $ac_status" >&5 | |
20633 | echo "$as_me: failed program was:" >&5 | |
20634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20635 | ||
20636 | ( exit $ac_status ) | |
20637 | ac_cv_header_png_h=no | |
20638 | fi | |
ac1cb8d3 | 20639 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20640 | fi |
20641 | ||
20642 | fi | |
20643 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20644 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20645 | if test "${ac_cv_header_png_h+set}" = set; then | |
20646 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20647 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20648 | if test "${ac_cv_header_png_h+set}" = set; then | |
20649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20650 | fi | |
20651 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20652 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20653 | else | |
20654 | # Is the header compilable? | |
20655 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20656 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20657 | cat >conftest.$ac_ext <<_ACEOF | |
20658 | /* confdefs.h. */ | |
20659 | _ACEOF | |
20660 | cat confdefs.h >>conftest.$ac_ext | |
20661 | cat >>conftest.$ac_ext <<_ACEOF | |
20662 | /* end confdefs.h. */ | |
20663 | $ac_includes_default | |
20664 | #include <png.h> | |
20665 | _ACEOF | |
20666 | rm -f conftest.$ac_objext | |
20667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20668 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20669 | ac_status=$? |
ac1cb8d3 VS |
20670 | grep -v '^ *+' conftest.er1 >conftest.err |
20671 | rm -f conftest.er1 | |
20672 | cat conftest.err >&5 | |
a848cd7e SC |
20673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20674 | (exit $ac_status); } && | |
4d4ff94c | 20675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20677 | (eval $ac_try) 2>&5 | |
20678 | ac_status=$? | |
20679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20680 | (exit $ac_status); }; } && | |
20681 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20683 | (eval $ac_try) 2>&5 | |
20684 | ac_status=$? | |
20685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20686 | (exit $ac_status); }; }; then | |
20687 | ac_header_compiler=yes | |
20688 | else | |
20689 | echo "$as_me: failed program was:" >&5 | |
20690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20691 | ||
20692 | ac_header_compiler=no | |
20693 | fi | |
ac1cb8d3 | 20694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20695 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20696 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20697 | ||
20698 | # Is the header present? | |
20699 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20700 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20701 | cat >conftest.$ac_ext <<_ACEOF | |
20702 | /* confdefs.h. */ | |
20703 | _ACEOF | |
20704 | cat confdefs.h >>conftest.$ac_ext | |
20705 | cat >>conftest.$ac_ext <<_ACEOF | |
20706 | /* end confdefs.h. */ | |
20707 | #include <png.h> | |
20708 | _ACEOF | |
20709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20711 | ac_status=$? | |
20712 | grep -v '^ *+' conftest.er1 >conftest.err | |
20713 | rm -f conftest.er1 | |
20714 | cat conftest.err >&5 | |
20715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20716 | (exit $ac_status); } >/dev/null; then | |
20717 | if test -s conftest.err; then | |
20718 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20719 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20720 | else |
20721 | ac_cpp_err= | |
20722 | fi | |
20723 | else | |
20724 | ac_cpp_err=yes | |
20725 | fi | |
20726 | if test -z "$ac_cpp_err"; then | |
20727 | ac_header_preproc=yes | |
20728 | else | |
20729 | echo "$as_me: failed program was:" >&5 | |
20730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20731 | ||
20732 | ac_header_preproc=no | |
20733 | fi | |
20734 | rm -f conftest.err conftest.$ac_ext | |
20735 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20736 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20737 | ||
20738 | # So? What about this header? | |
ac1cb8d3 VS |
20739 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20740 | yes:no: ) | |
a848cd7e SC |
20741 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20742 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20743 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20744 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20745 | ac_header_preproc=yes | |
a848cd7e | 20746 | ;; |
ac1cb8d3 | 20747 | no:yes:* ) |
a848cd7e SC |
20748 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20749 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20750 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
20751 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
20752 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
20753 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
20754 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20755 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20756 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
20757 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20758 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
20759 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20760 | ( |
20761 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20762 | ## ----------------------------------------- ## |
20763 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20764 | ## ----------------------------------------- ## | |
a848cd7e SC |
20765 | _ASBOX |
20766 | ) | | |
20767 | sed "s/^/$as_me: WARNING: /" >&2 | |
20768 | ;; | |
20769 | esac | |
20770 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20771 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20772 | if test "${ac_cv_header_png_h+set}" = set; then | |
20773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20774 | else | |
20775 | ac_cv_header_png_h=$ac_header_preproc | |
20776 | fi | |
20777 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20778 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20779 | ||
20780 | fi | |
20781 | ||
20782 | ||
20783 | ||
20784 | if test "$ac_cv_header_png_h" = "yes"; then | |
20785 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
20786 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
20787 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
20788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20789 | else | |
20790 | ac_check_lib_save_LIBS=$LIBS | |
20791 | LIBS="-lpng -lz -lm $LIBS" | |
20792 | cat >conftest.$ac_ext <<_ACEOF | |
20793 | /* confdefs.h. */ | |
20794 | _ACEOF | |
20795 | cat confdefs.h >>conftest.$ac_ext | |
20796 | cat >>conftest.$ac_ext <<_ACEOF | |
20797 | /* end confdefs.h. */ | |
20798 | ||
20799 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20800 | #ifdef __cplusplus | |
20801 | extern "C" | |
20802 | #endif | |
20803 | /* We use char because int might match the return type of a gcc2 | |
20804 | builtin and then its argument prototype would still apply. */ | |
20805 | char png_check_sig (); | |
20806 | int | |
20807 | main () | |
20808 | { | |
20809 | png_check_sig (); | |
20810 | ; | |
20811 | return 0; | |
20812 | } | |
20813 | _ACEOF | |
20814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20816 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20817 | ac_status=$? |
ac1cb8d3 VS |
20818 | grep -v '^ *+' conftest.er1 >conftest.err |
20819 | rm -f conftest.er1 | |
20820 | cat conftest.err >&5 | |
a848cd7e SC |
20821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20822 | (exit $ac_status); } && | |
4d4ff94c | 20823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20825 | (eval $ac_try) 2>&5 | |
20826 | ac_status=$? | |
20827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20828 | (exit $ac_status); }; } && | |
20829 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20831 | (eval $ac_try) 2>&5 | |
20832 | ac_status=$? | |
20833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20834 | (exit $ac_status); }; }; then | |
20835 | ac_cv_lib_png_png_check_sig=yes | |
20836 | else | |
20837 | echo "$as_me: failed program was:" >&5 | |
20838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20839 | ||
20840 | ac_cv_lib_png_png_check_sig=no | |
20841 | fi | |
ac1cb8d3 VS |
20842 | rm -f conftest.err conftest.$ac_objext \ |
20843 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20844 | LIBS=$ac_check_lib_save_LIBS |
20845 | fi | |
20846 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
20847 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
20848 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
20849 | PNG_LINK=" -lpng -lz" | |
20850 | fi | |
20851 | ||
20852 | fi | |
20853 | ||
20854 | if test "x$PNG_LINK" = "x" ; then | |
20855 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
20856 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
20857 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
20858 | { (exit 1); exit 1; }; } | |
20859 | else | |
20860 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
20861 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
20862 | wxUSE_LIBPNG=builtin | |
20863 | fi | |
20864 | else | |
20865 | wxUSE_LIBPNG=sys | |
20866 | fi | |
20867 | fi | |
20868 | fi | |
20869 | ||
20870 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
20871 | fi | |
20872 | ||
20873 | ||
20874 | JPEG_LINK= | |
20875 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
20876 | cat >>confdefs.h <<\_ACEOF | |
20877 | #define wxUSE_LIBJPEG 1 | |
20878 | _ACEOF | |
20879 | ||
20880 | ||
20881 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
20882 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
20883 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
20884 | wxUSE_LIBJPEG=sys | |
20885 | fi | |
20886 | ||
20887 | if test "$wxUSE_MGL" != 1 ; then | |
20888 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
20889 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
20890 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
20891 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
20892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20893 | else | |
20894 | cat >conftest.$ac_ext <<_ACEOF | |
20895 | /* confdefs.h. */ | |
20896 | _ACEOF | |
20897 | cat confdefs.h >>conftest.$ac_ext | |
20898 | cat >>conftest.$ac_ext <<_ACEOF | |
20899 | /* end confdefs.h. */ | |
20900 | ||
20901 | #undef HAVE_STDLIB_H | |
20902 | #include <stdio.h> | |
20903 | #include <jpeglib.h> | |
20904 | ||
20905 | int | |
20906 | main () | |
20907 | { | |
20908 | ||
20909 | ||
20910 | ; | |
20911 | return 0; | |
20912 | } | |
20913 | _ACEOF | |
20914 | rm -f conftest.$ac_objext | |
20915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20916 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20917 | ac_status=$? |
ac1cb8d3 VS |
20918 | grep -v '^ *+' conftest.er1 >conftest.err |
20919 | rm -f conftest.er1 | |
20920 | cat conftest.err >&5 | |
a848cd7e SC |
20921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20922 | (exit $ac_status); } && | |
4d4ff94c | 20923 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20925 | (eval $ac_try) 2>&5 | |
20926 | ac_status=$? | |
20927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20928 | (exit $ac_status); }; } && | |
20929 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20931 | (eval $ac_try) 2>&5 | |
20932 | ac_status=$? | |
20933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20934 | (exit $ac_status); }; }; then | |
20935 | ac_cv_header_jpeglib_h=yes | |
20936 | else | |
20937 | echo "$as_me: failed program was:" >&5 | |
20938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20939 | ||
20940 | ac_cv_header_jpeglib_h=no | |
20941 | ||
20942 | fi | |
ac1cb8d3 | 20943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20944 | |
20945 | fi | |
20946 | ||
20947 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
20948 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
20949 | ||
20950 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
20951 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
20952 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
20953 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
20954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20955 | else | |
20956 | ac_check_lib_save_LIBS=$LIBS | |
20957 | LIBS="-ljpeg $LIBS" | |
20958 | cat >conftest.$ac_ext <<_ACEOF | |
20959 | /* confdefs.h. */ | |
20960 | _ACEOF | |
20961 | cat confdefs.h >>conftest.$ac_ext | |
20962 | cat >>conftest.$ac_ext <<_ACEOF | |
20963 | /* end confdefs.h. */ | |
20964 | ||
20965 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20966 | #ifdef __cplusplus | |
20967 | extern "C" | |
20968 | #endif | |
20969 | /* We use char because int might match the return type of a gcc2 | |
20970 | builtin and then its argument prototype would still apply. */ | |
20971 | char jpeg_read_header (); | |
20972 | int | |
20973 | main () | |
20974 | { | |
20975 | jpeg_read_header (); | |
20976 | ; | |
20977 | return 0; | |
20978 | } | |
20979 | _ACEOF | |
20980 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20982 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20983 | ac_status=$? |
ac1cb8d3 VS |
20984 | grep -v '^ *+' conftest.er1 >conftest.err |
20985 | rm -f conftest.er1 | |
20986 | cat conftest.err >&5 | |
a848cd7e SC |
20987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20988 | (exit $ac_status); } && | |
4d4ff94c | 20989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20991 | (eval $ac_try) 2>&5 | |
20992 | ac_status=$? | |
20993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20994 | (exit $ac_status); }; } && | |
20995 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20997 | (eval $ac_try) 2>&5 | |
20998 | ac_status=$? | |
20999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21000 | (exit $ac_status); }; }; then | |
21001 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21002 | else | |
21003 | echo "$as_me: failed program was:" >&5 | |
21004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21005 | ||
21006 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21007 | fi | |
ac1cb8d3 VS |
21008 | rm -f conftest.err conftest.$ac_objext \ |
21009 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21010 | LIBS=$ac_check_lib_save_LIBS |
21011 | fi | |
21012 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21013 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21014 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21015 | JPEG_LINK=" -ljpeg" | |
21016 | fi | |
21017 | ||
21018 | fi | |
21019 | ||
21020 | if test "x$JPEG_LINK" = "x" ; then | |
21021 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21022 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21023 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21024 | { (exit 1); exit 1; }; } | |
21025 | else | |
21026 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21027 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21028 | wxUSE_LIBJPEG=builtin | |
21029 | fi | |
21030 | else | |
21031 | wxUSE_LIBJPEG=sys | |
21032 | fi | |
21033 | fi | |
21034 | fi | |
21035 | fi | |
21036 | ||
21037 | ||
21038 | TIFF_LINK= | |
21039 | TIFF_PREREQ_LINKS=-lm | |
21040 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21041 | cat >>confdefs.h <<\_ACEOF | |
21042 | #define wxUSE_LIBTIFF 1 | |
21043 | _ACEOF | |
21044 | ||
21045 | ||
21046 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21047 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21048 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21049 | fi | |
21050 | if test "$wxUSE_ZLIB" = "sys"; then | |
21051 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21052 | fi | |
21053 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21054 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21055 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21056 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21058 | fi | |
21059 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21060 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21061 | else | |
21062 | # Is the header compilable? | |
21063 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21064 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21065 | cat >conftest.$ac_ext <<_ACEOF | |
21066 | /* confdefs.h. */ | |
21067 | _ACEOF | |
21068 | cat confdefs.h >>conftest.$ac_ext | |
21069 | cat >>conftest.$ac_ext <<_ACEOF | |
21070 | /* end confdefs.h. */ | |
21071 | $ac_includes_default | |
21072 | #include <tiffio.h> | |
21073 | _ACEOF | |
21074 | rm -f conftest.$ac_objext | |
21075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21076 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21077 | ac_status=$? |
ac1cb8d3 VS |
21078 | grep -v '^ *+' conftest.er1 >conftest.err |
21079 | rm -f conftest.er1 | |
21080 | cat conftest.err >&5 | |
a848cd7e SC |
21081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21082 | (exit $ac_status); } && | |
4d4ff94c | 21083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21085 | (eval $ac_try) 2>&5 | |
21086 | ac_status=$? | |
21087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21088 | (exit $ac_status); }; } && | |
21089 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21091 | (eval $ac_try) 2>&5 | |
21092 | ac_status=$? | |
21093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21094 | (exit $ac_status); }; }; then | |
21095 | ac_header_compiler=yes | |
21096 | else | |
21097 | echo "$as_me: failed program was:" >&5 | |
21098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21099 | ||
21100 | ac_header_compiler=no | |
21101 | fi | |
ac1cb8d3 | 21102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21103 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21104 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21105 | ||
21106 | # Is the header present? | |
21107 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21108 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21109 | cat >conftest.$ac_ext <<_ACEOF | |
21110 | /* confdefs.h. */ | |
21111 | _ACEOF | |
21112 | cat confdefs.h >>conftest.$ac_ext | |
21113 | cat >>conftest.$ac_ext <<_ACEOF | |
21114 | /* end confdefs.h. */ | |
21115 | #include <tiffio.h> | |
21116 | _ACEOF | |
21117 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21118 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21119 | ac_status=$? | |
21120 | grep -v '^ *+' conftest.er1 >conftest.err | |
21121 | rm -f conftest.er1 | |
21122 | cat conftest.err >&5 | |
21123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21124 | (exit $ac_status); } >/dev/null; then | |
21125 | if test -s conftest.err; then | |
21126 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21127 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21128 | else |
21129 | ac_cpp_err= | |
21130 | fi | |
21131 | else | |
21132 | ac_cpp_err=yes | |
21133 | fi | |
21134 | if test -z "$ac_cpp_err"; then | |
21135 | ac_header_preproc=yes | |
21136 | else | |
21137 | echo "$as_me: failed program was:" >&5 | |
21138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21139 | ||
21140 | ac_header_preproc=no | |
21141 | fi | |
21142 | rm -f conftest.err conftest.$ac_ext | |
21143 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21144 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21145 | ||
21146 | # So? What about this header? | |
ac1cb8d3 VS |
21147 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21148 | yes:no: ) | |
a848cd7e SC |
21149 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21150 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21151 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21152 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21153 | ac_header_preproc=yes | |
a848cd7e | 21154 | ;; |
ac1cb8d3 | 21155 | no:yes:* ) |
a848cd7e SC |
21156 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21157 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21158 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21159 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21160 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21161 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21162 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21163 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21164 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21165 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21166 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21167 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21168 | ( |
21169 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21170 | ## ----------------------------------------- ## |
21171 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21172 | ## ----------------------------------------- ## | |
a848cd7e SC |
21173 | _ASBOX |
21174 | ) | | |
21175 | sed "s/^/$as_me: WARNING: /" >&2 | |
21176 | ;; | |
21177 | esac | |
21178 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21179 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21180 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21182 | else | |
21183 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21184 | fi | |
21185 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21186 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21187 | ||
21188 | fi | |
21189 | if test $ac_cv_header_tiffio_h = yes; then | |
21190 | ||
21191 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21192 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21193 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21195 | else | |
21196 | ac_check_lib_save_LIBS=$LIBS | |
21197 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21198 | cat >conftest.$ac_ext <<_ACEOF | |
21199 | /* confdefs.h. */ | |
21200 | _ACEOF | |
21201 | cat confdefs.h >>conftest.$ac_ext | |
21202 | cat >>conftest.$ac_ext <<_ACEOF | |
21203 | /* end confdefs.h. */ | |
21204 | ||
21205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21206 | #ifdef __cplusplus | |
21207 | extern "C" | |
21208 | #endif | |
21209 | /* We use char because int might match the return type of a gcc2 | |
21210 | builtin and then its argument prototype would still apply. */ | |
21211 | char TIFFError (); | |
21212 | int | |
21213 | main () | |
21214 | { | |
21215 | TIFFError (); | |
21216 | ; | |
21217 | return 0; | |
21218 | } | |
21219 | _ACEOF | |
21220 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21222 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21223 | ac_status=$? |
ac1cb8d3 VS |
21224 | grep -v '^ *+' conftest.er1 >conftest.err |
21225 | rm -f conftest.er1 | |
21226 | cat conftest.err >&5 | |
a848cd7e SC |
21227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21228 | (exit $ac_status); } && | |
4d4ff94c | 21229 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21231 | (eval $ac_try) 2>&5 | |
21232 | ac_status=$? | |
21233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21234 | (exit $ac_status); }; } && | |
21235 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21237 | (eval $ac_try) 2>&5 | |
21238 | ac_status=$? | |
21239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21240 | (exit $ac_status); }; }; then | |
21241 | ac_cv_lib_tiff_TIFFError=yes | |
21242 | else | |
21243 | echo "$as_me: failed program was:" >&5 | |
21244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21245 | ||
21246 | ac_cv_lib_tiff_TIFFError=no | |
21247 | fi | |
ac1cb8d3 VS |
21248 | rm -f conftest.err conftest.$ac_objext \ |
21249 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21250 | LIBS=$ac_check_lib_save_LIBS |
21251 | fi | |
21252 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21253 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21254 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21255 | TIFF_LINK=" -ltiff" | |
21256 | fi | |
21257 | ||
21258 | ||
21259 | ||
21260 | fi | |
21261 | ||
21262 | ||
21263 | ||
21264 | if test "x$TIFF_LINK" = "x" ; then | |
21265 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21266 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21267 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21268 | { (exit 1); exit 1; }; } | |
21269 | else | |
21270 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21271 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21272 | wxUSE_LIBTIFF=builtin | |
21273 | fi | |
21274 | else | |
21275 | wxUSE_LIBTIFF=sys | |
21276 | fi | |
21277 | fi | |
21278 | fi | |
21279 | ||
21280 | ||
21281 | if test "$wxUSE_EXPAT" != "no"; then | |
21282 | wxUSE_XML=yes | |
21283 | cat >>confdefs.h <<\_ACEOF | |
21284 | #define wxUSE_EXPAT 1 | |
21285 | _ACEOF | |
21286 | ||
21287 | cat >>confdefs.h <<\_ACEOF | |
21288 | #define wxUSE_XML 1 | |
21289 | _ACEOF | |
21290 | ||
21291 | ||
21292 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21293 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21294 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21295 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21296 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21298 | fi | |
21299 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21300 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21301 | else | |
21302 | # Is the header compilable? | |
21303 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21304 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21305 | cat >conftest.$ac_ext <<_ACEOF | |
21306 | /* confdefs.h. */ | |
21307 | _ACEOF | |
21308 | cat confdefs.h >>conftest.$ac_ext | |
21309 | cat >>conftest.$ac_ext <<_ACEOF | |
21310 | /* end confdefs.h. */ | |
21311 | $ac_includes_default | |
21312 | #include <expat.h> | |
21313 | _ACEOF | |
21314 | rm -f conftest.$ac_objext | |
21315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21317 | ac_status=$? |
ac1cb8d3 VS |
21318 | grep -v '^ *+' conftest.er1 >conftest.err |
21319 | rm -f conftest.er1 | |
21320 | cat conftest.err >&5 | |
a848cd7e SC |
21321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21322 | (exit $ac_status); } && | |
4d4ff94c | 21323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21325 | (eval $ac_try) 2>&5 | |
21326 | ac_status=$? | |
21327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21328 | (exit $ac_status); }; } && | |
21329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21331 | (eval $ac_try) 2>&5 | |
21332 | ac_status=$? | |
21333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21334 | (exit $ac_status); }; }; then | |
21335 | ac_header_compiler=yes | |
21336 | else | |
21337 | echo "$as_me: failed program was:" >&5 | |
21338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21339 | ||
21340 | ac_header_compiler=no | |
21341 | fi | |
ac1cb8d3 | 21342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21343 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21344 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21345 | ||
21346 | # Is the header present? | |
21347 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21348 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21349 | cat >conftest.$ac_ext <<_ACEOF | |
21350 | /* confdefs.h. */ | |
21351 | _ACEOF | |
21352 | cat confdefs.h >>conftest.$ac_ext | |
21353 | cat >>conftest.$ac_ext <<_ACEOF | |
21354 | /* end confdefs.h. */ | |
21355 | #include <expat.h> | |
21356 | _ACEOF | |
21357 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21358 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21359 | ac_status=$? | |
21360 | grep -v '^ *+' conftest.er1 >conftest.err | |
21361 | rm -f conftest.er1 | |
21362 | cat conftest.err >&5 | |
21363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21364 | (exit $ac_status); } >/dev/null; then | |
21365 | if test -s conftest.err; then | |
21366 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21368 | else |
21369 | ac_cpp_err= | |
21370 | fi | |
21371 | else | |
21372 | ac_cpp_err=yes | |
21373 | fi | |
21374 | if test -z "$ac_cpp_err"; then | |
21375 | ac_header_preproc=yes | |
21376 | else | |
21377 | echo "$as_me: failed program was:" >&5 | |
21378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21379 | ||
21380 | ac_header_preproc=no | |
21381 | fi | |
21382 | rm -f conftest.err conftest.$ac_ext | |
21383 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21384 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21385 | ||
21386 | # So? What about this header? | |
ac1cb8d3 VS |
21387 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21388 | yes:no: ) | |
a848cd7e SC |
21389 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21390 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21391 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21392 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21393 | ac_header_preproc=yes | |
a848cd7e | 21394 | ;; |
ac1cb8d3 | 21395 | no:yes:* ) |
a848cd7e SC |
21396 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21397 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21398 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21399 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21400 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21401 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21402 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21403 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21404 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21405 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21406 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21407 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21408 | ( |
21409 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21410 | ## ----------------------------------------- ## |
21411 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21412 | ## ----------------------------------------- ## | |
a848cd7e SC |
21413 | _ASBOX |
21414 | ) | | |
21415 | sed "s/^/$as_me: WARNING: /" >&2 | |
21416 | ;; | |
21417 | esac | |
21418 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21419 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21420 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21422 | else | |
21423 | ac_cv_header_expat_h=$ac_header_preproc | |
21424 | fi | |
21425 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21426 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21427 | ||
21428 | fi | |
21429 | if test $ac_cv_header_expat_h = yes; then | |
21430 | found_expat_h=1 | |
21431 | fi | |
21432 | ||
21433 | ||
21434 | if test "x$found_expat_h" = "x1"; then | |
21435 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21436 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21437 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21439 | else | |
21440 | ||
21441 | ||
21442 | ||
21443 | ac_ext=cc | |
21444 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21445 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21446 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21447 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21448 | ||
21449 | cat >conftest.$ac_ext <<_ACEOF | |
21450 | /* confdefs.h. */ | |
21451 | _ACEOF | |
21452 | cat confdefs.h >>conftest.$ac_ext | |
21453 | cat >>conftest.$ac_ext <<_ACEOF | |
21454 | /* end confdefs.h. */ | |
21455 | #include <expat.h> | |
21456 | int | |
21457 | main () | |
21458 | { | |
21459 | ||
21460 | ; | |
21461 | return 0; | |
21462 | } | |
21463 | _ACEOF | |
21464 | rm -f conftest.$ac_objext | |
21465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21466 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21467 | ac_status=$? |
ac1cb8d3 VS |
21468 | grep -v '^ *+' conftest.er1 >conftest.err |
21469 | rm -f conftest.er1 | |
21470 | cat conftest.err >&5 | |
a848cd7e SC |
21471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21472 | (exit $ac_status); } && | |
4d4ff94c | 21473 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21475 | (eval $ac_try) 2>&5 | |
21476 | ac_status=$? | |
21477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21478 | (exit $ac_status); }; } && | |
21479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21481 | (eval $ac_try) 2>&5 | |
21482 | ac_status=$? | |
21483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21484 | (exit $ac_status); }; }; then | |
21485 | wx_cv_expat_is_not_broken=yes | |
21486 | else | |
21487 | echo "$as_me: failed program was:" >&5 | |
21488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21489 | ||
21490 | wx_cv_expat_is_not_broken=no | |
21491 | ||
21492 | fi | |
ac1cb8d3 | 21493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21494 | ac_ext=c |
21495 | ac_cpp='$CPP $CPPFLAGS' | |
21496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21499 | ||
21500 | ||
21501 | ||
21502 | fi | |
21503 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21504 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21505 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21506 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21507 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21508 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21510 | else | |
21511 | ac_check_lib_save_LIBS=$LIBS | |
21512 | LIBS="-lexpat $LIBS" | |
21513 | cat >conftest.$ac_ext <<_ACEOF | |
21514 | /* confdefs.h. */ | |
21515 | _ACEOF | |
21516 | cat confdefs.h >>conftest.$ac_ext | |
21517 | cat >>conftest.$ac_ext <<_ACEOF | |
21518 | /* end confdefs.h. */ | |
21519 | ||
21520 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21521 | #ifdef __cplusplus | |
21522 | extern "C" | |
21523 | #endif | |
21524 | /* We use char because int might match the return type of a gcc2 | |
21525 | builtin and then its argument prototype would still apply. */ | |
21526 | char XML_ParserCreate (); | |
21527 | int | |
21528 | main () | |
21529 | { | |
21530 | XML_ParserCreate (); | |
21531 | ; | |
21532 | return 0; | |
21533 | } | |
21534 | _ACEOF | |
21535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21538 | ac_status=$? |
ac1cb8d3 VS |
21539 | grep -v '^ *+' conftest.er1 >conftest.err |
21540 | rm -f conftest.er1 | |
21541 | cat conftest.err >&5 | |
a848cd7e SC |
21542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21543 | (exit $ac_status); } && | |
4d4ff94c | 21544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21546 | (eval $ac_try) 2>&5 | |
21547 | ac_status=$? | |
21548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21549 | (exit $ac_status); }; } && | |
21550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21552 | (eval $ac_try) 2>&5 | |
21553 | ac_status=$? | |
21554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21555 | (exit $ac_status); }; }; then | |
21556 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21557 | else | |
21558 | echo "$as_me: failed program was:" >&5 | |
21559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21560 | ||
21561 | ac_cv_lib_expat_XML_ParserCreate=no | |
21562 | fi | |
ac1cb8d3 VS |
21563 | rm -f conftest.err conftest.$ac_objext \ |
21564 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21565 | LIBS=$ac_check_lib_save_LIBS |
21566 | fi | |
21567 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21568 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21569 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21570 | EXPAT_LINK=" -lexpat" | |
21571 | fi | |
21572 | ||
21573 | fi | |
21574 | fi | |
21575 | if test "x$EXPAT_LINK" = "x" ; then | |
21576 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21577 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21578 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21579 | { (exit 1); exit 1; }; } | |
21580 | else | |
21581 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21582 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21583 | wxUSE_EXPAT=builtin | |
21584 | fi | |
21585 | else | |
21586 | wxUSE_EXPAT=sys | |
21587 | fi | |
21588 | fi | |
21589 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21590 | ||
21591 | ||
21592 | subdirs="$subdirs src/expat" | |
21593 | ||
21594 | fi | |
21595 | fi | |
21596 | ||
21597 | ||
21598 | ||
21599 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21600 | ||
21601 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21602 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21603 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21604 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21606 | fi | |
21607 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21608 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21609 | else | |
21610 | # Is the header compilable? | |
21611 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21612 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21613 | cat >conftest.$ac_ext <<_ACEOF | |
21614 | /* confdefs.h. */ | |
21615 | _ACEOF | |
21616 | cat confdefs.h >>conftest.$ac_ext | |
21617 | cat >>conftest.$ac_ext <<_ACEOF | |
21618 | /* end confdefs.h. */ | |
21619 | $ac_includes_default | |
21620 | #include <mspack.h> | |
21621 | _ACEOF | |
21622 | rm -f conftest.$ac_objext | |
21623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21624 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21625 | ac_status=$? |
ac1cb8d3 VS |
21626 | grep -v '^ *+' conftest.er1 >conftest.err |
21627 | rm -f conftest.er1 | |
21628 | cat conftest.err >&5 | |
a848cd7e SC |
21629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21630 | (exit $ac_status); } && | |
4d4ff94c | 21631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21633 | (eval $ac_try) 2>&5 | |
21634 | ac_status=$? | |
21635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21636 | (exit $ac_status); }; } && | |
21637 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21639 | (eval $ac_try) 2>&5 | |
21640 | ac_status=$? | |
21641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21642 | (exit $ac_status); }; }; then | |
21643 | ac_header_compiler=yes | |
21644 | else | |
21645 | echo "$as_me: failed program was:" >&5 | |
21646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21647 | ||
21648 | ac_header_compiler=no | |
21649 | fi | |
ac1cb8d3 | 21650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21651 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21652 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21653 | ||
21654 | # Is the header present? | |
21655 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21656 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21657 | cat >conftest.$ac_ext <<_ACEOF | |
21658 | /* confdefs.h. */ | |
21659 | _ACEOF | |
21660 | cat confdefs.h >>conftest.$ac_ext | |
21661 | cat >>conftest.$ac_ext <<_ACEOF | |
21662 | /* end confdefs.h. */ | |
21663 | #include <mspack.h> | |
21664 | _ACEOF | |
21665 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21666 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21667 | ac_status=$? | |
21668 | grep -v '^ *+' conftest.er1 >conftest.err | |
21669 | rm -f conftest.er1 | |
21670 | cat conftest.err >&5 | |
21671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21672 | (exit $ac_status); } >/dev/null; then | |
21673 | if test -s conftest.err; then | |
21674 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21675 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21676 | else |
21677 | ac_cpp_err= | |
21678 | fi | |
21679 | else | |
21680 | ac_cpp_err=yes | |
21681 | fi | |
21682 | if test -z "$ac_cpp_err"; then | |
21683 | ac_header_preproc=yes | |
21684 | else | |
21685 | echo "$as_me: failed program was:" >&5 | |
21686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21687 | ||
21688 | ac_header_preproc=no | |
21689 | fi | |
21690 | rm -f conftest.err conftest.$ac_ext | |
21691 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21692 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21693 | ||
21694 | # So? What about this header? | |
ac1cb8d3 VS |
21695 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21696 | yes:no: ) | |
a848cd7e SC |
21697 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21698 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21699 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21700 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21701 | ac_header_preproc=yes | |
a848cd7e | 21702 | ;; |
ac1cb8d3 | 21703 | no:yes:* ) |
a848cd7e SC |
21704 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21705 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21706 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21707 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21708 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21709 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21710 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21711 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21712 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21713 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21714 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21715 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21716 | ( |
21717 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21718 | ## ----------------------------------------- ## |
21719 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21720 | ## ----------------------------------------- ## | |
a848cd7e SC |
21721 | _ASBOX |
21722 | ) | | |
21723 | sed "s/^/$as_me: WARNING: /" >&2 | |
21724 | ;; | |
21725 | esac | |
21726 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21727 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21728 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21730 | else | |
21731 | ac_cv_header_mspack_h=$ac_header_preproc | |
21732 | fi | |
21733 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21734 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21735 | ||
21736 | fi | |
21737 | if test $ac_cv_header_mspack_h = yes; then | |
21738 | found_mspack_h=1 | |
21739 | fi | |
21740 | ||
21741 | ||
21742 | if test "x$found_mspack_h" = "x1"; then | |
21743 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21744 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21745 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21747 | else | |
21748 | ac_check_lib_save_LIBS=$LIBS | |
21749 | LIBS="-lmspack $LIBS" | |
21750 | cat >conftest.$ac_ext <<_ACEOF | |
21751 | /* confdefs.h. */ | |
21752 | _ACEOF | |
21753 | cat confdefs.h >>conftest.$ac_ext | |
21754 | cat >>conftest.$ac_ext <<_ACEOF | |
21755 | /* end confdefs.h. */ | |
21756 | ||
21757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21758 | #ifdef __cplusplus | |
21759 | extern "C" | |
21760 | #endif | |
21761 | /* We use char because int might match the return type of a gcc2 | |
21762 | builtin and then its argument prototype would still apply. */ | |
21763 | char mspack_create_chm_decompressor (); | |
21764 | int | |
21765 | main () | |
21766 | { | |
21767 | mspack_create_chm_decompressor (); | |
21768 | ; | |
21769 | return 0; | |
21770 | } | |
21771 | _ACEOF | |
21772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21774 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21775 | ac_status=$? |
ac1cb8d3 VS |
21776 | grep -v '^ *+' conftest.er1 >conftest.err |
21777 | rm -f conftest.er1 | |
21778 | cat conftest.err >&5 | |
a848cd7e SC |
21779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21780 | (exit $ac_status); } && | |
4d4ff94c | 21781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21783 | (eval $ac_try) 2>&5 | |
21784 | ac_status=$? | |
21785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21786 | (exit $ac_status); }; } && | |
21787 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21789 | (eval $ac_try) 2>&5 | |
21790 | ac_status=$? | |
21791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21792 | (exit $ac_status); }; }; then | |
21793 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
21794 | else | |
21795 | echo "$as_me: failed program was:" >&5 | |
21796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21797 | ||
21798 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
21799 | fi | |
ac1cb8d3 VS |
21800 | rm -f conftest.err conftest.$ac_objext \ |
21801 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21802 | LIBS=$ac_check_lib_save_LIBS |
21803 | fi | |
21804 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
21805 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
21806 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
21807 | MSPACK_LINK=" -lmspack" | |
21808 | fi | |
21809 | ||
21810 | fi | |
21811 | if test "x$MSPACK_LINK" = "x" ; then | |
21812 | wxUSE_LIBMSPACK=no | |
21813 | else | |
21814 | cat >>confdefs.h <<\_ACEOF | |
21815 | #define wxUSE_LIBMSPACK 1 | |
21816 | _ACEOF | |
21817 | ||
21818 | fi | |
21819 | fi | |
21820 | ||
21821 | ||
21822 | ||
21823 | AFMINSTALL= | |
21824 | WIN32INSTALL= | |
21825 | ||
21826 | TOOLKIT= | |
21827 | TOOLKIT_INCLUDE= | |
21828 | WIDGET_SET= | |
21829 | ||
21830 | if test "$USE_WIN32" = 1 ; then | |
21831 | ||
21832 | for ac_header in w32api.h | |
21833 | do | |
21834 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21836 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21837 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21838 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21840 | fi | |
21841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21843 | else | |
21844 | # Is the header compilable? | |
21845 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21846 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21847 | cat >conftest.$ac_ext <<_ACEOF | |
21848 | /* confdefs.h. */ | |
21849 | _ACEOF | |
21850 | cat confdefs.h >>conftest.$ac_ext | |
21851 | cat >>conftest.$ac_ext <<_ACEOF | |
21852 | /* end confdefs.h. */ | |
21853 | $ac_includes_default | |
21854 | #include <$ac_header> | |
21855 | _ACEOF | |
21856 | rm -f conftest.$ac_objext | |
21857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21858 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21859 | ac_status=$? |
ac1cb8d3 VS |
21860 | grep -v '^ *+' conftest.er1 >conftest.err |
21861 | rm -f conftest.er1 | |
21862 | cat conftest.err >&5 | |
a848cd7e SC |
21863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21864 | (exit $ac_status); } && | |
4d4ff94c | 21865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21867 | (eval $ac_try) 2>&5 | |
21868 | ac_status=$? | |
21869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21870 | (exit $ac_status); }; } && | |
21871 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21873 | (eval $ac_try) 2>&5 | |
21874 | ac_status=$? | |
21875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21876 | (exit $ac_status); }; }; then | |
21877 | ac_header_compiler=yes | |
21878 | else | |
21879 | echo "$as_me: failed program was:" >&5 | |
21880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21881 | ||
21882 | ac_header_compiler=no | |
21883 | fi | |
ac1cb8d3 | 21884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21885 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21886 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21887 | ||
21888 | # Is the header present? | |
21889 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21890 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21891 | cat >conftest.$ac_ext <<_ACEOF | |
21892 | /* confdefs.h. */ | |
21893 | _ACEOF | |
21894 | cat confdefs.h >>conftest.$ac_ext | |
21895 | cat >>conftest.$ac_ext <<_ACEOF | |
21896 | /* end confdefs.h. */ | |
21897 | #include <$ac_header> | |
21898 | _ACEOF | |
21899 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21900 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21901 | ac_status=$? | |
21902 | grep -v '^ *+' conftest.er1 >conftest.err | |
21903 | rm -f conftest.er1 | |
21904 | cat conftest.err >&5 | |
21905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21906 | (exit $ac_status); } >/dev/null; then | |
21907 | if test -s conftest.err; then | |
21908 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21909 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21910 | else |
21911 | ac_cpp_err= | |
21912 | fi | |
21913 | else | |
21914 | ac_cpp_err=yes | |
21915 | fi | |
21916 | if test -z "$ac_cpp_err"; then | |
21917 | ac_header_preproc=yes | |
21918 | else | |
21919 | echo "$as_me: failed program was:" >&5 | |
21920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21921 | ||
21922 | ac_header_preproc=no | |
21923 | fi | |
21924 | rm -f conftest.err conftest.$ac_ext | |
21925 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21926 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21927 | ||
21928 | # So? What about this header? | |
ac1cb8d3 VS |
21929 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21930 | yes:no: ) | |
a848cd7e SC |
21931 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21932 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21934 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21935 | ac_header_preproc=yes | |
a848cd7e | 21936 | ;; |
ac1cb8d3 | 21937 | no:yes:* ) |
a848cd7e SC |
21938 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21939 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21940 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21941 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21942 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21943 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21944 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21945 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21946 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21947 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21948 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21949 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21950 | ( |
21951 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21952 | ## ----------------------------------------- ## |
21953 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21954 | ## ----------------------------------------- ## | |
a848cd7e SC |
21955 | _ASBOX |
21956 | ) | | |
21957 | sed "s/^/$as_me: WARNING: /" >&2 | |
21958 | ;; | |
21959 | esac | |
21960 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21961 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21962 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21964 | else | |
ac1cb8d3 | 21965 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
21966 | fi |
21967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21968 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21969 | ||
21970 | fi | |
21971 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21972 | cat >>confdefs.h <<_ACEOF | |
21973 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21974 | _ACEOF | |
21975 | ||
21976 | fi | |
21977 | ||
21978 | done | |
21979 | ||
21980 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21981 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21982 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21983 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21985 | fi | |
21986 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
21987 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21988 | else | |
21989 | # Is the header compilable? | |
21990 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
21991 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
21992 | cat >conftest.$ac_ext <<_ACEOF | |
21993 | /* confdefs.h. */ | |
21994 | _ACEOF | |
21995 | cat confdefs.h >>conftest.$ac_ext | |
21996 | cat >>conftest.$ac_ext <<_ACEOF | |
21997 | /* end confdefs.h. */ | |
21998 | $ac_includes_default | |
21999 | #include <windows.h> | |
22000 | _ACEOF | |
22001 | rm -f conftest.$ac_objext | |
22002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22004 | ac_status=$? |
ac1cb8d3 VS |
22005 | grep -v '^ *+' conftest.er1 >conftest.err |
22006 | rm -f conftest.er1 | |
22007 | cat conftest.err >&5 | |
a848cd7e SC |
22008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22009 | (exit $ac_status); } && | |
4d4ff94c | 22010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22012 | (eval $ac_try) 2>&5 | |
22013 | ac_status=$? | |
22014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22015 | (exit $ac_status); }; } && | |
22016 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22018 | (eval $ac_try) 2>&5 | |
22019 | ac_status=$? | |
22020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22021 | (exit $ac_status); }; }; then | |
22022 | ac_header_compiler=yes | |
22023 | else | |
22024 | echo "$as_me: failed program was:" >&5 | |
22025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22026 | ||
22027 | ac_header_compiler=no | |
22028 | fi | |
ac1cb8d3 | 22029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22030 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22031 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22032 | ||
22033 | # Is the header present? | |
22034 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22035 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22036 | cat >conftest.$ac_ext <<_ACEOF | |
22037 | /* confdefs.h. */ | |
22038 | _ACEOF | |
22039 | cat confdefs.h >>conftest.$ac_ext | |
22040 | cat >>conftest.$ac_ext <<_ACEOF | |
22041 | /* end confdefs.h. */ | |
22042 | #include <windows.h> | |
22043 | _ACEOF | |
22044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22046 | ac_status=$? | |
22047 | grep -v '^ *+' conftest.er1 >conftest.err | |
22048 | rm -f conftest.er1 | |
22049 | cat conftest.err >&5 | |
22050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22051 | (exit $ac_status); } >/dev/null; then | |
22052 | if test -s conftest.err; then | |
22053 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22055 | else |
22056 | ac_cpp_err= | |
22057 | fi | |
22058 | else | |
22059 | ac_cpp_err=yes | |
22060 | fi | |
22061 | if test -z "$ac_cpp_err"; then | |
22062 | ac_header_preproc=yes | |
22063 | else | |
22064 | echo "$as_me: failed program was:" >&5 | |
22065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22066 | ||
22067 | ac_header_preproc=no | |
22068 | fi | |
22069 | rm -f conftest.err conftest.$ac_ext | |
22070 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22071 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22072 | ||
22073 | # So? What about this header? | |
ac1cb8d3 VS |
22074 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22075 | yes:no: ) | |
a848cd7e SC |
22076 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22077 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22078 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22079 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22080 | ac_header_preproc=yes | |
a848cd7e | 22081 | ;; |
ac1cb8d3 | 22082 | no:yes:* ) |
a848cd7e SC |
22083 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22084 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22085 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22086 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22087 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22088 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22089 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22090 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22091 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22092 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22093 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22094 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22095 | ( |
22096 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22097 | ## ----------------------------------------- ## |
22098 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22099 | ## ----------------------------------------- ## | |
a848cd7e SC |
22100 | _ASBOX |
22101 | ) | | |
22102 | sed "s/^/$as_me: WARNING: /" >&2 | |
22103 | ;; | |
22104 | esac | |
22105 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22106 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22107 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22109 | else | |
22110 | ac_cv_header_windows_h=$ac_header_preproc | |
22111 | fi | |
22112 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22113 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22114 | ||
22115 | fi | |
22116 | if test $ac_cv_header_windows_h = yes; then | |
22117 | : | |
22118 | else | |
22119 | ||
22120 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22121 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22122 | { (exit 1); exit 1; }; } | |
22123 | ||
22124 | fi | |
22125 | ||
22126 | ||
22127 | ||
22128 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22129 | ||
22130 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22131 | LIBS="$LIBS -loleacc" | |
22132 | fi | |
22133 | ||
22134 | case "${host}" in | |
22135 | *-*-cygwin* ) | |
22136 | LIBS="$LIBS -lkernel32 -luser32" | |
22137 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22138 | esac | |
22139 | ||
22140 | if test "$wxUSE_ODBC" = "sys" ; then | |
22141 | wxUSE_ODBC = "yes" | |
22142 | fi | |
22143 | if test "$wxUSE_ODBC" = "yes" ; then | |
22144 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22145 | cat >>confdefs.h <<\_ACEOF | |
22146 | #define wxUSE_ODBC 1 | |
22147 | _ACEOF | |
22148 | ||
22149 | fi | |
22150 | ||
22151 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22152 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22153 | ||
22154 | WIN32INSTALL=win32install | |
22155 | fi | |
22156 | ||
22157 | if test "$wxUSE_GUI" = "yes"; then | |
22158 | USE_GUI=1 | |
22159 | ||
22160 | GUI_TK_LIBRARY= | |
22161 | ||
22162 | WXGTK12= | |
22163 | WXGTK127= | |
22164 | WXGTK20= | |
22165 | WXGPE= | |
22166 | ||
22167 | if test "$wxUSE_MSW" = 1 ; then | |
22168 | TOOLKIT=MSW | |
22169 | GUIDIST=MSW_DIST | |
22170 | ||
22171 | case "${host}" in | |
22172 | *-*-mingw32* ) | |
22173 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22174 | esac | |
22175 | fi | |
22176 | ||
22177 | if test "$wxUSE_GTK" = 1; then | |
22178 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22179 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22180 | ||
22181 | gtk_version_cached=1 | |
22182 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22184 | else | |
22185 | ||
22186 | gtk_version_cached=0 | |
22187 | echo "$as_me:$LINENO: result: " >&5 | |
22188 | echo "${ECHO_T}" >&6 | |
22189 | ||
22190 | GTK_MODULES= | |
22191 | if test "$wxUSE_THREADS" = "yes"; then | |
22192 | GTK_MODULES=gthread | |
22193 | fi | |
22194 | ||
22195 | wx_cv_lib_gtk= | |
22196 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22197 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22198 | if test "${enable_gtktest+set}" = set; then | |
22199 | enableval="$enable_gtktest" | |
22200 | ||
22201 | else | |
22202 | enable_gtktest=yes | |
22203 | fi; | |
22204 | ||
22205 | pkg_config_args=gtk+-2.0 | |
22206 | for module in . $GTK_MODULES | |
22207 | do | |
22208 | case "$module" in | |
22209 | gthread) | |
22210 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22211 | ;; | |
22212 | esac | |
22213 | done | |
22214 | ||
22215 | no_gtk="" | |
22216 | ||
22217 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22218 | set dummy pkg-config; ac_word=$2 | |
22219 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22221 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22223 | else | |
22224 | case $PKG_CONFIG in | |
22225 | [\\/]* | ?:[\\/]*) | |
22226 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22227 | ;; | |
22228 | *) | |
22229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22230 | for as_dir in $PATH | |
22231 | do | |
22232 | IFS=$as_save_IFS | |
22233 | test -z "$as_dir" && as_dir=. | |
22234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22235 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22236 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22237 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22238 | break 2 | |
22239 | fi | |
22240 | done | |
22241 | done | |
22242 | ||
22243 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22244 | ;; | |
22245 | esac | |
22246 | fi | |
22247 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22248 | ||
22249 | if test -n "$PKG_CONFIG"; then | |
22250 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22251 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22252 | else | |
22253 | echo "$as_me:$LINENO: result: no" >&5 | |
22254 | echo "${ECHO_T}no" >&6 | |
22255 | fi | |
22256 | ||
22257 | ||
22258 | if test x$PKG_CONFIG != xno ; then | |
22259 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22260 | : | |
22261 | else | |
c2218763 | 22262 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22263 | no_gtk=yes |
22264 | PKG_CONFIG=no | |
22265 | fi | |
22266 | else | |
22267 | no_gtk=yes | |
22268 | fi | |
22269 | ||
22270 | min_gtk_version=2.0.0 | |
22271 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22272 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22273 | ||
22274 | if test x$PKG_CONFIG != xno ; then | |
22275 | ## don't try to run the test against uninstalled libtool libs | |
22276 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22277 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22278 | enable_gtktest=no | |
22279 | fi | |
22280 | ||
22281 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22282 | : | |
22283 | else | |
22284 | no_gtk=yes | |
22285 | fi | |
22286 | fi | |
22287 | ||
22288 | if test x"$no_gtk" = x ; then | |
22289 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22290 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22291 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22292 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22293 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22294 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22295 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22296 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22297 | if test "x$enable_gtktest" = "xyes" ; then | |
22298 | ac_save_CFLAGS="$CFLAGS" | |
22299 | ac_save_LIBS="$LIBS" | |
22300 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22301 | LIBS="$GTK_LIBS $LIBS" | |
22302 | rm -f conf.gtktest | |
22303 | if test "$cross_compiling" = yes; then | |
22304 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22305 | else | |
22306 | cat >conftest.$ac_ext <<_ACEOF | |
22307 | /* confdefs.h. */ | |
22308 | _ACEOF | |
22309 | cat confdefs.h >>conftest.$ac_ext | |
22310 | cat >>conftest.$ac_ext <<_ACEOF | |
22311 | /* end confdefs.h. */ | |
22312 | ||
22313 | #include <gtk/gtk.h> | |
22314 | #include <stdio.h> | |
22315 | #include <stdlib.h> | |
22316 | ||
22317 | int | |
22318 | main () | |
22319 | { | |
22320 | int major, minor, micro; | |
22321 | char *tmp_version; | |
22322 | ||
22323 | system ("touch conf.gtktest"); | |
22324 | ||
22325 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22326 | tmp_version = g_strdup("$min_gtk_version"); | |
22327 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22328 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22329 | exit(1); | |
22330 | } | |
22331 | ||
22332 | if ((gtk_major_version != $gtk_config_major_version) || | |
22333 | (gtk_minor_version != $gtk_config_minor_version) || | |
22334 | (gtk_micro_version != $gtk_config_micro_version)) | |
22335 | { | |
22336 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22337 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22338 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22339 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22340 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22341 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22342 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22343 | printf("*** required on your system.\n"); | |
22344 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22345 | printf("*** to point to the correct configuration files\n"); | |
22346 | } | |
22347 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22348 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22349 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22350 | { | |
22351 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22352 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22353 | printf("*** library (version %d.%d.%d)\n", | |
22354 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22355 | } | |
22356 | else | |
22357 | { | |
22358 | if ((gtk_major_version > major) || | |
22359 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22360 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22361 | { | |
22362 | return 0; | |
22363 | } | |
22364 | else | |
22365 | { | |
22366 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22367 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22368 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22369 | major, minor, micro); | |
22370 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22371 | printf("***\n"); | |
22372 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22373 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22374 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22375 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22376 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22377 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22378 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22379 | } | |
22380 | } | |
22381 | return 1; | |
22382 | } | |
22383 | ||
22384 | _ACEOF | |
22385 | rm -f conftest$ac_exeext | |
22386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22387 | (eval $ac_link) 2>&5 | |
22388 | ac_status=$? | |
22389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22392 | (eval $ac_try) 2>&5 | |
22393 | ac_status=$? | |
22394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22395 | (exit $ac_status); }; }; then | |
22396 | : | |
22397 | else | |
22398 | echo "$as_me: program exited with status $ac_status" >&5 | |
22399 | echo "$as_me: failed program was:" >&5 | |
22400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22401 | ||
22402 | ( exit $ac_status ) | |
22403 | no_gtk=yes | |
22404 | fi | |
ac1cb8d3 | 22405 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22406 | fi |
22407 | CFLAGS="$ac_save_CFLAGS" | |
22408 | LIBS="$ac_save_LIBS" | |
22409 | fi | |
22410 | fi | |
22411 | if test "x$no_gtk" = x ; then | |
22412 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22413 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22414 | wx_cv_lib_gtk=2.0 | |
22415 | else | |
22416 | echo "$as_me:$LINENO: result: no" >&5 | |
22417 | echo "${ECHO_T}no" >&6 | |
22418 | if test "$PKG_CONFIG" = "no" ; then | |
22419 | echo "*** A new enough version of pkg-config was not found." | |
22420 | echo "*** See http://pkgconfig.sourceforge.net" | |
22421 | else | |
22422 | if test -f conf.gtktest ; then | |
22423 | : | |
22424 | else | |
22425 | echo "*** Could not run GTK+ test program, checking why..." | |
22426 | ac_save_CFLAGS="$CFLAGS" | |
22427 | ac_save_LIBS="$LIBS" | |
22428 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22429 | LIBS="$LIBS $GTK_LIBS" | |
22430 | cat >conftest.$ac_ext <<_ACEOF | |
22431 | /* confdefs.h. */ | |
22432 | _ACEOF | |
22433 | cat confdefs.h >>conftest.$ac_ext | |
22434 | cat >>conftest.$ac_ext <<_ACEOF | |
22435 | /* end confdefs.h. */ | |
22436 | ||
22437 | #include <gtk/gtk.h> | |
22438 | #include <stdio.h> | |
22439 | ||
22440 | int | |
22441 | main () | |
22442 | { | |
22443 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22444 | ; | |
22445 | return 0; | |
22446 | } | |
22447 | _ACEOF | |
22448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22450 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22451 | ac_status=$? |
ac1cb8d3 VS |
22452 | grep -v '^ *+' conftest.er1 >conftest.err |
22453 | rm -f conftest.er1 | |
22454 | cat conftest.err >&5 | |
a848cd7e SC |
22455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22456 | (exit $ac_status); } && | |
4d4ff94c | 22457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22459 | (eval $ac_try) 2>&5 | |
22460 | ac_status=$? | |
22461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22462 | (exit $ac_status); }; } && | |
22463 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22465 | (eval $ac_try) 2>&5 | |
22466 | ac_status=$? | |
22467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22468 | (exit $ac_status); }; }; then | |
22469 | echo "*** The test program compiled, but did not run. This usually means" | |
22470 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22471 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22472 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22473 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22474 | echo "*** is required on your system" | |
22475 | echo "***" | |
22476 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22477 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22478 | else | |
22479 | echo "$as_me: failed program was:" >&5 | |
22480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22481 | ||
22482 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22483 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22484 | fi | |
ac1cb8d3 VS |
22485 | rm -f conftest.err conftest.$ac_objext \ |
22486 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22487 | CFLAGS="$ac_save_CFLAGS" |
22488 | LIBS="$ac_save_LIBS" | |
22489 | fi | |
22490 | fi | |
22491 | GTK_CFLAGS="" | |
22492 | GTK_LIBS="" | |
22493 | : | |
22494 | fi | |
22495 | ||
22496 | ||
22497 | rm -f conf.gtktest | |
22498 | ||
22499 | else | |
22500 | ||
22501 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22502 | if test "${with_gtk_prefix+set}" = set; then | |
22503 | withval="$with_gtk_prefix" | |
22504 | gtk_config_prefix="$withval" | |
22505 | else | |
22506 | gtk_config_prefix="" | |
22507 | fi; | |
22508 | ||
22509 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22510 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22511 | withval="$with_gtk_exec_prefix" | |
22512 | gtk_config_exec_prefix="$withval" | |
22513 | else | |
22514 | gtk_config_exec_prefix="" | |
22515 | fi; | |
22516 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22517 | if test "${enable_gtktest+set}" = set; then | |
22518 | enableval="$enable_gtktest" | |
22519 | ||
22520 | else | |
22521 | enable_gtktest=yes | |
22522 | fi; | |
22523 | ||
22524 | for module in . $GTK_MODULES | |
22525 | do | |
22526 | case "$module" in | |
22527 | gthread) | |
22528 | gtk_config_args="$gtk_config_args gthread" | |
22529 | ;; | |
22530 | esac | |
22531 | done | |
22532 | ||
22533 | if test x$gtk_config_exec_prefix != x ; then | |
22534 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22535 | if test x${GTK_CONFIG+set} != xset ; then | |
22536 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22537 | fi | |
22538 | fi | |
22539 | if test x$gtk_config_prefix != x ; then | |
22540 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22541 | if test x${GTK_CONFIG+set} != xset ; then | |
22542 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22543 | fi | |
22544 | fi | |
22545 | ||
22546 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22547 | set dummy gtk-config; ac_word=$2 | |
22548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22550 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22552 | else | |
22553 | case $GTK_CONFIG in | |
22554 | [\\/]* | ?:[\\/]*) | |
22555 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22556 | ;; | |
22557 | *) | |
22558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22559 | for as_dir in $PATH | |
22560 | do | |
22561 | IFS=$as_save_IFS | |
22562 | test -z "$as_dir" && as_dir=. | |
22563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22565 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22567 | break 2 | |
22568 | fi | |
22569 | done | |
22570 | done | |
22571 | ||
22572 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22573 | ;; | |
22574 | esac | |
22575 | fi | |
22576 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22577 | ||
22578 | if test -n "$GTK_CONFIG"; then | |
22579 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22580 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22581 | else | |
22582 | echo "$as_me:$LINENO: result: no" >&5 | |
22583 | echo "${ECHO_T}no" >&6 | |
22584 | fi | |
22585 | ||
22586 | min_gtk_version=1.2.7 | |
22587 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22588 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22589 | no_gtk="" | |
22590 | if test "$GTK_CONFIG" = "no" ; then | |
22591 | no_gtk=yes | |
22592 | else | |
22593 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22594 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22595 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22596 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22597 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22598 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22599 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22600 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22601 | if test "x$enable_gtktest" = "xyes" ; then | |
22602 | ac_save_CFLAGS="$CFLAGS" | |
22603 | ac_save_LIBS="$LIBS" | |
22604 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22605 | LIBS="$GTK_LIBS $LIBS" | |
22606 | rm -f conf.gtktest | |
22607 | if test "$cross_compiling" = yes; then | |
22608 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22609 | else | |
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 | #include <stdlib.h> | |
22620 | ||
22621 | int | |
22622 | main () | |
22623 | { | |
22624 | int major, minor, micro; | |
22625 | char *tmp_version; | |
22626 | ||
22627 | system ("touch conf.gtktest"); | |
22628 | ||
22629 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22630 | tmp_version = g_strdup("$min_gtk_version"); | |
22631 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22632 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22633 | exit(1); | |
22634 | } | |
22635 | ||
22636 | if ((gtk_major_version != $gtk_config_major_version) || | |
22637 | (gtk_minor_version != $gtk_config_minor_version) || | |
22638 | (gtk_micro_version != $gtk_config_micro_version)) | |
22639 | { | |
22640 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22641 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22642 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22643 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22644 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22645 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22646 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22647 | printf("*** required on your system.\n"); | |
22648 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22649 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22650 | printf("*** before re-running configure\n"); | |
22651 | } | |
22652 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22653 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22654 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22655 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22656 | { | |
22657 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22658 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22659 | printf("*** library (version %d.%d.%d)\n", | |
22660 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22661 | } | |
22662 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22663 | else | |
22664 | { | |
22665 | if ((gtk_major_version > major) || | |
22666 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22667 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22668 | { | |
22669 | return 0; | |
22670 | } | |
22671 | else | |
22672 | { | |
22673 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22674 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22675 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22676 | major, minor, micro); | |
22677 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22678 | printf("***\n"); | |
22679 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22680 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22681 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22682 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22683 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22684 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22685 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22686 | } | |
22687 | } | |
22688 | return 1; | |
22689 | } | |
22690 | ||
22691 | _ACEOF | |
22692 | rm -f conftest$ac_exeext | |
22693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22694 | (eval $ac_link) 2>&5 | |
22695 | ac_status=$? | |
22696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22697 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22699 | (eval $ac_try) 2>&5 | |
22700 | ac_status=$? | |
22701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22702 | (exit $ac_status); }; }; then | |
22703 | : | |
22704 | else | |
22705 | echo "$as_me: program exited with status $ac_status" >&5 | |
22706 | echo "$as_me: failed program was:" >&5 | |
22707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22708 | ||
22709 | ( exit $ac_status ) | |
22710 | no_gtk=yes | |
22711 | fi | |
ac1cb8d3 | 22712 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22713 | fi |
22714 | CFLAGS="$ac_save_CFLAGS" | |
22715 | LIBS="$ac_save_LIBS" | |
22716 | fi | |
22717 | fi | |
22718 | if test "x$no_gtk" = x ; then | |
22719 | echo "$as_me:$LINENO: result: yes" >&5 | |
22720 | echo "${ECHO_T}yes" >&6 | |
22721 | wx_cv_lib_gtk=1.2.7 | |
22722 | else | |
22723 | echo "$as_me:$LINENO: result: no" >&5 | |
22724 | echo "${ECHO_T}no" >&6 | |
22725 | if test "$GTK_CONFIG" = "no" ; then | |
22726 | echo "*** The gtk-config script installed by GTK could not be found" | |
22727 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22728 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22729 | echo "*** full path to gtk-config." | |
22730 | else | |
22731 | if test -f conf.gtktest ; then | |
22732 | : | |
22733 | else | |
22734 | echo "*** Could not run GTK test program, checking why..." | |
22735 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22736 | LIBS="$LIBS $GTK_LIBS" | |
22737 | cat >conftest.$ac_ext <<_ACEOF | |
22738 | /* confdefs.h. */ | |
22739 | _ACEOF | |
22740 | cat confdefs.h >>conftest.$ac_ext | |
22741 | cat >>conftest.$ac_ext <<_ACEOF | |
22742 | /* end confdefs.h. */ | |
22743 | ||
22744 | #include <gtk/gtk.h> | |
22745 | #include <stdio.h> | |
22746 | ||
22747 | int | |
22748 | main () | |
22749 | { | |
22750 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22751 | ; | |
22752 | return 0; | |
22753 | } | |
22754 | _ACEOF | |
22755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22757 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22758 | ac_status=$? |
ac1cb8d3 VS |
22759 | grep -v '^ *+' conftest.er1 >conftest.err |
22760 | rm -f conftest.er1 | |
22761 | cat conftest.err >&5 | |
a848cd7e SC |
22762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22763 | (exit $ac_status); } && | |
4d4ff94c | 22764 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22766 | (eval $ac_try) 2>&5 | |
22767 | ac_status=$? | |
22768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22769 | (exit $ac_status); }; } && | |
22770 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22772 | (eval $ac_try) 2>&5 | |
22773 | ac_status=$? | |
22774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22775 | (exit $ac_status); }; }; then | |
22776 | echo "*** The test program compiled, but did not run. This usually means" | |
22777 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22778 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22779 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22780 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22781 | echo "*** is required on your system" | |
22782 | echo "***" | |
22783 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22784 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22785 | echo "***" | |
22786 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22787 | echo "*** came with the system with the command" | |
22788 | echo "***" | |
22789 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
22790 | else | |
22791 | echo "$as_me: failed program was:" >&5 | |
22792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22793 | ||
22794 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22795 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
22796 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
22797 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
22798 | fi | |
ac1cb8d3 VS |
22799 | rm -f conftest.err conftest.$ac_objext \ |
22800 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22801 | CFLAGS="$ac_save_CFLAGS" |
22802 | LIBS="$ac_save_LIBS" | |
22803 | fi | |
22804 | fi | |
22805 | GTK_CFLAGS="" | |
22806 | GTK_LIBS="" | |
22807 | : | |
22808 | fi | |
22809 | ||
22810 | ||
22811 | rm -f conf.gtktest | |
22812 | ||
22813 | ||
22814 | if test -z "$wx_cv_lib_gtk"; then | |
22815 | ||
22816 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22817 | if test "${with_gtk_prefix+set}" = set; then | |
22818 | withval="$with_gtk_prefix" | |
22819 | gtk_config_prefix="$withval" | |
22820 | else | |
22821 | gtk_config_prefix="" | |
22822 | fi; | |
22823 | ||
22824 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22825 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22826 | withval="$with_gtk_exec_prefix" | |
22827 | gtk_config_exec_prefix="$withval" | |
22828 | else | |
22829 | gtk_config_exec_prefix="" | |
22830 | fi; | |
22831 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22832 | if test "${enable_gtktest+set}" = set; then | |
22833 | enableval="$enable_gtktest" | |
22834 | ||
22835 | else | |
22836 | enable_gtktest=yes | |
22837 | fi; | |
22838 | ||
22839 | for module in . $GTK_MODULES | |
22840 | do | |
22841 | case "$module" in | |
22842 | gthread) | |
22843 | gtk_config_args="$gtk_config_args gthread" | |
22844 | ;; | |
22845 | esac | |
22846 | done | |
22847 | ||
22848 | if test x$gtk_config_exec_prefix != x ; then | |
22849 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22850 | if test x${GTK_CONFIG+set} != xset ; then | |
22851 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22852 | fi | |
22853 | fi | |
22854 | if test x$gtk_config_prefix != x ; then | |
22855 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22856 | if test x${GTK_CONFIG+set} != xset ; then | |
22857 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22858 | fi | |
22859 | fi | |
22860 | ||
22861 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22862 | set dummy gtk-config; ac_word=$2 | |
22863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22865 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22867 | else | |
22868 | case $GTK_CONFIG in | |
22869 | [\\/]* | ?:[\\/]*) | |
22870 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22871 | ;; | |
22872 | *) | |
22873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22874 | for as_dir in $PATH | |
22875 | do | |
22876 | IFS=$as_save_IFS | |
22877 | test -z "$as_dir" && as_dir=. | |
22878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22880 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22882 | break 2 | |
22883 | fi | |
22884 | done | |
22885 | done | |
22886 | ||
22887 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22888 | ;; | |
22889 | esac | |
22890 | fi | |
22891 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22892 | ||
22893 | if test -n "$GTK_CONFIG"; then | |
22894 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22895 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22896 | else | |
22897 | echo "$as_me:$LINENO: result: no" >&5 | |
22898 | echo "${ECHO_T}no" >&6 | |
22899 | fi | |
22900 | ||
22901 | min_gtk_version=1.2.3 | |
22902 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22903 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22904 | no_gtk="" | |
22905 | if test "$GTK_CONFIG" = "no" ; then | |
22906 | no_gtk=yes | |
22907 | else | |
22908 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22909 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22910 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22911 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22912 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22913 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22914 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22915 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22916 | if test "x$enable_gtktest" = "xyes" ; then | |
22917 | ac_save_CFLAGS="$CFLAGS" | |
22918 | ac_save_LIBS="$LIBS" | |
22919 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22920 | LIBS="$GTK_LIBS $LIBS" | |
22921 | rm -f conf.gtktest | |
22922 | if test "$cross_compiling" = yes; then | |
22923 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22924 | else | |
22925 | cat >conftest.$ac_ext <<_ACEOF | |
22926 | /* confdefs.h. */ | |
22927 | _ACEOF | |
22928 | cat confdefs.h >>conftest.$ac_ext | |
22929 | cat >>conftest.$ac_ext <<_ACEOF | |
22930 | /* end confdefs.h. */ | |
22931 | ||
22932 | #include <gtk/gtk.h> | |
22933 | #include <stdio.h> | |
22934 | #include <stdlib.h> | |
22935 | ||
22936 | int | |
22937 | main () | |
22938 | { | |
22939 | int major, minor, micro; | |
22940 | char *tmp_version; | |
22941 | ||
22942 | system ("touch conf.gtktest"); | |
22943 | ||
22944 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22945 | tmp_version = g_strdup("$min_gtk_version"); | |
22946 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22947 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22948 | exit(1); | |
22949 | } | |
22950 | ||
22951 | if ((gtk_major_version != $gtk_config_major_version) || | |
22952 | (gtk_minor_version != $gtk_config_minor_version) || | |
22953 | (gtk_micro_version != $gtk_config_micro_version)) | |
22954 | { | |
22955 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22956 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22957 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22958 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22959 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22960 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22961 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22962 | printf("*** required on your system.\n"); | |
22963 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22964 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22965 | printf("*** before re-running configure\n"); | |
22966 | } | |
22967 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22968 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22969 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22970 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22971 | { | |
22972 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22973 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22974 | printf("*** library (version %d.%d.%d)\n", | |
22975 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22976 | } | |
22977 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22978 | else | |
22979 | { | |
22980 | if ((gtk_major_version > major) || | |
22981 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22982 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22983 | { | |
22984 | return 0; | |
22985 | } | |
22986 | else | |
22987 | { | |
22988 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22989 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22990 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22991 | major, minor, micro); | |
22992 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22993 | printf("***\n"); | |
22994 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22995 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22996 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22997 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22998 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22999 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23000 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23001 | } | |
23002 | } | |
23003 | return 1; | |
23004 | } | |
23005 | ||
23006 | _ACEOF | |
23007 | rm -f conftest$ac_exeext | |
23008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23009 | (eval $ac_link) 2>&5 | |
23010 | ac_status=$? | |
23011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23014 | (eval $ac_try) 2>&5 | |
23015 | ac_status=$? | |
23016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23017 | (exit $ac_status); }; }; then | |
23018 | : | |
23019 | else | |
23020 | echo "$as_me: program exited with status $ac_status" >&5 | |
23021 | echo "$as_me: failed program was:" >&5 | |
23022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23023 | ||
23024 | ( exit $ac_status ) | |
23025 | no_gtk=yes | |
23026 | fi | |
ac1cb8d3 | 23027 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23028 | fi |
23029 | CFLAGS="$ac_save_CFLAGS" | |
23030 | LIBS="$ac_save_LIBS" | |
23031 | fi | |
23032 | fi | |
23033 | if test "x$no_gtk" = x ; then | |
23034 | echo "$as_me:$LINENO: result: yes" >&5 | |
23035 | echo "${ECHO_T}yes" >&6 | |
23036 | wx_cv_lib_gtk=1.2.3 | |
23037 | else | |
23038 | echo "$as_me:$LINENO: result: no" >&5 | |
23039 | echo "${ECHO_T}no" >&6 | |
23040 | if test "$GTK_CONFIG" = "no" ; then | |
23041 | echo "*** The gtk-config script installed by GTK could not be found" | |
23042 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23043 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23044 | echo "*** full path to gtk-config." | |
23045 | else | |
23046 | if test -f conf.gtktest ; then | |
23047 | : | |
23048 | else | |
23049 | echo "*** Could not run GTK test program, checking why..." | |
23050 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23051 | LIBS="$LIBS $GTK_LIBS" | |
23052 | cat >conftest.$ac_ext <<_ACEOF | |
23053 | /* confdefs.h. */ | |
23054 | _ACEOF | |
23055 | cat confdefs.h >>conftest.$ac_ext | |
23056 | cat >>conftest.$ac_ext <<_ACEOF | |
23057 | /* end confdefs.h. */ | |
23058 | ||
23059 | #include <gtk/gtk.h> | |
23060 | #include <stdio.h> | |
23061 | ||
23062 | int | |
23063 | main () | |
23064 | { | |
23065 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23066 | ; | |
23067 | return 0; | |
23068 | } | |
23069 | _ACEOF | |
23070 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23072 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23073 | ac_status=$? |
ac1cb8d3 VS |
23074 | grep -v '^ *+' conftest.er1 >conftest.err |
23075 | rm -f conftest.er1 | |
23076 | cat conftest.err >&5 | |
a848cd7e SC |
23077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23078 | (exit $ac_status); } && | |
4d4ff94c | 23079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23081 | (eval $ac_try) 2>&5 | |
23082 | ac_status=$? | |
23083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23084 | (exit $ac_status); }; } && | |
23085 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23087 | (eval $ac_try) 2>&5 | |
23088 | ac_status=$? | |
23089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23090 | (exit $ac_status); }; }; then | |
23091 | echo "*** The test program compiled, but did not run. This usually means" | |
23092 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23093 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23094 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23095 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23096 | echo "*** is required on your system" | |
23097 | echo "***" | |
23098 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23099 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23100 | echo "***" | |
23101 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23102 | echo "*** came with the system with the command" | |
23103 | echo "***" | |
23104 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23105 | else | |
23106 | echo "$as_me: failed program was:" >&5 | |
23107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23108 | ||
23109 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23110 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23111 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23112 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23113 | fi | |
ac1cb8d3 VS |
23114 | rm -f conftest.err conftest.$ac_objext \ |
23115 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23116 | CFLAGS="$ac_save_CFLAGS" |
23117 | LIBS="$ac_save_LIBS" | |
23118 | fi | |
23119 | fi | |
23120 | GTK_CFLAGS="" | |
23121 | GTK_LIBS="" | |
23122 | : | |
23123 | fi | |
23124 | ||
23125 | ||
23126 | rm -f conf.gtktest | |
23127 | ||
23128 | fi | |
23129 | fi | |
23130 | ||
23131 | if test -z "$wx_cv_lib_gtk"; then | |
23132 | wx_cv_lib_gtk=none | |
23133 | else | |
23134 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23135 | wx_cv_libs_gtk=$GTK_LIBS | |
23136 | fi | |
23137 | ||
23138 | ||
23139 | fi | |
23140 | ||
23141 | ||
23142 | if test "$gtk_version_cached" = 1; then | |
23143 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23144 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23145 | fi | |
23146 | ||
23147 | case "$wx_cv_lib_gtk" in | |
23148 | 2.0) WXGTK20=1 | |
23149 | TOOLKIT_VERSION=2 | |
23150 | ;; | |
23151 | 1.2.7) WXGTK127=1 | |
23152 | WXGTK12=1 | |
23153 | ;; | |
23154 | 1.2.3) WXGTK12=1 | |
23155 | ;; | |
23156 | *) { { echo "$as_me:$LINENO: error: | |
23157 | Please check that gtk-config is in path, the directory | |
23158 | where GTK+ libraries are installed (returned by | |
23159 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23160 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23161 | " >&5 | |
23162 | echo "$as_me: error: | |
23163 | Please check that gtk-config is in path, the directory | |
23164 | where GTK+ libraries are installed (returned by | |
23165 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23166 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23167 | " >&2;} | |
23168 | { (exit 1); exit 1; }; } | |
23169 | ;; | |
23170 | esac | |
23171 | ||
23172 | if test "$WXGTK20" = 1; then | |
23173 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
23174 | ||
23175 | succeeded=no | |
23176 | ||
23177 | if test -z "$PKG_CONFIG"; then | |
23178 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23179 | set dummy pkg-config; ac_word=$2 | |
23180 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23182 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23184 | else | |
23185 | case $PKG_CONFIG in | |
23186 | [\\/]* | ?:[\\/]*) | |
23187 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23188 | ;; | |
23189 | *) | |
23190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23191 | for as_dir in $PATH | |
23192 | do | |
23193 | IFS=$as_save_IFS | |
23194 | test -z "$as_dir" && as_dir=. | |
23195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23196 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23197 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23199 | break 2 | |
23200 | fi | |
23201 | done | |
23202 | done | |
23203 | ||
23204 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23205 | ;; | |
23206 | esac | |
23207 | fi | |
23208 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23209 | ||
23210 | if test -n "$PKG_CONFIG"; then | |
23211 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23212 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23213 | else | |
23214 | echo "$as_me:$LINENO: result: no" >&5 | |
23215 | echo "${ECHO_T}no" >&6 | |
23216 | fi | |
23217 | ||
23218 | fi | |
23219 | ||
23220 | if test "$PKG_CONFIG" = "no" ; then | |
23221 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23222 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23223 | echo "*** to the full path to pkg-config." | |
23224 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23225 | else | |
23226 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23227 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23228 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
23229 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
23230 | ||
23231 | if $PKG_CONFIG --exists "pangoft2" ; then | |
23232 | echo "$as_me:$LINENO: result: yes" >&5 | |
23233 | echo "${ECHO_T}yes" >&6 | |
23234 | succeeded=yes | |
23235 | ||
23236 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
23237 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
23238 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
23239 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
23240 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
23241 | ||
23242 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
23243 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
23244 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
23245 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
23246 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
23247 | else | |
23248 | PANGOFT2_CFLAGS="" | |
23249 | PANGOFT2_LIBS="" | |
23250 | ## If we have a custom action on failure, don't print errors, but | |
23251 | ## do set a variable so people can do so. | |
23252 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
23253 | ||
23254 | fi | |
23255 | ||
23256 | ||
23257 | ||
23258 | else | |
23259 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23260 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23261 | fi | |
23262 | fi | |
23263 | ||
23264 | if test $succeeded = yes; then | |
23265 | ||
23266 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
23267 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
23268 | ||
23269 | else | |
23270 | ||
23271 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23272 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
23273 | wxUSE_PRINTING_ARCHITECTURE="no" | |
23274 | ||
23275 | ||
23276 | fi | |
23277 | ||
23278 | fi | |
304205f1 VS |
23279 | |
23280 | save_CFLAGS="$CFLAGS" | |
23281 | save_LIBS="$LIBS" | |
23282 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23283 | LIBS="$LIBS $GTK_LIBS" | |
23284 | ||
23285 | for ac_func in pango_font_family_is_monospace | |
23286 | do | |
23287 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23288 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23289 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23290 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23292 | else | |
23293 | cat >conftest.$ac_ext <<_ACEOF | |
23294 | /* confdefs.h. */ | |
23295 | _ACEOF | |
23296 | cat confdefs.h >>conftest.$ac_ext | |
23297 | cat >>conftest.$ac_ext <<_ACEOF | |
23298 | /* end confdefs.h. */ | |
23299 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23301 | #define $ac_func innocuous_$ac_func | |
23302 | ||
23303 | /* System header to define __stub macros and hopefully few prototypes, | |
23304 | which can conflict with char $ac_func (); below. | |
23305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23306 | <limits.h> exists even on freestanding compilers. */ | |
23307 | ||
23308 | #ifdef __STDC__ | |
23309 | # include <limits.h> | |
23310 | #else | |
23311 | # include <assert.h> | |
23312 | #endif | |
23313 | ||
23314 | #undef $ac_func | |
23315 | ||
23316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23317 | #ifdef __cplusplus | |
23318 | extern "C" | |
23319 | { | |
23320 | #endif | |
23321 | /* We use char because int might match the return type of a gcc2 | |
23322 | builtin and then its argument prototype would still apply. */ | |
23323 | char $ac_func (); | |
23324 | /* The GNU C library defines this for functions which it implements | |
23325 | to always fail with ENOSYS. Some functions are actually named | |
23326 | something starting with __ and the normal name is an alias. */ | |
23327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23328 | choke me | |
23329 | #else | |
23330 | char (*f) () = $ac_func; | |
23331 | #endif | |
23332 | #ifdef __cplusplus | |
23333 | } | |
23334 | #endif | |
23335 | ||
23336 | int | |
23337 | main () | |
23338 | { | |
23339 | return f != $ac_func; | |
23340 | ; | |
23341 | return 0; | |
23342 | } | |
23343 | _ACEOF | |
23344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23346 | (eval $ac_link) 2>conftest.er1 | |
23347 | ac_status=$? | |
23348 | grep -v '^ *+' conftest.er1 >conftest.err | |
23349 | rm -f conftest.er1 | |
23350 | cat conftest.err >&5 | |
23351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23352 | (exit $ac_status); } && | |
4d4ff94c | 23353 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
23354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23355 | (eval $ac_try) 2>&5 | |
23356 | ac_status=$? | |
23357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23358 | (exit $ac_status); }; } && | |
23359 | { ac_try='test -s conftest$ac_exeext' | |
23360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23361 | (eval $ac_try) 2>&5 | |
23362 | ac_status=$? | |
23363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23364 | (exit $ac_status); }; }; then | |
23365 | eval "$as_ac_var=yes" | |
23366 | else | |
23367 | echo "$as_me: failed program was:" >&5 | |
23368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23369 | ||
23370 | eval "$as_ac_var=no" | |
23371 | fi | |
23372 | rm -f conftest.err conftest.$ac_objext \ | |
23373 | conftest$ac_exeext conftest.$ac_ext | |
23374 | fi | |
23375 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23376 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23377 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23378 | cat >>confdefs.h <<_ACEOF | |
23379 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23380 | _ACEOF | |
23381 | ||
23382 | fi | |
23383 | done | |
23384 | ||
23385 | CFLAGS="$save_CFLAGS" | |
23386 | LIBS="$save_LIBS" | |
a848cd7e SC |
23387 | else |
23388 | if test "$wxUSE_UNICODE" = "yes"; then | |
23389 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23390 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23391 | wxUSE_UNICODE=no | |
23392 | fi | |
23393 | fi | |
23394 | ||
23395 | if test "$USE_DARWIN" != 1; then | |
23396 | ||
23397 | for ac_func in poll | |
23398 | do | |
23399 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23400 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23401 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23402 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23404 | else | |
23405 | cat >conftest.$ac_ext <<_ACEOF | |
23406 | /* confdefs.h. */ | |
23407 | _ACEOF | |
23408 | cat confdefs.h >>conftest.$ac_ext | |
23409 | cat >>conftest.$ac_ext <<_ACEOF | |
23410 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23411 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23412 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23413 | #define $ac_func innocuous_$ac_func | |
23414 | ||
a848cd7e SC |
23415 | /* System header to define __stub macros and hopefully few prototypes, |
23416 | which can conflict with char $ac_func (); below. | |
23417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23418 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23419 | |
a848cd7e SC |
23420 | #ifdef __STDC__ |
23421 | # include <limits.h> | |
23422 | #else | |
23423 | # include <assert.h> | |
23424 | #endif | |
ac1cb8d3 VS |
23425 | |
23426 | #undef $ac_func | |
23427 | ||
a848cd7e SC |
23428 | /* Override any gcc2 internal prototype to avoid an error. */ |
23429 | #ifdef __cplusplus | |
23430 | extern "C" | |
23431 | { | |
23432 | #endif | |
23433 | /* We use char because int might match the return type of a gcc2 | |
23434 | builtin and then its argument prototype would still apply. */ | |
23435 | char $ac_func (); | |
23436 | /* The GNU C library defines this for functions which it implements | |
23437 | to always fail with ENOSYS. Some functions are actually named | |
23438 | something starting with __ and the normal name is an alias. */ | |
23439 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23440 | choke me | |
23441 | #else | |
23442 | char (*f) () = $ac_func; | |
23443 | #endif | |
23444 | #ifdef __cplusplus | |
23445 | } | |
23446 | #endif | |
23447 | ||
23448 | int | |
23449 | main () | |
23450 | { | |
23451 | return f != $ac_func; | |
23452 | ; | |
23453 | return 0; | |
23454 | } | |
23455 | _ACEOF | |
23456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23458 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23459 | ac_status=$? |
ac1cb8d3 VS |
23460 | grep -v '^ *+' conftest.er1 >conftest.err |
23461 | rm -f conftest.er1 | |
23462 | cat conftest.err >&5 | |
a848cd7e SC |
23463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23464 | (exit $ac_status); } && | |
4d4ff94c | 23465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23467 | (eval $ac_try) 2>&5 | |
23468 | ac_status=$? | |
23469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23470 | (exit $ac_status); }; } && | |
23471 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23473 | (eval $ac_try) 2>&5 | |
23474 | ac_status=$? | |
23475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23476 | (exit $ac_status); }; }; then | |
23477 | eval "$as_ac_var=yes" | |
23478 | else | |
23479 | echo "$as_me: failed program was:" >&5 | |
23480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23481 | ||
23482 | eval "$as_ac_var=no" | |
23483 | fi | |
ac1cb8d3 VS |
23484 | rm -f conftest.err conftest.$ac_objext \ |
23485 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23486 | fi |
23487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23488 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23489 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23490 | cat >>confdefs.h <<_ACEOF | |
23491 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23492 | _ACEOF | |
23493 | ||
23494 | fi | |
23495 | done | |
23496 | ||
23497 | fi | |
23498 | ||
23499 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23500 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23501 | ||
23502 | AFMINSTALL=afminstall | |
23503 | TOOLKIT=GTK | |
23504 | GUIDIST=GTK_DIST | |
23505 | ||
23506 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23507 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23508 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23510 | else | |
23511 | ac_check_lib_save_LIBS=$LIBS | |
23512 | LIBS="-lgdk $LIBS" | |
23513 | cat >conftest.$ac_ext <<_ACEOF | |
23514 | /* confdefs.h. */ | |
23515 | _ACEOF | |
23516 | cat confdefs.h >>conftest.$ac_ext | |
23517 | cat >>conftest.$ac_ext <<_ACEOF | |
23518 | /* end confdefs.h. */ | |
23519 | ||
23520 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23521 | #ifdef __cplusplus | |
23522 | extern "C" | |
23523 | #endif | |
23524 | /* We use char because int might match the return type of a gcc2 | |
23525 | builtin and then its argument prototype would still apply. */ | |
23526 | char gdk_im_open (); | |
23527 | int | |
23528 | main () | |
23529 | { | |
23530 | gdk_im_open (); | |
23531 | ; | |
23532 | return 0; | |
23533 | } | |
23534 | _ACEOF | |
23535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23538 | ac_status=$? |
ac1cb8d3 VS |
23539 | grep -v '^ *+' conftest.er1 >conftest.err |
23540 | rm -f conftest.er1 | |
23541 | cat conftest.err >&5 | |
a848cd7e SC |
23542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23543 | (exit $ac_status); } && | |
4d4ff94c | 23544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23546 | (eval $ac_try) 2>&5 | |
23547 | ac_status=$? | |
23548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23549 | (exit $ac_status); }; } && | |
23550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23552 | (eval $ac_try) 2>&5 | |
23553 | ac_status=$? | |
23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23555 | (exit $ac_status); }; }; then | |
23556 | ac_cv_lib_gdk_gdk_im_open=yes | |
23557 | else | |
23558 | echo "$as_me: failed program was:" >&5 | |
23559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23560 | ||
23561 | ac_cv_lib_gdk_gdk_im_open=no | |
23562 | fi | |
ac1cb8d3 VS |
23563 | rm -f conftest.err conftest.$ac_objext \ |
23564 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23565 | LIBS=$ac_check_lib_save_LIBS |
23566 | fi | |
23567 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23568 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23569 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23570 | cat >>confdefs.h <<\_ACEOF | |
23571 | #define HAVE_XIM 1 | |
23572 | _ACEOF | |
23573 | ||
23574 | fi | |
23575 | ||
23576 | ||
23577 | ||
23578 | if test "$wxUSE_GPE" = "yes"; then | |
23579 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23580 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23581 | ||
23582 | ac_find_libraries= | |
23583 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23584 | do | |
23585 | for ac_extension in a so sl dylib; do | |
23586 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23587 | ac_find_libraries=$ac_dir | |
23588 | break 2 | |
23589 | fi | |
23590 | done | |
23591 | done | |
23592 | ||
23593 | if test "$ac_find_libraries" != "" ; then | |
23594 | ||
23595 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23596 | result=$? | |
23597 | if test $result = 0; then | |
23598 | ac_path_to_link="" | |
23599 | else | |
23600 | ac_path_to_link=" -L$ac_find_libraries" | |
23601 | fi | |
23602 | ||
23603 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23604 | WXGPE=1 | |
23605 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23606 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23607 | else | |
23608 | echo "$as_me:$LINENO: result: not found" >&5 | |
23609 | echo "${ECHO_T}not found" >&6 | |
23610 | fi | |
23611 | ||
23612 | fi | |
23613 | fi | |
23614 | ||
23615 | if test "$wxUSE_MGL" = 1; then | |
23616 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23617 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23618 | if test "x$MGL_ROOT" = x ; then | |
23619 | echo "$as_me:$LINENO: result: not found" >&5 | |
23620 | echo "${ECHO_T}not found" >&6 | |
23621 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23622 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23623 | { (exit 1); exit 1; }; } | |
23624 | else | |
23625 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
23626 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
23627 | fi | |
23628 | ||
23629 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
23630 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
23631 | case "${host}" in | |
23632 | *-*-linux* ) | |
23633 | if test "x$wxUSE_SHARED" = xyes ; then | |
23634 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
23635 | else | |
23636 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
23637 | fi | |
23638 | ;; | |
23639 | *-pc-msdosdjgpp ) | |
23640 | mgl_os_candidates="dos32/dj2" | |
23641 | ;; | |
23642 | *) | |
23643 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
23644 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23645 | { (exit 1); exit 1; }; } | |
23646 | esac | |
23647 | ||
23648 | mgl_lib_type="" | |
23649 | mgl_os="" | |
23650 | ||
23651 | for mgl_os_i in $mgl_os_candidates ; do | |
23652 | if test "x$mgl_os" = x ; then | |
23653 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23654 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23655 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23656 | mgl_lib_type=debug | |
23657 | mgl_os=$mgl_os_i | |
23658 | fi | |
23659 | fi | |
23660 | if test "x$mgl_lib_type" = x ; then | |
23661 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23662 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23663 | mgl_lib_type=release | |
23664 | mgl_os=$mgl_os_i | |
23665 | fi | |
23666 | fi | |
23667 | fi | |
23668 | done | |
23669 | ||
23670 | if test "x$mgl_os" = x ; then | |
23671 | echo "$as_me:$LINENO: result: not found" >&5 | |
23672 | echo "${ECHO_T}not found" >&6 | |
23673 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23674 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23675 | { (exit 1); exit 1; }; } | |
23676 | fi | |
23677 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
23678 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
23679 | ||
23680 | wxUSE_UNIVERSAL="yes" | |
23681 | ||
23682 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
23683 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23684 | ||
23685 | AFMINSTALL=afminstall | |
23686 | TOOLKIT=MGL | |
23687 | GUIDIST=MGL_DIST | |
23688 | fi | |
23689 | ||
23690 | if test "$wxUSE_MICROWIN" = 1; then | |
23691 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
23692 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
23693 | if test "x$MICROWINDOWS" = x ; then | |
23694 | echo "$as_me:$LINENO: result: not found" >&5 | |
23695 | echo "${ECHO_T}not found" >&6 | |
23696 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23697 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23698 | { (exit 1); exit 1; }; } | |
23699 | else | |
23700 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
23701 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
23702 | fi | |
23703 | ||
23704 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
23705 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
23706 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
23707 | else | |
23708 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
23709 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23710 | { (exit 1); exit 1; }; } | |
23711 | fi | |
23712 | ||
23713 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
23714 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23715 | ||
23716 | wxUSE_UNIVERSAL="yes" | |
23717 | ||
23718 | AFMINSTALL=afminstall | |
23719 | TOOLKIT=MICROWIN | |
23720 | GUIDIST=MICROWIN_DIST | |
23721 | ||
23722 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
23723 | fi | |
23724 | ||
74b84332 | 23725 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
4d4ff94c VZ |
23726 | |
23727 | if test "x$ac_path_x_has_been_run" != xyes; then | |
23728 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
23729 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
23730 | ||
4d4ff94c | 23731 | ac_path_x_has_been_run=yes |
a848cd7e SC |
23732 | |
23733 | # Check whether --with-x or --without-x was given. | |
23734 | if test "${with_x+set}" = set; then | |
23735 | withval="$with_x" | |
23736 | ||
23737 | fi; | |
23738 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
23739 | if test "x$with_x" = xno; then | |
23740 | # The user explicitly disabled X. | |
23741 | have_x=disabled | |
23742 | else | |
23743 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23744 | # Both variables are already set. | |
23745 | have_x=yes | |
23746 | else | |
23747 | if test "${ac_cv_have_x+set}" = set; then | |
23748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23749 | else | |
23750 | # One or both of the vars are not set, and there is no cached value. | |
23751 | ac_x_includes=no ac_x_libraries=no | |
23752 | rm -fr conftest.dir | |
23753 | if mkdir conftest.dir; then | |
23754 | cd conftest.dir | |
23755 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
23756 | cat >Imakefile <<'_ACEOF' | |
23757 | acfindx: | |
23758 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
23759 | _ACEOF | |
23760 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
23761 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23762 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23763 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23764 | for ac_extension in a so sl; do | |
23765 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
23766 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23767 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
23768 | fi |
23769 | done | |
23770 | # Screen out bogus values from the imake configuration. They are | |
23771 | # bogus both because they are the default anyway, and because | |
23772 | # using them would break gcc on systems where it needs fixed includes. | |
23773 | case $ac_im_incroot in | |
23774 | /usr/include) ;; | |
23775 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
23776 | esac | |
23777 | case $ac_im_usrlibdir in | |
23778 | /usr/lib | /lib) ;; | |
23779 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
23780 | esac | |
23781 | fi | |
23782 | cd .. | |
23783 | rm -fr conftest.dir | |
23784 | fi | |
23785 | ||
23786 | # Standard set of common directories for X headers. | |
23787 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23788 | ac_x_header_dirs=' | |
23789 | /usr/X11/include | |
23790 | /usr/X11R6/include | |
23791 | /usr/X11R5/include | |
23792 | /usr/X11R4/include | |
23793 | ||
23794 | /usr/include/X11 | |
23795 | /usr/include/X11R6 | |
23796 | /usr/include/X11R5 | |
23797 | /usr/include/X11R4 | |
23798 | ||
23799 | /usr/local/X11/include | |
23800 | /usr/local/X11R6/include | |
23801 | /usr/local/X11R5/include | |
23802 | /usr/local/X11R4/include | |
23803 | ||
23804 | /usr/local/include/X11 | |
23805 | /usr/local/include/X11R6 | |
23806 | /usr/local/include/X11R5 | |
23807 | /usr/local/include/X11R4 | |
23808 | ||
23809 | /usr/X386/include | |
23810 | /usr/x386/include | |
23811 | /usr/XFree86/include/X11 | |
23812 | ||
23813 | /usr/include | |
23814 | /usr/local/include | |
23815 | /usr/unsupported/include | |
23816 | /usr/athena/include | |
23817 | /usr/local/x11r5/include | |
23818 | /usr/lpp/Xamples/include | |
23819 | ||
23820 | /usr/openwin/include | |
23821 | /usr/openwin/share/include' | |
23822 | ||
23823 | if test "$ac_x_includes" = no; then | |
4d4ff94c | 23824 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
23825 | # First, try using that file with no special directory specified. |
23826 | cat >conftest.$ac_ext <<_ACEOF | |
23827 | /* confdefs.h. */ | |
23828 | _ACEOF | |
23829 | cat confdefs.h >>conftest.$ac_ext | |
23830 | cat >>conftest.$ac_ext <<_ACEOF | |
23831 | /* end confdefs.h. */ | |
23832 | #include <X11/Intrinsic.h> | |
23833 | _ACEOF | |
23834 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23835 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23836 | ac_status=$? | |
23837 | grep -v '^ *+' conftest.er1 >conftest.err | |
23838 | rm -f conftest.er1 | |
23839 | cat conftest.err >&5 | |
23840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23841 | (exit $ac_status); } >/dev/null; then | |
23842 | if test -s conftest.err; then | |
23843 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23844 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23845 | else |
23846 | ac_cpp_err= | |
23847 | fi | |
23848 | else | |
23849 | ac_cpp_err=yes | |
23850 | fi | |
23851 | if test -z "$ac_cpp_err"; then | |
23852 | # We can compile using X headers with no special include directory. | |
23853 | ac_x_includes= | |
23854 | else | |
23855 | echo "$as_me: failed program was:" >&5 | |
23856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23857 | ||
23858 | for ac_dir in $ac_x_header_dirs; do | |
23859 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
23860 | ac_x_includes=$ac_dir | |
23861 | break | |
23862 | fi | |
23863 | done | |
23864 | fi | |
23865 | rm -f conftest.err conftest.$ac_ext | |
23866 | fi # $ac_x_includes = no | |
23867 | ||
23868 | if test "$ac_x_libraries" = no; then | |
23869 | # Check for the libraries. | |
23870 | # See if we find them without any special options. | |
23871 | # Don't add to $LIBS permanently. | |
23872 | ac_save_LIBS=$LIBS | |
23873 | LIBS="-lXt $LIBS" | |
23874 | cat >conftest.$ac_ext <<_ACEOF | |
23875 | /* confdefs.h. */ | |
23876 | _ACEOF | |
23877 | cat confdefs.h >>conftest.$ac_ext | |
23878 | cat >>conftest.$ac_ext <<_ACEOF | |
23879 | /* end confdefs.h. */ | |
23880 | #include <X11/Intrinsic.h> | |
23881 | int | |
23882 | main () | |
23883 | { | |
23884 | XtMalloc (0) | |
23885 | ; | |
23886 | return 0; | |
23887 | } | |
23888 | _ACEOF | |
23889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23891 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23892 | ac_status=$? |
ac1cb8d3 VS |
23893 | grep -v '^ *+' conftest.er1 >conftest.err |
23894 | rm -f conftest.er1 | |
23895 | cat conftest.err >&5 | |
a848cd7e SC |
23896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23897 | (exit $ac_status); } && | |
4d4ff94c | 23898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23900 | (eval $ac_try) 2>&5 | |
23901 | ac_status=$? | |
23902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23903 | (exit $ac_status); }; } && | |
23904 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23906 | (eval $ac_try) 2>&5 | |
23907 | ac_status=$? | |
23908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23909 | (exit $ac_status); }; }; then | |
23910 | LIBS=$ac_save_LIBS | |
23911 | # We can link X programs with no special library path. | |
23912 | ac_x_libraries= | |
23913 | else | |
23914 | echo "$as_me: failed program was:" >&5 | |
23915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23916 | ||
23917 | LIBS=$ac_save_LIBS | |
23918 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
23919 | do | |
23920 | # Don't even attempt the hair of trying to link an X program! | |
23921 | for ac_extension in a so sl; do | |
23922 | if test -r $ac_dir/libXt.$ac_extension; then | |
23923 | ac_x_libraries=$ac_dir | |
23924 | break 2 | |
23925 | fi | |
23926 | done | |
23927 | done | |
23928 | fi | |
ac1cb8d3 VS |
23929 | rm -f conftest.err conftest.$ac_objext \ |
23930 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23931 | fi # $ac_x_libraries = no |
23932 | ||
23933 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
23934 | # Didn't find X anywhere. Cache the known absence of X. | |
23935 | ac_cv_have_x="have_x=no" | |
23936 | else | |
23937 | # Record where we found X for the cache. | |
23938 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 23939 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
23940 | fi |
23941 | fi | |
23942 | ||
23943 | fi | |
23944 | eval "$ac_cv_have_x" | |
23945 | fi # $with_x != no | |
23946 | ||
23947 | if test "$have_x" != yes; then | |
23948 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
23949 | echo "${ECHO_T}$have_x" >&6 | |
23950 | no_x=yes | |
23951 | else | |
23952 | # If each of the values was on the command line, it overrides each guess. | |
23953 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
23954 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
23955 | # Update the cache value to reflect the command line values. | |
23956 | ac_cv_have_x="have_x=yes \ | |
23957 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
4d4ff94c VZ |
23958 | # It might be that x_includes is empty (headers are found in the |
23959 | # standard search path. Then output the corresponding message | |
23960 | ac_out_x_includes=$x_includes | |
23961 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
23962 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
23963 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
23964 | fi |
23965 | ||
4d4ff94c | 23966 | fi |
a848cd7e SC |
23967 | if test "$no_x" = yes; then |
23968 | # Not all programs may use this symbol, but it does not hurt to define it. | |
23969 | ||
23970 | cat >>confdefs.h <<\_ACEOF | |
23971 | #define X_DISPLAY_MISSING 1 | |
23972 | _ACEOF | |
23973 | ||
23974 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
23975 | else | |
23976 | if test -n "$x_includes"; then | |
23977 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
23978 | fi | |
23979 | ||
23980 | # It would also be nice to do this for all -L options, not just this one. | |
23981 | if test -n "$x_libraries"; then | |
23982 | X_LIBS="$X_LIBS -L$x_libraries" | |
23983 | # For Solaris; some versions of Sun CC require a space after -R and | |
23984 | # others require no space. Words are not sufficient . . . . | |
23985 | case `(uname -sr) 2>/dev/null` in | |
23986 | "SunOS 5"*) | |
23987 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
23988 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23989 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23990 | cat >conftest.$ac_ext <<_ACEOF | |
23991 | /* confdefs.h. */ | |
23992 | _ACEOF | |
23993 | cat confdefs.h >>conftest.$ac_ext | |
23994 | cat >>conftest.$ac_ext <<_ACEOF | |
23995 | /* end confdefs.h. */ | |
23996 | ||
23997 | int | |
23998 | main () | |
23999 | { | |
24000 | ||
24001 | ; | |
24002 | return 0; | |
24003 | } | |
24004 | _ACEOF | |
24005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24007 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24008 | ac_status=$? |
ac1cb8d3 VS |
24009 | grep -v '^ *+' conftest.er1 >conftest.err |
24010 | rm -f conftest.er1 | |
24011 | cat conftest.err >&5 | |
a848cd7e SC |
24012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24013 | (exit $ac_status); } && | |
4d4ff94c | 24014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24016 | (eval $ac_try) 2>&5 | |
24017 | ac_status=$? | |
24018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24019 | (exit $ac_status); }; } && | |
24020 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24022 | (eval $ac_try) 2>&5 | |
24023 | ac_status=$? | |
24024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24025 | (exit $ac_status); }; }; then | |
24026 | ac_R_nospace=yes | |
24027 | else | |
24028 | echo "$as_me: failed program was:" >&5 | |
24029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24030 | ||
24031 | ac_R_nospace=no | |
24032 | fi | |
ac1cb8d3 VS |
24033 | rm -f conftest.err conftest.$ac_objext \ |
24034 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24035 | if test $ac_R_nospace = yes; then |
24036 | echo "$as_me:$LINENO: result: no" >&5 | |
24037 | echo "${ECHO_T}no" >&6 | |
24038 | X_LIBS="$X_LIBS -R$x_libraries" | |
24039 | else | |
24040 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24041 | cat >conftest.$ac_ext <<_ACEOF | |
24042 | /* confdefs.h. */ | |
24043 | _ACEOF | |
24044 | cat confdefs.h >>conftest.$ac_ext | |
24045 | cat >>conftest.$ac_ext <<_ACEOF | |
24046 | /* end confdefs.h. */ | |
24047 | ||
24048 | int | |
24049 | main () | |
24050 | { | |
24051 | ||
24052 | ; | |
24053 | return 0; | |
24054 | } | |
24055 | _ACEOF | |
24056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24058 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24059 | ac_status=$? |
ac1cb8d3 VS |
24060 | grep -v '^ *+' conftest.er1 >conftest.err |
24061 | rm -f conftest.er1 | |
24062 | cat conftest.err >&5 | |
a848cd7e SC |
24063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24064 | (exit $ac_status); } && | |
4d4ff94c | 24065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24067 | (eval $ac_try) 2>&5 | |
24068 | ac_status=$? | |
24069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24070 | (exit $ac_status); }; } && | |
24071 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24073 | (eval $ac_try) 2>&5 | |
24074 | ac_status=$? | |
24075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24076 | (exit $ac_status); }; }; then | |
24077 | ac_R_space=yes | |
24078 | else | |
24079 | echo "$as_me: failed program was:" >&5 | |
24080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24081 | ||
24082 | ac_R_space=no | |
24083 | fi | |
ac1cb8d3 VS |
24084 | rm -f conftest.err conftest.$ac_objext \ |
24085 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24086 | if test $ac_R_space = yes; then |
24087 | echo "$as_me:$LINENO: result: yes" >&5 | |
24088 | echo "${ECHO_T}yes" >&6 | |
24089 | X_LIBS="$X_LIBS -R $x_libraries" | |
24090 | else | |
24091 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24092 | echo "${ECHO_T}neither works" >&6 | |
24093 | fi | |
24094 | fi | |
24095 | LIBS=$ac_xsave_LIBS | |
24096 | esac | |
24097 | fi | |
24098 | ||
24099 | # Check for system-dependent libraries X programs must link with. | |
24100 | # Do this before checking for the system-independent R6 libraries | |
24101 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24102 | ||
24103 | if test "$ISC" = yes; then | |
24104 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24105 | else | |
24106 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24107 | # libraries were built with DECnet support. And Karl Berry says | |
24108 | # the Alpha needs dnet_stub (dnet does not exist). | |
24109 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24110 | cat >conftest.$ac_ext <<_ACEOF | |
24111 | /* confdefs.h. */ | |
24112 | _ACEOF | |
24113 | cat confdefs.h >>conftest.$ac_ext | |
24114 | cat >>conftest.$ac_ext <<_ACEOF | |
24115 | /* end confdefs.h. */ | |
24116 | ||
24117 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24118 | #ifdef __cplusplus | |
24119 | extern "C" | |
24120 | #endif | |
24121 | /* We use char because int might match the return type of a gcc2 | |
24122 | builtin and then its argument prototype would still apply. */ | |
24123 | char XOpenDisplay (); | |
24124 | int | |
24125 | main () | |
24126 | { | |
24127 | XOpenDisplay (); | |
24128 | ; | |
24129 | return 0; | |
24130 | } | |
24131 | _ACEOF | |
24132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24134 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24135 | ac_status=$? |
ac1cb8d3 VS |
24136 | grep -v '^ *+' conftest.er1 >conftest.err |
24137 | rm -f conftest.er1 | |
24138 | cat conftest.err >&5 | |
a848cd7e SC |
24139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24140 | (exit $ac_status); } && | |
4d4ff94c | 24141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24143 | (eval $ac_try) 2>&5 | |
24144 | ac_status=$? | |
24145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24146 | (exit $ac_status); }; } && | |
24147 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24149 | (eval $ac_try) 2>&5 | |
24150 | ac_status=$? | |
24151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24152 | (exit $ac_status); }; }; then | |
24153 | : | |
24154 | else | |
24155 | echo "$as_me: failed program was:" >&5 | |
24156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24157 | ||
24158 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24159 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24160 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24162 | else | |
24163 | ac_check_lib_save_LIBS=$LIBS | |
24164 | LIBS="-ldnet $LIBS" | |
24165 | cat >conftest.$ac_ext <<_ACEOF | |
24166 | /* confdefs.h. */ | |
24167 | _ACEOF | |
24168 | cat confdefs.h >>conftest.$ac_ext | |
24169 | cat >>conftest.$ac_ext <<_ACEOF | |
24170 | /* end confdefs.h. */ | |
24171 | ||
24172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24173 | #ifdef __cplusplus | |
24174 | extern "C" | |
24175 | #endif | |
24176 | /* We use char because int might match the return type of a gcc2 | |
24177 | builtin and then its argument prototype would still apply. */ | |
24178 | char dnet_ntoa (); | |
24179 | int | |
24180 | main () | |
24181 | { | |
24182 | dnet_ntoa (); | |
24183 | ; | |
24184 | return 0; | |
24185 | } | |
24186 | _ACEOF | |
24187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24190 | ac_status=$? |
ac1cb8d3 VS |
24191 | grep -v '^ *+' conftest.er1 >conftest.err |
24192 | rm -f conftest.er1 | |
24193 | cat conftest.err >&5 | |
a848cd7e SC |
24194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24195 | (exit $ac_status); } && | |
4d4ff94c | 24196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24198 | (eval $ac_try) 2>&5 | |
24199 | ac_status=$? | |
24200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24201 | (exit $ac_status); }; } && | |
24202 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24204 | (eval $ac_try) 2>&5 | |
24205 | ac_status=$? | |
24206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24207 | (exit $ac_status); }; }; then | |
24208 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24209 | else | |
24210 | echo "$as_me: failed program was:" >&5 | |
24211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24212 | ||
24213 | ac_cv_lib_dnet_dnet_ntoa=no | |
24214 | fi | |
ac1cb8d3 VS |
24215 | rm -f conftest.err conftest.$ac_objext \ |
24216 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24217 | LIBS=$ac_check_lib_save_LIBS |
24218 | fi | |
24219 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24220 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24221 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24222 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24223 | fi | |
24224 | ||
24225 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24226 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24227 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24228 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24230 | else | |
24231 | ac_check_lib_save_LIBS=$LIBS | |
24232 | LIBS="-ldnet_stub $LIBS" | |
24233 | cat >conftest.$ac_ext <<_ACEOF | |
24234 | /* confdefs.h. */ | |
24235 | _ACEOF | |
24236 | cat confdefs.h >>conftest.$ac_ext | |
24237 | cat >>conftest.$ac_ext <<_ACEOF | |
24238 | /* end confdefs.h. */ | |
24239 | ||
24240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24241 | #ifdef __cplusplus | |
24242 | extern "C" | |
24243 | #endif | |
24244 | /* We use char because int might match the return type of a gcc2 | |
24245 | builtin and then its argument prototype would still apply. */ | |
24246 | char dnet_ntoa (); | |
24247 | int | |
24248 | main () | |
24249 | { | |
24250 | dnet_ntoa (); | |
24251 | ; | |
24252 | return 0; | |
24253 | } | |
24254 | _ACEOF | |
24255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24257 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24258 | ac_status=$? |
ac1cb8d3 VS |
24259 | grep -v '^ *+' conftest.er1 >conftest.err |
24260 | rm -f conftest.er1 | |
24261 | cat conftest.err >&5 | |
a848cd7e SC |
24262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24263 | (exit $ac_status); } && | |
4d4ff94c | 24264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24266 | (eval $ac_try) 2>&5 | |
24267 | ac_status=$? | |
24268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24269 | (exit $ac_status); }; } && | |
24270 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24272 | (eval $ac_try) 2>&5 | |
24273 | ac_status=$? | |
24274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24275 | (exit $ac_status); }; }; then | |
24276 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24277 | else | |
24278 | echo "$as_me: failed program was:" >&5 | |
24279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24280 | ||
24281 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24282 | fi | |
ac1cb8d3 VS |
24283 | rm -f conftest.err conftest.$ac_objext \ |
24284 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24285 | LIBS=$ac_check_lib_save_LIBS |
24286 | fi | |
24287 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24288 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24289 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24290 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24291 | fi | |
24292 | ||
24293 | fi | |
24294 | fi | |
ac1cb8d3 VS |
24295 | rm -f conftest.err conftest.$ac_objext \ |
24296 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24297 | LIBS="$ac_xsave_LIBS" |
24298 | ||
24299 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24300 | # to get the SysV transport functions. | |
24301 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24302 | # needs -lnsl. | |
24303 | # The nsl library prevents programs from opening the X display | |
24304 | # on Irix 5.2, according to T.E. Dickey. | |
24305 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24306 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24307 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24308 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24309 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24311 | else | |
24312 | cat >conftest.$ac_ext <<_ACEOF | |
24313 | /* confdefs.h. */ | |
24314 | _ACEOF | |
24315 | cat confdefs.h >>conftest.$ac_ext | |
24316 | cat >>conftest.$ac_ext <<_ACEOF | |
24317 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24318 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24319 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24320 | #define gethostbyname innocuous_gethostbyname | |
24321 | ||
a848cd7e SC |
24322 | /* System header to define __stub macros and hopefully few prototypes, |
24323 | which can conflict with char gethostbyname (); below. | |
24324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24325 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24326 | |
a848cd7e SC |
24327 | #ifdef __STDC__ |
24328 | # include <limits.h> | |
24329 | #else | |
24330 | # include <assert.h> | |
24331 | #endif | |
ac1cb8d3 VS |
24332 | |
24333 | #undef gethostbyname | |
24334 | ||
a848cd7e SC |
24335 | /* Override any gcc2 internal prototype to avoid an error. */ |
24336 | #ifdef __cplusplus | |
24337 | extern "C" | |
24338 | { | |
24339 | #endif | |
24340 | /* We use char because int might match the return type of a gcc2 | |
24341 | builtin and then its argument prototype would still apply. */ | |
24342 | char gethostbyname (); | |
24343 | /* The GNU C library defines this for functions which it implements | |
24344 | to always fail with ENOSYS. Some functions are actually named | |
24345 | something starting with __ and the normal name is an alias. */ | |
24346 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24347 | choke me | |
24348 | #else | |
24349 | char (*f) () = gethostbyname; | |
24350 | #endif | |
24351 | #ifdef __cplusplus | |
24352 | } | |
24353 | #endif | |
24354 | ||
24355 | int | |
24356 | main () | |
24357 | { | |
24358 | return f != gethostbyname; | |
24359 | ; | |
24360 | return 0; | |
24361 | } | |
24362 | _ACEOF | |
24363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24365 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24366 | ac_status=$? |
ac1cb8d3 VS |
24367 | grep -v '^ *+' conftest.er1 >conftest.err |
24368 | rm -f conftest.er1 | |
24369 | cat conftest.err >&5 | |
a848cd7e SC |
24370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24371 | (exit $ac_status); } && | |
4d4ff94c | 24372 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24374 | (eval $ac_try) 2>&5 | |
24375 | ac_status=$? | |
24376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24377 | (exit $ac_status); }; } && | |
24378 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24380 | (eval $ac_try) 2>&5 | |
24381 | ac_status=$? | |
24382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24383 | (exit $ac_status); }; }; then | |
24384 | ac_cv_func_gethostbyname=yes | |
24385 | else | |
24386 | echo "$as_me: failed program was:" >&5 | |
24387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24388 | ||
24389 | ac_cv_func_gethostbyname=no | |
24390 | fi | |
ac1cb8d3 VS |
24391 | rm -f conftest.err conftest.$ac_objext \ |
24392 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24393 | fi |
24394 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24395 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24396 | ||
24397 | if test $ac_cv_func_gethostbyname = no; then | |
24398 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24399 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24400 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24402 | else | |
24403 | ac_check_lib_save_LIBS=$LIBS | |
24404 | LIBS="-lnsl $LIBS" | |
24405 | cat >conftest.$ac_ext <<_ACEOF | |
24406 | /* confdefs.h. */ | |
24407 | _ACEOF | |
24408 | cat confdefs.h >>conftest.$ac_ext | |
24409 | cat >>conftest.$ac_ext <<_ACEOF | |
24410 | /* end confdefs.h. */ | |
24411 | ||
24412 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24413 | #ifdef __cplusplus | |
24414 | extern "C" | |
24415 | #endif | |
24416 | /* We use char because int might match the return type of a gcc2 | |
24417 | builtin and then its argument prototype would still apply. */ | |
24418 | char gethostbyname (); | |
24419 | int | |
24420 | main () | |
24421 | { | |
24422 | gethostbyname (); | |
24423 | ; | |
24424 | return 0; | |
24425 | } | |
24426 | _ACEOF | |
24427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24429 | (eval $ac_link) 2>conftest.er1 |
24430 | ac_status=$? | |
24431 | grep -v '^ *+' conftest.er1 >conftest.err | |
24432 | rm -f conftest.er1 | |
24433 | cat conftest.err >&5 | |
24434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24435 | (exit $ac_status); } && | |
4d4ff94c | 24436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24438 | (eval $ac_try) 2>&5 | |
24439 | ac_status=$? | |
24440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24441 | (exit $ac_status); }; } && | |
24442 | { ac_try='test -s conftest$ac_exeext' | |
24443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24444 | (eval $ac_try) 2>&5 | |
24445 | ac_status=$? | |
24446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24447 | (exit $ac_status); }; }; then | |
24448 | ac_cv_lib_nsl_gethostbyname=yes | |
24449 | else | |
24450 | echo "$as_me: failed program was:" >&5 | |
24451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24452 | ||
24453 | ac_cv_lib_nsl_gethostbyname=no | |
24454 | fi | |
24455 | rm -f conftest.err conftest.$ac_objext \ | |
24456 | conftest$ac_exeext conftest.$ac_ext | |
24457 | LIBS=$ac_check_lib_save_LIBS | |
24458 | fi | |
24459 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24460 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24461 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24462 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24463 | fi | |
24464 | ||
24465 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24466 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24467 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24468 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24470 | else | |
24471 | ac_check_lib_save_LIBS=$LIBS | |
24472 | LIBS="-lbsd $LIBS" | |
24473 | cat >conftest.$ac_ext <<_ACEOF | |
24474 | /* confdefs.h. */ | |
24475 | _ACEOF | |
24476 | cat confdefs.h >>conftest.$ac_ext | |
24477 | cat >>conftest.$ac_ext <<_ACEOF | |
24478 | /* end confdefs.h. */ | |
24479 | ||
24480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24481 | #ifdef __cplusplus | |
24482 | extern "C" | |
24483 | #endif | |
24484 | /* We use char because int might match the return type of a gcc2 | |
24485 | builtin and then its argument prototype would still apply. */ | |
24486 | char gethostbyname (); | |
24487 | int | |
24488 | main () | |
24489 | { | |
24490 | gethostbyname (); | |
24491 | ; | |
24492 | return 0; | |
24493 | } | |
24494 | _ACEOF | |
24495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24497 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24498 | ac_status=$? |
ac1cb8d3 VS |
24499 | grep -v '^ *+' conftest.er1 >conftest.err |
24500 | rm -f conftest.er1 | |
24501 | cat conftest.err >&5 | |
a848cd7e SC |
24502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24503 | (exit $ac_status); } && | |
4d4ff94c | 24504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
24505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24506 | (eval $ac_try) 2>&5 | |
24507 | ac_status=$? | |
24508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24509 | (exit $ac_status); }; } && |
24510 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24512 | (eval $ac_try) 2>&5 | |
24513 | ac_status=$? | |
24514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24515 | (exit $ac_status); }; }; then | |
24516 | ac_cv_lib_bsd_gethostbyname=yes | |
24517 | else | |
24518 | echo "$as_me: failed program was:" >&5 | |
24519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24520 | ||
24521 | ac_cv_lib_bsd_gethostbyname=no | |
24522 | fi | |
ac1cb8d3 VS |
24523 | rm -f conftest.err conftest.$ac_objext \ |
24524 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24525 | LIBS=$ac_check_lib_save_LIBS |
24526 | fi | |
24527 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24528 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24529 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24530 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24531 | fi | |
24532 | ||
24533 | fi | |
24534 | fi | |
24535 | ||
24536 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24537 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24538 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24539 | # on later versions), says Simon Leinen: it contains gethostby* | |
24540 | # variants that don't use the name server (or something). -lsocket | |
24541 | # must be given before -lnsl if both are needed. We assume that | |
24542 | # if connect needs -lnsl, so does gethostbyname. | |
24543 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24544 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24545 | if test "${ac_cv_func_connect+set}" = set; then | |
24546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24547 | else | |
24548 | cat >conftest.$ac_ext <<_ACEOF | |
24549 | /* confdefs.h. */ | |
24550 | _ACEOF | |
24551 | cat confdefs.h >>conftest.$ac_ext | |
24552 | cat >>conftest.$ac_ext <<_ACEOF | |
24553 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24554 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24555 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24556 | #define connect innocuous_connect | |
24557 | ||
a848cd7e SC |
24558 | /* System header to define __stub macros and hopefully few prototypes, |
24559 | which can conflict with char connect (); below. | |
24560 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24561 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24562 | |
a848cd7e SC |
24563 | #ifdef __STDC__ |
24564 | # include <limits.h> | |
24565 | #else | |
24566 | # include <assert.h> | |
24567 | #endif | |
ac1cb8d3 VS |
24568 | |
24569 | #undef connect | |
24570 | ||
a848cd7e SC |
24571 | /* Override any gcc2 internal prototype to avoid an error. */ |
24572 | #ifdef __cplusplus | |
24573 | extern "C" | |
24574 | { | |
24575 | #endif | |
24576 | /* We use char because int might match the return type of a gcc2 | |
24577 | builtin and then its argument prototype would still apply. */ | |
24578 | char connect (); | |
24579 | /* The GNU C library defines this for functions which it implements | |
24580 | to always fail with ENOSYS. Some functions are actually named | |
24581 | something starting with __ and the normal name is an alias. */ | |
24582 | #if defined (__stub_connect) || defined (__stub___connect) | |
24583 | choke me | |
24584 | #else | |
24585 | char (*f) () = connect; | |
24586 | #endif | |
24587 | #ifdef __cplusplus | |
24588 | } | |
24589 | #endif | |
24590 | ||
24591 | int | |
24592 | main () | |
24593 | { | |
24594 | return f != connect; | |
24595 | ; | |
24596 | return 0; | |
24597 | } | |
24598 | _ACEOF | |
24599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24601 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24602 | ac_status=$? |
ac1cb8d3 VS |
24603 | grep -v '^ *+' conftest.er1 >conftest.err |
24604 | rm -f conftest.er1 | |
24605 | cat conftest.err >&5 | |
a848cd7e SC |
24606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24607 | (exit $ac_status); } && | |
4d4ff94c | 24608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24610 | (eval $ac_try) 2>&5 | |
24611 | ac_status=$? | |
24612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24613 | (exit $ac_status); }; } && | |
24614 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24616 | (eval $ac_try) 2>&5 | |
24617 | ac_status=$? | |
24618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24619 | (exit $ac_status); }; }; then | |
24620 | ac_cv_func_connect=yes | |
24621 | else | |
24622 | echo "$as_me: failed program was:" >&5 | |
24623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24624 | ||
24625 | ac_cv_func_connect=no | |
24626 | fi | |
ac1cb8d3 VS |
24627 | rm -f conftest.err conftest.$ac_objext \ |
24628 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24629 | fi |
24630 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24631 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24632 | ||
24633 | if test $ac_cv_func_connect = no; then | |
24634 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24635 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24636 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24638 | else | |
24639 | ac_check_lib_save_LIBS=$LIBS | |
24640 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
24641 | cat >conftest.$ac_ext <<_ACEOF | |
24642 | /* confdefs.h. */ | |
24643 | _ACEOF | |
24644 | cat confdefs.h >>conftest.$ac_ext | |
24645 | cat >>conftest.$ac_ext <<_ACEOF | |
24646 | /* end confdefs.h. */ | |
24647 | ||
24648 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24649 | #ifdef __cplusplus | |
24650 | extern "C" | |
24651 | #endif | |
24652 | /* We use char because int might match the return type of a gcc2 | |
24653 | builtin and then its argument prototype would still apply. */ | |
24654 | char connect (); | |
24655 | int | |
24656 | main () | |
24657 | { | |
24658 | connect (); | |
24659 | ; | |
24660 | return 0; | |
24661 | } | |
24662 | _ACEOF | |
24663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24665 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24666 | ac_status=$? |
ac1cb8d3 VS |
24667 | grep -v '^ *+' conftest.er1 >conftest.err |
24668 | rm -f conftest.er1 | |
24669 | cat conftest.err >&5 | |
a848cd7e SC |
24670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24671 | (exit $ac_status); } && | |
4d4ff94c | 24672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24674 | (eval $ac_try) 2>&5 | |
24675 | ac_status=$? | |
24676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24677 | (exit $ac_status); }; } && | |
24678 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24680 | (eval $ac_try) 2>&5 | |
24681 | ac_status=$? | |
24682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24683 | (exit $ac_status); }; }; then | |
24684 | ac_cv_lib_socket_connect=yes | |
24685 | else | |
24686 | echo "$as_me: failed program was:" >&5 | |
24687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24688 | ||
24689 | ac_cv_lib_socket_connect=no | |
24690 | fi | |
ac1cb8d3 VS |
24691 | rm -f conftest.err conftest.$ac_objext \ |
24692 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24693 | LIBS=$ac_check_lib_save_LIBS |
24694 | fi | |
24695 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24696 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24697 | if test $ac_cv_lib_socket_connect = yes; then | |
24698 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24699 | fi | |
24700 | ||
24701 | fi | |
24702 | ||
24703 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24704 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24705 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24706 | if test "${ac_cv_func_remove+set}" = set; then | |
24707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24708 | else | |
24709 | cat >conftest.$ac_ext <<_ACEOF | |
24710 | /* confdefs.h. */ | |
24711 | _ACEOF | |
24712 | cat confdefs.h >>conftest.$ac_ext | |
24713 | cat >>conftest.$ac_ext <<_ACEOF | |
24714 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24715 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24717 | #define remove innocuous_remove | |
24718 | ||
a848cd7e SC |
24719 | /* System header to define __stub macros and hopefully few prototypes, |
24720 | which can conflict with char remove (); below. | |
24721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24722 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24723 | |
a848cd7e SC |
24724 | #ifdef __STDC__ |
24725 | # include <limits.h> | |
24726 | #else | |
24727 | # include <assert.h> | |
24728 | #endif | |
ac1cb8d3 VS |
24729 | |
24730 | #undef remove | |
24731 | ||
a848cd7e SC |
24732 | /* Override any gcc2 internal prototype to avoid an error. */ |
24733 | #ifdef __cplusplus | |
24734 | extern "C" | |
24735 | { | |
24736 | #endif | |
24737 | /* We use char because int might match the return type of a gcc2 | |
24738 | builtin and then its argument prototype would still apply. */ | |
24739 | char remove (); | |
24740 | /* The GNU C library defines this for functions which it implements | |
24741 | to always fail with ENOSYS. Some functions are actually named | |
24742 | something starting with __ and the normal name is an alias. */ | |
24743 | #if defined (__stub_remove) || defined (__stub___remove) | |
24744 | choke me | |
24745 | #else | |
24746 | char (*f) () = remove; | |
24747 | #endif | |
24748 | #ifdef __cplusplus | |
24749 | } | |
24750 | #endif | |
24751 | ||
24752 | int | |
24753 | main () | |
24754 | { | |
24755 | return f != remove; | |
24756 | ; | |
24757 | return 0; | |
24758 | } | |
24759 | _ACEOF | |
24760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24762 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24763 | ac_status=$? |
ac1cb8d3 VS |
24764 | grep -v '^ *+' conftest.er1 >conftest.err |
24765 | rm -f conftest.er1 | |
24766 | cat conftest.err >&5 | |
a848cd7e SC |
24767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24768 | (exit $ac_status); } && | |
4d4ff94c | 24769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24771 | (eval $ac_try) 2>&5 | |
24772 | ac_status=$? | |
24773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24774 | (exit $ac_status); }; } && | |
24775 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24777 | (eval $ac_try) 2>&5 | |
24778 | ac_status=$? | |
24779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24780 | (exit $ac_status); }; }; then | |
24781 | ac_cv_func_remove=yes | |
24782 | else | |
24783 | echo "$as_me: failed program was:" >&5 | |
24784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24785 | ||
24786 | ac_cv_func_remove=no | |
24787 | fi | |
ac1cb8d3 VS |
24788 | rm -f conftest.err conftest.$ac_objext \ |
24789 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24790 | fi |
24791 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24792 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
24793 | ||
24794 | if test $ac_cv_func_remove = no; then | |
24795 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
24796 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24797 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24799 | else | |
24800 | ac_check_lib_save_LIBS=$LIBS | |
24801 | LIBS="-lposix $LIBS" | |
24802 | cat >conftest.$ac_ext <<_ACEOF | |
24803 | /* confdefs.h. */ | |
24804 | _ACEOF | |
24805 | cat confdefs.h >>conftest.$ac_ext | |
24806 | cat >>conftest.$ac_ext <<_ACEOF | |
24807 | /* end confdefs.h. */ | |
24808 | ||
24809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24810 | #ifdef __cplusplus | |
24811 | extern "C" | |
24812 | #endif | |
24813 | /* We use char because int might match the return type of a gcc2 | |
24814 | builtin and then its argument prototype would still apply. */ | |
24815 | char remove (); | |
24816 | int | |
24817 | main () | |
24818 | { | |
24819 | remove (); | |
24820 | ; | |
24821 | return 0; | |
24822 | } | |
24823 | _ACEOF | |
24824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24826 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24827 | ac_status=$? |
ac1cb8d3 VS |
24828 | grep -v '^ *+' conftest.er1 >conftest.err |
24829 | rm -f conftest.er1 | |
24830 | cat conftest.err >&5 | |
a848cd7e SC |
24831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24832 | (exit $ac_status); } && | |
4d4ff94c | 24833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24835 | (eval $ac_try) 2>&5 | |
24836 | ac_status=$? | |
24837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24838 | (exit $ac_status); }; } && | |
24839 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24841 | (eval $ac_try) 2>&5 | |
24842 | ac_status=$? | |
24843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24844 | (exit $ac_status); }; }; then | |
24845 | ac_cv_lib_posix_remove=yes | |
24846 | else | |
24847 | echo "$as_me: failed program was:" >&5 | |
24848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24849 | ||
24850 | ac_cv_lib_posix_remove=no | |
24851 | fi | |
ac1cb8d3 VS |
24852 | rm -f conftest.err conftest.$ac_objext \ |
24853 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24854 | LIBS=$ac_check_lib_save_LIBS |
24855 | fi | |
24856 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24857 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24858 | if test $ac_cv_lib_posix_remove = yes; then | |
24859 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
24860 | fi | |
24861 | ||
24862 | fi | |
24863 | ||
24864 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
24865 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
24866 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24867 | if test "${ac_cv_func_shmat+set}" = set; then | |
24868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24869 | else | |
24870 | cat >conftest.$ac_ext <<_ACEOF | |
24871 | /* confdefs.h. */ | |
24872 | _ACEOF | |
24873 | cat confdefs.h >>conftest.$ac_ext | |
24874 | cat >>conftest.$ac_ext <<_ACEOF | |
24875 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24876 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
24877 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24878 | #define shmat innocuous_shmat | |
24879 | ||
a848cd7e SC |
24880 | /* System header to define __stub macros and hopefully few prototypes, |
24881 | which can conflict with char shmat (); below. | |
24882 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24883 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24884 | |
a848cd7e SC |
24885 | #ifdef __STDC__ |
24886 | # include <limits.h> | |
24887 | #else | |
24888 | # include <assert.h> | |
24889 | #endif | |
ac1cb8d3 VS |
24890 | |
24891 | #undef shmat | |
24892 | ||
a848cd7e SC |
24893 | /* Override any gcc2 internal prototype to avoid an error. */ |
24894 | #ifdef __cplusplus | |
24895 | extern "C" | |
24896 | { | |
24897 | #endif | |
24898 | /* We use char because int might match the return type of a gcc2 | |
24899 | builtin and then its argument prototype would still apply. */ | |
24900 | char shmat (); | |
24901 | /* The GNU C library defines this for functions which it implements | |
24902 | to always fail with ENOSYS. Some functions are actually named | |
24903 | something starting with __ and the normal name is an alias. */ | |
24904 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
24905 | choke me | |
24906 | #else | |
24907 | char (*f) () = shmat; | |
24908 | #endif | |
24909 | #ifdef __cplusplus | |
24910 | } | |
24911 | #endif | |
24912 | ||
24913 | int | |
24914 | main () | |
24915 | { | |
24916 | return f != shmat; | |
24917 | ; | |
24918 | return 0; | |
24919 | } | |
24920 | _ACEOF | |
24921 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24923 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24924 | ac_status=$? |
ac1cb8d3 VS |
24925 | grep -v '^ *+' conftest.er1 >conftest.err |
24926 | rm -f conftest.er1 | |
24927 | cat conftest.err >&5 | |
a848cd7e SC |
24928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24929 | (exit $ac_status); } && | |
4d4ff94c | 24930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24932 | (eval $ac_try) 2>&5 | |
24933 | ac_status=$? | |
24934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24935 | (exit $ac_status); }; } && | |
24936 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24938 | (eval $ac_try) 2>&5 | |
24939 | ac_status=$? | |
24940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24941 | (exit $ac_status); }; }; then | |
24942 | ac_cv_func_shmat=yes | |
24943 | else | |
24944 | echo "$as_me: failed program was:" >&5 | |
24945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24946 | ||
24947 | ac_cv_func_shmat=no | |
24948 | fi | |
ac1cb8d3 VS |
24949 | rm -f conftest.err conftest.$ac_objext \ |
24950 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24951 | fi |
24952 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
24953 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
24954 | ||
24955 | if test $ac_cv_func_shmat = no; then | |
24956 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
24957 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
24958 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
24959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24960 | else | |
24961 | ac_check_lib_save_LIBS=$LIBS | |
24962 | LIBS="-lipc $LIBS" | |
24963 | cat >conftest.$ac_ext <<_ACEOF | |
24964 | /* confdefs.h. */ | |
24965 | _ACEOF | |
24966 | cat confdefs.h >>conftest.$ac_ext | |
24967 | cat >>conftest.$ac_ext <<_ACEOF | |
24968 | /* end confdefs.h. */ | |
24969 | ||
24970 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24971 | #ifdef __cplusplus | |
24972 | extern "C" | |
24973 | #endif | |
24974 | /* We use char because int might match the return type of a gcc2 | |
24975 | builtin and then its argument prototype would still apply. */ | |
24976 | char shmat (); | |
24977 | int | |
24978 | main () | |
24979 | { | |
24980 | shmat (); | |
24981 | ; | |
24982 | return 0; | |
24983 | } | |
24984 | _ACEOF | |
24985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24987 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24988 | ac_status=$? |
ac1cb8d3 VS |
24989 | grep -v '^ *+' conftest.er1 >conftest.err |
24990 | rm -f conftest.er1 | |
24991 | cat conftest.err >&5 | |
a848cd7e SC |
24992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24993 | (exit $ac_status); } && | |
4d4ff94c | 24994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24996 | (eval $ac_try) 2>&5 | |
24997 | ac_status=$? | |
24998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24999 | (exit $ac_status); }; } && | |
25000 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25002 | (eval $ac_try) 2>&5 | |
25003 | ac_status=$? | |
25004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25005 | (exit $ac_status); }; }; then | |
25006 | ac_cv_lib_ipc_shmat=yes | |
25007 | else | |
25008 | echo "$as_me: failed program was:" >&5 | |
25009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25010 | ||
25011 | ac_cv_lib_ipc_shmat=no | |
25012 | fi | |
ac1cb8d3 VS |
25013 | rm -f conftest.err conftest.$ac_objext \ |
25014 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25015 | LIBS=$ac_check_lib_save_LIBS |
25016 | fi | |
25017 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25018 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25019 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25020 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25021 | fi | |
25022 | ||
25023 | fi | |
25024 | fi | |
25025 | ||
25026 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25027 | ac_save_LDFLAGS=$LDFLAGS | |
25028 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25029 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25030 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25031 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25032 | # These have to be linked with before -lX11, unlike the other | |
25033 | # libraries we check for below, so use a different variable. | |
25034 | # John Interrante, Karl Berry | |
25035 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25036 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25037 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25039 | else | |
25040 | ac_check_lib_save_LIBS=$LIBS | |
25041 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25042 | cat >conftest.$ac_ext <<_ACEOF | |
25043 | /* confdefs.h. */ | |
25044 | _ACEOF | |
25045 | cat confdefs.h >>conftest.$ac_ext | |
25046 | cat >>conftest.$ac_ext <<_ACEOF | |
25047 | /* end confdefs.h. */ | |
25048 | ||
25049 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25050 | #ifdef __cplusplus | |
25051 | extern "C" | |
25052 | #endif | |
25053 | /* We use char because int might match the return type of a gcc2 | |
25054 | builtin and then its argument prototype would still apply. */ | |
25055 | char IceConnectionNumber (); | |
25056 | int | |
25057 | main () | |
25058 | { | |
25059 | IceConnectionNumber (); | |
25060 | ; | |
25061 | return 0; | |
25062 | } | |
25063 | _ACEOF | |
25064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25066 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25067 | ac_status=$? |
ac1cb8d3 VS |
25068 | grep -v '^ *+' conftest.er1 >conftest.err |
25069 | rm -f conftest.er1 | |
25070 | cat conftest.err >&5 | |
a848cd7e SC |
25071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25072 | (exit $ac_status); } && | |
4d4ff94c | 25073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25075 | (eval $ac_try) 2>&5 | |
25076 | ac_status=$? | |
25077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25078 | (exit $ac_status); }; } && | |
25079 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25081 | (eval $ac_try) 2>&5 | |
25082 | ac_status=$? | |
25083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25084 | (exit $ac_status); }; }; then | |
25085 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25086 | else | |
25087 | echo "$as_me: failed program was:" >&5 | |
25088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25089 | ||
25090 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25091 | fi | |
ac1cb8d3 VS |
25092 | rm -f conftest.err conftest.$ac_objext \ |
25093 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25094 | LIBS=$ac_check_lib_save_LIBS |
25095 | fi | |
25096 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25097 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25098 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25099 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25100 | fi | |
25101 | ||
25102 | LDFLAGS=$ac_save_LDFLAGS | |
25103 | ||
25104 | fi | |
25105 | ||
25106 | ||
25107 | if test "$no_x" = "yes"; then | |
25108 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25109 | echo "$as_me: error: X11 not found" >&2;} | |
25110 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25111 | fi | |
25112 | ||
74b84332 VS |
25113 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25114 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25115 | AFMINSTALL=afminstall |
25116 | COMPILED_X_PROGRAM=0 | |
25117 | ||
74b84332 VS |
25118 | fi |
25119 | ||
25120 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25121 | if test "$wxUSE_NANOX" = "yes"; then |
25122 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25123 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25124 | if test "x$MICROWIN" = x ; then | |
25125 | echo "$as_me:$LINENO: result: not found" >&5 | |
25126 | echo "${ECHO_T}not found" >&6 | |
25127 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25128 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25129 | { (exit 1); exit 1; }; } | |
25130 | else | |
25131 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25132 | echo "${ECHO_T}$MICROWIN" >&6 | |
25133 | cat >>confdefs.h <<\_ACEOF | |
25134 | #define wxUSE_NANOX 1 | |
25135 | _ACEOF | |
25136 | ||
25137 | fi | |
25138 | fi | |
25139 | ||
25140 | if test "$wxUSE_UNICODE" = "yes"; then | |
25141 | ||
25142 | succeeded=no | |
25143 | ||
25144 | if test -z "$PKG_CONFIG"; then | |
25145 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25146 | set dummy pkg-config; ac_word=$2 | |
25147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25149 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25151 | else | |
25152 | case $PKG_CONFIG in | |
25153 | [\\/]* | ?:[\\/]*) | |
25154 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25155 | ;; | |
25156 | *) | |
25157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25158 | for as_dir in $PATH | |
25159 | do | |
25160 | IFS=$as_save_IFS | |
25161 | test -z "$as_dir" && as_dir=. | |
25162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25164 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25166 | break 2 | |
25167 | fi | |
25168 | done | |
25169 | done | |
25170 | ||
25171 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25172 | ;; | |
25173 | esac | |
25174 | fi | |
25175 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25176 | ||
25177 | if test -n "$PKG_CONFIG"; then | |
25178 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25179 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25180 | else | |
25181 | echo "$as_me:$LINENO: result: no" >&5 | |
25182 | echo "${ECHO_T}no" >&6 | |
25183 | fi | |
25184 | ||
25185 | fi | |
25186 | ||
25187 | if test "$PKG_CONFIG" = "no" ; then | |
25188 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25189 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25190 | echo "*** to the full path to pkg-config." | |
25191 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25192 | else | |
25193 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25194 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25195 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25196 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25197 | ||
25198 | if $PKG_CONFIG --exists "pangox" ; then | |
25199 | echo "$as_me:$LINENO: result: yes" >&5 | |
25200 | echo "${ECHO_T}yes" >&6 | |
25201 | succeeded=yes | |
25202 | ||
25203 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25204 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25205 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25206 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25207 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25208 | ||
25209 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25210 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25211 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25212 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25213 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25214 | else | |
25215 | PANGOX_CFLAGS="" | |
25216 | PANGOX_LIBS="" | |
25217 | ## If we have a custom action on failure, don't print errors, but | |
25218 | ## do set a variable so people can do so. | |
25219 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25220 | ||
25221 | fi | |
25222 | ||
25223 | ||
25224 | ||
25225 | else | |
25226 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25227 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25228 | fi | |
25229 | fi | |
25230 | ||
25231 | if test $succeeded = yes; then | |
25232 | ||
25233 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25234 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25235 | ||
25236 | else | |
25237 | ||
25238 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25239 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25240 | { (exit 1); exit 1; }; } | |
25241 | ||
25242 | ||
25243 | fi | |
25244 | ||
25245 | ||
25246 | succeeded=no | |
25247 | ||
25248 | if test -z "$PKG_CONFIG"; then | |
25249 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25250 | set dummy pkg-config; ac_word=$2 | |
25251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25253 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25255 | else | |
25256 | case $PKG_CONFIG in | |
25257 | [\\/]* | ?:[\\/]*) | |
25258 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25259 | ;; | |
25260 | *) | |
25261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25262 | for as_dir in $PATH | |
25263 | do | |
25264 | IFS=$as_save_IFS | |
25265 | test -z "$as_dir" && as_dir=. | |
25266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25268 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25270 | break 2 | |
25271 | fi | |
25272 | done | |
25273 | done | |
25274 | ||
25275 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25276 | ;; | |
25277 | esac | |
25278 | fi | |
25279 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25280 | ||
25281 | if test -n "$PKG_CONFIG"; then | |
25282 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25283 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25284 | else | |
25285 | echo "$as_me:$LINENO: result: no" >&5 | |
25286 | echo "${ECHO_T}no" >&6 | |
25287 | fi | |
25288 | ||
25289 | fi | |
25290 | ||
25291 | if test "$PKG_CONFIG" = "no" ; then | |
25292 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25293 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25294 | echo "*** to the full path to pkg-config." | |
25295 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25296 | else | |
25297 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25298 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25299 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25300 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25301 | ||
25302 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25303 | echo "$as_me:$LINENO: result: yes" >&5 | |
25304 | echo "${ECHO_T}yes" >&6 | |
25305 | succeeded=yes | |
25306 | ||
25307 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25308 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25309 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25310 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25311 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25312 | ||
25313 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25314 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25315 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25316 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25317 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25318 | else | |
25319 | PANGOFT2_CFLAGS="" | |
25320 | PANGOFT2_LIBS="" | |
25321 | ## If we have a custom action on failure, don't print errors, but | |
25322 | ## do set a variable so people can do so. | |
25323 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25324 | ||
25325 | fi | |
25326 | ||
25327 | ||
25328 | ||
25329 | else | |
25330 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25331 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25332 | fi | |
25333 | fi | |
25334 | ||
25335 | if test $succeeded = yes; then | |
25336 | ||
25337 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25338 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25339 | ||
25340 | else | |
25341 | ||
25342 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25343 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25344 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25345 | ||
25346 | ||
25347 | fi | |
25348 | ||
25349 | ||
25350 | succeeded=no | |
25351 | ||
25352 | if test -z "$PKG_CONFIG"; then | |
25353 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25354 | set dummy pkg-config; ac_word=$2 | |
25355 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25357 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25359 | else | |
25360 | case $PKG_CONFIG in | |
25361 | [\\/]* | ?:[\\/]*) | |
25362 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25363 | ;; | |
25364 | *) | |
25365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25366 | for as_dir in $PATH | |
25367 | do | |
25368 | IFS=$as_save_IFS | |
25369 | test -z "$as_dir" && as_dir=. | |
25370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25372 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25374 | break 2 | |
25375 | fi | |
25376 | done | |
25377 | done | |
25378 | ||
25379 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25380 | ;; | |
25381 | esac | |
25382 | fi | |
25383 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25384 | ||
25385 | if test -n "$PKG_CONFIG"; then | |
25386 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25387 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25388 | else | |
25389 | echo "$as_me:$LINENO: result: no" >&5 | |
25390 | echo "${ECHO_T}no" >&6 | |
25391 | fi | |
25392 | ||
25393 | fi | |
25394 | ||
25395 | if test "$PKG_CONFIG" = "no" ; then | |
25396 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25397 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25398 | echo "*** to the full path to pkg-config." | |
25399 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25400 | else | |
25401 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25402 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25403 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25404 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25405 | ||
25406 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25407 | echo "$as_me:$LINENO: result: yes" >&5 | |
25408 | echo "${ECHO_T}yes" >&6 | |
25409 | succeeded=yes | |
25410 | ||
25411 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25412 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25413 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25414 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25415 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25416 | ||
25417 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25418 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25419 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25420 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25421 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25422 | else | |
25423 | PANGOXFT_CFLAGS="" | |
25424 | PANGOXFT_LIBS="" | |
25425 | ## If we have a custom action on failure, don't print errors, but | |
25426 | ## do set a variable so people can do so. | |
25427 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25428 | ||
25429 | fi | |
25430 | ||
25431 | ||
25432 | ||
25433 | else | |
25434 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25435 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25436 | fi | |
25437 | fi | |
25438 | ||
25439 | if test $succeeded = yes; then | |
25440 | ||
25441 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25442 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25443 | ||
25444 | else | |
25445 | ||
25446 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25447 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25448 | ||
25449 | ||
25450 | fi | |
25451 | ||
304205f1 VS |
25452 | save_CFLAGS="$CFLAGS" |
25453 | save_LIBS="$LIBS" | |
25454 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25455 | LIBS="$LIBS $PANGOX_LIBS" | |
25456 | ||
25457 | for ac_func in pango_font_family_is_monospace | |
25458 | do | |
25459 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25460 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25461 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25462 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25464 | else | |
25465 | cat >conftest.$ac_ext <<_ACEOF | |
25466 | /* confdefs.h. */ | |
25467 | _ACEOF | |
25468 | cat confdefs.h >>conftest.$ac_ext | |
25469 | cat >>conftest.$ac_ext <<_ACEOF | |
25470 | /* end confdefs.h. */ | |
25471 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25472 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25473 | #define $ac_func innocuous_$ac_func | |
25474 | ||
25475 | /* System header to define __stub macros and hopefully few prototypes, | |
25476 | which can conflict with char $ac_func (); below. | |
25477 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25478 | <limits.h> exists even on freestanding compilers. */ | |
25479 | ||
25480 | #ifdef __STDC__ | |
25481 | # include <limits.h> | |
25482 | #else | |
25483 | # include <assert.h> | |
25484 | #endif | |
25485 | ||
25486 | #undef $ac_func | |
25487 | ||
25488 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25489 | #ifdef __cplusplus | |
25490 | extern "C" | |
25491 | { | |
25492 | #endif | |
25493 | /* We use char because int might match the return type of a gcc2 | |
25494 | builtin and then its argument prototype would still apply. */ | |
25495 | char $ac_func (); | |
25496 | /* The GNU C library defines this for functions which it implements | |
25497 | to always fail with ENOSYS. Some functions are actually named | |
25498 | something starting with __ and the normal name is an alias. */ | |
25499 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25500 | choke me | |
25501 | #else | |
25502 | char (*f) () = $ac_func; | |
25503 | #endif | |
25504 | #ifdef __cplusplus | |
25505 | } | |
25506 | #endif | |
25507 | ||
25508 | int | |
25509 | main () | |
25510 | { | |
25511 | return f != $ac_func; | |
25512 | ; | |
25513 | return 0; | |
25514 | } | |
25515 | _ACEOF | |
25516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25518 | (eval $ac_link) 2>conftest.er1 | |
25519 | ac_status=$? | |
25520 | grep -v '^ *+' conftest.er1 >conftest.err | |
25521 | rm -f conftest.er1 | |
25522 | cat conftest.err >&5 | |
25523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25524 | (exit $ac_status); } && | |
4d4ff94c | 25525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
25526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25527 | (eval $ac_try) 2>&5 | |
25528 | ac_status=$? | |
25529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25530 | (exit $ac_status); }; } && | |
25531 | { ac_try='test -s conftest$ac_exeext' | |
25532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25533 | (eval $ac_try) 2>&5 | |
25534 | ac_status=$? | |
25535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25536 | (exit $ac_status); }; }; then | |
25537 | eval "$as_ac_var=yes" | |
25538 | else | |
25539 | echo "$as_me: failed program was:" >&5 | |
25540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25541 | ||
25542 | eval "$as_ac_var=no" | |
25543 | fi | |
25544 | rm -f conftest.err conftest.$ac_objext \ | |
25545 | conftest$ac_exeext conftest.$ac_ext | |
25546 | fi | |
25547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25548 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25549 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25550 | cat >>confdefs.h <<_ACEOF | |
25551 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25552 | _ACEOF | |
25553 | ||
25554 | fi | |
25555 | done | |
25556 | ||
25557 | CFLAGS="$save_CFLAGS" | |
25558 | LIBS="$save_LIBS" | |
a848cd7e SC |
25559 | fi |
25560 | ||
25561 | wxUSE_UNIVERSAL="yes" | |
25562 | ||
25563 | if test "$wxUSE_NANOX" = "yes"; then | |
25564 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25565 | 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" | |
25566 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25567 | else | |
25568 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25569 | fi | |
25570 | ||
25571 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
25572 | TOOLKIT=X11 | |
25573 | GUIDIST=X11_DIST | |
25574 | fi | |
25575 | ||
25576 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25577 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25578 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25579 | |
74b84332 VS |
25580 | ac_find_includes= |
25581 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25582 | do | |
25583 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25584 | ac_find_includes=$ac_dir | |
25585 | break | |
25586 | fi | |
25587 | done | |
a848cd7e | 25588 | |
74b84332 VS |
25589 | if test "$ac_find_includes" != "" ; then |
25590 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25591 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25592 | ||
25593 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25594 | ac_path_to_include="" | |
25595 | else | |
25596 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25597 | result=$? | |
25598 | if test $result = 0; then | |
25599 | ac_path_to_include="" | |
25600 | else | |
25601 | ac_path_to_include=" -I$ac_find_includes" | |
25602 | fi | |
a848cd7e SC |
25603 | fi |
25604 | ||
74b84332 VS |
25605 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25606 | else | |
25607 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25608 | /* confdefs.h. */ |
25609 | _ACEOF | |
25610 | cat confdefs.h >>conftest.$ac_ext | |
25611 | cat >>conftest.$ac_ext <<_ACEOF | |
25612 | /* end confdefs.h. */ | |
25613 | ||
74b84332 VS |
25614 | #include <Xm/Xm.h> |
25615 | ||
a848cd7e SC |
25616 | int |
25617 | main () | |
25618 | { | |
25619 | ||
74b84332 VS |
25620 | int version; |
25621 | version = xmUseVersion; | |
25622 | ||
a848cd7e SC |
25623 | ; |
25624 | return 0; | |
25625 | } | |
25626 | _ACEOF | |
74b84332 VS |
25627 | rm -f conftest.$ac_objext |
25628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25629 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25630 | ac_status=$? |
ac1cb8d3 VS |
25631 | grep -v '^ *+' conftest.er1 >conftest.err |
25632 | rm -f conftest.er1 | |
25633 | cat conftest.err >&5 | |
a848cd7e SC |
25634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25635 | (exit $ac_status); } && | |
4d4ff94c | 25636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25638 | (eval $ac_try) 2>&5 | |
25639 | ac_status=$? | |
25640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25641 | (exit $ac_status); }; } && | |
74b84332 | 25642 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25644 | (eval $ac_try) 2>&5 | |
25645 | ac_status=$? | |
25646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25647 | (exit $ac_status); }; }; then | |
74b84332 VS |
25648 | |
25649 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25650 | echo "${ECHO_T}found in default search path" >&6 | |
25651 | COMPILED_X_PROGRAM=1 | |
25652 | ||
a848cd7e SC |
25653 | else |
25654 | echo "$as_me: failed program was:" >&5 | |
25655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25656 | ||
a848cd7e | 25657 | |
74b84332 VS |
25658 | echo "$as_me:$LINENO: result: no" >&5 |
25659 | echo "${ECHO_T}no" >&6 | |
25660 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25661 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25662 | { (exit 1); exit 1; }; } | |
a848cd7e | 25663 | |
a848cd7e | 25664 | |
a848cd7e | 25665 | fi |
74b84332 VS |
25666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25667 | fi | |
25668 | ||
25669 | if test "$COMPILED_X_PROGRAM" = 0; then | |
25670 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
25671 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25672 | ||
25673 | ac_find_libraries= | |
25674 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25675 | do | |
25676 | for ac_extension in a so sl dylib; do | |
25677 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25678 | ac_find_libraries=$ac_dir | |
25679 | break 2 | |
a848cd7e | 25680 | fi |
74b84332 VS |
25681 | done |
25682 | done | |
a848cd7e | 25683 | |
74b84332 VS |
25684 | if test "$ac_find_libraries" != "" ; then |
25685 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25686 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 25687 | |
74b84332 VS |
25688 | |
25689 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25690 | result=$? | |
25691 | if test $result = 0; then | |
25692 | ac_path_to_link="" | |
a848cd7e | 25693 | else |
74b84332 VS |
25694 | ac_path_to_link=" -L$ac_find_libraries" |
25695 | fi | |
25696 | ||
25697 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25698 | else | |
25699 | save_CFLAGS=$CFLAGS | |
25700 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25701 | ||
25702 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25703 | /* confdefs.h. */ |
25704 | _ACEOF | |
25705 | cat confdefs.h >>conftest.$ac_ext | |
25706 | cat >>conftest.$ac_ext <<_ACEOF | |
25707 | /* end confdefs.h. */ | |
25708 | ||
74b84332 VS |
25709 | #include <Xm/Xm.h> |
25710 | ||
a848cd7e SC |
25711 | int |
25712 | main () | |
25713 | { | |
74b84332 VS |
25714 | |
25715 | int version; | |
25716 | version = xmUseVersion; | |
25717 | ||
a848cd7e SC |
25718 | ; |
25719 | return 0; | |
25720 | } | |
25721 | _ACEOF | |
74b84332 VS |
25722 | rm -f conftest.$ac_objext |
25723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25724 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25725 | ac_status=$? |
ac1cb8d3 VS |
25726 | grep -v '^ *+' conftest.er1 >conftest.err |
25727 | rm -f conftest.er1 | |
25728 | cat conftest.err >&5 | |
a848cd7e SC |
25729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25730 | (exit $ac_status); } && | |
4d4ff94c | 25731 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
74b84332 | 25737 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25739 | (eval $ac_try) 2>&5 | |
25740 | ac_status=$? | |
25741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25742 | (exit $ac_status); }; }; then | |
74b84332 VS |
25743 | |
25744 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25745 | echo "${ECHO_T}found in default search path" >&6 | |
25746 | COMPILED_X_PROGRAM=1 | |
25747 | ||
a848cd7e SC |
25748 | else |
25749 | echo "$as_me: failed program was:" >&5 | |
25750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25751 | ||
74b84332 VS |
25752 | |
25753 | echo "$as_me:$LINENO: result: no" >&5 | |
25754 | echo "${ECHO_T}no" >&6 | |
25755 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
25756 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
25757 | { (exit 1); exit 1; }; } | |
25758 | ||
25759 | ||
25760 | fi | |
25761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25762 | ||
25763 | CFLAGS=$save_CFLAGS | |
25764 | fi | |
25765 | fi | |
25766 | ||
25767 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
25768 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
25769 | libp_link="" | |
25770 | libsm_ice_link="" | |
25771 | libs_found=0 | |
25772 | for libp in "" " -lXp"; do | |
25773 | if test "$libs_found" = "0"; then | |
25774 | for libsm_ice in "" " -lSM -lICE"; do | |
25775 | if test "$libs_found" = "0"; then | |
25776 | save_LIBS="$LIBS" | |
25777 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
25778 | save_CFLAGS=$CFLAGS | |
25779 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25780 | ||
25781 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25782 | /* confdefs.h. */ |
25783 | _ACEOF | |
25784 | cat confdefs.h >>conftest.$ac_ext | |
25785 | cat >>conftest.$ac_ext <<_ACEOF | |
25786 | /* end confdefs.h. */ | |
25787 | ||
74b84332 VS |
25788 | #include <Xm/Xm.h> |
25789 | #include <Xm/List.h> | |
25790 | ||
a848cd7e SC |
25791 | int |
25792 | main () | |
25793 | { | |
74b84332 VS |
25794 | |
25795 | XmString string = NULL; | |
25796 | Widget w = NULL; | |
25797 | int position = 0; | |
25798 | XmListAddItem(w, string, position); | |
25799 | ||
a848cd7e SC |
25800 | ; |
25801 | return 0; | |
25802 | } | |
25803 | _ACEOF | |
25804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25806 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25807 | ac_status=$? |
ac1cb8d3 VS |
25808 | grep -v '^ *+' conftest.er1 >conftest.err |
25809 | rm -f conftest.er1 | |
25810 | cat conftest.err >&5 | |
a848cd7e SC |
25811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25812 | (exit $ac_status); } && | |
4d4ff94c | 25813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25815 | (eval $ac_try) 2>&5 | |
25816 | ac_status=$? | |
25817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25818 | (exit $ac_status); }; } && | |
25819 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25821 | (eval $ac_try) 2>&5 | |
25822 | ac_status=$? | |
25823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25824 | (exit $ac_status); }; }; then | |
25825 | ||
25826 | libp_link="$libp" | |
25827 | libsm_ice_link="$libsm_ice" | |
25828 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
25829 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
25830 | libs_found=1 | |
25831 | ||
25832 | else | |
25833 | echo "$as_me: failed program was:" >&5 | |
25834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25835 | ||
25836 | ||
25837 | ||
25838 | fi | |
ac1cb8d3 VS |
25839 | rm -f conftest.err conftest.$ac_objext \ |
25840 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25841 | |
25842 | LIBS="$save_LIBS" | |
25843 | CFLAGS=$save_CFLAGS | |
25844 | fi | |
25845 | done | |
25846 | fi | |
25847 | done | |
25848 | ||
25849 | if test "$libs_found" = "0"; then | |
25850 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
25851 | echo "${ECHO_T}can't find the right libraries" >&6 | |
25852 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
25853 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
25854 | { (exit 1); exit 1; }; } | |
25855 | fi | |
25856 | ||
25857 | save_CFLAGS=$CFLAGS | |
25858 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25859 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
25860 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
25861 | cat >conftest.$ac_ext <<_ACEOF | |
25862 | /* confdefs.h. */ | |
25863 | _ACEOF | |
25864 | cat confdefs.h >>conftest.$ac_ext | |
25865 | cat >>conftest.$ac_ext <<_ACEOF | |
25866 | /* end confdefs.h. */ | |
25867 | ||
25868 | #include <Xm/Xm.h> | |
25869 | ||
25870 | int | |
25871 | main () | |
25872 | { | |
25873 | ||
25874 | #if XmVersion < 2000 | |
25875 | #error "Not Motif 2" | |
25876 | #endif | |
25877 | ||
25878 | ; | |
25879 | return 0; | |
25880 | } | |
25881 | _ACEOF | |
25882 | rm -f conftest.$ac_objext | |
25883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25884 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25885 | ac_status=$? |
ac1cb8d3 VS |
25886 | grep -v '^ *+' conftest.er1 >conftest.err |
25887 | rm -f conftest.er1 | |
25888 | cat conftest.err >&5 | |
a848cd7e SC |
25889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25890 | (exit $ac_status); } && | |
4d4ff94c | 25891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25893 | (eval $ac_try) 2>&5 | |
25894 | ac_status=$? | |
25895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25896 | (exit $ac_status); }; } && | |
25897 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25899 | (eval $ac_try) 2>&5 | |
25900 | ac_status=$? | |
25901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25902 | (exit $ac_status); }; }; then | |
25903 | ||
25904 | cat >>confdefs.h <<\_ACEOF | |
25905 | #define __WXMOTIF20__ 1 | |
25906 | _ACEOF | |
25907 | ||
25908 | echo "$as_me:$LINENO: result: found" >&5 | |
25909 | echo "${ECHO_T}found" >&6 | |
25910 | ||
25911 | else | |
25912 | echo "$as_me: failed program was:" >&5 | |
25913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25914 | ||
25915 | ||
25916 | cat >>confdefs.h <<\_ACEOF | |
25917 | #define __WXMOTIF20__ 0 | |
25918 | _ACEOF | |
25919 | ||
25920 | echo "$as_me:$LINENO: result: not found" >&5 | |
25921 | echo "${ECHO_T}not found" >&6 | |
25922 | ||
25923 | fi | |
ac1cb8d3 | 25924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25925 | CFLAGS=$save_CFLAGS |
25926 | ||
25927 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
25928 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" | |
25929 | TOOLKIT=MOTIF | |
25930 | GUIDIST=MOTIF_DIST | |
25931 | fi | |
25932 | ||
74b84332 | 25933 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
25934 | if test "$wxUSE_LIBXPM" = "sys"; then |
25935 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
25936 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
25937 | ||
25938 | ac_find_libraries= | |
25939 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25940 | do | |
25941 | for ac_extension in a so sl dylib; do | |
25942 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
25943 | ac_find_libraries=$ac_dir | |
25944 | break 2 | |
25945 | fi | |
25946 | done | |
25947 | done | |
25948 | ||
25949 | if test "$ac_find_libraries" != "" ; then | |
25950 | ||
25951 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25952 | result=$? | |
25953 | if test $result = 0; then | |
25954 | ac_path_to_link="" | |
25955 | else | |
25956 | ac_path_to_link=" -L$ac_find_libraries" | |
25957 | fi | |
25958 | ||
25959 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25960 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25961 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25962 | ||
25963 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
25964 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
25965 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
25966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25967 | else | |
25968 | ||
25969 | save_CFLAGS=$CFLAGS | |
25970 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25971 | ||
25972 | cat >conftest.$ac_ext <<_ACEOF | |
25973 | /* confdefs.h. */ | |
25974 | _ACEOF | |
25975 | cat confdefs.h >>conftest.$ac_ext | |
25976 | cat >>conftest.$ac_ext <<_ACEOF | |
25977 | /* end confdefs.h. */ | |
25978 | ||
25979 | #include <X11/xpm.h> | |
25980 | ||
25981 | int | |
25982 | main () | |
25983 | { | |
25984 | ||
25985 | int version; | |
25986 | version = XpmLibraryVersion(); | |
25987 | ||
25988 | ; | |
25989 | return 0; | |
25990 | } | |
25991 | _ACEOF | |
25992 | rm -f conftest.$ac_objext | |
25993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25994 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25995 | ac_status=$? |
ac1cb8d3 VS |
25996 | grep -v '^ *+' conftest.er1 >conftest.err |
25997 | rm -f conftest.er1 | |
25998 | cat conftest.err >&5 | |
a848cd7e SC |
25999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26000 | (exit $ac_status); } && | |
4d4ff94c | 26001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26003 | (eval $ac_try) 2>&5 | |
26004 | ac_status=$? | |
26005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26006 | (exit $ac_status); }; } && | |
26007 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26009 | (eval $ac_try) 2>&5 | |
26010 | ac_status=$? | |
26011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26012 | (exit $ac_status); }; }; then | |
26013 | wx_cv_x11_xpm_h=yes | |
26014 | else | |
26015 | echo "$as_me: failed program was:" >&5 | |
26016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26017 | ||
26018 | wx_cv_x11_xpm_h=no | |
26019 | ||
26020 | fi | |
ac1cb8d3 | 26021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26022 | |
26023 | CFLAGS=$save_CFLAGS | |
26024 | ||
26025 | ||
26026 | fi | |
26027 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26028 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26029 | ||
26030 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26031 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26032 | cat >>confdefs.h <<\_ACEOF | |
26033 | #define wxHAVE_LIB_XPM 1 | |
26034 | _ACEOF | |
26035 | ||
26036 | else | |
26037 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26038 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26039 | fi | |
26040 | fi | |
26041 | ||
26042 | fi | |
26043 | ||
26044 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26045 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26046 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26048 | else | |
26049 | ac_check_lib_save_LIBS=$LIBS | |
26050 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26051 | cat >conftest.$ac_ext <<_ACEOF | |
26052 | /* confdefs.h. */ | |
26053 | _ACEOF | |
26054 | cat confdefs.h >>conftest.$ac_ext | |
26055 | cat >>conftest.$ac_ext <<_ACEOF | |
26056 | /* end confdefs.h. */ | |
26057 | ||
26058 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26059 | #ifdef __cplusplus | |
26060 | extern "C" | |
26061 | #endif | |
26062 | /* We use char because int might match the return type of a gcc2 | |
26063 | builtin and then its argument prototype would still apply. */ | |
26064 | char XShapeQueryExtension (); | |
26065 | int | |
26066 | main () | |
26067 | { | |
26068 | XShapeQueryExtension (); | |
26069 | ; | |
26070 | return 0; | |
26071 | } | |
26072 | _ACEOF | |
26073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26075 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26076 | ac_status=$? |
ac1cb8d3 VS |
26077 | grep -v '^ *+' conftest.er1 >conftest.err |
26078 | rm -f conftest.er1 | |
26079 | cat conftest.err >&5 | |
a848cd7e SC |
26080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26081 | (exit $ac_status); } && | |
4d4ff94c | 26082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26084 | (eval $ac_try) 2>&5 | |
26085 | ac_status=$? | |
26086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26087 | (exit $ac_status); }; } && | |
26088 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26090 | (eval $ac_try) 2>&5 | |
26091 | ac_status=$? | |
26092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26093 | (exit $ac_status); }; }; then | |
26094 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26095 | else | |
26096 | echo "$as_me: failed program was:" >&5 | |
26097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26098 | ||
26099 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26100 | fi | |
ac1cb8d3 VS |
26101 | rm -f conftest.err conftest.$ac_objext \ |
26102 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26103 | LIBS=$ac_check_lib_save_LIBS |
26104 | fi | |
26105 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26106 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26107 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26108 | ||
26109 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26110 | wxHAVE_XEXT_LIB=1 | |
26111 | ||
26112 | fi | |
26113 | ||
26114 | ||
26115 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26116 | save_CFLAGS="$CFLAGS" | |
26117 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26118 | ||
26119 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26120 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26121 | cat >conftest.$ac_ext <<_ACEOF | |
26122 | /* confdefs.h. */ | |
26123 | _ACEOF | |
26124 | cat confdefs.h >>conftest.$ac_ext | |
26125 | cat >>conftest.$ac_ext <<_ACEOF | |
26126 | /* end confdefs.h. */ | |
26127 | ||
26128 | #include <X11/Xlib.h> | |
26129 | #include <X11/extensions/shape.h> | |
26130 | ||
26131 | int | |
26132 | main () | |
26133 | { | |
26134 | ||
26135 | int dummy1, dummy2; | |
26136 | XShapeQueryExtension((Display*)NULL, | |
26137 | (int*)NULL, (int*)NULL); | |
26138 | ||
26139 | ; | |
26140 | return 0; | |
26141 | } | |
26142 | _ACEOF | |
26143 | rm -f conftest.$ac_objext | |
26144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26145 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26146 | ac_status=$? |
ac1cb8d3 VS |
26147 | grep -v '^ *+' conftest.er1 >conftest.err |
26148 | rm -f conftest.er1 | |
26149 | cat conftest.err >&5 | |
a848cd7e SC |
26150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26151 | (exit $ac_status); } && | |
4d4ff94c | 26152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26154 | (eval $ac_try) 2>&5 | |
26155 | ac_status=$? | |
26156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26157 | (exit $ac_status); }; } && | |
26158 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26160 | (eval $ac_try) 2>&5 | |
26161 | ac_status=$? | |
26162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26163 | (exit $ac_status); }; }; then | |
26164 | ||
26165 | cat >>confdefs.h <<\_ACEOF | |
26166 | #define HAVE_XSHAPE 1 | |
26167 | _ACEOF | |
26168 | ||
26169 | echo "$as_me:$LINENO: result: found" >&5 | |
26170 | echo "${ECHO_T}found" >&6 | |
26171 | ||
26172 | else | |
26173 | echo "$as_me: failed program was:" >&5 | |
26174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26175 | ||
26176 | ||
26177 | echo "$as_me:$LINENO: result: not found" >&5 | |
26178 | echo "${ECHO_T}not found" >&6 | |
26179 | ||
26180 | fi | |
ac1cb8d3 | 26181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26182 | CFLAGS="$save_CFLAGS" |
26183 | ||
26184 | fi | |
26185 | fi | |
26186 | ||
26187 | if test "$wxUSE_MAC" = 1; then | |
26188 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26189 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26190 | if test "$GCC" = yes; then | |
26191 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26192 | echo "${ECHO_T}gcc" >&6 | |
26193 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26194 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26195 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26196 | echo "${ECHO_T}xlc" >&6 | |
26197 | CPPFLAGS_PASCAL="-qmacpstr" | |
26198 | else | |
26199 | echo "$as_me:$LINENO: result: none" >&5 | |
26200 | echo "${ECHO_T}none" >&6 | |
26201 | fi | |
26202 | ||
26203 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26204 | ||
26205 | TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex" | |
26206 | TOOLKIT=MAC | |
26207 | GUIDIST=MACX_DIST | |
26208 | WXBASEPORT="_carbon" | |
26209 | fi | |
26210 | ||
26211 | if test "$wxUSE_COCOA" = 1; then | |
26212 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
26213 | TOOLKIT=COCOA | |
26214 | GUIDIST=COCOA_DIST | |
26215 | fi | |
26216 | ||
26217 | if test "$wxUSE_PM" = 1; then | |
26218 | TOOLKIT=PM | |
de59c161 RD |
26219 | GUIDIST=PM_DIST |
26220 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26221 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26222 | if test "${wx_cv_spbcdata+set}" = set; then | |
26223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26224 | else | |
26225 | ||
26226 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26227 | /* confdefs.h. */ |
26228 | _ACEOF | |
26229 | cat confdefs.h >>conftest.$ac_ext | |
26230 | cat >>conftest.$ac_ext <<_ACEOF | |
26231 | /* end confdefs.h. */ | |
26232 | ||
26233 | #define INCL_PM | |
26234 | #include <os2.h> | |
26235 | ||
26236 | int | |
26237 | main () | |
26238 | { | |
26239 | ||
26240 | SPBCDATA test; | |
26241 | ||
26242 | ; | |
26243 | return 0; | |
26244 | } | |
26245 | _ACEOF | |
26246 | rm -f conftest.$ac_objext | |
26247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26248 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26249 | ac_status=$? |
ac1cb8d3 VS |
26250 | grep -v '^ *+' conftest.er1 >conftest.err |
26251 | rm -f conftest.er1 | |
26252 | cat conftest.err >&5 | |
de59c161 RD |
26253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26254 | (exit $ac_status); } && | |
4d4ff94c | 26255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26257 | (eval $ac_try) 2>&5 | |
26258 | ac_status=$? | |
26259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26260 | (exit $ac_status); }; } && | |
26261 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26263 | (eval $ac_try) 2>&5 | |
26264 | ac_status=$? | |
26265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26266 | (exit $ac_status); }; }; then | |
26267 | wx_cv_spbcdata=yes | |
26268 | else | |
26269 | echo "$as_me: failed program was:" >&5 | |
26270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26271 | ||
26272 | wx_cv_spbcdata=no | |
26273 | ||
26274 | fi | |
ac1cb8d3 | 26275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26276 | |
26277 | ||
26278 | fi | |
26279 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26280 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26281 | ||
26282 | if test $wx_cv_spbcdata = "yes"; then | |
26283 | cat >>confdefs.h <<\_ACEOF | |
26284 | #define HAVE_SPBCDATA 1 | |
26285 | _ACEOF | |
26286 | ||
26287 | fi | |
a848cd7e SC |
26288 | fi |
26289 | ||
26290 | if test "$TOOLKIT" = "PM" ; then | |
26291 | TOOLKIT_DIR="os2" | |
26292 | else | |
26293 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26294 | fi | |
26295 | ||
26296 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
26297 | ||
26298 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
26299 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
26300 | ||
26301 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
26302 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
26303 | ||
26304 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
26305 | if test "$wxUSE_X11" = 1; then | |
26306 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
26307 | else | |
26308 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26309 | fi | |
26310 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
26311 | WIDGET_SET=univ | |
26312 | else | |
26313 | ALL_OBJECTS="\$(GUIOBJS)" | |
26314 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26315 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26316 | fi | |
26317 | ||
26318 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
26319 | ||
26320 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
26321 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
26322 | fi | |
26323 | ||
26324 | if test "$wxUSE_HTML" = "yes"; then | |
26325 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
26326 | fi | |
26327 | ||
26328 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
26329 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
26330 | fi | |
26331 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
26332 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
26333 | fi | |
26334 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
26335 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
26336 | fi | |
26337 | ||
26338 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26339 | DISTDIR="wx\$(TOOLKIT)" | |
26340 | else | |
26341 | USE_GUI=0 | |
26342 | ||
26343 | TOOLKIT_DIR="base" | |
26344 | ||
26345 | if test "$USE_WIN32" = 1 ; then | |
26346 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
26347 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
26348 | ||
26349 | TOOLKIT="MSW" | |
26350 | else | |
26351 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
26352 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
26353 | fi | |
26354 | ||
26355 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26356 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26357 | ||
26358 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
26359 | ||
26360 | GUIDIST="BASE_DIST" | |
26361 | DISTDIR="wxBase" | |
26362 | fi | |
26363 | ||
26364 | ||
26365 | ||
26366 | ||
26367 | IODBC_C_SRC="" | |
26368 | ||
26369 | ||
26370 | if test "$TOOLKIT" != "MSW" ; then | |
26371 | ||
26372 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26373 | ||
26374 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26375 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26376 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26377 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26379 | fi | |
26380 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26381 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26382 | else | |
26383 | # Is the header compilable? | |
26384 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26385 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26386 | cat >conftest.$ac_ext <<_ACEOF | |
26387 | /* confdefs.h. */ | |
26388 | _ACEOF | |
26389 | cat confdefs.h >>conftest.$ac_ext | |
26390 | cat >>conftest.$ac_ext <<_ACEOF | |
26391 | /* end confdefs.h. */ | |
26392 | $ac_includes_default | |
26393 | #include <sql.h> | |
26394 | _ACEOF | |
26395 | rm -f conftest.$ac_objext | |
26396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26397 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26398 | ac_status=$? |
ac1cb8d3 VS |
26399 | grep -v '^ *+' conftest.er1 >conftest.err |
26400 | rm -f conftest.er1 | |
26401 | cat conftest.err >&5 | |
a848cd7e SC |
26402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26403 | (exit $ac_status); } && | |
4d4ff94c | 26404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26406 | (eval $ac_try) 2>&5 | |
26407 | ac_status=$? | |
26408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26409 | (exit $ac_status); }; } && | |
26410 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26412 | (eval $ac_try) 2>&5 | |
26413 | ac_status=$? | |
26414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26415 | (exit $ac_status); }; }; then | |
26416 | ac_header_compiler=yes | |
26417 | else | |
26418 | echo "$as_me: failed program was:" >&5 | |
26419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26420 | ||
26421 | ac_header_compiler=no | |
26422 | fi | |
ac1cb8d3 | 26423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26424 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26425 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26426 | ||
26427 | # Is the header present? | |
26428 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26429 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26430 | cat >conftest.$ac_ext <<_ACEOF | |
26431 | /* confdefs.h. */ | |
26432 | _ACEOF | |
26433 | cat confdefs.h >>conftest.$ac_ext | |
26434 | cat >>conftest.$ac_ext <<_ACEOF | |
26435 | /* end confdefs.h. */ | |
26436 | #include <sql.h> | |
26437 | _ACEOF | |
26438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26440 | ac_status=$? | |
26441 | grep -v '^ *+' conftest.er1 >conftest.err | |
26442 | rm -f conftest.er1 | |
26443 | cat conftest.err >&5 | |
26444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26445 | (exit $ac_status); } >/dev/null; then | |
26446 | if test -s conftest.err; then | |
26447 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26449 | else |
26450 | ac_cpp_err= | |
26451 | fi | |
26452 | else | |
26453 | ac_cpp_err=yes | |
26454 | fi | |
26455 | if test -z "$ac_cpp_err"; then | |
26456 | ac_header_preproc=yes | |
26457 | else | |
26458 | echo "$as_me: failed program was:" >&5 | |
26459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26460 | ||
26461 | ac_header_preproc=no | |
26462 | fi | |
26463 | rm -f conftest.err conftest.$ac_ext | |
26464 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26465 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26466 | ||
26467 | # So? What about this header? | |
ac1cb8d3 VS |
26468 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26469 | yes:no: ) | |
a848cd7e SC |
26470 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26471 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26472 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26473 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26474 | ac_header_preproc=yes | |
a848cd7e | 26475 | ;; |
ac1cb8d3 | 26476 | no:yes:* ) |
a848cd7e SC |
26477 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26478 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26479 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26480 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26481 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26482 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26483 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26484 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26485 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26486 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26487 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26488 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26489 | ( |
26490 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26491 | ## ----------------------------------------- ## |
26492 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26493 | ## ----------------------------------------- ## | |
a848cd7e SC |
26494 | _ASBOX |
26495 | ) | | |
26496 | sed "s/^/$as_me: WARNING: /" >&2 | |
26497 | ;; | |
26498 | esac | |
26499 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26500 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26501 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26503 | else | |
26504 | ac_cv_header_sql_h=$ac_header_preproc | |
26505 | fi | |
26506 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26507 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26508 | ||
26509 | fi | |
26510 | if test $ac_cv_header_sql_h = yes; then | |
26511 | found_sql_h=1 | |
26512 | fi | |
26513 | ||
26514 | ||
26515 | if test "x$found_sql_h" = "x1" ; then | |
26516 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26517 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26518 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26520 | else | |
26521 | ac_check_lib_save_LIBS=$LIBS | |
26522 | LIBS="-liodbc $LIBS" | |
26523 | cat >conftest.$ac_ext <<_ACEOF | |
26524 | /* confdefs.h. */ | |
26525 | _ACEOF | |
26526 | cat confdefs.h >>conftest.$ac_ext | |
26527 | cat >>conftest.$ac_ext <<_ACEOF | |
26528 | /* end confdefs.h. */ | |
26529 | ||
26530 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26531 | #ifdef __cplusplus | |
26532 | extern "C" | |
26533 | #endif | |
26534 | /* We use char because int might match the return type of a gcc2 | |
26535 | builtin and then its argument prototype would still apply. */ | |
26536 | char SQLAllocEnv (); | |
26537 | int | |
26538 | main () | |
26539 | { | |
26540 | SQLAllocEnv (); | |
26541 | ; | |
26542 | return 0; | |
26543 | } | |
26544 | _ACEOF | |
26545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26547 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26548 | ac_status=$? |
ac1cb8d3 VS |
26549 | grep -v '^ *+' conftest.er1 >conftest.err |
26550 | rm -f conftest.er1 | |
26551 | cat conftest.err >&5 | |
a848cd7e SC |
26552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26553 | (exit $ac_status); } && | |
4d4ff94c | 26554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26556 | (eval $ac_try) 2>&5 | |
26557 | ac_status=$? | |
26558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26559 | (exit $ac_status); }; } && | |
26560 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26562 | (eval $ac_try) 2>&5 | |
26563 | ac_status=$? | |
26564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26565 | (exit $ac_status); }; }; then | |
26566 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26567 | else | |
26568 | echo "$as_me: failed program was:" >&5 | |
26569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26570 | ||
26571 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26572 | fi | |
ac1cb8d3 VS |
26573 | rm -f conftest.err conftest.$ac_objext \ |
26574 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26575 | LIBS=$ac_check_lib_save_LIBS |
26576 | fi | |
26577 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26578 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26579 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26580 | ODBC_LINK=" -liodbc" | |
26581 | else | |
26582 | ||
26583 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26584 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26585 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26587 | else | |
26588 | ac_check_lib_save_LIBS=$LIBS | |
26589 | LIBS="-lunixodbc $LIBS" | |
26590 | cat >conftest.$ac_ext <<_ACEOF | |
26591 | /* confdefs.h. */ | |
26592 | _ACEOF | |
26593 | cat confdefs.h >>conftest.$ac_ext | |
26594 | cat >>conftest.$ac_ext <<_ACEOF | |
26595 | /* end confdefs.h. */ | |
26596 | ||
26597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26598 | #ifdef __cplusplus | |
26599 | extern "C" | |
26600 | #endif | |
26601 | /* We use char because int might match the return type of a gcc2 | |
26602 | builtin and then its argument prototype would still apply. */ | |
26603 | char SQLAllocEnv (); | |
26604 | int | |
26605 | main () | |
26606 | { | |
26607 | SQLAllocEnv (); | |
26608 | ; | |
26609 | return 0; | |
26610 | } | |
26611 | _ACEOF | |
26612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26614 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26615 | ac_status=$? |
ac1cb8d3 VS |
26616 | grep -v '^ *+' conftest.er1 >conftest.err |
26617 | rm -f conftest.er1 | |
26618 | cat conftest.err >&5 | |
a848cd7e SC |
26619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26620 | (exit $ac_status); } && | |
4d4ff94c | 26621 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26623 | (eval $ac_try) 2>&5 | |
26624 | ac_status=$? | |
26625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26626 | (exit $ac_status); }; } && | |
26627 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26629 | (eval $ac_try) 2>&5 | |
26630 | ac_status=$? | |
26631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26632 | (exit $ac_status); }; }; then | |
26633 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
26634 | else | |
26635 | echo "$as_me: failed program was:" >&5 | |
26636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26637 | ||
26638 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
26639 | fi | |
ac1cb8d3 VS |
26640 | rm -f conftest.err conftest.$ac_objext \ |
26641 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26642 | LIBS=$ac_check_lib_save_LIBS |
26643 | fi | |
26644 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
26645 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26646 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
26647 | ODBC_LINK=" -lunixodbc" | |
26648 | else | |
26649 | ||
26650 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
26651 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26652 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
26653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26654 | else | |
26655 | ac_check_lib_save_LIBS=$LIBS | |
26656 | LIBS="-lodbc $LIBS" | |
26657 | cat >conftest.$ac_ext <<_ACEOF | |
26658 | /* confdefs.h. */ | |
26659 | _ACEOF | |
26660 | cat confdefs.h >>conftest.$ac_ext | |
26661 | cat >>conftest.$ac_ext <<_ACEOF | |
26662 | /* end confdefs.h. */ | |
26663 | ||
26664 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26665 | #ifdef __cplusplus | |
26666 | extern "C" | |
26667 | #endif | |
26668 | /* We use char because int might match the return type of a gcc2 | |
26669 | builtin and then its argument prototype would still apply. */ | |
26670 | char SQLAllocEnv (); | |
26671 | int | |
26672 | main () | |
26673 | { | |
26674 | SQLAllocEnv (); | |
26675 | ; | |
26676 | return 0; | |
26677 | } | |
26678 | _ACEOF | |
26679 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26681 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26682 | ac_status=$? |
ac1cb8d3 VS |
26683 | grep -v '^ *+' conftest.er1 >conftest.err |
26684 | rm -f conftest.er1 | |
26685 | cat conftest.err >&5 | |
a848cd7e SC |
26686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26687 | (exit $ac_status); } && | |
4d4ff94c | 26688 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26690 | (eval $ac_try) 2>&5 | |
26691 | ac_status=$? | |
26692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26693 | (exit $ac_status); }; } && | |
26694 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26696 | (eval $ac_try) 2>&5 | |
26697 | ac_status=$? | |
26698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26699 | (exit $ac_status); }; }; then | |
26700 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
26701 | else | |
26702 | echo "$as_me: failed program was:" >&5 | |
26703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26704 | ||
26705 | ac_cv_lib_odbc_SQLAllocEnv=no | |
26706 | fi | |
ac1cb8d3 VS |
26707 | rm -f conftest.err conftest.$ac_objext \ |
26708 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26709 | LIBS=$ac_check_lib_save_LIBS |
26710 | fi | |
26711 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
26712 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26713 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
26714 | ODBC_LINK=" -lodbc" | |
26715 | fi | |
26716 | ||
26717 | ||
26718 | fi | |
26719 | ||
26720 | ||
26721 | fi | |
26722 | ||
26723 | fi | |
26724 | if test "x$ODBC_LINK" = "x" ; then | |
26725 | if test "$wxUSE_ODBC" = "sys" ; then | |
26726 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26727 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26728 | { (exit 1); exit 1; }; } | |
26729 | else | |
26730 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26731 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26732 | wxUSE_ODBC=builtin | |
26733 | fi | |
26734 | else | |
26735 | wxUSE_ODBC=sys | |
26736 | fi | |
26737 | fi | |
26738 | if test "$wxUSE_ODBC" != "no" ; then | |
26739 | cat >>confdefs.h <<\_ACEOF | |
26740 | #define wxUSE_ODBC 1 | |
26741 | _ACEOF | |
26742 | ||
26743 | if test "$wxUSE_ODBC" = "builtin" ; then | |
26744 | cat >>confdefs.h <<\_ACEOF | |
26745 | #define wxUSE_BUILTIN_IODBC 1 | |
26746 | _ACEOF | |
26747 | ||
26748 | fi | |
26749 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
26750 | ||
26751 | WXODBCFLAG="-D_IODBC_" | |
26752 | fi | |
26753 | fi | |
26754 | ||
26755 | if test "$wxUSE_REGEX" = "builtin" ; then | |
26756 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
26757 | fi | |
26758 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
26759 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
26760 | fi | |
26761 | ||
01cb68df | 26762 | |
a848cd7e | 26763 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 26764 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
26765 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
26766 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
26767 | ||
26768 | ac_find_libraries= | |
26769 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26770 | do | |
26771 | for ac_extension in a so sl dylib; do | |
26772 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26773 | ac_find_libraries=$ac_dir | |
26774 | break 2 | |
26775 | fi | |
26776 | done | |
26777 | done | |
26778 | ||
26779 | if test "$ac_find_libraries" != "" ; then | |
26780 | ||
26781 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26782 | result=$? | |
26783 | if test $result = 0; then | |
26784 | ac_path_to_link="" | |
26785 | else | |
26786 | ac_path_to_link=" -L$ac_find_libraries" | |
26787 | fi | |
26788 | ||
26789 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26790 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
26791 | fi | |
26792 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
26793 | echo "$as_me:$LINENO: result: yes" >&5 | |
26794 | echo "${ECHO_T}yes" >&6 | |
26795 | ||
26796 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
26797 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
26798 | ||
26799 | ac_find_libraries= | |
26800 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26801 | do | |
26802 | for ac_extension in a so sl dylib; do | |
26803 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
26804 | ac_find_libraries=$ac_dir | |
26805 | break 2 | |
26806 | fi | |
26807 | done | |
26808 | done | |
26809 | ||
26810 | if test "$ac_find_libraries" != "" ; then | |
26811 | echo "$as_me:$LINENO: result: yes" >&5 | |
26812 | echo "${ECHO_T}yes" >&6 | |
26813 | ||
26814 | for ac_header in X11/extensions/xf86vmode.h | |
26815 | do | |
26816 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26817 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26818 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26819 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26821 | else | |
26822 | cat >conftest.$ac_ext <<_ACEOF | |
26823 | /* confdefs.h. */ | |
26824 | _ACEOF | |
26825 | cat confdefs.h >>conftest.$ac_ext | |
26826 | cat >>conftest.$ac_ext <<_ACEOF | |
26827 | /* end confdefs.h. */ | |
26828 | ||
26829 | #if HAVE_X11_XLIB_H | |
26830 | #include <X11/Xlib.h> | |
26831 | #endif | |
26832 | ||
26833 | ||
26834 | #include <$ac_header> | |
26835 | _ACEOF | |
26836 | rm -f conftest.$ac_objext | |
26837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26838 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26839 | ac_status=$? |
ac1cb8d3 VS |
26840 | grep -v '^ *+' conftest.er1 >conftest.err |
26841 | rm -f conftest.er1 | |
26842 | cat conftest.err >&5 | |
a848cd7e SC |
26843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26844 | (exit $ac_status); } && | |
4d4ff94c | 26845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26847 | (eval $ac_try) 2>&5 | |
26848 | ac_status=$? | |
26849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26850 | (exit $ac_status); }; } && | |
26851 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26853 | (eval $ac_try) 2>&5 | |
26854 | ac_status=$? | |
26855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26856 | (exit $ac_status); }; }; then | |
26857 | eval "$as_ac_Header=yes" | |
26858 | else | |
26859 | echo "$as_me: failed program was:" >&5 | |
26860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26861 | ||
26862 | eval "$as_ac_Header=no" | |
26863 | fi | |
ac1cb8d3 | 26864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26865 | fi |
26866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26867 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26868 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26869 | cat >>confdefs.h <<_ACEOF | |
26870 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26871 | _ACEOF | |
26872 | ||
26873 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
26874 | ||
26875 | fi | |
26876 | ||
26877 | done | |
26878 | ||
26879 | else | |
26880 | echo "$as_me:$LINENO: result: no" >&5 | |
26881 | echo "${ECHO_T}no" >&6 | |
26882 | fi | |
26883 | ||
26884 | else | |
26885 | echo "$as_me:$LINENO: result: no" >&5 | |
26886 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
26887 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
26888 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
26889 | wxUSE_DISPLAY="no" |
26890 | fi | |
01cb68df RG |
26891 | elif test "$wxUSE_MSW" = 1; then |
26892 | ||
26893 | ||
26894 | for ac_header in multimon.h ddraw.h | |
26895 | do | |
26896 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26897 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26898 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26902 | fi | |
26903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26905 | else | |
26906 | # Is the header compilable? | |
26907 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
26908 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
26909 | cat >conftest.$ac_ext <<_ACEOF | |
26910 | /* confdefs.h. */ | |
26911 | _ACEOF | |
26912 | cat confdefs.h >>conftest.$ac_ext | |
26913 | cat >>conftest.$ac_ext <<_ACEOF | |
26914 | /* end confdefs.h. */ | |
26915 | $ac_includes_default | |
26916 | #include <$ac_header> | |
26917 | _ACEOF | |
26918 | rm -f conftest.$ac_objext | |
26919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26920 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 26921 | ac_status=$? |
ac1cb8d3 VS |
26922 | grep -v '^ *+' conftest.er1 >conftest.err |
26923 | rm -f conftest.er1 | |
26924 | cat conftest.err >&5 | |
01cb68df RG |
26925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26926 | (exit $ac_status); } && | |
4d4ff94c | 26927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26929 | (eval $ac_try) 2>&5 | |
26930 | ac_status=$? | |
26931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26932 | (exit $ac_status); }; } && | |
26933 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
26934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26935 | (eval $ac_try) 2>&5 | |
26936 | ac_status=$? | |
26937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26938 | (exit $ac_status); }; }; then | |
26939 | ac_header_compiler=yes | |
26940 | else | |
26941 | echo "$as_me: failed program was:" >&5 | |
26942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26943 | ||
26944 | ac_header_compiler=no | |
26945 | fi | |
ac1cb8d3 | 26946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
26947 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26948 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26949 | ||
26950 | # Is the header present? | |
26951 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
26952 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
26953 | cat >conftest.$ac_ext <<_ACEOF | |
26954 | /* confdefs.h. */ | |
26955 | _ACEOF | |
26956 | cat confdefs.h >>conftest.$ac_ext | |
26957 | cat >>conftest.$ac_ext <<_ACEOF | |
26958 | /* end confdefs.h. */ | |
26959 | #include <$ac_header> | |
26960 | _ACEOF | |
26961 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26962 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26963 | ac_status=$? | |
26964 | grep -v '^ *+' conftest.er1 >conftest.err | |
26965 | rm -f conftest.er1 | |
26966 | cat conftest.err >&5 | |
26967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26968 | (exit $ac_status); } >/dev/null; then | |
26969 | if test -s conftest.err; then | |
26970 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26971 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
26972 | else |
26973 | ac_cpp_err= | |
26974 | fi | |
26975 | else | |
26976 | ac_cpp_err=yes | |
26977 | fi | |
26978 | if test -z "$ac_cpp_err"; then | |
26979 | ac_header_preproc=yes | |
26980 | else | |
26981 | echo "$as_me: failed program was:" >&5 | |
26982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26983 | ||
26984 | ac_header_preproc=no | |
26985 | fi | |
26986 | rm -f conftest.err conftest.$ac_ext | |
26987 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26988 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26989 | ||
26990 | # So? What about this header? | |
ac1cb8d3 VS |
26991 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26992 | yes:no: ) | |
01cb68df RG |
26993 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
26994 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26995 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
26996 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
26997 | ac_header_preproc=yes | |
01cb68df | 26998 | ;; |
ac1cb8d3 | 26999 | no:yes:* ) |
01cb68df RG |
27000 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27001 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27002 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27003 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27004 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27005 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27006 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27007 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
27008 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27009 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27010 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27011 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
27012 | ( |
27013 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27014 | ## ----------------------------------------- ## |
27015 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27016 | ## ----------------------------------------- ## | |
01cb68df RG |
27017 | _ASBOX |
27018 | ) | | |
27019 | sed "s/^/$as_me: WARNING: /" >&2 | |
27020 | ;; | |
27021 | esac | |
27022 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27023 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27024 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27026 | else | |
ac1cb8d3 | 27027 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
27028 | fi |
27029 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27030 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27031 | ||
27032 | fi | |
27033 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27034 | cat >>confdefs.h <<_ACEOF | |
27035 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27036 | _ACEOF | |
27037 | ||
27038 | else | |
27039 | ||
27040 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
27041 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
27042 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
27043 | |
27044 | fi | |
27045 | ||
27046 | done | |
27047 | ||
a848cd7e SC |
27048 | fi |
27049 | fi | |
27050 | ||
27051 | ||
27052 | USE_OPENGL=0 | |
27053 | if test "$wxUSE_OPENGL" = "yes"; then | |
27054 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27055 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27056 | elif test "$wxUSE_MSW" = 1; then | |
27057 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27058 | else | |
27059 | ||
27060 | ||
27061 | ac_find_includes= | |
27062 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27063 | do | |
27064 | if test -f "$ac_dir/GL/gl.h"; then | |
27065 | ac_find_includes=$ac_dir | |
27066 | break | |
27067 | fi | |
27068 | done | |
27069 | ||
27070 | if test "$ac_find_includes" != "" ; then | |
27071 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27072 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27073 | ||
27074 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27075 | ac_path_to_include="" | |
27076 | else | |
27077 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27078 | result=$? | |
27079 | if test $result = 0; then | |
27080 | ac_path_to_include="" | |
27081 | else | |
27082 | ac_path_to_include=" -I$ac_find_includes" | |
27083 | fi | |
27084 | fi | |
27085 | ||
27086 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27087 | fi | |
27088 | ||
27089 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27090 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27091 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27092 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27094 | fi | |
27095 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27096 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27097 | else | |
27098 | # Is the header compilable? | |
27099 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27100 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27101 | cat >conftest.$ac_ext <<_ACEOF | |
27102 | /* confdefs.h. */ | |
27103 | _ACEOF | |
27104 | cat confdefs.h >>conftest.$ac_ext | |
27105 | cat >>conftest.$ac_ext <<_ACEOF | |
27106 | /* end confdefs.h. */ | |
27107 | $ac_includes_default | |
27108 | #include <GL/gl.h> | |
27109 | _ACEOF | |
27110 | rm -f conftest.$ac_objext | |
27111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27113 | ac_status=$? |
ac1cb8d3 VS |
27114 | grep -v '^ *+' conftest.er1 >conftest.err |
27115 | rm -f conftest.er1 | |
27116 | cat conftest.err >&5 | |
a848cd7e SC |
27117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27118 | (exit $ac_status); } && | |
4d4ff94c | 27119 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27121 | (eval $ac_try) 2>&5 | |
27122 | ac_status=$? | |
27123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27124 | (exit $ac_status); }; } && | |
27125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27127 | (eval $ac_try) 2>&5 | |
27128 | ac_status=$? | |
27129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27130 | (exit $ac_status); }; }; then | |
27131 | ac_header_compiler=yes | |
27132 | else | |
27133 | echo "$as_me: failed program was:" >&5 | |
27134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27135 | ||
27136 | ac_header_compiler=no | |
27137 | fi | |
ac1cb8d3 | 27138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27139 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27140 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27141 | ||
27142 | # Is the header present? | |
27143 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27144 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27145 | cat >conftest.$ac_ext <<_ACEOF | |
27146 | /* confdefs.h. */ | |
27147 | _ACEOF | |
27148 | cat confdefs.h >>conftest.$ac_ext | |
27149 | cat >>conftest.$ac_ext <<_ACEOF | |
27150 | /* end confdefs.h. */ | |
27151 | #include <GL/gl.h> | |
27152 | _ACEOF | |
27153 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27154 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27155 | ac_status=$? | |
27156 | grep -v '^ *+' conftest.er1 >conftest.err | |
27157 | rm -f conftest.er1 | |
27158 | cat conftest.err >&5 | |
27159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27160 | (exit $ac_status); } >/dev/null; then | |
27161 | if test -s conftest.err; then | |
27162 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27163 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27164 | else |
27165 | ac_cpp_err= | |
27166 | fi | |
27167 | else | |
27168 | ac_cpp_err=yes | |
27169 | fi | |
27170 | if test -z "$ac_cpp_err"; then | |
27171 | ac_header_preproc=yes | |
27172 | else | |
27173 | echo "$as_me: failed program was:" >&5 | |
27174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27175 | ||
27176 | ac_header_preproc=no | |
27177 | fi | |
27178 | rm -f conftest.err conftest.$ac_ext | |
27179 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27180 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27181 | ||
27182 | # So? What about this header? | |
ac1cb8d3 VS |
27183 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27184 | yes:no: ) | |
a848cd7e SC |
27185 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27186 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27187 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27188 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27189 | ac_header_preproc=yes | |
a848cd7e | 27190 | ;; |
ac1cb8d3 | 27191 | no:yes:* ) |
a848cd7e SC |
27192 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27193 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27194 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27195 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27196 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27197 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27198 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27199 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27200 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27201 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27202 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27203 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27204 | ( |
27205 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27206 | ## ----------------------------------------- ## |
27207 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27208 | ## ----------------------------------------- ## | |
a848cd7e SC |
27209 | _ASBOX |
27210 | ) | | |
27211 | sed "s/^/$as_me: WARNING: /" >&2 | |
27212 | ;; | |
27213 | esac | |
27214 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27215 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27216 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27218 | else | |
27219 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27220 | fi | |
27221 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27222 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27223 | ||
27224 | fi | |
27225 | if test $ac_cv_header_GL_gl_h = yes; then | |
27226 | ||
27227 | found_gl=0 | |
27228 | ||
27229 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27230 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27231 | ||
27232 | ac_find_libraries= | |
27233 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27234 | do | |
27235 | for ac_extension in a so sl dylib; do | |
27236 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27237 | ac_find_libraries=$ac_dir | |
27238 | break 2 | |
27239 | fi | |
27240 | done | |
27241 | done | |
27242 | ||
27243 | if test "$ac_find_libraries" != "" ; then | |
27244 | ||
27245 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27246 | result=$? | |
27247 | if test $result = 0; then | |
27248 | ac_path_to_link="" | |
27249 | else | |
27250 | ac_path_to_link=" -L$ac_find_libraries" | |
27251 | fi | |
27252 | ||
27253 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27254 | LDFLAGS_GL="$ac_path_to_link" | |
27255 | fi | |
27256 | ||
27257 | ||
27258 | ac_find_libraries= | |
27259 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27260 | do | |
27261 | for ac_extension in a so sl dylib; do | |
27262 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27263 | ac_find_libraries=$ac_dir | |
27264 | break 2 | |
27265 | fi | |
27266 | done | |
27267 | done | |
27268 | ||
27269 | if test "$ac_find_libraries" != "" ; then | |
27270 | ||
27271 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27272 | result=$? | |
27273 | if test $result = 0; then | |
27274 | ac_path_to_link="" | |
27275 | else | |
27276 | ac_path_to_link=" -L$ac_find_libraries" | |
27277 | fi | |
27278 | ||
27279 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27280 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27281 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27282 | fi | |
27283 | ||
27284 | found_gl=1 | |
27285 | OPENGL_LIBS="-lGL -lGLU" | |
27286 | echo "$as_me:$LINENO: result: yes" >&5 | |
27287 | echo "${ECHO_T}yes" >&6 | |
27288 | fi | |
27289 | fi | |
27290 | ||
27291 | if test "$found_gl" != 1; then | |
27292 | echo "$as_me:$LINENO: result: no" >&5 | |
27293 | echo "${ECHO_T}no" >&6 | |
27294 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27295 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27296 | ||
27297 | ac_find_libraries= | |
27298 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27299 | do | |
27300 | for ac_extension in a so sl dylib; do | |
27301 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27302 | ac_find_libraries=$ac_dir | |
27303 | break 2 | |
27304 | fi | |
27305 | done | |
27306 | done | |
27307 | ||
27308 | if test "$ac_find_libraries" != "" ; then | |
27309 | ||
27310 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27311 | result=$? | |
27312 | if test $result = 0; then | |
27313 | ac_path_to_link="" | |
27314 | else | |
27315 | ac_path_to_link=" -L$ac_find_libraries" | |
27316 | fi | |
27317 | ||
27318 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27319 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27320 | echo "$as_me:$LINENO: result: yes" >&5 | |
27321 | echo "${ECHO_T}yes" >&6 | |
27322 | else | |
27323 | echo "$as_me:$LINENO: result: no" >&5 | |
27324 | echo "${ECHO_T}no" >&6 | |
27325 | fi | |
27326 | fi | |
27327 | ||
27328 | fi | |
27329 | ||
27330 | ||
27331 | ||
27332 | if test "x$OPENGL_LIBS" = "x"; then | |
27333 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27334 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27335 | { (exit 1); exit 1; }; } | |
27336 | fi | |
27337 | fi | |
27338 | ||
27339 | if test "$wxUSE_OPENGL" = "yes"; then | |
27340 | USE_OPENGL=1 | |
27341 | cat >>confdefs.h <<\_ACEOF | |
27342 | #define wxUSE_OPENGL 1 | |
27343 | _ACEOF | |
27344 | ||
27345 | cat >>confdefs.h <<\_ACEOF | |
27346 | #define wxUSE_GLCANVAS 1 | |
27347 | _ACEOF | |
27348 | ||
27349 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27350 | fi | |
27351 | fi | |
27352 | ||
27353 | if test -z "$TOOLKIT_VPATH" ; then | |
27354 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
27355 | fi | |
27356 | ||
27357 | if test -n "$TOOLKIT" ; then | |
27358 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27359 | fi | |
27360 | ||
27361 | UNICODE=0 | |
27362 | lib_unicode_suffix= | |
48112931 | 27363 | wxconfig_filename_unicode="ansi" |
a848cd7e SC |
27364 | if test "$wxUSE_UNICODE" = "yes"; then |
27365 | lib_unicode_suffix=u | |
48112931 | 27366 | wxconfig_filename_unicode="unicode" |
a848cd7e SC |
27367 | UNICODE=1 |
27368 | fi | |
27369 | ||
27370 | lib_debug_suffix= | |
48112931 | 27371 | wxconfig_filename_debug="release" |
a848cd7e SC |
27372 | DEBUG_FLAG=0 |
27373 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27374 | lib_debug_suffix=d | |
48112931 | 27375 | wxconfig_filename_debug="debug" |
a848cd7e SC |
27376 | DEBUG_FLAG=1 |
27377 | fi | |
27378 | ||
27379 | DEBUG_INFO=0 | |
27380 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27381 | DEBUG_INFO=1 | |
27382 | fi | |
27383 | ||
27384 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` | |
27385 | ||
27386 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
27387 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
27388 | ||
48112931 VS |
27389 | WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}" |
27390 | ||
a848cd7e SC |
27391 | if test "$cross_compiling" = "yes"; then |
27392 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
27393 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
48112931 | 27394 | WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}" |
a848cd7e SC |
27395 | HOST_SUFFIX="-${host_alias}" |
27396 | fi | |
27397 | ||
27398 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
27399 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
27400 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" | |
27401 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
27402 | ||
27403 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27404 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27405 | ||
27406 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
27407 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27408 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
27409 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27410 | ||
27411 | case "${host}" in | |
27412 | *-*-cygwin* | *-*-mingw32* ) | |
27413 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27414 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27415 | ;; | |
27416 | ||
27417 | *-*-darwin* ) | |
27418 | ||
27419 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27420 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27421 | ||
27422 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
27423 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27424 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
27425 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27426 | ||
27427 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27428 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
27429 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
27430 | fi | |
27431 | ;; | |
27432 | esac | |
27433 | ||
27434 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
27435 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
27436 | ||
27437 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
27438 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
27439 | ||
27440 | if test "$wxUSE_OPENGL" = "yes"; then | |
27441 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
27442 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
27443 | fi | |
27444 | ||
27445 | ||
27446 | ||
27447 | if test "$wxUSE_SHARED" = "yes"; then | |
27448 | case "${host}" in | |
27449 | *-pc-msdosdjgpp ) | |
27450 | wxUSE_SHARED=no | |
27451 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27452 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27453 | ;; | |
27454 | esac | |
27455 | fi | |
27456 | ||
27457 | SHARED=0 | |
27458 | if test "$wxUSE_SHARED" = "yes"; then | |
27459 | SHARED=1 | |
27460 | ||
27461 | ||
27462 | found_versioning=no | |
27463 | ||
27464 | ||
27465 | if test $found_versioning = no ; then | |
27466 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27467 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27468 | if test "${wx_cv_version_script+set}" = set; then | |
27469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27470 | else | |
27471 | ||
27472 | echo "VER_1 { *; };" >conftest.sym | |
27473 | echo "int main() { return 0; }" >conftest.cpp | |
27474 | ||
27475 | if { ac_try=' | |
27476 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27477 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27479 | (eval $ac_try) 2>&5 | |
27480 | ac_status=$? | |
27481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27482 | (exit $ac_status); }; } ; then | |
27483 | if test -s conftest.stderr ; then | |
27484 | wx_cv_version_script=no | |
27485 | else | |
27486 | wx_cv_version_script=yes | |
27487 | fi | |
27488 | else | |
27489 | wx_cv_version_script=no | |
27490 | fi | |
27491 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27492 | ||
27493 | fi | |
27494 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27495 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27496 | if test $wx_cv_version_script = yes ; then | |
27497 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27498 | fi | |
27499 | fi | |
27500 | ||
27501 | ||
27502 | case "${host}" in | |
27503 | *-*-linux* | *-*-gnu* ) | |
27504 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27505 | ;; | |
27506 | ||
27507 | *-*-solaris2* ) | |
27508 | if test "$GCC" = yes ; then | |
27509 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27510 | ||
27511 | saveLdflags="$LDFLAGS" | |
27512 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27513 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27514 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27515 | cat >conftest.$ac_ext <<_ACEOF | |
27516 | /* confdefs.h. */ | |
27517 | _ACEOF | |
27518 | cat confdefs.h >>conftest.$ac_ext | |
27519 | cat >>conftest.$ac_ext <<_ACEOF | |
27520 | /* end confdefs.h. */ | |
27521 | ||
27522 | int | |
27523 | main () | |
27524 | { | |
27525 | ||
27526 | ; | |
27527 | return 0; | |
27528 | } | |
27529 | _ACEOF | |
27530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27532 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27533 | ac_status=$? |
ac1cb8d3 VS |
27534 | grep -v '^ *+' conftest.er1 >conftest.err |
27535 | rm -f conftest.er1 | |
27536 | cat conftest.err >&5 | |
a848cd7e SC |
27537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27538 | (exit $ac_status); } && | |
4d4ff94c | 27539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27541 | (eval $ac_try) 2>&5 | |
27542 | ac_status=$? | |
27543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27544 | (exit $ac_status); }; } && | |
27545 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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 | ||
27552 | echo "$as_me:$LINENO: result: yes" >&5 | |
27553 | echo "${ECHO_T}yes" >&6 | |
27554 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27555 | ||
27556 | else | |
27557 | echo "$as_me: failed program was:" >&5 | |
27558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27559 | ||
27560 | ||
27561 | echo "$as_me:$LINENO: result: no" >&5 | |
27562 | echo "${ECHO_T}no" >&6 | |
27563 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27564 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27565 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27566 | cat >conftest.$ac_ext <<_ACEOF | |
27567 | /* confdefs.h. */ | |
27568 | _ACEOF | |
27569 | cat confdefs.h >>conftest.$ac_ext | |
27570 | cat >>conftest.$ac_ext <<_ACEOF | |
27571 | /* end confdefs.h. */ | |
27572 | ||
27573 | int | |
27574 | main () | |
27575 | { | |
27576 | ||
27577 | ; | |
27578 | return 0; | |
27579 | } | |
27580 | _ACEOF | |
27581 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27583 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27584 | ac_status=$? |
ac1cb8d3 VS |
27585 | grep -v '^ *+' conftest.er1 >conftest.err |
27586 | rm -f conftest.er1 | |
27587 | cat conftest.err >&5 | |
a848cd7e SC |
27588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27589 | (exit $ac_status); } && | |
4d4ff94c | 27590 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27592 | (eval $ac_try) 2>&5 | |
27593 | ac_status=$? | |
27594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27595 | (exit $ac_status); }; } && | |
27596 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27598 | (eval $ac_try) 2>&5 | |
27599 | ac_status=$? | |
27600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27601 | (exit $ac_status); }; }; then | |
27602 | ||
27603 | echo "$as_me:$LINENO: result: yes" >&5 | |
27604 | echo "${ECHO_T}yes" >&6 | |
27605 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27606 | else | |
27607 | echo "$as_me: failed program was:" >&5 | |
27608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27609 | ||
27610 | ||
27611 | echo "$as_me:$LINENO: result: no" >&5 | |
27612 | echo "${ECHO_T}no" >&6 | |
27613 | ||
27614 | fi | |
ac1cb8d3 VS |
27615 | rm -f conftest.err conftest.$ac_objext \ |
27616 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27617 | |
27618 | fi | |
ac1cb8d3 VS |
27619 | rm -f conftest.err conftest.$ac_objext \ |
27620 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27621 | LDFLAGS="$saveLdflags" |
27622 | else | |
27623 | SHARED_LD="${CXX} -G -o" | |
27624 | PIC_FLAG="-KPIC" | |
27625 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" | |
27626 | fi | |
27627 | ;; | |
27628 | ||
27629 | powerpc-*-darwin* ) | |
27630 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27631 | cat <<EOF >change-install-names | |
27632 | #!/bin/sh | |
27633 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27634 | inst_cmd="install_name_tool " | |
27635 | for i in \${libnames} ; do | |
27636 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27637 | done | |
27638 | \${inst_cmd} \${3} | |
27639 | EOF | |
27640 | chmod +x change-install-names | |
27641 | ;; | |
27642 | ||
27643 | *-*-cygwin* | *-*-mingw32* ) | |
27644 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27645 | ;; | |
27646 | ||
27647 | esac | |
27648 | ||
27649 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
27650 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
27651 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
27652 | fi | |
27653 | ||
27654 | WX_TARGET_LIBRARY_TYPE="so" | |
27655 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
27656 | fi | |
27657 | ||
27658 | if test "$wxUSE_SHARED" = "no"; then | |
27659 | ||
27660 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
27661 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27662 | fi | |
27663 | ||
27664 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
27665 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27666 | fi | |
27667 | ||
27668 | if test "$wxUSE_OPENGL" = "yes"; then | |
27669 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
27670 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
27671 | else | |
27672 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
27673 | fi | |
27674 | ||
27675 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
27676 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
27677 | ||
27678 | WX_TARGET_LIBRARY_TYPE="a" | |
27679 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
27680 | ||
27681 | STATIC_FLAG="yes" | |
27682 | else | |
27683 | STATIC_FLAG="no" | |
27684 | fi | |
27685 | ||
27686 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then | |
27687 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" | |
27688 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
27689 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
27690 | ||
27691 | # Extract the first word of "Rez", so it can be a program name with args. | |
27692 | set dummy Rez; ac_word=$2 | |
27693 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27695 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27697 | else | |
27698 | if test -n "$RESCOMP"; then | |
27699 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
27700 | else | |
27701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27702 | for as_dir in $PATH | |
27703 | do | |
27704 | IFS=$as_save_IFS | |
27705 | test -z "$as_dir" && as_dir=. | |
27706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27708 | ac_cv_prog_RESCOMP="Rez" | |
27709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27710 | break 2 | |
27711 | fi | |
27712 | done | |
27713 | done | |
27714 | ||
27715 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
27716 | fi | |
27717 | fi | |
27718 | RESCOMP=$ac_cv_prog_RESCOMP | |
27719 | if test -n "$RESCOMP"; then | |
27720 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
27721 | echo "${ECHO_T}$RESCOMP" >&6 | |
27722 | else | |
27723 | echo "$as_me:$LINENO: result: no" >&5 | |
27724 | echo "${ECHO_T}no" >&6 | |
27725 | fi | |
27726 | ||
27727 | # Extract the first word of "DeRez", so it can be a program name with args. | |
27728 | set dummy DeRez; ac_word=$2 | |
27729 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27731 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27733 | else | |
27734 | if test -n "$DEREZ"; then | |
27735 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
27736 | else | |
27737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27738 | for as_dir in $PATH | |
27739 | do | |
27740 | IFS=$as_save_IFS | |
27741 | test -z "$as_dir" && as_dir=. | |
27742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27743 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27744 | ac_cv_prog_DEREZ="DeRez" | |
27745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27746 | break 2 | |
27747 | fi | |
27748 | done | |
27749 | done | |
27750 | ||
27751 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
27752 | fi | |
27753 | fi | |
27754 | DEREZ=$ac_cv_prog_DEREZ | |
27755 | if test -n "$DEREZ"; then | |
27756 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
27757 | echo "${ECHO_T}$DEREZ" >&6 | |
27758 | else | |
27759 | echo "$as_me:$LINENO: result: no" >&5 | |
27760 | echo "${ECHO_T}no" >&6 | |
27761 | fi | |
27762 | ||
27763 | # Extract the first word of "SetFile", so it can be a program name with args. | |
27764 | set dummy SetFile; ac_word=$2 | |
27765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27767 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27769 | else | |
27770 | if test -n "$SETFILE"; then | |
27771 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27772 | else | |
27773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27774 | for as_dir in $PATH | |
27775 | do | |
27776 | IFS=$as_save_IFS | |
27777 | test -z "$as_dir" && as_dir=. | |
27778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27780 | ac_cv_prog_SETFILE="SetFile" | |
27781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27782 | break 2 | |
27783 | fi | |
27784 | done | |
27785 | done | |
27786 | ||
27787 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
27788 | fi | |
27789 | fi | |
27790 | SETFILE=$ac_cv_prog_SETFILE | |
27791 | if test -n "$SETFILE"; then | |
27792 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
27793 | echo "${ECHO_T}$SETFILE" >&6 | |
27794 | else | |
27795 | echo "$as_me:$LINENO: result: no" >&5 | |
27796 | echo "${ECHO_T}no" >&6 | |
27797 | fi | |
27798 | ||
27799 | ||
27800 | MACSETFILE="\$(SETFILE)" | |
27801 | ||
27802 | if test "$wxUSE_MAC" = 1; then | |
27803 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
27804 | ||
27805 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27806 | else | |
27807 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27808 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27809 | fi | |
27810 | else | |
27811 | MACSETFILE="@#" | |
27812 | MACRESWXCONFIG="#" | |
27813 | ||
27814 | if test "$wxUSE_PM" = 1; then | |
27815 | MACRESCOMP="emxbind -ep" | |
27816 | else | |
27817 | MACRESCOMP="@#" | |
27818 | fi | |
27819 | fi | |
27820 | ||
27821 | ||
27822 | ||
27823 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
27824 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
27825 | if test "${ac_cv_type_mode_t+set}" = set; then | |
27826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27827 | else | |
27828 | cat >conftest.$ac_ext <<_ACEOF | |
27829 | /* confdefs.h. */ | |
27830 | _ACEOF | |
27831 | cat confdefs.h >>conftest.$ac_ext | |
27832 | cat >>conftest.$ac_ext <<_ACEOF | |
27833 | /* end confdefs.h. */ | |
27834 | $ac_includes_default | |
27835 | int | |
27836 | main () | |
27837 | { | |
27838 | if ((mode_t *) 0) | |
27839 | return 0; | |
27840 | if (sizeof (mode_t)) | |
27841 | return 0; | |
27842 | ; | |
27843 | return 0; | |
27844 | } | |
27845 | _ACEOF | |
27846 | rm -f conftest.$ac_objext | |
27847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27848 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27849 | ac_status=$? |
ac1cb8d3 VS |
27850 | grep -v '^ *+' conftest.er1 >conftest.err |
27851 | rm -f conftest.er1 | |
27852 | cat conftest.err >&5 | |
a848cd7e SC |
27853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27854 | (exit $ac_status); } && | |
4d4ff94c | 27855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27857 | (eval $ac_try) 2>&5 | |
27858 | ac_status=$? | |
27859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27860 | (exit $ac_status); }; } && | |
27861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27863 | (eval $ac_try) 2>&5 | |
27864 | ac_status=$? | |
27865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27866 | (exit $ac_status); }; }; then | |
27867 | ac_cv_type_mode_t=yes | |
27868 | else | |
27869 | echo "$as_me: failed program was:" >&5 | |
27870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27871 | ||
27872 | ac_cv_type_mode_t=no | |
27873 | fi | |
ac1cb8d3 | 27874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27875 | fi |
27876 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
27877 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
27878 | if test $ac_cv_type_mode_t = yes; then | |
27879 | : | |
27880 | else | |
27881 | ||
27882 | cat >>confdefs.h <<_ACEOF | |
27883 | #define mode_t int | |
27884 | _ACEOF | |
27885 | ||
27886 | fi | |
27887 | ||
27888 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
27889 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
27890 | if test "${ac_cv_type_off_t+set}" = set; then | |
27891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27892 | else | |
27893 | cat >conftest.$ac_ext <<_ACEOF | |
27894 | /* confdefs.h. */ | |
27895 | _ACEOF | |
27896 | cat confdefs.h >>conftest.$ac_ext | |
27897 | cat >>conftest.$ac_ext <<_ACEOF | |
27898 | /* end confdefs.h. */ | |
27899 | $ac_includes_default | |
27900 | int | |
27901 | main () | |
27902 | { | |
27903 | if ((off_t *) 0) | |
27904 | return 0; | |
27905 | if (sizeof (off_t)) | |
27906 | return 0; | |
27907 | ; | |
27908 | return 0; | |
27909 | } | |
27910 | _ACEOF | |
27911 | rm -f conftest.$ac_objext | |
27912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27913 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27914 | ac_status=$? |
ac1cb8d3 VS |
27915 | grep -v '^ *+' conftest.er1 >conftest.err |
27916 | rm -f conftest.er1 | |
27917 | cat conftest.err >&5 | |
a848cd7e SC |
27918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27919 | (exit $ac_status); } && | |
4d4ff94c | 27920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27922 | (eval $ac_try) 2>&5 | |
27923 | ac_status=$? | |
27924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27925 | (exit $ac_status); }; } && | |
27926 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27928 | (eval $ac_try) 2>&5 | |
27929 | ac_status=$? | |
27930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27931 | (exit $ac_status); }; }; then | |
27932 | ac_cv_type_off_t=yes | |
27933 | else | |
27934 | echo "$as_me: failed program was:" >&5 | |
27935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27936 | ||
27937 | ac_cv_type_off_t=no | |
27938 | fi | |
ac1cb8d3 | 27939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27940 | fi |
27941 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
27942 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
27943 | if test $ac_cv_type_off_t = yes; then | |
27944 | : | |
27945 | else | |
27946 | ||
27947 | cat >>confdefs.h <<_ACEOF | |
27948 | #define off_t long | |
27949 | _ACEOF | |
27950 | ||
27951 | fi | |
27952 | ||
27953 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
27954 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
27955 | if test "${ac_cv_type_pid_t+set}" = set; then | |
27956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27957 | else | |
27958 | cat >conftest.$ac_ext <<_ACEOF | |
27959 | /* confdefs.h. */ | |
27960 | _ACEOF | |
27961 | cat confdefs.h >>conftest.$ac_ext | |
27962 | cat >>conftest.$ac_ext <<_ACEOF | |
27963 | /* end confdefs.h. */ | |
27964 | $ac_includes_default | |
27965 | int | |
27966 | main () | |
27967 | { | |
27968 | if ((pid_t *) 0) | |
27969 | return 0; | |
27970 | if (sizeof (pid_t)) | |
27971 | return 0; | |
27972 | ; | |
27973 | return 0; | |
27974 | } | |
27975 | _ACEOF | |
27976 | rm -f conftest.$ac_objext | |
27977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27978 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27979 | ac_status=$? |
ac1cb8d3 VS |
27980 | grep -v '^ *+' conftest.er1 >conftest.err |
27981 | rm -f conftest.er1 | |
27982 | cat conftest.err >&5 | |
a848cd7e SC |
27983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27984 | (exit $ac_status); } && | |
4d4ff94c | 27985 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27987 | (eval $ac_try) 2>&5 | |
27988 | ac_status=$? | |
27989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27990 | (exit $ac_status); }; } && | |
27991 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27993 | (eval $ac_try) 2>&5 | |
27994 | ac_status=$? | |
27995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27996 | (exit $ac_status); }; }; then | |
27997 | ac_cv_type_pid_t=yes | |
27998 | else | |
27999 | echo "$as_me: failed program was:" >&5 | |
28000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28001 | ||
28002 | ac_cv_type_pid_t=no | |
28003 | fi | |
ac1cb8d3 | 28004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28005 | fi |
28006 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28007 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28008 | if test $ac_cv_type_pid_t = yes; then | |
28009 | : | |
28010 | else | |
28011 | ||
28012 | cat >>confdefs.h <<_ACEOF | |
28013 | #define pid_t int | |
28014 | _ACEOF | |
28015 | ||
28016 | fi | |
28017 | ||
28018 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28019 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28020 | if test "${ac_cv_type_size_t+set}" = set; then | |
28021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28022 | else | |
28023 | cat >conftest.$ac_ext <<_ACEOF | |
28024 | /* confdefs.h. */ | |
28025 | _ACEOF | |
28026 | cat confdefs.h >>conftest.$ac_ext | |
28027 | cat >>conftest.$ac_ext <<_ACEOF | |
28028 | /* end confdefs.h. */ | |
28029 | $ac_includes_default | |
28030 | int | |
28031 | main () | |
28032 | { | |
28033 | if ((size_t *) 0) | |
28034 | return 0; | |
28035 | if (sizeof (size_t)) | |
28036 | return 0; | |
28037 | ; | |
28038 | return 0; | |
28039 | } | |
28040 | _ACEOF | |
28041 | rm -f conftest.$ac_objext | |
28042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28043 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28044 | ac_status=$? |
ac1cb8d3 VS |
28045 | grep -v '^ *+' conftest.er1 >conftest.err |
28046 | rm -f conftest.er1 | |
28047 | cat conftest.err >&5 | |
a848cd7e SC |
28048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28049 | (exit $ac_status); } && | |
4d4ff94c | 28050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28052 | (eval $ac_try) 2>&5 | |
28053 | ac_status=$? | |
28054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28055 | (exit $ac_status); }; } && | |
28056 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28058 | (eval $ac_try) 2>&5 | |
28059 | ac_status=$? | |
28060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28061 | (exit $ac_status); }; }; then | |
28062 | ac_cv_type_size_t=yes | |
28063 | else | |
28064 | echo "$as_me: failed program was:" >&5 | |
28065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28066 | ||
28067 | ac_cv_type_size_t=no | |
28068 | fi | |
ac1cb8d3 | 28069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28070 | fi |
28071 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28072 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28073 | if test $ac_cv_type_size_t = yes; then | |
28074 | : | |
28075 | else | |
28076 | ||
28077 | cat >>confdefs.h <<_ACEOF | |
28078 | #define size_t unsigned | |
28079 | _ACEOF | |
28080 | ||
28081 | fi | |
28082 | ||
28083 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28084 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28085 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28087 | else | |
28088 | cat >conftest.$ac_ext <<_ACEOF | |
28089 | /* confdefs.h. */ | |
28090 | _ACEOF | |
28091 | cat confdefs.h >>conftest.$ac_ext | |
28092 | cat >>conftest.$ac_ext <<_ACEOF | |
28093 | /* end confdefs.h. */ | |
28094 | #include <sys/types.h> | |
28095 | ||
28096 | _ACEOF | |
28097 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28098 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28099 | ac_cv_type_uid_t=yes | |
28100 | else | |
28101 | ac_cv_type_uid_t=no | |
28102 | fi | |
28103 | rm -f conftest* | |
28104 | ||
28105 | fi | |
28106 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28107 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28108 | if test $ac_cv_type_uid_t = no; then | |
28109 | ||
28110 | cat >>confdefs.h <<\_ACEOF | |
28111 | #define uid_t int | |
28112 | _ACEOF | |
28113 | ||
28114 | ||
28115 | cat >>confdefs.h <<\_ACEOF | |
28116 | #define gid_t int | |
28117 | _ACEOF | |
28118 | ||
28119 | fi | |
28120 | ||
28121 | ||
28122 | ||
28123 | ||
28124 | ac_ext=cc | |
28125 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28126 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28127 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28128 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28129 | ||
28130 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28131 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28132 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28134 | else | |
28135 | ||
28136 | cat >conftest.$ac_ext <<_ACEOF | |
28137 | /* confdefs.h. */ | |
28138 | _ACEOF | |
28139 | cat confdefs.h >>conftest.$ac_ext | |
28140 | cat >>conftest.$ac_ext <<_ACEOF | |
28141 | /* end confdefs.h. */ | |
28142 | #include <stddef.h> | |
28143 | int | |
28144 | main () | |
28145 | { | |
28146 | ||
28147 | return 0; } | |
28148 | ||
28149 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28150 | ||
28151 | int bar() { | |
28152 | ||
28153 | ; | |
28154 | return 0; | |
28155 | } | |
28156 | _ACEOF | |
28157 | rm -f conftest.$ac_objext | |
28158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28159 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28160 | ac_status=$? |
ac1cb8d3 VS |
28161 | grep -v '^ *+' conftest.er1 >conftest.err |
28162 | rm -f conftest.er1 | |
28163 | cat conftest.err >&5 | |
a848cd7e SC |
28164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28165 | (exit $ac_status); } && | |
4d4ff94c | 28166 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28168 | (eval $ac_try) 2>&5 | |
28169 | ac_status=$? | |
28170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28171 | (exit $ac_status); }; } && | |
28172 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28174 | (eval $ac_try) 2>&5 | |
28175 | ac_status=$? | |
28176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28177 | (exit $ac_status); }; }; then | |
28178 | wx_cv_size_t_is_uint=no | |
28179 | else | |
28180 | echo "$as_me: failed program was:" >&5 | |
28181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28182 | ||
28183 | wx_cv_size_t_is_uint=yes | |
28184 | ||
28185 | fi | |
ac1cb8d3 | 28186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28187 | |
28188 | ||
28189 | fi | |
28190 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28191 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28192 | ||
28193 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28194 | cat >>confdefs.h <<\_ACEOF | |
28195 | #define wxSIZE_T_IS_UINT 1 | |
28196 | _ACEOF | |
28197 | ||
28198 | else | |
28199 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28200 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28201 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28203 | else | |
28204 | cat >conftest.$ac_ext <<_ACEOF | |
28205 | /* confdefs.h. */ | |
28206 | _ACEOF | |
28207 | cat confdefs.h >>conftest.$ac_ext | |
28208 | cat >>conftest.$ac_ext <<_ACEOF | |
28209 | /* end confdefs.h. */ | |
28210 | #include <stddef.h> | |
28211 | int | |
28212 | main () | |
28213 | { | |
28214 | ||
28215 | return 0; } | |
28216 | ||
28217 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28218 | ||
28219 | int bar() { | |
28220 | ||
28221 | ; | |
28222 | return 0; | |
28223 | } | |
28224 | _ACEOF | |
28225 | rm -f conftest.$ac_objext | |
28226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28227 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28228 | ac_status=$? |
ac1cb8d3 VS |
28229 | grep -v '^ *+' conftest.er1 >conftest.err |
28230 | rm -f conftest.er1 | |
28231 | cat conftest.err >&5 | |
a848cd7e SC |
28232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28233 | (exit $ac_status); } && | |
4d4ff94c | 28234 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28236 | (eval $ac_try) 2>&5 | |
28237 | ac_status=$? | |
28238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28239 | (exit $ac_status); }; } && | |
28240 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28242 | (eval $ac_try) 2>&5 | |
28243 | ac_status=$? | |
28244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28245 | (exit $ac_status); }; }; then | |
28246 | wx_cv_size_t_is_ulong=no | |
28247 | else | |
28248 | echo "$as_me: failed program was:" >&5 | |
28249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28250 | ||
28251 | wx_cv_size_t_is_ulong=yes | |
28252 | ||
28253 | fi | |
ac1cb8d3 | 28254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28255 | |
28256 | fi | |
28257 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28258 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28259 | ||
28260 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28261 | cat >>confdefs.h <<\_ACEOF | |
28262 | #define wxSIZE_T_IS_ULONG 1 | |
28263 | _ACEOF | |
28264 | ||
28265 | fi | |
28266 | fi | |
28267 | ||
28268 | ac_ext=c | |
28269 | ac_cpp='$CPP $CPPFLAGS' | |
28270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28273 | ||
28274 | ||
28275 | ||
28276 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28277 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28278 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28280 | else | |
28281 | ||
28282 | cat >conftest.$ac_ext <<_ACEOF | |
28283 | /* confdefs.h. */ | |
28284 | _ACEOF | |
28285 | cat confdefs.h >>conftest.$ac_ext | |
28286 | cat >>conftest.$ac_ext <<_ACEOF | |
28287 | /* end confdefs.h. */ | |
28288 | #include <pwd.h> | |
28289 | int | |
28290 | main () | |
28291 | { | |
28292 | ||
28293 | char *p; | |
28294 | struct passwd *pw; | |
28295 | p = pw->pw_gecos; | |
28296 | ||
28297 | ; | |
28298 | return 0; | |
28299 | } | |
28300 | _ACEOF | |
28301 | rm -f conftest.$ac_objext | |
28302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28303 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28304 | ac_status=$? |
ac1cb8d3 VS |
28305 | grep -v '^ *+' conftest.er1 >conftest.err |
28306 | rm -f conftest.er1 | |
28307 | cat conftest.err >&5 | |
a848cd7e SC |
28308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28309 | (exit $ac_status); } && | |
4d4ff94c | 28310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28312 | (eval $ac_try) 2>&5 | |
28313 | ac_status=$? | |
28314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28315 | (exit $ac_status); }; } && | |
28316 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28318 | (eval $ac_try) 2>&5 | |
28319 | ac_status=$? | |
28320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28321 | (exit $ac_status); }; }; then | |
28322 | ||
28323 | wx_cv_struct_pw_gecos=yes | |
28324 | ||
28325 | else | |
28326 | echo "$as_me: failed program was:" >&5 | |
28327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28328 | ||
28329 | ||
28330 | wx_cv_struct_pw_gecos=no | |
28331 | ||
28332 | ||
28333 | fi | |
ac1cb8d3 | 28334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28335 | |
28336 | ||
28337 | fi | |
28338 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28339 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28340 | ||
28341 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28342 | cat >>confdefs.h <<\_ACEOF | |
28343 | #define HAVE_PW_GECOS 1 | |
28344 | _ACEOF | |
28345 | ||
28346 | fi | |
28347 | ||
28348 | ||
28349 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28350 | cat >>confdefs.h <<\_ACEOF | |
28351 | #define wxUSE_WCHAR_T 1 | |
28352 | _ACEOF | |
28353 | ||
28354 | ||
28355 | WCSLEN_FOUND=0 | |
28356 | WCHAR_LINK= | |
28357 | ||
28358 | for ac_func in wcslen | |
28359 | do | |
28360 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28361 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28362 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28363 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28365 | else | |
28366 | cat >conftest.$ac_ext <<_ACEOF | |
28367 | /* confdefs.h. */ | |
28368 | _ACEOF | |
28369 | cat confdefs.h >>conftest.$ac_ext | |
28370 | cat >>conftest.$ac_ext <<_ACEOF | |
28371 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28372 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28373 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28374 | #define $ac_func innocuous_$ac_func | |
28375 | ||
a848cd7e SC |
28376 | /* System header to define __stub macros and hopefully few prototypes, |
28377 | which can conflict with char $ac_func (); below. | |
28378 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28379 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28380 | |
a848cd7e SC |
28381 | #ifdef __STDC__ |
28382 | # include <limits.h> | |
28383 | #else | |
28384 | # include <assert.h> | |
28385 | #endif | |
ac1cb8d3 VS |
28386 | |
28387 | #undef $ac_func | |
28388 | ||
a848cd7e SC |
28389 | /* Override any gcc2 internal prototype to avoid an error. */ |
28390 | #ifdef __cplusplus | |
28391 | extern "C" | |
28392 | { | |
28393 | #endif | |
28394 | /* We use char because int might match the return type of a gcc2 | |
28395 | builtin and then its argument prototype would still apply. */ | |
28396 | char $ac_func (); | |
28397 | /* The GNU C library defines this for functions which it implements | |
28398 | to always fail with ENOSYS. Some functions are actually named | |
28399 | something starting with __ and the normal name is an alias. */ | |
28400 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28401 | choke me | |
28402 | #else | |
28403 | char (*f) () = $ac_func; | |
28404 | #endif | |
28405 | #ifdef __cplusplus | |
28406 | } | |
28407 | #endif | |
28408 | ||
28409 | int | |
28410 | main () | |
28411 | { | |
28412 | return f != $ac_func; | |
28413 | ; | |
28414 | return 0; | |
28415 | } | |
28416 | _ACEOF | |
28417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28419 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28420 | ac_status=$? |
ac1cb8d3 VS |
28421 | grep -v '^ *+' conftest.er1 >conftest.err |
28422 | rm -f conftest.er1 | |
28423 | cat conftest.err >&5 | |
a848cd7e SC |
28424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28425 | (exit $ac_status); } && | |
4d4ff94c | 28426 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28428 | (eval $ac_try) 2>&5 | |
28429 | ac_status=$? | |
28430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28431 | (exit $ac_status); }; } && | |
28432 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28434 | (eval $ac_try) 2>&5 | |
28435 | ac_status=$? | |
28436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28437 | (exit $ac_status); }; }; then | |
28438 | eval "$as_ac_var=yes" | |
28439 | else | |
28440 | echo "$as_me: failed program was:" >&5 | |
28441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28442 | ||
28443 | eval "$as_ac_var=no" | |
28444 | fi | |
ac1cb8d3 VS |
28445 | rm -f conftest.err conftest.$ac_objext \ |
28446 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28447 | fi |
28448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28449 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28450 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28451 | cat >>confdefs.h <<_ACEOF | |
28452 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28453 | _ACEOF | |
28454 | WCSLEN_FOUND=1 | |
28455 | fi | |
28456 | done | |
28457 | ||
28458 | ||
28459 | if test "$WCSLEN_FOUND" = 0; then | |
28460 | if test "$TOOLKIT" = "MSW"; then | |
28461 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28462 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28463 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28465 | else | |
28466 | ac_check_lib_save_LIBS=$LIBS | |
28467 | LIBS="-lmsvcrt $LIBS" | |
28468 | cat >conftest.$ac_ext <<_ACEOF | |
28469 | /* confdefs.h. */ | |
28470 | _ACEOF | |
28471 | cat confdefs.h >>conftest.$ac_ext | |
28472 | cat >>conftest.$ac_ext <<_ACEOF | |
28473 | /* end confdefs.h. */ | |
28474 | ||
28475 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28476 | #ifdef __cplusplus | |
28477 | extern "C" | |
28478 | #endif | |
28479 | /* We use char because int might match the return type of a gcc2 | |
28480 | builtin and then its argument prototype would still apply. */ | |
28481 | char wcslen (); | |
28482 | int | |
28483 | main () | |
28484 | { | |
28485 | wcslen (); | |
28486 | ; | |
28487 | return 0; | |
28488 | } | |
28489 | _ACEOF | |
28490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28492 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28493 | ac_status=$? |
ac1cb8d3 VS |
28494 | grep -v '^ *+' conftest.er1 >conftest.err |
28495 | rm -f conftest.er1 | |
28496 | cat conftest.err >&5 | |
a848cd7e SC |
28497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28498 | (exit $ac_status); } && | |
4d4ff94c | 28499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28501 | (eval $ac_try) 2>&5 | |
28502 | ac_status=$? | |
28503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28504 | (exit $ac_status); }; } && | |
28505 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28507 | (eval $ac_try) 2>&5 | |
28508 | ac_status=$? | |
28509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28510 | (exit $ac_status); }; }; then | |
28511 | ac_cv_lib_msvcrt_wcslen=yes | |
28512 | else | |
28513 | echo "$as_me: failed program was:" >&5 | |
28514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28515 | ||
28516 | ac_cv_lib_msvcrt_wcslen=no | |
28517 | fi | |
ac1cb8d3 VS |
28518 | rm -f conftest.err conftest.$ac_objext \ |
28519 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28520 | LIBS=$ac_check_lib_save_LIBS |
28521 | fi | |
28522 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28523 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28524 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28525 | WCHAR_OK=1 | |
28526 | fi | |
28527 | ||
28528 | else | |
28529 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28530 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28531 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28533 | else | |
28534 | ac_check_lib_save_LIBS=$LIBS | |
28535 | LIBS="-lw $LIBS" | |
28536 | cat >conftest.$ac_ext <<_ACEOF | |
28537 | /* confdefs.h. */ | |
28538 | _ACEOF | |
28539 | cat confdefs.h >>conftest.$ac_ext | |
28540 | cat >>conftest.$ac_ext <<_ACEOF | |
28541 | /* end confdefs.h. */ | |
28542 | ||
28543 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28544 | #ifdef __cplusplus | |
28545 | extern "C" | |
28546 | #endif | |
28547 | /* We use char because int might match the return type of a gcc2 | |
28548 | builtin and then its argument prototype would still apply. */ | |
28549 | char wcslen (); | |
28550 | int | |
28551 | main () | |
28552 | { | |
28553 | wcslen (); | |
28554 | ; | |
28555 | return 0; | |
28556 | } | |
28557 | _ACEOF | |
28558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28560 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28561 | ac_status=$? |
ac1cb8d3 VS |
28562 | grep -v '^ *+' conftest.er1 >conftest.err |
28563 | rm -f conftest.er1 | |
28564 | cat conftest.err >&5 | |
a848cd7e SC |
28565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28566 | (exit $ac_status); } && | |
4d4ff94c | 28567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28569 | (eval $ac_try) 2>&5 | |
28570 | ac_status=$? | |
28571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28572 | (exit $ac_status); }; } && | |
28573 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28575 | (eval $ac_try) 2>&5 | |
28576 | ac_status=$? | |
28577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28578 | (exit $ac_status); }; }; then | |
28579 | ac_cv_lib_w_wcslen=yes | |
28580 | else | |
28581 | echo "$as_me: failed program was:" >&5 | |
28582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28583 | ||
28584 | ac_cv_lib_w_wcslen=no | |
28585 | fi | |
ac1cb8d3 VS |
28586 | rm -f conftest.err conftest.$ac_objext \ |
28587 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28588 | LIBS=$ac_check_lib_save_LIBS |
28589 | fi | |
28590 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28591 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28592 | if test $ac_cv_lib_w_wcslen = yes; then | |
28593 | ||
28594 | WCHAR_LINK=" -lw" | |
28595 | WCSLEN_FOUND=1 | |
28596 | ||
28597 | fi | |
28598 | ||
28599 | fi | |
28600 | fi | |
28601 | ||
28602 | if test "$WCSLEN_FOUND" = 1; then | |
28603 | cat >>confdefs.h <<\_ACEOF | |
28604 | #define HAVE_WCSLEN 1 | |
28605 | _ACEOF | |
28606 | ||
28607 | fi | |
28608 | ||
473276a9 VS |
28609 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
28610 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
28611 | fi | |
28612 | ||
a848cd7e SC |
28613 | |
28614 | for ac_func in wcsrtombs | |
28615 | do | |
28616 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28617 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28618 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28619 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28621 | else | |
28622 | cat >conftest.$ac_ext <<_ACEOF | |
28623 | /* confdefs.h. */ | |
28624 | _ACEOF | |
28625 | cat confdefs.h >>conftest.$ac_ext | |
28626 | cat >>conftest.$ac_ext <<_ACEOF | |
28627 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28628 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28629 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28630 | #define $ac_func innocuous_$ac_func | |
28631 | ||
a848cd7e SC |
28632 | /* System header to define __stub macros and hopefully few prototypes, |
28633 | which can conflict with char $ac_func (); below. | |
28634 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28635 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28636 | |
a848cd7e SC |
28637 | #ifdef __STDC__ |
28638 | # include <limits.h> | |
28639 | #else | |
28640 | # include <assert.h> | |
28641 | #endif | |
ac1cb8d3 VS |
28642 | |
28643 | #undef $ac_func | |
28644 | ||
a848cd7e SC |
28645 | /* Override any gcc2 internal prototype to avoid an error. */ |
28646 | #ifdef __cplusplus | |
28647 | extern "C" | |
28648 | { | |
28649 | #endif | |
28650 | /* We use char because int might match the return type of a gcc2 | |
28651 | builtin and then its argument prototype would still apply. */ | |
28652 | char $ac_func (); | |
28653 | /* The GNU C library defines this for functions which it implements | |
28654 | to always fail with ENOSYS. Some functions are actually named | |
28655 | something starting with __ and the normal name is an alias. */ | |
28656 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28657 | choke me | |
28658 | #else | |
28659 | char (*f) () = $ac_func; | |
28660 | #endif | |
28661 | #ifdef __cplusplus | |
28662 | } | |
28663 | #endif | |
28664 | ||
28665 | int | |
28666 | main () | |
28667 | { | |
28668 | return f != $ac_func; | |
28669 | ; | |
28670 | return 0; | |
28671 | } | |
28672 | _ACEOF | |
28673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28675 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28676 | ac_status=$? |
ac1cb8d3 VS |
28677 | grep -v '^ *+' conftest.er1 >conftest.err |
28678 | rm -f conftest.er1 | |
28679 | cat conftest.err >&5 | |
a848cd7e SC |
28680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28681 | (exit $ac_status); } && | |
4d4ff94c | 28682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28684 | (eval $ac_try) 2>&5 | |
28685 | ac_status=$? | |
28686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28687 | (exit $ac_status); }; } && | |
28688 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28690 | (eval $ac_try) 2>&5 | |
28691 | ac_status=$? | |
28692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28693 | (exit $ac_status); }; }; then | |
28694 | eval "$as_ac_var=yes" | |
28695 | else | |
28696 | echo "$as_me: failed program was:" >&5 | |
28697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28698 | ||
28699 | eval "$as_ac_var=no" | |
28700 | fi | |
ac1cb8d3 VS |
28701 | rm -f conftest.err conftest.$ac_objext \ |
28702 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28703 | fi |
28704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28705 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28706 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28707 | cat >>confdefs.h <<_ACEOF | |
28708 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28709 | _ACEOF | |
28710 | ||
28711 | fi | |
28712 | done | |
28713 | ||
28714 | else | |
28715 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
28716 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
28717 | fi | |
28718 | ||
28719 | ||
28720 | ||
28721 | ac_ext=cc | |
28722 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28723 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28724 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28725 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28726 | ||
28727 | ||
28728 | ||
28729 | for ac_func in vsnprintf | |
28730 | do | |
28731 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28732 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28733 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28734 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28736 | else | |
28737 | cat >conftest.$ac_ext <<_ACEOF | |
28738 | /* confdefs.h. */ | |
28739 | _ACEOF | |
28740 | cat confdefs.h >>conftest.$ac_ext | |
28741 | cat >>conftest.$ac_ext <<_ACEOF | |
28742 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28743 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28744 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28745 | #define $ac_func innocuous_$ac_func | |
28746 | ||
a848cd7e SC |
28747 | /* System header to define __stub macros and hopefully few prototypes, |
28748 | which can conflict with char $ac_func (); below. | |
28749 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28750 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28751 | |
a848cd7e SC |
28752 | #ifdef __STDC__ |
28753 | # include <limits.h> | |
28754 | #else | |
28755 | # include <assert.h> | |
28756 | #endif | |
ac1cb8d3 VS |
28757 | |
28758 | #undef $ac_func | |
28759 | ||
a848cd7e SC |
28760 | /* Override any gcc2 internal prototype to avoid an error. */ |
28761 | #ifdef __cplusplus | |
28762 | extern "C" | |
28763 | { | |
28764 | #endif | |
28765 | /* We use char because int might match the return type of a gcc2 | |
28766 | builtin and then its argument prototype would still apply. */ | |
28767 | char $ac_func (); | |
28768 | /* The GNU C library defines this for functions which it implements | |
28769 | to always fail with ENOSYS. Some functions are actually named | |
28770 | something starting with __ and the normal name is an alias. */ | |
28771 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28772 | choke me | |
28773 | #else | |
28774 | char (*f) () = $ac_func; | |
28775 | #endif | |
28776 | #ifdef __cplusplus | |
28777 | } | |
28778 | #endif | |
28779 | ||
28780 | int | |
28781 | main () | |
28782 | { | |
28783 | return f != $ac_func; | |
28784 | ; | |
28785 | return 0; | |
28786 | } | |
28787 | _ACEOF | |
28788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28790 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28791 | ac_status=$? |
ac1cb8d3 VS |
28792 | grep -v '^ *+' conftest.er1 >conftest.err |
28793 | rm -f conftest.er1 | |
28794 | cat conftest.err >&5 | |
a848cd7e SC |
28795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28796 | (exit $ac_status); } && | |
4d4ff94c | 28797 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28799 | (eval $ac_try) 2>&5 | |
28800 | ac_status=$? | |
28801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28802 | (exit $ac_status); }; } && | |
28803 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28805 | (eval $ac_try) 2>&5 | |
28806 | ac_status=$? | |
28807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28808 | (exit $ac_status); }; }; then | |
28809 | eval "$as_ac_var=yes" | |
28810 | else | |
28811 | echo "$as_me: failed program was:" >&5 | |
28812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28813 | ||
28814 | eval "$as_ac_var=no" | |
28815 | fi | |
ac1cb8d3 VS |
28816 | rm -f conftest.err conftest.$ac_objext \ |
28817 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28818 | fi |
28819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28820 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28821 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28822 | cat >>confdefs.h <<_ACEOF | |
28823 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28824 | _ACEOF | |
28825 | ||
28826 | fi | |
28827 | done | |
28828 | ||
28829 | ||
28830 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
28831 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
28832 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
28833 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
28834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28835 | else | |
28836 | ||
28837 | cat >conftest.$ac_ext <<_ACEOF | |
28838 | /* confdefs.h. */ | |
28839 | _ACEOF | |
28840 | cat confdefs.h >>conftest.$ac_ext | |
28841 | cat >>conftest.$ac_ext <<_ACEOF | |
28842 | /* end confdefs.h. */ | |
28843 | ||
28844 | #include <stdio.h> | |
28845 | #include <stdarg.h> | |
28846 | ||
28847 | int | |
28848 | main () | |
28849 | { | |
28850 | ||
28851 | char *buf; | |
28852 | va_list ap; | |
28853 | vsnprintf(buf, 10u, "%s", ap); | |
28854 | ||
28855 | ; | |
28856 | return 0; | |
28857 | } | |
28858 | _ACEOF | |
28859 | rm -f conftest.$ac_objext | |
28860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28861 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28862 | ac_status=$? |
ac1cb8d3 VS |
28863 | grep -v '^ *+' conftest.er1 >conftest.err |
28864 | rm -f conftest.er1 | |
28865 | cat conftest.err >&5 | |
a848cd7e SC |
28866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28867 | (exit $ac_status); } && | |
4d4ff94c | 28868 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28870 | (eval $ac_try) 2>&5 | |
28871 | ac_status=$? | |
28872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28873 | (exit $ac_status); }; } && | |
28874 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28876 | (eval $ac_try) 2>&5 | |
28877 | ac_status=$? | |
28878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28879 | (exit $ac_status); }; }; then | |
28880 | wx_cv_func_vsnprintf_decl=yes | |
28881 | else | |
28882 | echo "$as_me: failed program was:" >&5 | |
28883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28884 | ||
28885 | wx_cv_func_vsnprintf_decl=no | |
28886 | ||
28887 | fi | |
ac1cb8d3 | 28888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28889 | |
28890 | ||
28891 | fi | |
28892 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
28893 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
28894 | ||
28895 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
28896 | cat >>confdefs.h <<\_ACEOF | |
28897 | #define HAVE_VSNPRINTF_DECL 1 | |
28898 | _ACEOF | |
28899 | ||
28900 | fi | |
28901 | fi | |
28902 | ||
28903 | if test "$wxUSE_UNICODE" = yes; then | |
28904 | ||
28905 | ||
28906 | ||
fbe47c7b VS |
28907 | |
28908 | ||
28909 | ||
28910 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
28911 | do |
28912 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28913 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28914 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28915 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28917 | else | |
28918 | cat >conftest.$ac_ext <<_ACEOF | |
28919 | /* confdefs.h. */ | |
28920 | _ACEOF | |
28921 | cat confdefs.h >>conftest.$ac_ext | |
28922 | cat >>conftest.$ac_ext <<_ACEOF | |
28923 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28924 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28925 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28926 | #define $ac_func innocuous_$ac_func | |
28927 | ||
a848cd7e SC |
28928 | /* System header to define __stub macros and hopefully few prototypes, |
28929 | which can conflict with char $ac_func (); below. | |
28930 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28931 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28932 | |
a848cd7e SC |
28933 | #ifdef __STDC__ |
28934 | # include <limits.h> | |
28935 | #else | |
28936 | # include <assert.h> | |
28937 | #endif | |
ac1cb8d3 VS |
28938 | |
28939 | #undef $ac_func | |
28940 | ||
a848cd7e SC |
28941 | /* Override any gcc2 internal prototype to avoid an error. */ |
28942 | #ifdef __cplusplus | |
28943 | extern "C" | |
28944 | { | |
28945 | #endif | |
28946 | /* We use char because int might match the return type of a gcc2 | |
28947 | builtin and then its argument prototype would still apply. */ | |
28948 | char $ac_func (); | |
28949 | /* The GNU C library defines this for functions which it implements | |
28950 | to always fail with ENOSYS. Some functions are actually named | |
28951 | something starting with __ and the normal name is an alias. */ | |
28952 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28953 | choke me | |
28954 | #else | |
28955 | char (*f) () = $ac_func; | |
28956 | #endif | |
28957 | #ifdef __cplusplus | |
28958 | } | |
28959 | #endif | |
28960 | ||
28961 | int | |
28962 | main () | |
28963 | { | |
28964 | return f != $ac_func; | |
28965 | ; | |
28966 | return 0; | |
28967 | } | |
28968 | _ACEOF | |
28969 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28971 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28972 | ac_status=$? |
ac1cb8d3 VS |
28973 | grep -v '^ *+' conftest.er1 >conftest.err |
28974 | rm -f conftest.er1 | |
28975 | cat conftest.err >&5 | |
a848cd7e SC |
28976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28977 | (exit $ac_status); } && | |
4d4ff94c | 28978 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28980 | (eval $ac_try) 2>&5 | |
28981 | ac_status=$? | |
28982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28983 | (exit $ac_status); }; } && | |
28984 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28986 | (eval $ac_try) 2>&5 | |
28987 | ac_status=$? | |
28988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28989 | (exit $ac_status); }; }; then | |
28990 | eval "$as_ac_var=yes" | |
28991 | else | |
28992 | echo "$as_me: failed program was:" >&5 | |
28993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28994 | ||
28995 | eval "$as_ac_var=no" | |
28996 | fi | |
ac1cb8d3 VS |
28997 | rm -f conftest.err conftest.$ac_objext \ |
28998 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28999 | fi |
29000 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29001 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29002 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29003 | cat >>confdefs.h <<_ACEOF | |
29004 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29005 | _ACEOF | |
29006 | ||
29007 | fi | |
29008 | done | |
29009 | ||
29010 | ||
29011 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29012 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29013 | cat >conftest.$ac_ext <<_ACEOF | |
29014 | /* confdefs.h. */ | |
29015 | _ACEOF | |
29016 | cat confdefs.h >>conftest.$ac_ext | |
29017 | cat >>conftest.$ac_ext <<_ACEOF | |
29018 | /* end confdefs.h. */ | |
29019 | #include <wchar.h> | |
29020 | int | |
29021 | main () | |
29022 | { | |
29023 | &_vsnwprintf; | |
29024 | ; | |
29025 | return 0; | |
29026 | } | |
29027 | _ACEOF | |
29028 | rm -f conftest.$ac_objext | |
29029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29030 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29031 | ac_status=$? |
ac1cb8d3 VS |
29032 | grep -v '^ *+' conftest.er1 >conftest.err |
29033 | rm -f conftest.er1 | |
29034 | cat conftest.err >&5 | |
a848cd7e SC |
29035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29036 | (exit $ac_status); } && | |
4d4ff94c | 29037 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29039 | (eval $ac_try) 2>&5 | |
29040 | ac_status=$? | |
29041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29042 | (exit $ac_status); }; } && | |
29043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29045 | (eval $ac_try) 2>&5 | |
29046 | ac_status=$? | |
29047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29048 | (exit $ac_status); }; }; then | |
29049 | echo "$as_me:$LINENO: result: yes" >&5 | |
29050 | echo "${ECHO_T}yes" >&6 | |
29051 | cat >>confdefs.h <<\_ACEOF | |
29052 | #define HAVE__VSNWPRINTF 1 | |
29053 | _ACEOF | |
29054 | ||
29055 | else | |
29056 | echo "$as_me: failed program was:" >&5 | |
29057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29058 | ||
29059 | echo "$as_me:$LINENO: result: no" >&5 | |
29060 | echo "${ECHO_T}no" >&6 | |
29061 | fi | |
ac1cb8d3 | 29062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29063 | fi |
29064 | ||
29065 | ac_ext=c | |
29066 | ac_cpp='$CPP $CPPFLAGS' | |
29067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29070 | ||
29071 | ||
29072 | ||
29073 | ||
29074 | if test "$TOOLKIT" != "MSW"; then | |
29075 | ||
29076 | ||
29077 | ||
29078 | ||
29079 | ac_ext=cc | |
29080 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29081 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29082 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29083 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29084 | ||
29085 | ||
29086 | ||
29087 | ||
29088 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29089 | if test "${with_libiconv_prefix+set}" = set; then | |
29090 | withval="$with_libiconv_prefix" | |
29091 | ||
29092 | for dir in `echo "$withval" | tr : ' '`; do | |
29093 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29094 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29095 | done | |
29096 | ||
29097 | fi; | |
29098 | ||
29099 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29100 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29101 | if test "${am_cv_func_iconv+set}" = set; then | |
29102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29103 | else | |
29104 | ||
29105 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29106 | am_cv_lib_iconv=no | |
29107 | cat >conftest.$ac_ext <<_ACEOF | |
29108 | /* confdefs.h. */ | |
29109 | _ACEOF | |
29110 | cat confdefs.h >>conftest.$ac_ext | |
29111 | cat >>conftest.$ac_ext <<_ACEOF | |
29112 | /* end confdefs.h. */ | |
29113 | #include <stdlib.h> | |
29114 | #include <iconv.h> | |
29115 | int | |
29116 | main () | |
29117 | { | |
29118 | iconv_t cd = iconv_open("",""); | |
29119 | iconv(cd,NULL,NULL,NULL,NULL); | |
29120 | iconv_close(cd); | |
29121 | ; | |
29122 | return 0; | |
29123 | } | |
29124 | _ACEOF | |
29125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29127 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29128 | ac_status=$? |
ac1cb8d3 VS |
29129 | grep -v '^ *+' conftest.er1 >conftest.err |
29130 | rm -f conftest.er1 | |
29131 | cat conftest.err >&5 | |
a848cd7e SC |
29132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29133 | (exit $ac_status); } && | |
4d4ff94c | 29134 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29136 | (eval $ac_try) 2>&5 | |
29137 | ac_status=$? | |
29138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29139 | (exit $ac_status); }; } && | |
29140 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29142 | (eval $ac_try) 2>&5 | |
29143 | ac_status=$? | |
29144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29145 | (exit $ac_status); }; }; then | |
29146 | am_cv_func_iconv=yes | |
29147 | else | |
29148 | echo "$as_me: failed program was:" >&5 | |
29149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29150 | ||
29151 | fi | |
ac1cb8d3 VS |
29152 | rm -f conftest.err conftest.$ac_objext \ |
29153 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29154 | if test "$am_cv_func_iconv" != yes; then |
29155 | am_save_LIBS="$LIBS" | |
29156 | LIBS="$LIBS -liconv" | |
29157 | cat >conftest.$ac_ext <<_ACEOF | |
29158 | /* confdefs.h. */ | |
29159 | _ACEOF | |
29160 | cat confdefs.h >>conftest.$ac_ext | |
29161 | cat >>conftest.$ac_ext <<_ACEOF | |
29162 | /* end confdefs.h. */ | |
29163 | #include <stdlib.h> | |
29164 | #include <iconv.h> | |
29165 | int | |
29166 | main () | |
29167 | { | |
29168 | iconv_t cd = iconv_open("",""); | |
29169 | iconv(cd,NULL,NULL,NULL,NULL); | |
29170 | iconv_close(cd); | |
29171 | ; | |
29172 | return 0; | |
29173 | } | |
29174 | _ACEOF | |
29175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29177 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29178 | ac_status=$? |
ac1cb8d3 VS |
29179 | grep -v '^ *+' conftest.er1 >conftest.err |
29180 | rm -f conftest.er1 | |
29181 | cat conftest.err >&5 | |
a848cd7e SC |
29182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29183 | (exit $ac_status); } && | |
4d4ff94c | 29184 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29186 | (eval $ac_try) 2>&5 | |
29187 | ac_status=$? | |
29188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29189 | (exit $ac_status); }; } && | |
29190 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29192 | (eval $ac_try) 2>&5 | |
29193 | ac_status=$? | |
29194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29195 | (exit $ac_status); }; }; then | |
29196 | am_cv_lib_iconv=yes | |
29197 | am_cv_func_iconv=yes | |
29198 | else | |
29199 | echo "$as_me: failed program was:" >&5 | |
29200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29201 | ||
29202 | fi | |
ac1cb8d3 VS |
29203 | rm -f conftest.err conftest.$ac_objext \ |
29204 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29205 | LIBS="$am_save_LIBS" |
29206 | fi | |
29207 | ||
29208 | fi | |
29209 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29210 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29211 | if test "$am_cv_func_iconv" = yes; then | |
29212 | ||
29213 | cat >>confdefs.h <<\_ACEOF | |
29214 | #define HAVE_ICONV 1 | |
29215 | _ACEOF | |
29216 | ||
29217 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29218 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29219 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29221 | else | |
29222 | cat >conftest.$ac_ext <<_ACEOF | |
29223 | /* confdefs.h. */ | |
29224 | _ACEOF | |
29225 | cat confdefs.h >>conftest.$ac_ext | |
29226 | cat >>conftest.$ac_ext <<_ACEOF | |
29227 | /* end confdefs.h. */ | |
29228 | ||
29229 | #include <stdlib.h> | |
29230 | #include <iconv.h> | |
29231 | extern | |
29232 | #ifdef __cplusplus | |
29233 | "C" | |
29234 | #endif | |
29235 | #if defined(__STDC__) || defined(__cplusplus) | |
29236 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29237 | #else | |
29238 | size_t iconv(); | |
29239 | #endif | |
29240 | ||
29241 | int | |
29242 | main () | |
29243 | { | |
29244 | ||
29245 | ; | |
29246 | return 0; | |
29247 | } | |
29248 | _ACEOF | |
29249 | rm -f conftest.$ac_objext | |
29250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29252 | ac_status=$? |
ac1cb8d3 VS |
29253 | grep -v '^ *+' conftest.er1 >conftest.err |
29254 | rm -f conftest.er1 | |
29255 | cat conftest.err >&5 | |
a848cd7e SC |
29256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29257 | (exit $ac_status); } && | |
4d4ff94c | 29258 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29260 | (eval $ac_try) 2>&5 | |
29261 | ac_status=$? | |
29262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29263 | (exit $ac_status); }; } && | |
29264 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29266 | (eval $ac_try) 2>&5 | |
29267 | ac_status=$? | |
29268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29269 | (exit $ac_status); }; }; then | |
29270 | wx_cv_func_iconv_const="no" | |
29271 | else | |
29272 | echo "$as_me: failed program was:" >&5 | |
29273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29274 | ||
29275 | wx_cv_func_iconv_const="yes" | |
29276 | ||
29277 | fi | |
ac1cb8d3 | 29278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29279 | |
29280 | fi | |
29281 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29282 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29283 | ||
29284 | iconv_const= | |
29285 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29286 | iconv_const="const" | |
29287 | fi | |
29288 | ||
29289 | ||
29290 | cat >>confdefs.h <<_ACEOF | |
29291 | #define ICONV_CONST $iconv_const | |
29292 | _ACEOF | |
29293 | ||
29294 | fi | |
29295 | LIBICONV= | |
29296 | if test "$am_cv_lib_iconv" = yes; then | |
29297 | LIBICONV="-liconv" | |
29298 | fi | |
29299 | ||
29300 | ||
29301 | LIBS="$LIBICONV $LIBS" | |
29302 | ac_ext=c | |
29303 | ac_cpp='$CPP $CPPFLAGS' | |
29304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29307 | ||
29308 | ||
29309 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29310 | ||
29311 | for ac_func in sigaction | |
29312 | do | |
29313 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29314 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29315 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29316 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29318 | else | |
29319 | cat >conftest.$ac_ext <<_ACEOF | |
29320 | /* confdefs.h. */ | |
29321 | _ACEOF | |
29322 | cat confdefs.h >>conftest.$ac_ext | |
29323 | cat >>conftest.$ac_ext <<_ACEOF | |
29324 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29325 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29326 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29327 | #define $ac_func innocuous_$ac_func | |
29328 | ||
a848cd7e SC |
29329 | /* System header to define __stub macros and hopefully few prototypes, |
29330 | which can conflict with char $ac_func (); below. | |
29331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29332 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29333 | |
a848cd7e SC |
29334 | #ifdef __STDC__ |
29335 | # include <limits.h> | |
29336 | #else | |
29337 | # include <assert.h> | |
29338 | #endif | |
ac1cb8d3 VS |
29339 | |
29340 | #undef $ac_func | |
29341 | ||
a848cd7e SC |
29342 | /* Override any gcc2 internal prototype to avoid an error. */ |
29343 | #ifdef __cplusplus | |
29344 | extern "C" | |
29345 | { | |
29346 | #endif | |
29347 | /* We use char because int might match the return type of a gcc2 | |
29348 | builtin and then its argument prototype would still apply. */ | |
29349 | char $ac_func (); | |
29350 | /* The GNU C library defines this for functions which it implements | |
29351 | to always fail with ENOSYS. Some functions are actually named | |
29352 | something starting with __ and the normal name is an alias. */ | |
29353 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29354 | choke me | |
29355 | #else | |
29356 | char (*f) () = $ac_func; | |
29357 | #endif | |
29358 | #ifdef __cplusplus | |
29359 | } | |
29360 | #endif | |
29361 | ||
29362 | int | |
29363 | main () | |
29364 | { | |
29365 | return f != $ac_func; | |
29366 | ; | |
29367 | return 0; | |
29368 | } | |
29369 | _ACEOF | |
29370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29372 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29373 | ac_status=$? |
ac1cb8d3 VS |
29374 | grep -v '^ *+' conftest.er1 >conftest.err |
29375 | rm -f conftest.er1 | |
29376 | cat conftest.err >&5 | |
a848cd7e SC |
29377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29378 | (exit $ac_status); } && | |
4d4ff94c | 29379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29381 | (eval $ac_try) 2>&5 | |
29382 | ac_status=$? | |
29383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29384 | (exit $ac_status); }; } && | |
29385 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29387 | (eval $ac_try) 2>&5 | |
29388 | ac_status=$? | |
29389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29390 | (exit $ac_status); }; }; then | |
29391 | eval "$as_ac_var=yes" | |
29392 | else | |
29393 | echo "$as_me: failed program was:" >&5 | |
29394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29395 | ||
29396 | eval "$as_ac_var=no" | |
29397 | fi | |
ac1cb8d3 VS |
29398 | rm -f conftest.err conftest.$ac_objext \ |
29399 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29400 | fi |
29401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29402 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29403 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29404 | cat >>confdefs.h <<_ACEOF | |
29405 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29406 | _ACEOF | |
29407 | ||
29408 | fi | |
29409 | done | |
29410 | ||
29411 | ||
29412 | if test "$ac_cv_func_sigaction" = "no"; then | |
29413 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29414 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29415 | wxUSE_ON_FATAL_EXCEPTION=no | |
29416 | fi | |
29417 | ||
29418 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29419 | ||
29420 | ||
29421 | ac_ext=cc | |
29422 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29423 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29424 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29425 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29426 | ||
29427 | ||
29428 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29429 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29430 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29432 | else | |
29433 | ||
29434 | cat >conftest.$ac_ext <<_ACEOF | |
29435 | /* confdefs.h. */ | |
29436 | _ACEOF | |
29437 | cat confdefs.h >>conftest.$ac_ext | |
29438 | cat >>conftest.$ac_ext <<_ACEOF | |
29439 | /* end confdefs.h. */ | |
29440 | #include <signal.h> | |
29441 | int | |
29442 | main () | |
29443 | { | |
29444 | ||
29445 | extern void testSigHandler(int); | |
29446 | ||
29447 | struct sigaction sa; | |
29448 | sa.sa_handler = testSigHandler; | |
29449 | ||
29450 | ; | |
29451 | return 0; | |
29452 | } | |
29453 | _ACEOF | |
29454 | rm -f conftest.$ac_objext | |
29455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29456 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29457 | ac_status=$? |
ac1cb8d3 VS |
29458 | grep -v '^ *+' conftest.er1 >conftest.err |
29459 | rm -f conftest.er1 | |
29460 | cat conftest.err >&5 | |
a848cd7e SC |
29461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29462 | (exit $ac_status); } && | |
4d4ff94c | 29463 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29465 | (eval $ac_try) 2>&5 | |
29466 | ac_status=$? | |
29467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29468 | (exit $ac_status); }; } && | |
29469 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29471 | (eval $ac_try) 2>&5 | |
29472 | ac_status=$? | |
29473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29474 | (exit $ac_status); }; }; then | |
29475 | ||
29476 | wx_cv_type_sa_handler=int | |
29477 | ||
29478 | else | |
29479 | echo "$as_me: failed program was:" >&5 | |
29480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29481 | ||
29482 | ||
29483 | wx_cv_type_sa_handler=void | |
29484 | ||
29485 | fi | |
ac1cb8d3 | 29486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29487 | |
29488 | fi | |
29489 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29490 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29491 | ||
29492 | ac_ext=c | |
29493 | ac_cpp='$CPP $CPPFLAGS' | |
29494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29497 | ||
29498 | ||
29499 | cat >>confdefs.h <<_ACEOF | |
29500 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29501 | _ACEOF | |
29502 | ||
29503 | fi | |
29504 | fi | |
29505 | ||
29506 | ||
29507 | ||
29508 | for ac_func in mkstemp mktemp | |
29509 | do | |
29510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29511 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29513 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29515 | else | |
29516 | cat >conftest.$ac_ext <<_ACEOF | |
29517 | /* confdefs.h. */ | |
29518 | _ACEOF | |
29519 | cat confdefs.h >>conftest.$ac_ext | |
29520 | cat >>conftest.$ac_ext <<_ACEOF | |
29521 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29524 | #define $ac_func innocuous_$ac_func | |
29525 | ||
a848cd7e SC |
29526 | /* System header to define __stub macros and hopefully few prototypes, |
29527 | which can conflict with char $ac_func (); below. | |
29528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29529 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29530 | |
a848cd7e SC |
29531 | #ifdef __STDC__ |
29532 | # include <limits.h> | |
29533 | #else | |
29534 | # include <assert.h> | |
29535 | #endif | |
ac1cb8d3 VS |
29536 | |
29537 | #undef $ac_func | |
29538 | ||
a848cd7e SC |
29539 | /* Override any gcc2 internal prototype to avoid an error. */ |
29540 | #ifdef __cplusplus | |
29541 | extern "C" | |
29542 | { | |
29543 | #endif | |
29544 | /* We use char because int might match the return type of a gcc2 | |
29545 | builtin and then its argument prototype would still apply. */ | |
29546 | char $ac_func (); | |
29547 | /* The GNU C library defines this for functions which it implements | |
29548 | to always fail with ENOSYS. Some functions are actually named | |
29549 | something starting with __ and the normal name is an alias. */ | |
29550 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29551 | choke me | |
29552 | #else | |
29553 | char (*f) () = $ac_func; | |
29554 | #endif | |
29555 | #ifdef __cplusplus | |
29556 | } | |
29557 | #endif | |
29558 | ||
29559 | int | |
29560 | main () | |
29561 | { | |
29562 | return f != $ac_func; | |
29563 | ; | |
29564 | return 0; | |
29565 | } | |
29566 | _ACEOF | |
29567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29569 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29570 | ac_status=$? |
ac1cb8d3 VS |
29571 | grep -v '^ *+' conftest.er1 >conftest.err |
29572 | rm -f conftest.er1 | |
29573 | cat conftest.err >&5 | |
a848cd7e SC |
29574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29575 | (exit $ac_status); } && | |
4d4ff94c | 29576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29578 | (eval $ac_try) 2>&5 | |
29579 | ac_status=$? | |
29580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29581 | (exit $ac_status); }; } && | |
29582 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29584 | (eval $ac_try) 2>&5 | |
29585 | ac_status=$? | |
29586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29587 | (exit $ac_status); }; }; then | |
29588 | eval "$as_ac_var=yes" | |
29589 | else | |
29590 | echo "$as_me: failed program was:" >&5 | |
29591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29592 | ||
29593 | eval "$as_ac_var=no" | |
29594 | fi | |
ac1cb8d3 VS |
29595 | rm -f conftest.err conftest.$ac_objext \ |
29596 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29597 | fi |
29598 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29599 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29600 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29601 | cat >>confdefs.h <<_ACEOF | |
29602 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29603 | _ACEOF | |
29604 | break | |
29605 | fi | |
29606 | done | |
29607 | ||
29608 | ||
29609 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
29610 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29611 | if test "${wx_cv_func_statfs+set}" = set; then | |
29612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29613 | else | |
29614 | cat >conftest.$ac_ext <<_ACEOF | |
29615 | /* confdefs.h. */ | |
29616 | _ACEOF | |
29617 | cat confdefs.h >>conftest.$ac_ext | |
29618 | cat >>conftest.$ac_ext <<_ACEOF | |
29619 | /* end confdefs.h. */ | |
29620 | ||
29621 | #if defined(__BSD__) | |
29622 | #include <sys/param.h> | |
29623 | #include <sys/mount.h> | |
29624 | #else | |
29625 | #include <sys/vfs.h> | |
29626 | #endif | |
29627 | ||
29628 | int | |
29629 | main () | |
29630 | { | |
29631 | ||
29632 | long l; | |
29633 | struct statfs fs; | |
29634 | statfs("/", &fs); | |
29635 | l = fs.f_bsize; | |
29636 | l += fs.f_blocks; | |
29637 | l += fs.f_bavail; | |
29638 | ||
29639 | ; | |
29640 | return 0; | |
29641 | } | |
29642 | _ACEOF | |
29643 | rm -f conftest.$ac_objext | |
29644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29645 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29646 | ac_status=$? |
ac1cb8d3 VS |
29647 | grep -v '^ *+' conftest.er1 >conftest.err |
29648 | rm -f conftest.er1 | |
29649 | cat conftest.err >&5 | |
a848cd7e SC |
29650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29651 | (exit $ac_status); } && | |
4d4ff94c | 29652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29654 | (eval $ac_try) 2>&5 | |
29655 | ac_status=$? | |
29656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29657 | (exit $ac_status); }; } && | |
29658 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29660 | (eval $ac_try) 2>&5 | |
29661 | ac_status=$? | |
29662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29663 | (exit $ac_status); }; }; then | |
29664 | ||
29665 | wx_cv_func_statfs=yes | |
29666 | ||
29667 | else | |
29668 | echo "$as_me: failed program was:" >&5 | |
29669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29670 | ||
29671 | ||
29672 | wx_cv_func_statfs=no | |
29673 | ||
29674 | ||
29675 | fi | |
ac1cb8d3 | 29676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29677 | |
29678 | fi | |
29679 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29680 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
29681 | ||
29682 | if test "$wx_cv_func_statfs" = "yes"; then | |
29683 | wx_cv_type_statvfs_t="struct statfs" | |
29684 | cat >>confdefs.h <<\_ACEOF | |
29685 | #define HAVE_STATFS 1 | |
29686 | _ACEOF | |
29687 | ||
29688 | else | |
29689 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
29690 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29691 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29693 | else | |
29694 | cat >conftest.$ac_ext <<_ACEOF | |
29695 | /* confdefs.h. */ | |
29696 | _ACEOF | |
29697 | cat confdefs.h >>conftest.$ac_ext | |
29698 | cat >>conftest.$ac_ext <<_ACEOF | |
29699 | /* end confdefs.h. */ | |
29700 | ||
29701 | #include <stddef.h> | |
29702 | #include <sys/statvfs.h> | |
29703 | ||
29704 | int | |
29705 | main () | |
29706 | { | |
29707 | ||
29708 | statvfs("/", NULL); | |
29709 | ||
29710 | ; | |
29711 | return 0; | |
29712 | } | |
29713 | _ACEOF | |
29714 | rm -f conftest.$ac_objext | |
29715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29716 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29717 | ac_status=$? |
ac1cb8d3 VS |
29718 | grep -v '^ *+' conftest.er1 >conftest.err |
29719 | rm -f conftest.er1 | |
29720 | cat conftest.err >&5 | |
a848cd7e SC |
29721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29722 | (exit $ac_status); } && | |
4d4ff94c | 29723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29725 | (eval $ac_try) 2>&5 | |
29726 | ac_status=$? | |
29727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29728 | (exit $ac_status); }; } && | |
29729 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29731 | (eval $ac_try) 2>&5 | |
29732 | ac_status=$? | |
29733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29734 | (exit $ac_status); }; }; then | |
29735 | wx_cv_func_statvfs=yes | |
29736 | else | |
29737 | echo "$as_me: failed program was:" >&5 | |
29738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29739 | ||
29740 | wx_cv_func_statvfs=no | |
29741 | ||
29742 | fi | |
ac1cb8d3 | 29743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29744 | |
29745 | fi | |
29746 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29747 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
29748 | ||
29749 | if test "$wx_cv_func_statvfs" = "yes"; then | |
29750 | ||
29751 | ||
29752 | ac_ext=cc | |
29753 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29754 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29755 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29756 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29757 | ||
29758 | ||
29759 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
29760 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29761 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29763 | else | |
29764 | cat >conftest.$ac_ext <<_ACEOF | |
29765 | /* confdefs.h. */ | |
29766 | _ACEOF | |
29767 | cat confdefs.h >>conftest.$ac_ext | |
29768 | cat >>conftest.$ac_ext <<_ACEOF | |
29769 | /* end confdefs.h. */ | |
29770 | ||
29771 | #include <sys/statvfs.h> | |
29772 | ||
29773 | int | |
29774 | main () | |
29775 | { | |
29776 | ||
29777 | long l; | |
29778 | statvfs_t fs; | |
29779 | statvfs("/", &fs); | |
29780 | l = fs.f_bsize; | |
29781 | l += fs.f_blocks; | |
29782 | l += fs.f_bavail; | |
29783 | ||
29784 | ; | |
29785 | return 0; | |
29786 | } | |
29787 | _ACEOF | |
29788 | rm -f conftest.$ac_objext | |
29789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29790 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29791 | ac_status=$? |
ac1cb8d3 VS |
29792 | grep -v '^ *+' conftest.er1 >conftest.err |
29793 | rm -f conftest.er1 | |
29794 | cat conftest.err >&5 | |
a848cd7e SC |
29795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29796 | (exit $ac_status); } && | |
4d4ff94c | 29797 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29799 | (eval $ac_try) 2>&5 | |
29800 | ac_status=$? | |
29801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29802 | (exit $ac_status); }; } && | |
29803 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29805 | (eval $ac_try) 2>&5 | |
29806 | ac_status=$? | |
29807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29808 | (exit $ac_status); }; }; then | |
29809 | wx_cv_type_statvfs_t=statvfs_t | |
29810 | else | |
29811 | echo "$as_me: failed program was:" >&5 | |
29812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29813 | ||
29814 | ||
29815 | cat >conftest.$ac_ext <<_ACEOF | |
29816 | /* confdefs.h. */ | |
29817 | _ACEOF | |
29818 | cat confdefs.h >>conftest.$ac_ext | |
29819 | cat >>conftest.$ac_ext <<_ACEOF | |
29820 | /* end confdefs.h. */ | |
29821 | ||
29822 | #include <sys/statvfs.h> | |
29823 | ||
29824 | int | |
29825 | main () | |
29826 | { | |
29827 | ||
29828 | long l; | |
29829 | struct statvfs fs; | |
29830 | statvfs("/", &fs); | |
29831 | l = fs.f_bsize; | |
29832 | l += fs.f_blocks; | |
29833 | l += fs.f_bavail; | |
29834 | ||
29835 | ; | |
29836 | return 0; | |
29837 | } | |
29838 | _ACEOF | |
29839 | rm -f conftest.$ac_objext | |
29840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29841 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29842 | ac_status=$? |
ac1cb8d3 VS |
29843 | grep -v '^ *+' conftest.er1 >conftest.err |
29844 | rm -f conftest.er1 | |
29845 | cat conftest.err >&5 | |
a848cd7e SC |
29846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29847 | (exit $ac_status); } && | |
4d4ff94c | 29848 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29850 | (eval $ac_try) 2>&5 | |
29851 | ac_status=$? | |
29852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29853 | (exit $ac_status); }; } && | |
29854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29856 | (eval $ac_try) 2>&5 | |
29857 | ac_status=$? | |
29858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29859 | (exit $ac_status); }; }; then | |
29860 | wx_cv_type_statvfs_t="struct statvfs" | |
29861 | else | |
29862 | echo "$as_me: failed program was:" >&5 | |
29863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29864 | ||
29865 | wx_cv_type_statvfs_t="unknown" | |
29866 | ||
29867 | fi | |
ac1cb8d3 | 29868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29869 | |
29870 | ||
29871 | fi | |
ac1cb8d3 | 29872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29873 | |
29874 | fi | |
29875 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
29876 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
29877 | ||
29878 | ac_ext=c | |
29879 | ac_cpp='$CPP $CPPFLAGS' | |
29880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29883 | ||
29884 | ||
29885 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
29886 | cat >>confdefs.h <<\_ACEOF | |
29887 | #define HAVE_STATVFS 1 | |
29888 | _ACEOF | |
29889 | ||
29890 | fi | |
29891 | else | |
29892 | wx_cv_type_statvfs_t="unknown" | |
29893 | fi | |
29894 | fi | |
29895 | ||
29896 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
29897 | cat >>confdefs.h <<_ACEOF | |
29898 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
29899 | _ACEOF | |
29900 | ||
29901 | else | |
29902 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
29903 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
29904 | fi | |
29905 | ||
29906 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
29907 | ||
29908 | ||
29909 | for ac_func in fcntl flock | |
29910 | do | |
29911 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29912 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29913 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29914 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29916 | else | |
29917 | cat >conftest.$ac_ext <<_ACEOF | |
29918 | /* confdefs.h. */ | |
29919 | _ACEOF | |
29920 | cat confdefs.h >>conftest.$ac_ext | |
29921 | cat >>conftest.$ac_ext <<_ACEOF | |
29922 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29925 | #define $ac_func innocuous_$ac_func | |
29926 | ||
a848cd7e SC |
29927 | /* System header to define __stub macros and hopefully few prototypes, |
29928 | which can conflict with char $ac_func (); below. | |
29929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29930 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29931 | |
a848cd7e SC |
29932 | #ifdef __STDC__ |
29933 | # include <limits.h> | |
29934 | #else | |
29935 | # include <assert.h> | |
29936 | #endif | |
ac1cb8d3 VS |
29937 | |
29938 | #undef $ac_func | |
29939 | ||
a848cd7e SC |
29940 | /* Override any gcc2 internal prototype to avoid an error. */ |
29941 | #ifdef __cplusplus | |
29942 | extern "C" | |
29943 | { | |
29944 | #endif | |
29945 | /* We use char because int might match the return type of a gcc2 | |
29946 | builtin and then its argument prototype would still apply. */ | |
29947 | char $ac_func (); | |
29948 | /* The GNU C library defines this for functions which it implements | |
29949 | to always fail with ENOSYS. Some functions are actually named | |
29950 | something starting with __ and the normal name is an alias. */ | |
29951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29952 | choke me | |
29953 | #else | |
29954 | char (*f) () = $ac_func; | |
29955 | #endif | |
29956 | #ifdef __cplusplus | |
29957 | } | |
29958 | #endif | |
29959 | ||
29960 | int | |
29961 | main () | |
29962 | { | |
29963 | return f != $ac_func; | |
29964 | ; | |
29965 | return 0; | |
29966 | } | |
29967 | _ACEOF | |
29968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29970 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29971 | ac_status=$? |
ac1cb8d3 VS |
29972 | grep -v '^ *+' conftest.er1 >conftest.err |
29973 | rm -f conftest.er1 | |
29974 | cat conftest.err >&5 | |
a848cd7e SC |
29975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29976 | (exit $ac_status); } && | |
4d4ff94c | 29977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29979 | (eval $ac_try) 2>&5 | |
29980 | ac_status=$? | |
29981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29982 | (exit $ac_status); }; } && | |
29983 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29985 | (eval $ac_try) 2>&5 | |
29986 | ac_status=$? | |
29987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29988 | (exit $ac_status); }; }; then | |
29989 | eval "$as_ac_var=yes" | |
29990 | else | |
29991 | echo "$as_me: failed program was:" >&5 | |
29992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29993 | ||
29994 | eval "$as_ac_var=no" | |
29995 | fi | |
ac1cb8d3 VS |
29996 | rm -f conftest.err conftest.$ac_objext \ |
29997 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29998 | fi |
29999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30000 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30001 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30002 | cat >>confdefs.h <<_ACEOF | |
30003 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30004 | _ACEOF | |
30005 | break | |
30006 | fi | |
30007 | done | |
30008 | ||
30009 | ||
30010 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30011 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30012 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30013 | wxUSE_SNGLINST_CHECKER=no | |
30014 | fi | |
30015 | fi | |
30016 | ||
30017 | ||
30018 | for ac_func in timegm | |
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); } && | |
4d4ff94c | 30086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30088 | (eval $ac_try) 2>&5 | |
30089 | ac_status=$? | |
30090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30091 | (exit $ac_status); }; } && | |
30092 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30094 | (eval $ac_try) 2>&5 | |
30095 | ac_status=$? | |
30096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30097 | (exit $ac_status); }; }; then | |
30098 | eval "$as_ac_var=yes" | |
30099 | else | |
30100 | echo "$as_me: failed program was:" >&5 | |
30101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30102 | ||
30103 | eval "$as_ac_var=no" | |
30104 | fi | |
ac1cb8d3 VS |
30105 | rm -f conftest.err conftest.$ac_objext \ |
30106 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30107 | fi |
30108 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30109 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30110 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30111 | cat >>confdefs.h <<_ACEOF | |
30112 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30113 | _ACEOF | |
30114 | ||
30115 | fi | |
30116 | done | |
30117 | ||
30118 | ||
30119 | ||
30120 | ||
30121 | for ac_func in putenv setenv | |
30122 | do | |
30123 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30124 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30125 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30126 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30128 | else | |
30129 | cat >conftest.$ac_ext <<_ACEOF | |
30130 | /* confdefs.h. */ | |
30131 | _ACEOF | |
30132 | cat confdefs.h >>conftest.$ac_ext | |
30133 | cat >>conftest.$ac_ext <<_ACEOF | |
30134 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30135 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30136 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30137 | #define $ac_func innocuous_$ac_func | |
30138 | ||
a848cd7e SC |
30139 | /* System header to define __stub macros and hopefully few prototypes, |
30140 | which can conflict with char $ac_func (); below. | |
30141 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30142 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30143 | |
a848cd7e SC |
30144 | #ifdef __STDC__ |
30145 | # include <limits.h> | |
30146 | #else | |
30147 | # include <assert.h> | |
30148 | #endif | |
ac1cb8d3 VS |
30149 | |
30150 | #undef $ac_func | |
30151 | ||
a848cd7e SC |
30152 | /* Override any gcc2 internal prototype to avoid an error. */ |
30153 | #ifdef __cplusplus | |
30154 | extern "C" | |
30155 | { | |
30156 | #endif | |
30157 | /* We use char because int might match the return type of a gcc2 | |
30158 | builtin and then its argument prototype would still apply. */ | |
30159 | char $ac_func (); | |
30160 | /* The GNU C library defines this for functions which it implements | |
30161 | to always fail with ENOSYS. Some functions are actually named | |
30162 | something starting with __ and the normal name is an alias. */ | |
30163 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30164 | choke me | |
30165 | #else | |
30166 | char (*f) () = $ac_func; | |
30167 | #endif | |
30168 | #ifdef __cplusplus | |
30169 | } | |
30170 | #endif | |
30171 | ||
30172 | int | |
30173 | main () | |
30174 | { | |
30175 | return f != $ac_func; | |
30176 | ; | |
30177 | return 0; | |
30178 | } | |
30179 | _ACEOF | |
30180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30182 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30183 | ac_status=$? |
ac1cb8d3 VS |
30184 | grep -v '^ *+' conftest.er1 >conftest.err |
30185 | rm -f conftest.er1 | |
30186 | cat conftest.err >&5 | |
a848cd7e SC |
30187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30188 | (exit $ac_status); } && | |
4d4ff94c | 30189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30191 | (eval $ac_try) 2>&5 | |
30192 | ac_status=$? | |
30193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30194 | (exit $ac_status); }; } && | |
30195 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30197 | (eval $ac_try) 2>&5 | |
30198 | ac_status=$? | |
30199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30200 | (exit $ac_status); }; }; then | |
30201 | eval "$as_ac_var=yes" | |
30202 | else | |
30203 | echo "$as_me: failed program was:" >&5 | |
30204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30205 | ||
30206 | eval "$as_ac_var=no" | |
30207 | fi | |
ac1cb8d3 VS |
30208 | rm -f conftest.err conftest.$ac_objext \ |
30209 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30210 | fi |
30211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30212 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30213 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30214 | cat >>confdefs.h <<_ACEOF | |
30215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30216 | _ACEOF | |
30217 | break | |
30218 | fi | |
30219 | done | |
30220 | ||
30221 | ||
30222 | HAVE_SOME_SLEEP_FUNC=0 | |
30223 | if test "$USE_BEOS" = 1; then | |
30224 | cat >>confdefs.h <<\_ACEOF | |
30225 | #define HAVE_SLEEP 1 | |
30226 | _ACEOF | |
30227 | ||
30228 | HAVE_SOME_SLEEP_FUNC=1 | |
30229 | fi | |
30230 | ||
30231 | if test "$USE_DARWIN" = 1; then | |
30232 | cat >>confdefs.h <<\_ACEOF | |
30233 | #define HAVE_USLEEP 1 | |
30234 | _ACEOF | |
30235 | ||
30236 | HAVE_SOME_SLEEP_FUNC=1 | |
30237 | fi | |
30238 | ||
30239 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30240 | POSIX4_LINK= | |
30241 | ||
30242 | for ac_func in nanosleep | |
30243 | do | |
30244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30245 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30247 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30249 | else | |
30250 | cat >conftest.$ac_ext <<_ACEOF | |
30251 | /* confdefs.h. */ | |
30252 | _ACEOF | |
30253 | cat confdefs.h >>conftest.$ac_ext | |
30254 | cat >>conftest.$ac_ext <<_ACEOF | |
30255 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30258 | #define $ac_func innocuous_$ac_func | |
30259 | ||
a848cd7e SC |
30260 | /* System header to define __stub macros and hopefully few prototypes, |
30261 | which can conflict with char $ac_func (); below. | |
30262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30263 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30264 | |
a848cd7e SC |
30265 | #ifdef __STDC__ |
30266 | # include <limits.h> | |
30267 | #else | |
30268 | # include <assert.h> | |
30269 | #endif | |
ac1cb8d3 VS |
30270 | |
30271 | #undef $ac_func | |
30272 | ||
a848cd7e SC |
30273 | /* Override any gcc2 internal prototype to avoid an error. */ |
30274 | #ifdef __cplusplus | |
30275 | extern "C" | |
30276 | { | |
30277 | #endif | |
30278 | /* We use char because int might match the return type of a gcc2 | |
30279 | builtin and then its argument prototype would still apply. */ | |
30280 | char $ac_func (); | |
30281 | /* The GNU C library defines this for functions which it implements | |
30282 | to always fail with ENOSYS. Some functions are actually named | |
30283 | something starting with __ and the normal name is an alias. */ | |
30284 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30285 | choke me | |
30286 | #else | |
30287 | char (*f) () = $ac_func; | |
30288 | #endif | |
30289 | #ifdef __cplusplus | |
30290 | } | |
30291 | #endif | |
30292 | ||
30293 | int | |
30294 | main () | |
30295 | { | |
30296 | return f != $ac_func; | |
30297 | ; | |
30298 | return 0; | |
30299 | } | |
30300 | _ACEOF | |
30301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30303 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30304 | ac_status=$? |
ac1cb8d3 VS |
30305 | grep -v '^ *+' conftest.er1 >conftest.err |
30306 | rm -f conftest.er1 | |
30307 | cat conftest.err >&5 | |
a848cd7e SC |
30308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30309 | (exit $ac_status); } && | |
4d4ff94c | 30310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30312 | (eval $ac_try) 2>&5 | |
30313 | ac_status=$? | |
30314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30315 | (exit $ac_status); }; } && | |
30316 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30318 | (eval $ac_try) 2>&5 | |
30319 | ac_status=$? | |
30320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30321 | (exit $ac_status); }; }; then | |
30322 | eval "$as_ac_var=yes" | |
30323 | else | |
30324 | echo "$as_me: failed program was:" >&5 | |
30325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30326 | ||
30327 | eval "$as_ac_var=no" | |
30328 | fi | |
ac1cb8d3 VS |
30329 | rm -f conftest.err conftest.$ac_objext \ |
30330 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30331 | fi |
30332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30333 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30334 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30335 | cat >>confdefs.h <<_ACEOF | |
30336 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30337 | _ACEOF | |
30338 | cat >>confdefs.h <<\_ACEOF | |
30339 | #define HAVE_NANOSLEEP 1 | |
30340 | _ACEOF | |
30341 | ||
30342 | else | |
30343 | ||
30344 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30345 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30346 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30348 | else | |
30349 | ac_check_lib_save_LIBS=$LIBS | |
30350 | LIBS="-lposix4 $LIBS" | |
30351 | cat >conftest.$ac_ext <<_ACEOF | |
30352 | /* confdefs.h. */ | |
30353 | _ACEOF | |
30354 | cat confdefs.h >>conftest.$ac_ext | |
30355 | cat >>conftest.$ac_ext <<_ACEOF | |
30356 | /* end confdefs.h. */ | |
30357 | ||
30358 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30359 | #ifdef __cplusplus | |
30360 | extern "C" | |
30361 | #endif | |
30362 | /* We use char because int might match the return type of a gcc2 | |
30363 | builtin and then its argument prototype would still apply. */ | |
30364 | char nanosleep (); | |
30365 | int | |
30366 | main () | |
30367 | { | |
30368 | nanosleep (); | |
30369 | ; | |
30370 | return 0; | |
30371 | } | |
30372 | _ACEOF | |
30373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30375 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30376 | ac_status=$? |
ac1cb8d3 VS |
30377 | grep -v '^ *+' conftest.er1 >conftest.err |
30378 | rm -f conftest.er1 | |
30379 | cat conftest.err >&5 | |
a848cd7e SC |
30380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30381 | (exit $ac_status); } && | |
4d4ff94c | 30382 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30384 | (eval $ac_try) 2>&5 | |
30385 | ac_status=$? | |
30386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30387 | (exit $ac_status); }; } && | |
30388 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30390 | (eval $ac_try) 2>&5 | |
30391 | ac_status=$? | |
30392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30393 | (exit $ac_status); }; }; then | |
30394 | ac_cv_lib_posix4_nanosleep=yes | |
30395 | else | |
30396 | echo "$as_me: failed program was:" >&5 | |
30397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30398 | ||
30399 | ac_cv_lib_posix4_nanosleep=no | |
30400 | fi | |
ac1cb8d3 VS |
30401 | rm -f conftest.err conftest.$ac_objext \ |
30402 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30403 | LIBS=$ac_check_lib_save_LIBS |
30404 | fi | |
30405 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30406 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30407 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30408 | ||
30409 | cat >>confdefs.h <<\_ACEOF | |
30410 | #define HAVE_NANOSLEEP 1 | |
30411 | _ACEOF | |
30412 | ||
30413 | POSIX4_LINK=" -lposix4" | |
30414 | ||
30415 | else | |
30416 | ||
30417 | ||
30418 | for ac_func in usleep | |
30419 | do | |
30420 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30421 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30422 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30423 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30425 | else | |
30426 | cat >conftest.$ac_ext <<_ACEOF | |
30427 | /* confdefs.h. */ | |
30428 | _ACEOF | |
30429 | cat confdefs.h >>conftest.$ac_ext | |
30430 | cat >>conftest.$ac_ext <<_ACEOF | |
30431 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30432 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30433 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30434 | #define $ac_func innocuous_$ac_func | |
30435 | ||
a848cd7e SC |
30436 | /* System header to define __stub macros and hopefully few prototypes, |
30437 | which can conflict with char $ac_func (); below. | |
30438 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30439 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30440 | |
a848cd7e SC |
30441 | #ifdef __STDC__ |
30442 | # include <limits.h> | |
30443 | #else | |
30444 | # include <assert.h> | |
30445 | #endif | |
ac1cb8d3 VS |
30446 | |
30447 | #undef $ac_func | |
30448 | ||
a848cd7e SC |
30449 | /* Override any gcc2 internal prototype to avoid an error. */ |
30450 | #ifdef __cplusplus | |
30451 | extern "C" | |
30452 | { | |
30453 | #endif | |
30454 | /* We use char because int might match the return type of a gcc2 | |
30455 | builtin and then its argument prototype would still apply. */ | |
30456 | char $ac_func (); | |
30457 | /* The GNU C library defines this for functions which it implements | |
30458 | to always fail with ENOSYS. Some functions are actually named | |
30459 | something starting with __ and the normal name is an alias. */ | |
30460 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30461 | choke me | |
30462 | #else | |
30463 | char (*f) () = $ac_func; | |
30464 | #endif | |
30465 | #ifdef __cplusplus | |
30466 | } | |
30467 | #endif | |
30468 | ||
30469 | int | |
30470 | main () | |
30471 | { | |
30472 | return f != $ac_func; | |
30473 | ; | |
30474 | return 0; | |
30475 | } | |
30476 | _ACEOF | |
30477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30479 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30480 | ac_status=$? |
ac1cb8d3 VS |
30481 | grep -v '^ *+' conftest.er1 >conftest.err |
30482 | rm -f conftest.er1 | |
30483 | cat conftest.err >&5 | |
a848cd7e SC |
30484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30485 | (exit $ac_status); } && | |
4d4ff94c | 30486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30488 | (eval $ac_try) 2>&5 | |
30489 | ac_status=$? | |
30490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30491 | (exit $ac_status); }; } && | |
30492 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30494 | (eval $ac_try) 2>&5 | |
30495 | ac_status=$? | |
30496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30497 | (exit $ac_status); }; }; then | |
30498 | eval "$as_ac_var=yes" | |
30499 | else | |
30500 | echo "$as_me: failed program was:" >&5 | |
30501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30502 | ||
30503 | eval "$as_ac_var=no" | |
30504 | fi | |
ac1cb8d3 VS |
30505 | rm -f conftest.err conftest.$ac_objext \ |
30506 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30507 | fi |
30508 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30509 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30510 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30511 | cat >>confdefs.h <<_ACEOF | |
30512 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30513 | _ACEOF | |
30514 | cat >>confdefs.h <<\_ACEOF | |
30515 | #define HAVE_USLEEP 1 | |
30516 | _ACEOF | |
30517 | ||
30518 | else | |
30519 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30520 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30521 | ||
30522 | fi | |
30523 | done | |
30524 | ||
30525 | ||
30526 | ||
30527 | fi | |
30528 | ||
30529 | ||
30530 | ||
30531 | fi | |
30532 | done | |
30533 | ||
30534 | fi | |
30535 | ||
30536 | ||
30537 | ||
30538 | for ac_func in uname gethostname | |
30539 | do | |
30540 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30541 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30542 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30543 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30545 | else | |
30546 | cat >conftest.$ac_ext <<_ACEOF | |
30547 | /* confdefs.h. */ | |
30548 | _ACEOF | |
30549 | cat confdefs.h >>conftest.$ac_ext | |
30550 | cat >>conftest.$ac_ext <<_ACEOF | |
30551 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30552 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30553 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30554 | #define $ac_func innocuous_$ac_func | |
30555 | ||
a848cd7e SC |
30556 | /* System header to define __stub macros and hopefully few prototypes, |
30557 | which can conflict with char $ac_func (); below. | |
30558 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30559 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30560 | |
a848cd7e SC |
30561 | #ifdef __STDC__ |
30562 | # include <limits.h> | |
30563 | #else | |
30564 | # include <assert.h> | |
30565 | #endif | |
ac1cb8d3 VS |
30566 | |
30567 | #undef $ac_func | |
30568 | ||
a848cd7e SC |
30569 | /* Override any gcc2 internal prototype to avoid an error. */ |
30570 | #ifdef __cplusplus | |
30571 | extern "C" | |
30572 | { | |
30573 | #endif | |
30574 | /* We use char because int might match the return type of a gcc2 | |
30575 | builtin and then its argument prototype would still apply. */ | |
30576 | char $ac_func (); | |
30577 | /* The GNU C library defines this for functions which it implements | |
30578 | to always fail with ENOSYS. Some functions are actually named | |
30579 | something starting with __ and the normal name is an alias. */ | |
30580 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30581 | choke me | |
30582 | #else | |
30583 | char (*f) () = $ac_func; | |
30584 | #endif | |
30585 | #ifdef __cplusplus | |
30586 | } | |
30587 | #endif | |
30588 | ||
30589 | int | |
30590 | main () | |
30591 | { | |
30592 | return f != $ac_func; | |
30593 | ; | |
30594 | return 0; | |
30595 | } | |
30596 | _ACEOF | |
30597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30599 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30600 | ac_status=$? |
ac1cb8d3 VS |
30601 | grep -v '^ *+' conftest.er1 >conftest.err |
30602 | rm -f conftest.er1 | |
30603 | cat conftest.err >&5 | |
a848cd7e SC |
30604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30605 | (exit $ac_status); } && | |
4d4ff94c | 30606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30608 | (eval $ac_try) 2>&5 | |
30609 | ac_status=$? | |
30610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30611 | (exit $ac_status); }; } && | |
30612 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30614 | (eval $ac_try) 2>&5 | |
30615 | ac_status=$? | |
30616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30617 | (exit $ac_status); }; }; then | |
30618 | eval "$as_ac_var=yes" | |
30619 | else | |
30620 | echo "$as_me: failed program was:" >&5 | |
30621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30622 | ||
30623 | eval "$as_ac_var=no" | |
30624 | fi | |
ac1cb8d3 VS |
30625 | rm -f conftest.err conftest.$ac_objext \ |
30626 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30627 | fi |
30628 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30629 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30630 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30631 | cat >>confdefs.h <<_ACEOF | |
30632 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30633 | _ACEOF | |
30634 | break | |
30635 | fi | |
30636 | done | |
30637 | ||
30638 | ||
30639 | ||
30640 | ||
30641 | ac_ext=cc | |
30642 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30643 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30644 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30645 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30646 | ||
30647 | ||
30648 | ||
30649 | for ac_func in strtok_r | |
30650 | do | |
30651 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30652 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30653 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30654 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30656 | else | |
30657 | cat >conftest.$ac_ext <<_ACEOF | |
30658 | /* confdefs.h. */ | |
30659 | _ACEOF | |
30660 | cat confdefs.h >>conftest.$ac_ext | |
30661 | cat >>conftest.$ac_ext <<_ACEOF | |
30662 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30663 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30664 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30665 | #define $ac_func innocuous_$ac_func | |
30666 | ||
a848cd7e SC |
30667 | /* System header to define __stub macros and hopefully few prototypes, |
30668 | which can conflict with char $ac_func (); below. | |
30669 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30670 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30671 | |
a848cd7e SC |
30672 | #ifdef __STDC__ |
30673 | # include <limits.h> | |
30674 | #else | |
30675 | # include <assert.h> | |
30676 | #endif | |
ac1cb8d3 VS |
30677 | |
30678 | #undef $ac_func | |
30679 | ||
a848cd7e SC |
30680 | /* Override any gcc2 internal prototype to avoid an error. */ |
30681 | #ifdef __cplusplus | |
30682 | extern "C" | |
30683 | { | |
30684 | #endif | |
30685 | /* We use char because int might match the return type of a gcc2 | |
30686 | builtin and then its argument prototype would still apply. */ | |
30687 | char $ac_func (); | |
30688 | /* The GNU C library defines this for functions which it implements | |
30689 | to always fail with ENOSYS. Some functions are actually named | |
30690 | something starting with __ and the normal name is an alias. */ | |
30691 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30692 | choke me | |
30693 | #else | |
30694 | char (*f) () = $ac_func; | |
30695 | #endif | |
30696 | #ifdef __cplusplus | |
30697 | } | |
30698 | #endif | |
30699 | ||
30700 | int | |
30701 | main () | |
30702 | { | |
30703 | return f != $ac_func; | |
30704 | ; | |
30705 | return 0; | |
30706 | } | |
30707 | _ACEOF | |
30708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30710 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30711 | ac_status=$? |
ac1cb8d3 VS |
30712 | grep -v '^ *+' conftest.er1 >conftest.err |
30713 | rm -f conftest.er1 | |
30714 | cat conftest.err >&5 | |
a848cd7e SC |
30715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30716 | (exit $ac_status); } && | |
4d4ff94c | 30717 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30719 | (eval $ac_try) 2>&5 | |
30720 | ac_status=$? | |
30721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30722 | (exit $ac_status); }; } && | |
30723 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30725 | (eval $ac_try) 2>&5 | |
30726 | ac_status=$? | |
30727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30728 | (exit $ac_status); }; }; then | |
30729 | eval "$as_ac_var=yes" | |
30730 | else | |
30731 | echo "$as_me: failed program was:" >&5 | |
30732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30733 | ||
30734 | eval "$as_ac_var=no" | |
30735 | fi | |
ac1cb8d3 VS |
30736 | rm -f conftest.err conftest.$ac_objext \ |
30737 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30738 | fi |
30739 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30740 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30741 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30742 | cat >>confdefs.h <<_ACEOF | |
30743 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30744 | _ACEOF | |
30745 | ||
30746 | fi | |
30747 | done | |
30748 | ||
30749 | ||
30750 | ac_ext=c | |
30751 | ac_cpp='$CPP $CPPFLAGS' | |
30752 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30753 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30754 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30755 | ||
30756 | ||
30757 | INET_LINK= | |
30758 | ||
30759 | for ac_func in inet_addr | |
30760 | do | |
30761 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30762 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30763 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30764 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30766 | else | |
30767 | cat >conftest.$ac_ext <<_ACEOF | |
30768 | /* confdefs.h. */ | |
30769 | _ACEOF | |
30770 | cat confdefs.h >>conftest.$ac_ext | |
30771 | cat >>conftest.$ac_ext <<_ACEOF | |
30772 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30773 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30774 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30775 | #define $ac_func innocuous_$ac_func | |
30776 | ||
a848cd7e SC |
30777 | /* System header to define __stub macros and hopefully few prototypes, |
30778 | which can conflict with char $ac_func (); below. | |
30779 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30780 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30781 | |
a848cd7e SC |
30782 | #ifdef __STDC__ |
30783 | # include <limits.h> | |
30784 | #else | |
30785 | # include <assert.h> | |
30786 | #endif | |
ac1cb8d3 VS |
30787 | |
30788 | #undef $ac_func | |
30789 | ||
a848cd7e SC |
30790 | /* Override any gcc2 internal prototype to avoid an error. */ |
30791 | #ifdef __cplusplus | |
30792 | extern "C" | |
30793 | { | |
30794 | #endif | |
30795 | /* We use char because int might match the return type of a gcc2 | |
30796 | builtin and then its argument prototype would still apply. */ | |
30797 | char $ac_func (); | |
30798 | /* The GNU C library defines this for functions which it implements | |
30799 | to always fail with ENOSYS. Some functions are actually named | |
30800 | something starting with __ and the normal name is an alias. */ | |
30801 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30802 | choke me | |
30803 | #else | |
30804 | char (*f) () = $ac_func; | |
30805 | #endif | |
30806 | #ifdef __cplusplus | |
30807 | } | |
30808 | #endif | |
30809 | ||
30810 | int | |
30811 | main () | |
30812 | { | |
30813 | return f != $ac_func; | |
30814 | ; | |
30815 | return 0; | |
30816 | } | |
30817 | _ACEOF | |
30818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30820 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30821 | ac_status=$? |
ac1cb8d3 VS |
30822 | grep -v '^ *+' conftest.er1 >conftest.err |
30823 | rm -f conftest.er1 | |
30824 | cat conftest.err >&5 | |
a848cd7e SC |
30825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30826 | (exit $ac_status); } && | |
4d4ff94c | 30827 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30829 | (eval $ac_try) 2>&5 | |
30830 | ac_status=$? | |
30831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30832 | (exit $ac_status); }; } && | |
30833 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30835 | (eval $ac_try) 2>&5 | |
30836 | ac_status=$? | |
30837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30838 | (exit $ac_status); }; }; then | |
30839 | eval "$as_ac_var=yes" | |
30840 | else | |
30841 | echo "$as_me: failed program was:" >&5 | |
30842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30843 | ||
30844 | eval "$as_ac_var=no" | |
30845 | fi | |
ac1cb8d3 VS |
30846 | rm -f conftest.err conftest.$ac_objext \ |
30847 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30848 | fi |
30849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30850 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30851 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30852 | cat >>confdefs.h <<_ACEOF | |
30853 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30854 | _ACEOF | |
30855 | cat >>confdefs.h <<\_ACEOF | |
30856 | #define HAVE_INET_ADDR 1 | |
30857 | _ACEOF | |
30858 | ||
30859 | else | |
30860 | ||
30861 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
30862 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
30863 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
30864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30865 | else | |
30866 | ac_check_lib_save_LIBS=$LIBS | |
30867 | LIBS="-lnsl $LIBS" | |
30868 | cat >conftest.$ac_ext <<_ACEOF | |
30869 | /* confdefs.h. */ | |
30870 | _ACEOF | |
30871 | cat confdefs.h >>conftest.$ac_ext | |
30872 | cat >>conftest.$ac_ext <<_ACEOF | |
30873 | /* end confdefs.h. */ | |
30874 | ||
30875 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30876 | #ifdef __cplusplus | |
30877 | extern "C" | |
30878 | #endif | |
30879 | /* We use char because int might match the return type of a gcc2 | |
30880 | builtin and then its argument prototype would still apply. */ | |
30881 | char inet_addr (); | |
30882 | int | |
30883 | main () | |
30884 | { | |
30885 | inet_addr (); | |
30886 | ; | |
30887 | return 0; | |
30888 | } | |
30889 | _ACEOF | |
30890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30892 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30893 | ac_status=$? |
ac1cb8d3 VS |
30894 | grep -v '^ *+' conftest.er1 >conftest.err |
30895 | rm -f conftest.er1 | |
30896 | cat conftest.err >&5 | |
a848cd7e SC |
30897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30898 | (exit $ac_status); } && | |
4d4ff94c | 30899 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30901 | (eval $ac_try) 2>&5 | |
30902 | ac_status=$? | |
30903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30904 | (exit $ac_status); }; } && | |
30905 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30907 | (eval $ac_try) 2>&5 | |
30908 | ac_status=$? | |
30909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30910 | (exit $ac_status); }; }; then | |
30911 | ac_cv_lib_nsl_inet_addr=yes | |
30912 | else | |
30913 | echo "$as_me: failed program was:" >&5 | |
30914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30915 | ||
30916 | ac_cv_lib_nsl_inet_addr=no | |
30917 | fi | |
ac1cb8d3 VS |
30918 | rm -f conftest.err conftest.$ac_objext \ |
30919 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30920 | LIBS=$ac_check_lib_save_LIBS |
30921 | fi | |
30922 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
30923 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
30924 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
30925 | INET_LINK="nsl" | |
30926 | else | |
30927 | ||
30928 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
30929 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
30930 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
30931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30932 | else | |
30933 | ac_check_lib_save_LIBS=$LIBS | |
30934 | LIBS="-lresolv $LIBS" | |
30935 | cat >conftest.$ac_ext <<_ACEOF | |
30936 | /* confdefs.h. */ | |
30937 | _ACEOF | |
30938 | cat confdefs.h >>conftest.$ac_ext | |
30939 | cat >>conftest.$ac_ext <<_ACEOF | |
30940 | /* end confdefs.h. */ | |
30941 | ||
30942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30943 | #ifdef __cplusplus | |
30944 | extern "C" | |
30945 | #endif | |
30946 | /* We use char because int might match the return type of a gcc2 | |
30947 | builtin and then its argument prototype would still apply. */ | |
30948 | char inet_addr (); | |
30949 | int | |
30950 | main () | |
30951 | { | |
30952 | inet_addr (); | |
30953 | ; | |
30954 | return 0; | |
30955 | } | |
30956 | _ACEOF | |
30957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30959 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30960 | ac_status=$? |
ac1cb8d3 VS |
30961 | grep -v '^ *+' conftest.er1 >conftest.err |
30962 | rm -f conftest.er1 | |
30963 | cat conftest.err >&5 | |
a848cd7e SC |
30964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30965 | (exit $ac_status); } && | |
4d4ff94c | 30966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30968 | (eval $ac_try) 2>&5 | |
30969 | ac_status=$? | |
30970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30971 | (exit $ac_status); }; } && | |
30972 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30974 | (eval $ac_try) 2>&5 | |
30975 | ac_status=$? | |
30976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30977 | (exit $ac_status); }; }; then | |
30978 | ac_cv_lib_resolv_inet_addr=yes | |
30979 | else | |
30980 | echo "$as_me: failed program was:" >&5 | |
30981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30982 | ||
30983 | ac_cv_lib_resolv_inet_addr=no | |
30984 | fi | |
ac1cb8d3 VS |
30985 | rm -f conftest.err conftest.$ac_objext \ |
30986 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30987 | LIBS=$ac_check_lib_save_LIBS |
30988 | fi | |
30989 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
30990 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
30991 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
30992 | INET_LINK="resolv" | |
30993 | else | |
30994 | ||
30995 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
30996 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
30997 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
30998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30999 | else | |
31000 | ac_check_lib_save_LIBS=$LIBS | |
31001 | LIBS="-lsocket $LIBS" | |
31002 | cat >conftest.$ac_ext <<_ACEOF | |
31003 | /* confdefs.h. */ | |
31004 | _ACEOF | |
31005 | cat confdefs.h >>conftest.$ac_ext | |
31006 | cat >>conftest.$ac_ext <<_ACEOF | |
31007 | /* end confdefs.h. */ | |
31008 | ||
31009 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31010 | #ifdef __cplusplus | |
31011 | extern "C" | |
31012 | #endif | |
31013 | /* We use char because int might match the return type of a gcc2 | |
31014 | builtin and then its argument prototype would still apply. */ | |
31015 | char inet_addr (); | |
31016 | int | |
31017 | main () | |
31018 | { | |
31019 | inet_addr (); | |
31020 | ; | |
31021 | return 0; | |
31022 | } | |
31023 | _ACEOF | |
31024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31026 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31027 | ac_status=$? |
ac1cb8d3 VS |
31028 | grep -v '^ *+' conftest.er1 >conftest.err |
31029 | rm -f conftest.er1 | |
31030 | cat conftest.err >&5 | |
a848cd7e SC |
31031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31032 | (exit $ac_status); } && | |
4d4ff94c | 31033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31035 | (eval $ac_try) 2>&5 | |
31036 | ac_status=$? | |
31037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31038 | (exit $ac_status); }; } && | |
31039 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31041 | (eval $ac_try) 2>&5 | |
31042 | ac_status=$? | |
31043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31044 | (exit $ac_status); }; }; then | |
31045 | ac_cv_lib_socket_inet_addr=yes | |
31046 | else | |
31047 | echo "$as_me: failed program was:" >&5 | |
31048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31049 | ||
31050 | ac_cv_lib_socket_inet_addr=no | |
31051 | fi | |
ac1cb8d3 VS |
31052 | rm -f conftest.err conftest.$ac_objext \ |
31053 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31054 | LIBS=$ac_check_lib_save_LIBS |
31055 | fi | |
31056 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31057 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31058 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31059 | INET_LINK="socket" | |
31060 | ||
31061 | fi | |
31062 | ||
31063 | ||
31064 | ||
31065 | fi | |
31066 | ||
31067 | ||
31068 | ||
31069 | fi | |
31070 | ||
31071 | ||
31072 | ||
31073 | fi | |
31074 | done | |
31075 | ||
31076 | ||
31077 | ||
31078 | for ac_func in inet_aton | |
31079 | do | |
31080 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31081 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31082 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31083 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31085 | else | |
31086 | cat >conftest.$ac_ext <<_ACEOF | |
31087 | /* confdefs.h. */ | |
31088 | _ACEOF | |
31089 | cat confdefs.h >>conftest.$ac_ext | |
31090 | cat >>conftest.$ac_ext <<_ACEOF | |
31091 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31092 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31094 | #define $ac_func innocuous_$ac_func | |
31095 | ||
a848cd7e SC |
31096 | /* System header to define __stub macros and hopefully few prototypes, |
31097 | which can conflict with char $ac_func (); below. | |
31098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31099 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31100 | |
a848cd7e SC |
31101 | #ifdef __STDC__ |
31102 | # include <limits.h> | |
31103 | #else | |
31104 | # include <assert.h> | |
31105 | #endif | |
ac1cb8d3 VS |
31106 | |
31107 | #undef $ac_func | |
31108 | ||
a848cd7e SC |
31109 | /* Override any gcc2 internal prototype to avoid an error. */ |
31110 | #ifdef __cplusplus | |
31111 | extern "C" | |
31112 | { | |
31113 | #endif | |
31114 | /* We use char because int might match the return type of a gcc2 | |
31115 | builtin and then its argument prototype would still apply. */ | |
31116 | char $ac_func (); | |
31117 | /* The GNU C library defines this for functions which it implements | |
31118 | to always fail with ENOSYS. Some functions are actually named | |
31119 | something starting with __ and the normal name is an alias. */ | |
31120 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31121 | choke me | |
31122 | #else | |
31123 | char (*f) () = $ac_func; | |
31124 | #endif | |
31125 | #ifdef __cplusplus | |
31126 | } | |
31127 | #endif | |
31128 | ||
31129 | int | |
31130 | main () | |
31131 | { | |
31132 | return f != $ac_func; | |
31133 | ; | |
31134 | return 0; | |
31135 | } | |
31136 | _ACEOF | |
31137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31139 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31140 | ac_status=$? |
ac1cb8d3 VS |
31141 | grep -v '^ *+' conftest.er1 >conftest.err |
31142 | rm -f conftest.er1 | |
31143 | cat conftest.err >&5 | |
a848cd7e SC |
31144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31145 | (exit $ac_status); } && | |
4d4ff94c | 31146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31148 | (eval $ac_try) 2>&5 | |
31149 | ac_status=$? | |
31150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31151 | (exit $ac_status); }; } && | |
31152 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31154 | (eval $ac_try) 2>&5 | |
31155 | ac_status=$? | |
31156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31157 | (exit $ac_status); }; }; then | |
31158 | eval "$as_ac_var=yes" | |
31159 | else | |
31160 | echo "$as_me: failed program was:" >&5 | |
31161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31162 | ||
31163 | eval "$as_ac_var=no" | |
31164 | fi | |
ac1cb8d3 VS |
31165 | rm -f conftest.err conftest.$ac_objext \ |
31166 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31167 | fi |
31168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31169 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31170 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31171 | cat >>confdefs.h <<_ACEOF | |
31172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31173 | _ACEOF | |
31174 | cat >>confdefs.h <<\_ACEOF | |
31175 | #define HAVE_INET_ATON 1 | |
31176 | _ACEOF | |
31177 | ||
31178 | else | |
31179 | ||
31180 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31181 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31182 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31183 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31185 | else | |
31186 | ac_check_lib_save_LIBS=$LIBS | |
31187 | LIBS="-l$INET_LINK $LIBS" | |
31188 | cat >conftest.$ac_ext <<_ACEOF | |
31189 | /* confdefs.h. */ | |
31190 | _ACEOF | |
31191 | cat confdefs.h >>conftest.$ac_ext | |
31192 | cat >>conftest.$ac_ext <<_ACEOF | |
31193 | /* end confdefs.h. */ | |
31194 | ||
31195 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31196 | #ifdef __cplusplus | |
31197 | extern "C" | |
31198 | #endif | |
31199 | /* We use char because int might match the return type of a gcc2 | |
31200 | builtin and then its argument prototype would still apply. */ | |
31201 | char inet_aton (); | |
31202 | int | |
31203 | main () | |
31204 | { | |
31205 | inet_aton (); | |
31206 | ; | |
31207 | return 0; | |
31208 | } | |
31209 | _ACEOF | |
31210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31212 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31213 | ac_status=$? |
ac1cb8d3 VS |
31214 | grep -v '^ *+' conftest.er1 >conftest.err |
31215 | rm -f conftest.er1 | |
31216 | cat conftest.err >&5 | |
a848cd7e SC |
31217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31218 | (exit $ac_status); } && | |
4d4ff94c | 31219 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31221 | (eval $ac_try) 2>&5 | |
31222 | ac_status=$? | |
31223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31224 | (exit $ac_status); }; } && | |
31225 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31227 | (eval $ac_try) 2>&5 | |
31228 | ac_status=$? | |
31229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31230 | (exit $ac_status); }; }; then | |
31231 | eval "$as_ac_Lib=yes" | |
31232 | else | |
31233 | echo "$as_me: failed program was:" >&5 | |
31234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31235 | ||
31236 | eval "$as_ac_Lib=no" | |
31237 | fi | |
ac1cb8d3 VS |
31238 | rm -f conftest.err conftest.$ac_objext \ |
31239 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31240 | LIBS=$ac_check_lib_save_LIBS |
31241 | fi | |
31242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31243 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31244 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31245 | cat >>confdefs.h <<\_ACEOF | |
31246 | #define HAVE_INET_ATON 1 | |
31247 | _ACEOF | |
31248 | ||
31249 | fi | |
31250 | ||
31251 | ||
31252 | fi | |
31253 | done | |
31254 | ||
31255 | ||
31256 | if test "x$INET_LINK" != "x"; then | |
31257 | cat >>confdefs.h <<\_ACEOF | |
31258 | #define HAVE_INET_ADDR 1 | |
31259 | _ACEOF | |
31260 | ||
31261 | INET_LINK=" -l$INET_LINK" | |
31262 | fi | |
31263 | ||
31264 | fi | |
31265 | ||
31266 | ||
31267 | ||
31268 | EXTRALIBS_ESD= | |
31269 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31270 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31271 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31273 | else | |
31274 | ac_check_lib_save_LIBS=$LIBS | |
31275 | LIBS="-lesd $LIBS" | |
31276 | cat >conftest.$ac_ext <<_ACEOF | |
31277 | /* confdefs.h. */ | |
31278 | _ACEOF | |
31279 | cat confdefs.h >>conftest.$ac_ext | |
31280 | cat >>conftest.$ac_ext <<_ACEOF | |
31281 | /* end confdefs.h. */ | |
31282 | ||
31283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31284 | #ifdef __cplusplus | |
31285 | extern "C" | |
31286 | #endif | |
31287 | /* We use char because int might match the return type of a gcc2 | |
31288 | builtin and then its argument prototype would still apply. */ | |
31289 | char esd_close (); | |
31290 | int | |
31291 | main () | |
31292 | { | |
31293 | esd_close (); | |
31294 | ; | |
31295 | return 0; | |
31296 | } | |
31297 | _ACEOF | |
31298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31300 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31301 | ac_status=$? |
ac1cb8d3 VS |
31302 | grep -v '^ *+' conftest.er1 >conftest.err |
31303 | rm -f conftest.er1 | |
31304 | cat conftest.err >&5 | |
a848cd7e SC |
31305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31306 | (exit $ac_status); } && | |
4d4ff94c | 31307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31309 | (eval $ac_try) 2>&5 | |
31310 | ac_status=$? | |
31311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31312 | (exit $ac_status); }; } && | |
31313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31315 | (eval $ac_try) 2>&5 | |
31316 | ac_status=$? | |
31317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31318 | (exit $ac_status); }; }; then | |
31319 | ac_cv_lib_esd_esd_close=yes | |
31320 | else | |
31321 | echo "$as_me: failed program was:" >&5 | |
31322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31323 | ||
31324 | ac_cv_lib_esd_esd_close=no | |
31325 | fi | |
ac1cb8d3 VS |
31326 | rm -f conftest.err conftest.$ac_objext \ |
31327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31328 | LIBS=$ac_check_lib_save_LIBS |
31329 | fi | |
31330 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31331 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31332 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31333 | ||
31334 | ||
31335 | for ac_header in esd.h | |
31336 | do | |
31337 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31338 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31339 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31343 | fi | |
31344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31345 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31346 | else | |
31347 | # Is the header compilable? | |
31348 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31349 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31350 | cat >conftest.$ac_ext <<_ACEOF | |
31351 | /* confdefs.h. */ | |
31352 | _ACEOF | |
31353 | cat confdefs.h >>conftest.$ac_ext | |
31354 | cat >>conftest.$ac_ext <<_ACEOF | |
31355 | /* end confdefs.h. */ | |
31356 | $ac_includes_default | |
31357 | #include <$ac_header> | |
31358 | _ACEOF | |
31359 | rm -f conftest.$ac_objext | |
31360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31361 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31362 | ac_status=$? |
ac1cb8d3 VS |
31363 | grep -v '^ *+' conftest.er1 >conftest.err |
31364 | rm -f conftest.er1 | |
31365 | cat conftest.err >&5 | |
a848cd7e SC |
31366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31367 | (exit $ac_status); } && | |
4d4ff94c | 31368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31370 | (eval $ac_try) 2>&5 | |
31371 | ac_status=$? | |
31372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31373 | (exit $ac_status); }; } && | |
31374 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31376 | (eval $ac_try) 2>&5 | |
31377 | ac_status=$? | |
31378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31379 | (exit $ac_status); }; }; then | |
31380 | ac_header_compiler=yes | |
31381 | else | |
31382 | echo "$as_me: failed program was:" >&5 | |
31383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31384 | ||
31385 | ac_header_compiler=no | |
31386 | fi | |
ac1cb8d3 | 31387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31388 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31389 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31390 | ||
31391 | # Is the header present? | |
31392 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31393 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31394 | cat >conftest.$ac_ext <<_ACEOF | |
31395 | /* confdefs.h. */ | |
31396 | _ACEOF | |
31397 | cat confdefs.h >>conftest.$ac_ext | |
31398 | cat >>conftest.$ac_ext <<_ACEOF | |
31399 | /* end confdefs.h. */ | |
31400 | #include <$ac_header> | |
31401 | _ACEOF | |
31402 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31403 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31404 | ac_status=$? | |
31405 | grep -v '^ *+' conftest.er1 >conftest.err | |
31406 | rm -f conftest.er1 | |
31407 | cat conftest.err >&5 | |
31408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31409 | (exit $ac_status); } >/dev/null; then | |
31410 | if test -s conftest.err; then | |
31411 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31412 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31413 | else |
31414 | ac_cpp_err= | |
31415 | fi | |
31416 | else | |
31417 | ac_cpp_err=yes | |
31418 | fi | |
31419 | if test -z "$ac_cpp_err"; then | |
31420 | ac_header_preproc=yes | |
31421 | else | |
31422 | echo "$as_me: failed program was:" >&5 | |
31423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31424 | ||
31425 | ac_header_preproc=no | |
31426 | fi | |
31427 | rm -f conftest.err conftest.$ac_ext | |
31428 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31429 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31430 | ||
31431 | # So? What about this header? | |
ac1cb8d3 VS |
31432 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31433 | yes:no: ) | |
a848cd7e SC |
31434 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31435 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31436 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31437 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31438 | ac_header_preproc=yes | |
a848cd7e | 31439 | ;; |
ac1cb8d3 | 31440 | no:yes:* ) |
a848cd7e SC |
31441 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31442 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31443 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31444 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31445 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31446 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31447 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31448 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31450 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31451 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31452 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31453 | ( |
31454 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31455 | ## ----------------------------------------- ## |
31456 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31457 | ## ----------------------------------------- ## | |
a848cd7e SC |
31458 | _ASBOX |
31459 | ) | | |
31460 | sed "s/^/$as_me: WARNING: /" >&2 | |
31461 | ;; | |
31462 | esac | |
31463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31467 | else | |
ac1cb8d3 | 31468 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31469 | fi |
31470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31471 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31472 | ||
31473 | fi | |
31474 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31475 | cat >>confdefs.h <<_ACEOF | |
31476 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31477 | _ACEOF | |
31478 | ||
31479 | EXTRALIBS_ESD="-lesd" | |
31480 | ||
31481 | fi | |
31482 | ||
31483 | done | |
31484 | ||
31485 | ||
31486 | fi | |
31487 | ||
31488 | ||
31489 | ||
31490 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31491 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31492 | cat >conftest.$ac_ext <<_ACEOF | |
31493 | /* confdefs.h. */ | |
31494 | _ACEOF | |
31495 | cat confdefs.h >>conftest.$ac_ext | |
31496 | cat >>conftest.$ac_ext <<_ACEOF | |
31497 | /* end confdefs.h. */ | |
31498 | #ifdef __linux__ | |
31499 | #include <linux/cdrom.h> | |
31500 | #else | |
31501 | /* For Solaris */ | |
31502 | #include <sys/cdio.h> | |
31503 | #endif | |
31504 | ||
31505 | int | |
31506 | main () | |
31507 | { | |
31508 | struct cdrom_tocentry entry, old_entry; | |
31509 | ; | |
31510 | return 0; | |
31511 | } | |
31512 | _ACEOF | |
31513 | rm -f conftest.$ac_objext | |
31514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31515 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31516 | ac_status=$? |
ac1cb8d3 VS |
31517 | grep -v '^ *+' conftest.er1 >conftest.err |
31518 | rm -f conftest.er1 | |
31519 | cat conftest.err >&5 | |
a848cd7e SC |
31520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31521 | (exit $ac_status); } && | |
4d4ff94c | 31522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31524 | (eval $ac_try) 2>&5 | |
31525 | ac_status=$? | |
31526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31527 | (exit $ac_status); }; } && | |
31528 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31530 | (eval $ac_try) 2>&5 | |
31531 | ac_status=$? | |
31532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31533 | (exit $ac_status); }; }; then | |
31534 | echo "$as_me:$LINENO: result: yes" >&5 | |
31535 | echo "${ECHO_T}yes" >&6 | |
31536 | cat >>confdefs.h <<\_ACEOF | |
31537 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31538 | _ACEOF | |
31539 | ||
31540 | else | |
31541 | echo "$as_me: failed program was:" >&5 | |
31542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31543 | ||
31544 | echo "$as_me:$LINENO: result: no" >&5 | |
31545 | echo "${ECHO_T}no" >&6 | |
31546 | fi | |
ac1cb8d3 | 31547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31548 | |
31549 | ||
31550 | cat >confcache <<\_ACEOF | |
31551 | # This file is a shell script that caches the results of configure | |
31552 | # tests run on this system so they can be shared between configure | |
31553 | # scripts and configure runs, see configure's option --config-cache. | |
31554 | # It is not useful on other systems. If it contains results you don't | |
31555 | # want to keep, you may remove or edit it. | |
31556 | # | |
31557 | # config.status only pays attention to the cache file if you give it | |
31558 | # the --recheck option to rerun configure. | |
31559 | # | |
31560 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31561 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31562 | # following values. | |
31563 | ||
31564 | _ACEOF | |
31565 | ||
31566 | # The following way of writing the cache mishandles newlines in values, | |
31567 | # but we know of no workaround that is simple, portable, and efficient. | |
31568 | # So, don't put newlines in cache variables' values. | |
31569 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31570 | # and sets the high bit in the cache file unless we assign to the vars. | |
31571 | { | |
31572 | (set) 2>&1 | | |
31573 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31574 | *ac_space=\ *) | |
31575 | # `set' does not quote correctly, so add quotes (double-quote | |
31576 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31577 | sed -n \ | |
ac1cb8d3 VS |
31578 | "s/'/'\\\\''/g; |
31579 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31580 | ;; |
31581 | *) | |
31582 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31583 | sed -n \ | |
ac1cb8d3 | 31584 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31585 | ;; |
31586 | esac; | |
31587 | } | | |
31588 | sed ' | |
31589 | t clear | |
31590 | : clear | |
31591 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31592 | t end | |
31593 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31594 | : end' >>confcache | |
31595 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31596 | if test -w $cache_file; then | |
31597 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31598 | cat confcache >$cache_file | |
31599 | else | |
31600 | echo "not updating unwritable cache $cache_file" | |
31601 | fi | |
31602 | fi | |
31603 | rm -f confcache | |
31604 | ||
31605 | ||
31606 | CPP_MT_FLAG= | |
31607 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31608 | ||
31609 | ||
31610 | THREADS_LINK= | |
31611 | THREADS_CFLAGS= | |
31612 | ||
31613 | if test "$wxUSE_THREADS" = "yes" ; then | |
31614 | if test "$USE_BEOS" = 1; then | |
31615 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
31616 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
31617 | wxUSE_THREADS="no" | |
31618 | fi | |
31619 | fi | |
31620 | ||
31621 | if test "$wxUSE_THREADS" = "yes" ; then | |
31622 | ||
31623 | ||
31624 | THREAD_OPTS="-pthread" | |
31625 | case "${host}" in | |
31626 | *-*-solaris2* | *-*-sunos4* ) | |
31627 | if test "x$GCC" = "xyes"; then | |
31628 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
31629 | else | |
31630 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31631 | fi | |
31632 | ;; | |
31633 | *-*-freebsd*) | |
31634 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31635 | ;; | |
31636 | *-*-darwin* | *-*-cygwin* ) | |
31637 | THREAD_OPTS="" | |
31638 | ;; | |
31639 | *-*-aix*) | |
31640 | THREAD_OPTS="pthreads" | |
31641 | ;; | |
31642 | *-hp-hpux* ) | |
31643 | if test "x$GCC" != "xyes"; then | |
31644 | THREAD_OPTS="" | |
31645 | fi | |
31646 | ;; | |
31647 | ||
31648 | *-*-irix* ) | |
31649 | if test "x$GCC" = "xyes"; then | |
31650 | THREAD_OPTS="" | |
31651 | fi | |
31652 | ;; | |
31653 | ||
31654 | *-*-*UnixWare*) | |
31655 | if test "x$GCC" != "xyes"; then | |
31656 | THREAD_OPTS="-Ethread" | |
31657 | fi | |
31658 | ;; | |
31659 | esac | |
31660 | ||
31661 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
31662 | ||
31663 | THREADS_OK=no | |
31664 | for flag in $THREAD_OPTS; do | |
31665 | case $flag in | |
31666 | none) | |
31667 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
31668 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
31669 | ;; | |
31670 | ||
31671 | -*) | |
31672 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
31673 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
31674 | THREADS_CFLAGS="$flag" | |
31675 | ;; | |
31676 | ||
31677 | *) | |
31678 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
31679 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
31680 | THREADS_LINK="-l$flag" | |
31681 | ;; | |
31682 | esac | |
31683 | ||
31684 | save_LIBS="$LIBS" | |
31685 | save_CFLAGS="$CFLAGS" | |
31686 | LIBS="$THREADS_LINK $LIBS" | |
31687 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
31688 | ||
31689 | cat >conftest.$ac_ext <<_ACEOF | |
31690 | /* confdefs.h. */ | |
31691 | _ACEOF | |
31692 | cat confdefs.h >>conftest.$ac_ext | |
31693 | cat >>conftest.$ac_ext <<_ACEOF | |
31694 | /* end confdefs.h. */ | |
31695 | #include <pthread.h> | |
31696 | int | |
31697 | main () | |
31698 | { | |
31699 | pthread_create(0,0,0,0); | |
31700 | ; | |
31701 | return 0; | |
31702 | } | |
31703 | _ACEOF | |
31704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31706 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31707 | ac_status=$? |
ac1cb8d3 VS |
31708 | grep -v '^ *+' conftest.er1 >conftest.err |
31709 | rm -f conftest.er1 | |
31710 | cat conftest.err >&5 | |
a848cd7e SC |
31711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31712 | (exit $ac_status); } && | |
4d4ff94c | 31713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31715 | (eval $ac_try) 2>&5 | |
31716 | ac_status=$? | |
31717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31718 | (exit $ac_status); }; } && | |
31719 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31721 | (eval $ac_try) 2>&5 | |
31722 | ac_status=$? | |
31723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31724 | (exit $ac_status); }; }; then | |
31725 | THREADS_OK=yes | |
31726 | else | |
31727 | echo "$as_me: failed program was:" >&5 | |
31728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31729 | ||
31730 | fi | |
ac1cb8d3 VS |
31731 | rm -f conftest.err conftest.$ac_objext \ |
31732 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31733 | |
31734 | LIBS="$save_LIBS" | |
31735 | CFLAGS="$save_CFLAGS" | |
31736 | ||
31737 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
31738 | echo "${ECHO_T}$THREADS_OK" >&6 | |
31739 | if test "x$THREADS_OK" = "xyes"; then | |
31740 | break; | |
31741 | fi | |
31742 | ||
31743 | THREADS_LINK="" | |
31744 | THREADS_CFLAGS="" | |
31745 | done | |
31746 | ||
31747 | if test "x$THREADS_OK" != "xyes"; then | |
31748 | wxUSE_THREADS=no | |
31749 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
31750 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
31751 | else | |
31752 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
31753 | LIBS="$THREADS_LINK $LIBS" | |
31754 | ||
31755 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
31756 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
31757 | flag=no | |
31758 | case "${host}" in | |
31759 | *-aix*) | |
31760 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31761 | flag="-D_THREAD_SAFE" | |
31762 | ;; | |
31763 | *-freebsd*) | |
31764 | flag="-D_THREAD_SAFE" | |
31765 | ;; | |
31766 | *-hp-hpux* ) | |
31767 | flag="-D_REENTRANT" | |
31768 | if test "x$GCC" != "xyes"; then | |
31769 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
31770 | |
31771 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
31772 | fi |
31773 | ;; | |
31774 | *solaris* | alpha*-osf*) | |
31775 | flag="-D_REENTRANT" | |
31776 | ;; | |
31777 | esac | |
31778 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
31779 | echo "${ECHO_T}${flag}" >&6 | |
31780 | if test "x$flag" != xno; then | |
31781 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
31782 | fi | |
31783 | ||
31784 | if test "x$THREADS_CFLAGS" != "x"; then | |
31785 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
31786 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
31787 | fi | |
31788 | fi | |
31789 | fi | |
31790 | ||
31791 | if test "$wxUSE_THREADS" = "yes" ; then | |
31792 | ||
31793 | for ac_func in thr_setconcurrency | |
31794 | do | |
31795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31796 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31798 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31800 | else | |
31801 | cat >conftest.$ac_ext <<_ACEOF | |
31802 | /* confdefs.h. */ | |
31803 | _ACEOF | |
31804 | cat confdefs.h >>conftest.$ac_ext | |
31805 | cat >>conftest.$ac_ext <<_ACEOF | |
31806 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31809 | #define $ac_func innocuous_$ac_func | |
31810 | ||
a848cd7e SC |
31811 | /* System header to define __stub macros and hopefully few prototypes, |
31812 | which can conflict with char $ac_func (); below. | |
31813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31814 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31815 | |
a848cd7e SC |
31816 | #ifdef __STDC__ |
31817 | # include <limits.h> | |
31818 | #else | |
31819 | # include <assert.h> | |
31820 | #endif | |
ac1cb8d3 VS |
31821 | |
31822 | #undef $ac_func | |
31823 | ||
a848cd7e SC |
31824 | /* Override any gcc2 internal prototype to avoid an error. */ |
31825 | #ifdef __cplusplus | |
31826 | extern "C" | |
31827 | { | |
31828 | #endif | |
31829 | /* We use char because int might match the return type of a gcc2 | |
31830 | builtin and then its argument prototype would still apply. */ | |
31831 | char $ac_func (); | |
31832 | /* The GNU C library defines this for functions which it implements | |
31833 | to always fail with ENOSYS. Some functions are actually named | |
31834 | something starting with __ and the normal name is an alias. */ | |
31835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31836 | choke me | |
31837 | #else | |
31838 | char (*f) () = $ac_func; | |
31839 | #endif | |
31840 | #ifdef __cplusplus | |
31841 | } | |
31842 | #endif | |
31843 | ||
31844 | int | |
31845 | main () | |
31846 | { | |
31847 | return f != $ac_func; | |
31848 | ; | |
31849 | return 0; | |
31850 | } | |
31851 | _ACEOF | |
31852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31854 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31855 | ac_status=$? |
ac1cb8d3 VS |
31856 | grep -v '^ *+' conftest.er1 >conftest.err |
31857 | rm -f conftest.er1 | |
31858 | cat conftest.err >&5 | |
a848cd7e SC |
31859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31860 | (exit $ac_status); } && | |
4d4ff94c | 31861 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31863 | (eval $ac_try) 2>&5 | |
31864 | ac_status=$? | |
31865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31866 | (exit $ac_status); }; } && | |
31867 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31869 | (eval $ac_try) 2>&5 | |
31870 | ac_status=$? | |
31871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31872 | (exit $ac_status); }; }; then | |
31873 | eval "$as_ac_var=yes" | |
31874 | else | |
31875 | echo "$as_me: failed program was:" >&5 | |
31876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31877 | ||
31878 | eval "$as_ac_var=no" | |
31879 | fi | |
ac1cb8d3 VS |
31880 | rm -f conftest.err conftest.$ac_objext \ |
31881 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31882 | fi |
31883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31884 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31885 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31886 | cat >>confdefs.h <<_ACEOF | |
31887 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31888 | _ACEOF | |
31889 | ||
31890 | fi | |
31891 | done | |
31892 | ||
31893 | ||
31894 | ||
31895 | for ac_header in sched.h | |
31896 | do | |
31897 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31903 | fi | |
31904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31906 | else | |
31907 | # Is the header compilable? | |
31908 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31909 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31910 | cat >conftest.$ac_ext <<_ACEOF | |
31911 | /* confdefs.h. */ | |
31912 | _ACEOF | |
31913 | cat confdefs.h >>conftest.$ac_ext | |
31914 | cat >>conftest.$ac_ext <<_ACEOF | |
31915 | /* end confdefs.h. */ | |
31916 | $ac_includes_default | |
31917 | #include <$ac_header> | |
31918 | _ACEOF | |
31919 | rm -f conftest.$ac_objext | |
31920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31921 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31922 | ac_status=$? |
ac1cb8d3 VS |
31923 | grep -v '^ *+' conftest.er1 >conftest.err |
31924 | rm -f conftest.er1 | |
31925 | cat conftest.err >&5 | |
a848cd7e SC |
31926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31927 | (exit $ac_status); } && | |
4d4ff94c | 31928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31930 | (eval $ac_try) 2>&5 | |
31931 | ac_status=$? | |
31932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31933 | (exit $ac_status); }; } && | |
31934 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31936 | (eval $ac_try) 2>&5 | |
31937 | ac_status=$? | |
31938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31939 | (exit $ac_status); }; }; then | |
31940 | ac_header_compiler=yes | |
31941 | else | |
31942 | echo "$as_me: failed program was:" >&5 | |
31943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31944 | ||
31945 | ac_header_compiler=no | |
31946 | fi | |
ac1cb8d3 | 31947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31948 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31949 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31950 | ||
31951 | # Is the header present? | |
31952 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31954 | cat >conftest.$ac_ext <<_ACEOF | |
31955 | /* confdefs.h. */ | |
31956 | _ACEOF | |
31957 | cat confdefs.h >>conftest.$ac_ext | |
31958 | cat >>conftest.$ac_ext <<_ACEOF | |
31959 | /* end confdefs.h. */ | |
31960 | #include <$ac_header> | |
31961 | _ACEOF | |
31962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31964 | ac_status=$? | |
31965 | grep -v '^ *+' conftest.er1 >conftest.err | |
31966 | rm -f conftest.er1 | |
31967 | cat conftest.err >&5 | |
31968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31969 | (exit $ac_status); } >/dev/null; then | |
31970 | if test -s conftest.err; then | |
31971 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31973 | else |
31974 | ac_cpp_err= | |
31975 | fi | |
31976 | else | |
31977 | ac_cpp_err=yes | |
31978 | fi | |
31979 | if test -z "$ac_cpp_err"; then | |
31980 | ac_header_preproc=yes | |
31981 | else | |
31982 | echo "$as_me: failed program was:" >&5 | |
31983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31984 | ||
31985 | ac_header_preproc=no | |
31986 | fi | |
31987 | rm -f conftest.err conftest.$ac_ext | |
31988 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31989 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31990 | ||
31991 | # So? What about this header? | |
ac1cb8d3 VS |
31992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31993 | yes:no: ) | |
a848cd7e SC |
31994 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31995 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31997 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31998 | ac_header_preproc=yes | |
a848cd7e | 31999 | ;; |
ac1cb8d3 | 32000 | no:yes:* ) |
a848cd7e SC |
32001 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32002 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32003 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32004 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32005 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32006 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32007 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32008 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32010 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32011 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32012 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32013 | ( |
32014 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32015 | ## ----------------------------------------- ## |
32016 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32017 | ## ----------------------------------------- ## | |
a848cd7e SC |
32018 | _ASBOX |
32019 | ) | | |
32020 | sed "s/^/$as_me: WARNING: /" >&2 | |
32021 | ;; | |
32022 | esac | |
32023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32027 | else | |
ac1cb8d3 | 32028 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32029 | fi |
32030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32032 | ||
32033 | fi | |
32034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32035 | cat >>confdefs.h <<_ACEOF | |
32036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32037 | _ACEOF | |
32038 | ||
32039 | fi | |
32040 | ||
32041 | done | |
32042 | ||
32043 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32044 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32045 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32046 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32048 | else | |
32049 | cat >conftest.$ac_ext <<_ACEOF | |
32050 | /* confdefs.h. */ | |
32051 | _ACEOF | |
32052 | cat confdefs.h >>conftest.$ac_ext | |
32053 | cat >>conftest.$ac_ext <<_ACEOF | |
32054 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32055 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32057 | #define sched_yield innocuous_sched_yield | |
32058 | ||
a848cd7e SC |
32059 | /* System header to define __stub macros and hopefully few prototypes, |
32060 | which can conflict with char sched_yield (); below. | |
32061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32062 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32063 | |
a848cd7e SC |
32064 | #ifdef __STDC__ |
32065 | # include <limits.h> | |
32066 | #else | |
32067 | # include <assert.h> | |
32068 | #endif | |
ac1cb8d3 VS |
32069 | |
32070 | #undef sched_yield | |
32071 | ||
a848cd7e SC |
32072 | /* Override any gcc2 internal prototype to avoid an error. */ |
32073 | #ifdef __cplusplus | |
32074 | extern "C" | |
32075 | { | |
32076 | #endif | |
32077 | /* We use char because int might match the return type of a gcc2 | |
32078 | builtin and then its argument prototype would still apply. */ | |
32079 | char sched_yield (); | |
32080 | /* The GNU C library defines this for functions which it implements | |
32081 | to always fail with ENOSYS. Some functions are actually named | |
32082 | something starting with __ and the normal name is an alias. */ | |
32083 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32084 | choke me | |
32085 | #else | |
32086 | char (*f) () = sched_yield; | |
32087 | #endif | |
32088 | #ifdef __cplusplus | |
32089 | } | |
32090 | #endif | |
32091 | ||
32092 | int | |
32093 | main () | |
32094 | { | |
32095 | return f != sched_yield; | |
32096 | ; | |
32097 | return 0; | |
32098 | } | |
32099 | _ACEOF | |
32100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32102 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32103 | ac_status=$? |
ac1cb8d3 VS |
32104 | grep -v '^ *+' conftest.er1 >conftest.err |
32105 | rm -f conftest.er1 | |
32106 | cat conftest.err >&5 | |
a848cd7e SC |
32107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32108 | (exit $ac_status); } && | |
4d4ff94c | 32109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32111 | (eval $ac_try) 2>&5 | |
32112 | ac_status=$? | |
32113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32114 | (exit $ac_status); }; } && | |
32115 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32117 | (eval $ac_try) 2>&5 | |
32118 | ac_status=$? | |
32119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32120 | (exit $ac_status); }; }; then | |
32121 | ac_cv_func_sched_yield=yes | |
32122 | else | |
32123 | echo "$as_me: failed program was:" >&5 | |
32124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32125 | ||
32126 | ac_cv_func_sched_yield=no | |
32127 | fi | |
ac1cb8d3 VS |
32128 | rm -f conftest.err conftest.$ac_objext \ |
32129 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32130 | fi |
32131 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32132 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32133 | if test $ac_cv_func_sched_yield = yes; then | |
32134 | cat >>confdefs.h <<\_ACEOF | |
32135 | #define HAVE_SCHED_YIELD 1 | |
32136 | _ACEOF | |
32137 | ||
32138 | else | |
32139 | ||
32140 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32141 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32142 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32144 | else | |
32145 | ac_check_lib_save_LIBS=$LIBS | |
32146 | LIBS="-lposix4 $LIBS" | |
32147 | cat >conftest.$ac_ext <<_ACEOF | |
32148 | /* confdefs.h. */ | |
32149 | _ACEOF | |
32150 | cat confdefs.h >>conftest.$ac_ext | |
32151 | cat >>conftest.$ac_ext <<_ACEOF | |
32152 | /* end confdefs.h. */ | |
32153 | ||
32154 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32155 | #ifdef __cplusplus | |
32156 | extern "C" | |
32157 | #endif | |
32158 | /* We use char because int might match the return type of a gcc2 | |
32159 | builtin and then its argument prototype would still apply. */ | |
32160 | char sched_yield (); | |
32161 | int | |
32162 | main () | |
32163 | { | |
32164 | sched_yield (); | |
32165 | ; | |
32166 | return 0; | |
32167 | } | |
32168 | _ACEOF | |
32169 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32171 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32172 | ac_status=$? |
ac1cb8d3 VS |
32173 | grep -v '^ *+' conftest.er1 >conftest.err |
32174 | rm -f conftest.er1 | |
32175 | cat conftest.err >&5 | |
a848cd7e SC |
32176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32177 | (exit $ac_status); } && | |
4d4ff94c | 32178 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32180 | (eval $ac_try) 2>&5 | |
32181 | ac_status=$? | |
32182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32183 | (exit $ac_status); }; } && | |
32184 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32186 | (eval $ac_try) 2>&5 | |
32187 | ac_status=$? | |
32188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32189 | (exit $ac_status); }; }; then | |
32190 | ac_cv_lib_posix4_sched_yield=yes | |
32191 | else | |
32192 | echo "$as_me: failed program was:" >&5 | |
32193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32194 | ||
32195 | ac_cv_lib_posix4_sched_yield=no | |
32196 | fi | |
ac1cb8d3 VS |
32197 | rm -f conftest.err conftest.$ac_objext \ |
32198 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32199 | LIBS=$ac_check_lib_save_LIBS |
32200 | fi | |
32201 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32202 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32203 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32204 | cat >>confdefs.h <<\_ACEOF | |
32205 | #define HAVE_SCHED_YIELD 1 | |
32206 | _ACEOF | |
32207 | POSIX4_LINK=" -lposix4" | |
32208 | else | |
32209 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32210 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32211 | ||
32212 | fi | |
32213 | ||
32214 | ||
32215 | ||
32216 | fi | |
32217 | ||
32218 | fi | |
32219 | ||
32220 | HAVE_PRIOR_FUNCS=0 | |
32221 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32222 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32223 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32225 | else | |
32226 | cat >conftest.$ac_ext <<_ACEOF | |
32227 | /* confdefs.h. */ | |
32228 | _ACEOF | |
32229 | cat confdefs.h >>conftest.$ac_ext | |
32230 | cat >>conftest.$ac_ext <<_ACEOF | |
32231 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32232 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32234 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32235 | ||
a848cd7e SC |
32236 | /* System header to define __stub macros and hopefully few prototypes, |
32237 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32239 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32240 | |
a848cd7e SC |
32241 | #ifdef __STDC__ |
32242 | # include <limits.h> | |
32243 | #else | |
32244 | # include <assert.h> | |
32245 | #endif | |
ac1cb8d3 VS |
32246 | |
32247 | #undef pthread_attr_getschedpolicy | |
32248 | ||
a848cd7e SC |
32249 | /* Override any gcc2 internal prototype to avoid an error. */ |
32250 | #ifdef __cplusplus | |
32251 | extern "C" | |
32252 | { | |
32253 | #endif | |
32254 | /* We use char because int might match the return type of a gcc2 | |
32255 | builtin and then its argument prototype would still apply. */ | |
32256 | char pthread_attr_getschedpolicy (); | |
32257 | /* The GNU C library defines this for functions which it implements | |
32258 | to always fail with ENOSYS. Some functions are actually named | |
32259 | something starting with __ and the normal name is an alias. */ | |
32260 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32261 | choke me | |
32262 | #else | |
32263 | char (*f) () = pthread_attr_getschedpolicy; | |
32264 | #endif | |
32265 | #ifdef __cplusplus | |
32266 | } | |
32267 | #endif | |
32268 | ||
32269 | int | |
32270 | main () | |
32271 | { | |
32272 | return f != pthread_attr_getschedpolicy; | |
32273 | ; | |
32274 | return 0; | |
32275 | } | |
32276 | _ACEOF | |
32277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32279 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32280 | ac_status=$? |
ac1cb8d3 VS |
32281 | grep -v '^ *+' conftest.er1 >conftest.err |
32282 | rm -f conftest.er1 | |
32283 | cat conftest.err >&5 | |
a848cd7e SC |
32284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32285 | (exit $ac_status); } && | |
4d4ff94c | 32286 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32288 | (eval $ac_try) 2>&5 | |
32289 | ac_status=$? | |
32290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32291 | (exit $ac_status); }; } && | |
32292 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32294 | (eval $ac_try) 2>&5 | |
32295 | ac_status=$? | |
32296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32297 | (exit $ac_status); }; }; then | |
32298 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32299 | else | |
32300 | echo "$as_me: failed program was:" >&5 | |
32301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32302 | ||
32303 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32304 | fi | |
ac1cb8d3 VS |
32305 | rm -f conftest.err conftest.$ac_objext \ |
32306 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32307 | fi |
32308 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32309 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32310 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32311 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32312 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32313 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32315 | else | |
32316 | cat >conftest.$ac_ext <<_ACEOF | |
32317 | /* confdefs.h. */ | |
32318 | _ACEOF | |
32319 | cat confdefs.h >>conftest.$ac_ext | |
32320 | cat >>conftest.$ac_ext <<_ACEOF | |
32321 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32322 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32323 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32324 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32325 | ||
a848cd7e SC |
32326 | /* System header to define __stub macros and hopefully few prototypes, |
32327 | which can conflict with char pthread_attr_setschedparam (); below. | |
32328 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32329 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32330 | |
a848cd7e SC |
32331 | #ifdef __STDC__ |
32332 | # include <limits.h> | |
32333 | #else | |
32334 | # include <assert.h> | |
32335 | #endif | |
ac1cb8d3 VS |
32336 | |
32337 | #undef pthread_attr_setschedparam | |
32338 | ||
a848cd7e SC |
32339 | /* Override any gcc2 internal prototype to avoid an error. */ |
32340 | #ifdef __cplusplus | |
32341 | extern "C" | |
32342 | { | |
32343 | #endif | |
32344 | /* We use char because int might match the return type of a gcc2 | |
32345 | builtin and then its argument prototype would still apply. */ | |
32346 | char pthread_attr_setschedparam (); | |
32347 | /* The GNU C library defines this for functions which it implements | |
32348 | to always fail with ENOSYS. Some functions are actually named | |
32349 | something starting with __ and the normal name is an alias. */ | |
32350 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32351 | choke me | |
32352 | #else | |
32353 | char (*f) () = pthread_attr_setschedparam; | |
32354 | #endif | |
32355 | #ifdef __cplusplus | |
32356 | } | |
32357 | #endif | |
32358 | ||
32359 | int | |
32360 | main () | |
32361 | { | |
32362 | return f != pthread_attr_setschedparam; | |
32363 | ; | |
32364 | return 0; | |
32365 | } | |
32366 | _ACEOF | |
32367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32369 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32370 | ac_status=$? |
ac1cb8d3 VS |
32371 | grep -v '^ *+' conftest.er1 >conftest.err |
32372 | rm -f conftest.er1 | |
32373 | cat conftest.err >&5 | |
a848cd7e SC |
32374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32375 | (exit $ac_status); } && | |
4d4ff94c | 32376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32378 | (eval $ac_try) 2>&5 | |
32379 | ac_status=$? | |
32380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32381 | (exit $ac_status); }; } && | |
32382 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32384 | (eval $ac_try) 2>&5 | |
32385 | ac_status=$? | |
32386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32387 | (exit $ac_status); }; }; then | |
32388 | ac_cv_func_pthread_attr_setschedparam=yes | |
32389 | else | |
32390 | echo "$as_me: failed program was:" >&5 | |
32391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32392 | ||
32393 | ac_cv_func_pthread_attr_setschedparam=no | |
32394 | fi | |
ac1cb8d3 VS |
32395 | rm -f conftest.err conftest.$ac_objext \ |
32396 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32397 | fi |
32398 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32399 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32400 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32401 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32402 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32403 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32405 | else | |
32406 | cat >conftest.$ac_ext <<_ACEOF | |
32407 | /* confdefs.h. */ | |
32408 | _ACEOF | |
32409 | cat confdefs.h >>conftest.$ac_ext | |
32410 | cat >>conftest.$ac_ext <<_ACEOF | |
32411 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32412 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32413 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32414 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32415 | ||
a848cd7e SC |
32416 | /* System header to define __stub macros and hopefully few prototypes, |
32417 | which can conflict with char sched_get_priority_max (); below. | |
32418 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32419 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32420 | |
a848cd7e SC |
32421 | #ifdef __STDC__ |
32422 | # include <limits.h> | |
32423 | #else | |
32424 | # include <assert.h> | |
32425 | #endif | |
ac1cb8d3 VS |
32426 | |
32427 | #undef sched_get_priority_max | |
32428 | ||
a848cd7e SC |
32429 | /* Override any gcc2 internal prototype to avoid an error. */ |
32430 | #ifdef __cplusplus | |
32431 | extern "C" | |
32432 | { | |
32433 | #endif | |
32434 | /* We use char because int might match the return type of a gcc2 | |
32435 | builtin and then its argument prototype would still apply. */ | |
32436 | char sched_get_priority_max (); | |
32437 | /* The GNU C library defines this for functions which it implements | |
32438 | to always fail with ENOSYS. Some functions are actually named | |
32439 | something starting with __ and the normal name is an alias. */ | |
32440 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32441 | choke me | |
32442 | #else | |
32443 | char (*f) () = sched_get_priority_max; | |
32444 | #endif | |
32445 | #ifdef __cplusplus | |
32446 | } | |
32447 | #endif | |
32448 | ||
32449 | int | |
32450 | main () | |
32451 | { | |
32452 | return f != sched_get_priority_max; | |
32453 | ; | |
32454 | return 0; | |
32455 | } | |
32456 | _ACEOF | |
32457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32459 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32460 | ac_status=$? |
ac1cb8d3 VS |
32461 | grep -v '^ *+' conftest.er1 >conftest.err |
32462 | rm -f conftest.er1 | |
32463 | cat conftest.err >&5 | |
a848cd7e SC |
32464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32465 | (exit $ac_status); } && | |
4d4ff94c | 32466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32468 | (eval $ac_try) 2>&5 | |
32469 | ac_status=$? | |
32470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32471 | (exit $ac_status); }; } && | |
32472 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32474 | (eval $ac_try) 2>&5 | |
32475 | ac_status=$? | |
32476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32477 | (exit $ac_status); }; }; then | |
32478 | ac_cv_func_sched_get_priority_max=yes | |
32479 | else | |
32480 | echo "$as_me: failed program was:" >&5 | |
32481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32482 | ||
32483 | ac_cv_func_sched_get_priority_max=no | |
32484 | fi | |
ac1cb8d3 VS |
32485 | rm -f conftest.err conftest.$ac_objext \ |
32486 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32487 | fi |
32488 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32489 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32490 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32491 | HAVE_PRIOR_FUNCS=1 | |
32492 | else | |
32493 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32494 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32495 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32497 | else | |
32498 | ac_check_lib_save_LIBS=$LIBS | |
32499 | LIBS="-lposix4 $LIBS" | |
32500 | cat >conftest.$ac_ext <<_ACEOF | |
32501 | /* confdefs.h. */ | |
32502 | _ACEOF | |
32503 | cat confdefs.h >>conftest.$ac_ext | |
32504 | cat >>conftest.$ac_ext <<_ACEOF | |
32505 | /* end confdefs.h. */ | |
32506 | ||
32507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32508 | #ifdef __cplusplus | |
32509 | extern "C" | |
32510 | #endif | |
32511 | /* We use char because int might match the return type of a gcc2 | |
32512 | builtin and then its argument prototype would still apply. */ | |
32513 | char sched_get_priority_max (); | |
32514 | int | |
32515 | main () | |
32516 | { | |
32517 | sched_get_priority_max (); | |
32518 | ; | |
32519 | return 0; | |
32520 | } | |
32521 | _ACEOF | |
32522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32524 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32525 | ac_status=$? |
ac1cb8d3 VS |
32526 | grep -v '^ *+' conftest.er1 >conftest.err |
32527 | rm -f conftest.er1 | |
32528 | cat conftest.err >&5 | |
a848cd7e SC |
32529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32530 | (exit $ac_status); } && | |
4d4ff94c | 32531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32533 | (eval $ac_try) 2>&5 | |
32534 | ac_status=$? | |
32535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32536 | (exit $ac_status); }; } && | |
32537 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32539 | (eval $ac_try) 2>&5 | |
32540 | ac_status=$? | |
32541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32542 | (exit $ac_status); }; }; then | |
32543 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32544 | else | |
32545 | echo "$as_me: failed program was:" >&5 | |
32546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32547 | ||
32548 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32549 | fi | |
ac1cb8d3 VS |
32550 | rm -f conftest.err conftest.$ac_objext \ |
32551 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32552 | LIBS=$ac_check_lib_save_LIBS |
32553 | fi | |
32554 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32555 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32556 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32557 | ||
32558 | HAVE_PRIOR_FUNCS=1 | |
32559 | POSIX4_LINK=" -lposix4" | |
32560 | ||
32561 | fi | |
32562 | ||
32563 | ||
32564 | fi | |
32565 | ||
32566 | ||
32567 | fi | |
32568 | ||
32569 | ||
32570 | fi | |
32571 | ||
32572 | ||
32573 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32574 | cat >>confdefs.h <<\_ACEOF | |
32575 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32576 | _ACEOF | |
32577 | ||
32578 | else | |
32579 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32580 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32581 | fi | |
32582 | ||
32583 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32584 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32585 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32587 | else | |
32588 | cat >conftest.$ac_ext <<_ACEOF | |
32589 | /* confdefs.h. */ | |
32590 | _ACEOF | |
32591 | cat confdefs.h >>conftest.$ac_ext | |
32592 | cat >>conftest.$ac_ext <<_ACEOF | |
32593 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32594 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32595 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32596 | #define pthread_cancel innocuous_pthread_cancel | |
32597 | ||
a848cd7e SC |
32598 | /* System header to define __stub macros and hopefully few prototypes, |
32599 | which can conflict with char pthread_cancel (); below. | |
32600 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32601 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32602 | |
a848cd7e SC |
32603 | #ifdef __STDC__ |
32604 | # include <limits.h> | |
32605 | #else | |
32606 | # include <assert.h> | |
32607 | #endif | |
ac1cb8d3 VS |
32608 | |
32609 | #undef pthread_cancel | |
32610 | ||
a848cd7e SC |
32611 | /* Override any gcc2 internal prototype to avoid an error. */ |
32612 | #ifdef __cplusplus | |
32613 | extern "C" | |
32614 | { | |
32615 | #endif | |
32616 | /* We use char because int might match the return type of a gcc2 | |
32617 | builtin and then its argument prototype would still apply. */ | |
32618 | char pthread_cancel (); | |
32619 | /* The GNU C library defines this for functions which it implements | |
32620 | to always fail with ENOSYS. Some functions are actually named | |
32621 | something starting with __ and the normal name is an alias. */ | |
32622 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32623 | choke me | |
32624 | #else | |
32625 | char (*f) () = pthread_cancel; | |
32626 | #endif | |
32627 | #ifdef __cplusplus | |
32628 | } | |
32629 | #endif | |
32630 | ||
32631 | int | |
32632 | main () | |
32633 | { | |
32634 | return f != pthread_cancel; | |
32635 | ; | |
32636 | return 0; | |
32637 | } | |
32638 | _ACEOF | |
32639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32641 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32642 | ac_status=$? |
ac1cb8d3 VS |
32643 | grep -v '^ *+' conftest.er1 >conftest.err |
32644 | rm -f conftest.er1 | |
32645 | cat conftest.err >&5 | |
a848cd7e SC |
32646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32647 | (exit $ac_status); } && | |
4d4ff94c | 32648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32650 | (eval $ac_try) 2>&5 | |
32651 | ac_status=$? | |
32652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32653 | (exit $ac_status); }; } && | |
32654 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32656 | (eval $ac_try) 2>&5 | |
32657 | ac_status=$? | |
32658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32659 | (exit $ac_status); }; }; then | |
32660 | ac_cv_func_pthread_cancel=yes | |
32661 | else | |
32662 | echo "$as_me: failed program was:" >&5 | |
32663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32664 | ||
32665 | ac_cv_func_pthread_cancel=no | |
32666 | fi | |
ac1cb8d3 VS |
32667 | rm -f conftest.err conftest.$ac_objext \ |
32668 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32669 | fi |
32670 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32671 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32672 | if test $ac_cv_func_pthread_cancel = yes; then | |
32673 | cat >>confdefs.h <<\_ACEOF | |
32674 | #define HAVE_PTHREAD_CANCEL 1 | |
32675 | _ACEOF | |
32676 | ||
32677 | else | |
32678 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
32679 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
32680 | fi | |
32681 | ||
32682 | ||
32683 | ||
32684 | ||
32685 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32686 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32687 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32689 | else | |
32690 | ||
32691 | cat >conftest.$ac_ext <<_ACEOF | |
32692 | /* confdefs.h. */ | |
32693 | _ACEOF | |
32694 | cat confdefs.h >>conftest.$ac_ext | |
32695 | cat >>conftest.$ac_ext <<_ACEOF | |
32696 | /* end confdefs.h. */ | |
32697 | #include <pthread.h> | |
32698 | int | |
32699 | main () | |
32700 | { | |
32701 | ||
32702 | pthread_mutexattr_t attr; | |
32703 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
32704 | ||
32705 | ; | |
32706 | return 0; | |
32707 | } | |
32708 | _ACEOF | |
32709 | rm -f conftest.$ac_objext | |
32710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32711 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32712 | ac_status=$? |
ac1cb8d3 VS |
32713 | grep -v '^ *+' conftest.er1 >conftest.err |
32714 | rm -f conftest.er1 | |
32715 | cat conftest.err >&5 | |
a848cd7e SC |
32716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32717 | (exit $ac_status); } && | |
4d4ff94c | 32718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32720 | (eval $ac_try) 2>&5 | |
32721 | ac_status=$? | |
32722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32723 | (exit $ac_status); }; } && | |
32724 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32726 | (eval $ac_try) 2>&5 | |
32727 | ac_status=$? | |
32728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32729 | (exit $ac_status); }; }; then | |
32730 | ||
32731 | wx_cv_type_pthread_mutexattr_t=yes | |
32732 | ||
32733 | else | |
32734 | echo "$as_me: failed program was:" >&5 | |
32735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32736 | ||
32737 | ||
32738 | wx_cv_type_pthread_mutexattr_t=no | |
32739 | ||
32740 | ||
32741 | fi | |
ac1cb8d3 | 32742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32743 | |
32744 | fi | |
32745 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32746 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
32747 | ||
32748 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
32749 | cat >>confdefs.h <<\_ACEOF | |
32750 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
32751 | _ACEOF | |
32752 | ||
32753 | else | |
32754 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
32755 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32756 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32758 | else | |
32759 | ||
32760 | cat >conftest.$ac_ext <<_ACEOF | |
32761 | /* confdefs.h. */ | |
32762 | _ACEOF | |
32763 | cat confdefs.h >>conftest.$ac_ext | |
32764 | cat >>conftest.$ac_ext <<_ACEOF | |
32765 | /* end confdefs.h. */ | |
32766 | #include <pthread.h> | |
32767 | int | |
32768 | main () | |
32769 | { | |
32770 | ||
32771 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
32772 | ||
32773 | ; | |
32774 | return 0; | |
32775 | } | |
32776 | _ACEOF | |
32777 | rm -f conftest.$ac_objext | |
32778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32779 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32780 | ac_status=$? |
ac1cb8d3 VS |
32781 | grep -v '^ *+' conftest.er1 >conftest.err |
32782 | rm -f conftest.er1 | |
32783 | cat conftest.err >&5 | |
a848cd7e SC |
32784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32785 | (exit $ac_status); } && | |
4d4ff94c | 32786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32788 | (eval $ac_try) 2>&5 | |
32789 | ac_status=$? | |
32790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32791 | (exit $ac_status); }; } && | |
32792 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32794 | (eval $ac_try) 2>&5 | |
32795 | ac_status=$? | |
32796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32797 | (exit $ac_status); }; }; then | |
32798 | ||
32799 | wx_cv_type_pthread_rec_mutex_init=yes | |
32800 | ||
32801 | else | |
32802 | echo "$as_me: failed program was:" >&5 | |
32803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32804 | ||
32805 | ||
32806 | wx_cv_type_pthread_rec_mutex_init=no | |
32807 | ||
32808 | ||
32809 | fi | |
ac1cb8d3 | 32810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32811 | |
32812 | fi | |
32813 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
32814 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
32815 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
32816 | cat >>confdefs.h <<\_ACEOF | |
32817 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
32818 | _ACEOF | |
32819 | ||
32820 | else | |
32821 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
32822 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
32823 | fi | |
32824 | fi | |
32825 | fi | |
32826 | ||
32827 | else | |
32828 | if test "$wxUSE_THREADS" = "yes" ; then | |
32829 | case "${host}" in | |
32830 | *-*-mingw32* ) | |
32831 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
32832 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
32833 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
32834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32835 | else | |
32836 | ||
32837 | CFLAGS_OLD="$CFLAGS" | |
32838 | CFLAGS="$CFLAGS -mthreads" | |
32839 | cat >conftest.$ac_ext <<_ACEOF | |
32840 | /* confdefs.h. */ | |
32841 | _ACEOF | |
32842 | cat confdefs.h >>conftest.$ac_ext | |
32843 | cat >>conftest.$ac_ext <<_ACEOF | |
32844 | /* end confdefs.h. */ | |
32845 | ||
32846 | int | |
32847 | main () | |
32848 | { | |
32849 | ||
32850 | ; | |
32851 | return 0; | |
32852 | } | |
32853 | _ACEOF | |
32854 | rm -f conftest.$ac_objext | |
32855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32856 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32857 | ac_status=$? |
ac1cb8d3 VS |
32858 | grep -v '^ *+' conftest.er1 >conftest.err |
32859 | rm -f conftest.er1 | |
32860 | cat conftest.err >&5 | |
a848cd7e SC |
32861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32862 | (exit $ac_status); } && | |
4d4ff94c | 32863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32865 | (eval $ac_try) 2>&5 | |
32866 | ac_status=$? | |
32867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32868 | (exit $ac_status); }; } && | |
32869 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32871 | (eval $ac_try) 2>&5 | |
32872 | ac_status=$? | |
32873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32874 | (exit $ac_status); }; }; then | |
32875 | wx_cv_cflags_mthread=yes | |
32876 | else | |
32877 | echo "$as_me: failed program was:" >&5 | |
32878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32879 | ||
32880 | wx_cv_cflags_mthread=no | |
32881 | ||
32882 | fi | |
ac1cb8d3 | 32883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32884 | |
32885 | ||
32886 | fi | |
32887 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
32888 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
32889 | ||
32890 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
32891 | CXXFLAGS="$CXXFLAGS -mthreads" | |
32892 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
32893 | LDFLAGS="$LDFLAGS -mthreads" | |
32894 | else | |
32895 | CFLAGS="$CFLAGS_OLD" | |
32896 | fi | |
32897 | ;; | |
32898 | *-pc-os2*emx ) | |
32899 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
32900 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
32901 | LDFLAGS="$LDFLAGS -Zmt" | |
32902 | ;; | |
32903 | esac | |
32904 | fi | |
32905 | fi | |
32906 | ||
32907 | if test "$wxUSE_THREADS" = "yes"; then | |
32908 | cat >>confdefs.h <<\_ACEOF | |
32909 | #define wxUSE_THREADS 1 | |
32910 | _ACEOF | |
32911 | ||
32912 | ||
32913 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
32914 | else | |
32915 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
32916 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
32917 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
32918 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
32919 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
32920 | echo "$as_me:$LINENO: result: yes" >&5 | |
32921 | echo "${ECHO_T}yes" >&6 | |
32922 | else | |
32923 | echo "$as_me:$LINENO: result: no" >&5 | |
32924 | echo "${ECHO_T}no" >&6 | |
32925 | fi | |
32926 | fi | |
32927 | fi | |
32928 | ||
32929 | if test "$WXGTK20" = 1 ; then | |
32930 | cat >>confdefs.h <<_ACEOF | |
32931 | #define __WXGTK20__ $WXGTK20 | |
32932 | _ACEOF | |
32933 | ||
32934 | WXGTK12=1 | |
32935 | fi | |
32936 | ||
32937 | if test "$WXGTK12" = 1 ; then | |
32938 | cat >>confdefs.h <<_ACEOF | |
32939 | #define __WXGTK12__ $WXGTK12 | |
32940 | _ACEOF | |
32941 | ||
32942 | fi | |
32943 | ||
32944 | if test "$WXGTK127" = 1 ; then | |
32945 | cat >>confdefs.h <<_ACEOF | |
32946 | #define __WXGTK127__ $WXGTK127 | |
32947 | _ACEOF | |
32948 | ||
32949 | fi | |
32950 | ||
32951 | if test "$WXGPE" = 1 ; then | |
32952 | cat >>confdefs.h <<_ACEOF | |
32953 | #define __WXGPE__ $WXGPE | |
32954 | _ACEOF | |
32955 | ||
32956 | fi | |
32957 | ||
32958 | WXDEBUG= | |
32959 | ||
32960 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
32961 | WXDEBUG="-g" | |
32962 | wxUSE_OPTIMISE=no | |
32963 | fi | |
32964 | ||
32965 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
32966 | wxUSE_DEBUG_INFO=yes | |
32967 | WXDEBUG="-ggdb" | |
32968 | fi | |
32969 | ||
32970 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
32971 | cat >>confdefs.h <<\_ACEOF | |
32972 | #define WXDEBUG 1 | |
32973 | _ACEOF | |
32974 | ||
32975 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
32976 | else | |
32977 | if test "$wxUSE_GTK" = 1 ; then | |
32978 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
32979 | fi | |
32980 | fi | |
32981 | ||
32982 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
32983 | cat >>confdefs.h <<\_ACEOF | |
32984 | #define wxUSE_MEMORY_TRACING 1 | |
32985 | _ACEOF | |
32986 | ||
32987 | cat >>confdefs.h <<\_ACEOF | |
32988 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
32989 | _ACEOF | |
32990 | ||
32991 | cat >>confdefs.h <<\_ACEOF | |
32992 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
32993 | _ACEOF | |
32994 | ||
32995 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
32996 | fi | |
32997 | ||
32998 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
32999 | DMALLOC_LIBS="-ldmalloc" | |
33000 | fi | |
33001 | ||
33002 | PROFILE= | |
33003 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33004 | PROFILE=" -pg" | |
33005 | fi | |
33006 | ||
33007 | CODE_GEN_FLAGS= | |
33008 | CODE_GEN_FLAGS_CXX= | |
33009 | if test "$GCC" = "yes" ; then | |
33010 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33011 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33012 | fi | |
33013 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33014 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33015 | fi | |
33016 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33017 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33018 | fi | |
33019 | ||
33020 | case "${host}" in | |
33021 | powerpc*-*-aix* ) | |
33022 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33023 | ;; | |
33024 | *-hppa* ) | |
33025 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33026 | ;; | |
33027 | esac | |
33028 | fi | |
33029 | ||
33030 | OPTIMISE= | |
33031 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33032 | if test "$GCC" = yes ; then | |
33033 | OPTIMISE="-O0" | |
33034 | fi | |
33035 | else | |
33036 | if test "$GCC" = yes ; then | |
33037 | OPTIMISE="-O2" | |
33038 | ||
33039 | case "${host}" in | |
33040 | i586-*-*|i686-*-* ) | |
33041 | OPTIMISE="${OPTIMISE} " | |
33042 | ;; | |
33043 | esac | |
33044 | else | |
33045 | OPTIMISE="-O" | |
33046 | fi | |
33047 | fi | |
33048 | ||
33049 | ||
33050 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33051 | cat >>confdefs.h <<\_ACEOF | |
33052 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33053 | _ACEOF | |
33054 | ||
33055 | ||
33056 | WXWIN_COMPATIBILITY_2_4="yes" | |
33057 | fi | |
33058 | ||
33059 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33060 | cat >>confdefs.h <<\_ACEOF | |
33061 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33062 | _ACEOF | |
33063 | ||
33064 | fi | |
33065 | ||
33066 | ||
33067 | if test "$wxUSE_GUI" = "yes"; then | |
33068 | cat >>confdefs.h <<\_ACEOF | |
33069 | #define wxUSE_GUI 1 | |
33070 | _ACEOF | |
33071 | ||
33072 | ||
33073 | else | |
33074 | cat >>confdefs.h <<\_ACEOF | |
33075 | #define wxUSE_NOGUI 1 | |
33076 | _ACEOF | |
33077 | ||
33078 | fi | |
33079 | ||
33080 | ||
33081 | if test "$wxUSE_UNIX" = "yes"; then | |
33082 | cat >>confdefs.h <<\_ACEOF | |
33083 | #define wxUSE_UNIX 1 | |
33084 | _ACEOF | |
33085 | ||
33086 | fi | |
33087 | ||
33088 | ||
33089 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33090 | ||
33091 | HAVE_DL_FUNCS=0 | |
33092 | HAVE_SHL_FUNCS=0 | |
33093 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33094 | if test "$USE_DARWIN" = 1; then | |
33095 | HAVE_DL_FUNCS=1 | |
33096 | else | |
33097 | ||
33098 | for ac_func in dlopen | |
33099 | do | |
33100 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33101 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33102 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33103 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33105 | else | |
33106 | cat >conftest.$ac_ext <<_ACEOF | |
33107 | /* confdefs.h. */ | |
33108 | _ACEOF | |
33109 | cat confdefs.h >>conftest.$ac_ext | |
33110 | cat >>conftest.$ac_ext <<_ACEOF | |
33111 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33112 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33113 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33114 | #define $ac_func innocuous_$ac_func | |
33115 | ||
a848cd7e SC |
33116 | /* System header to define __stub macros and hopefully few prototypes, |
33117 | which can conflict with char $ac_func (); below. | |
33118 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33119 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33120 | |
a848cd7e SC |
33121 | #ifdef __STDC__ |
33122 | # include <limits.h> | |
33123 | #else | |
33124 | # include <assert.h> | |
33125 | #endif | |
ac1cb8d3 VS |
33126 | |
33127 | #undef $ac_func | |
33128 | ||
a848cd7e SC |
33129 | /* Override any gcc2 internal prototype to avoid an error. */ |
33130 | #ifdef __cplusplus | |
33131 | extern "C" | |
33132 | { | |
33133 | #endif | |
33134 | /* We use char because int might match the return type of a gcc2 | |
33135 | builtin and then its argument prototype would still apply. */ | |
33136 | char $ac_func (); | |
33137 | /* The GNU C library defines this for functions which it implements | |
33138 | to always fail with ENOSYS. Some functions are actually named | |
33139 | something starting with __ and the normal name is an alias. */ | |
33140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33141 | choke me | |
33142 | #else | |
33143 | char (*f) () = $ac_func; | |
33144 | #endif | |
33145 | #ifdef __cplusplus | |
33146 | } | |
33147 | #endif | |
33148 | ||
33149 | int | |
33150 | main () | |
33151 | { | |
33152 | return f != $ac_func; | |
33153 | ; | |
33154 | return 0; | |
33155 | } | |
33156 | _ACEOF | |
33157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33159 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33160 | ac_status=$? |
ac1cb8d3 VS |
33161 | grep -v '^ *+' conftest.er1 >conftest.err |
33162 | rm -f conftest.er1 | |
33163 | cat conftest.err >&5 | |
a848cd7e SC |
33164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33165 | (exit $ac_status); } && | |
4d4ff94c | 33166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33168 | (eval $ac_try) 2>&5 | |
33169 | ac_status=$? | |
33170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33171 | (exit $ac_status); }; } && | |
33172 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33174 | (eval $ac_try) 2>&5 | |
33175 | ac_status=$? | |
33176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33177 | (exit $ac_status); }; }; then | |
33178 | eval "$as_ac_var=yes" | |
33179 | else | |
33180 | echo "$as_me: failed program was:" >&5 | |
33181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33182 | ||
33183 | eval "$as_ac_var=no" | |
33184 | fi | |
ac1cb8d3 VS |
33185 | rm -f conftest.err conftest.$ac_objext \ |
33186 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33187 | fi |
33188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33189 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33190 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33191 | cat >>confdefs.h <<_ACEOF | |
33192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33193 | _ACEOF | |
33194 | ||
33195 | cat >>confdefs.h <<\_ACEOF | |
33196 | #define HAVE_DLOPEN 1 | |
33197 | _ACEOF | |
33198 | ||
33199 | HAVE_DL_FUNCS=1 | |
33200 | ||
33201 | else | |
33202 | ||
33203 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33204 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33205 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33207 | else | |
33208 | ac_check_lib_save_LIBS=$LIBS | |
33209 | LIBS="-ldl $LIBS" | |
33210 | cat >conftest.$ac_ext <<_ACEOF | |
33211 | /* confdefs.h. */ | |
33212 | _ACEOF | |
33213 | cat confdefs.h >>conftest.$ac_ext | |
33214 | cat >>conftest.$ac_ext <<_ACEOF | |
33215 | /* end confdefs.h. */ | |
33216 | ||
33217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33218 | #ifdef __cplusplus | |
33219 | extern "C" | |
33220 | #endif | |
33221 | /* We use char because int might match the return type of a gcc2 | |
33222 | builtin and then its argument prototype would still apply. */ | |
33223 | char dlopen (); | |
33224 | int | |
33225 | main () | |
33226 | { | |
33227 | dlopen (); | |
33228 | ; | |
33229 | return 0; | |
33230 | } | |
33231 | _ACEOF | |
33232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33234 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33235 | ac_status=$? |
ac1cb8d3 VS |
33236 | grep -v '^ *+' conftest.er1 >conftest.err |
33237 | rm -f conftest.er1 | |
33238 | cat conftest.err >&5 | |
a848cd7e SC |
33239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33240 | (exit $ac_status); } && | |
4d4ff94c | 33241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33243 | (eval $ac_try) 2>&5 | |
33244 | ac_status=$? | |
33245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33246 | (exit $ac_status); }; } && | |
33247 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33249 | (eval $ac_try) 2>&5 | |
33250 | ac_status=$? | |
33251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33252 | (exit $ac_status); }; }; then | |
33253 | ac_cv_lib_dl_dlopen=yes | |
33254 | else | |
33255 | echo "$as_me: failed program was:" >&5 | |
33256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33257 | ||
33258 | ac_cv_lib_dl_dlopen=no | |
33259 | fi | |
ac1cb8d3 VS |
33260 | rm -f conftest.err conftest.$ac_objext \ |
33261 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33262 | LIBS=$ac_check_lib_save_LIBS |
33263 | fi | |
33264 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33265 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33266 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33267 | ||
33268 | cat >>confdefs.h <<\_ACEOF | |
33269 | #define HAVE_DLOPEN 1 | |
33270 | _ACEOF | |
33271 | ||
33272 | HAVE_DL_FUNCS=1 | |
33273 | DL_LINK=" -ldl$DL_LINK" | |
33274 | ||
33275 | else | |
33276 | ||
33277 | ||
33278 | for ac_func in shl_load | |
33279 | do | |
33280 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33281 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33282 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33283 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33285 | else | |
33286 | cat >conftest.$ac_ext <<_ACEOF | |
33287 | /* confdefs.h. */ | |
33288 | _ACEOF | |
33289 | cat confdefs.h >>conftest.$ac_ext | |
33290 | cat >>conftest.$ac_ext <<_ACEOF | |
33291 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33292 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33293 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33294 | #define $ac_func innocuous_$ac_func | |
33295 | ||
a848cd7e SC |
33296 | /* System header to define __stub macros and hopefully few prototypes, |
33297 | which can conflict with char $ac_func (); below. | |
33298 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33299 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33300 | |
a848cd7e SC |
33301 | #ifdef __STDC__ |
33302 | # include <limits.h> | |
33303 | #else | |
33304 | # include <assert.h> | |
33305 | #endif | |
ac1cb8d3 VS |
33306 | |
33307 | #undef $ac_func | |
33308 | ||
a848cd7e SC |
33309 | /* Override any gcc2 internal prototype to avoid an error. */ |
33310 | #ifdef __cplusplus | |
33311 | extern "C" | |
33312 | { | |
33313 | #endif | |
33314 | /* We use char because int might match the return type of a gcc2 | |
33315 | builtin and then its argument prototype would still apply. */ | |
33316 | char $ac_func (); | |
33317 | /* The GNU C library defines this for functions which it implements | |
33318 | to always fail with ENOSYS. Some functions are actually named | |
33319 | something starting with __ and the normal name is an alias. */ | |
33320 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33321 | choke me | |
33322 | #else | |
33323 | char (*f) () = $ac_func; | |
33324 | #endif | |
33325 | #ifdef __cplusplus | |
33326 | } | |
33327 | #endif | |
33328 | ||
33329 | int | |
33330 | main () | |
33331 | { | |
33332 | return f != $ac_func; | |
33333 | ; | |
33334 | return 0; | |
33335 | } | |
33336 | _ACEOF | |
33337 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33339 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33340 | ac_status=$? |
ac1cb8d3 VS |
33341 | grep -v '^ *+' conftest.er1 >conftest.err |
33342 | rm -f conftest.er1 | |
33343 | cat conftest.err >&5 | |
a848cd7e SC |
33344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33345 | (exit $ac_status); } && | |
4d4ff94c | 33346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33348 | (eval $ac_try) 2>&5 | |
33349 | ac_status=$? | |
33350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33351 | (exit $ac_status); }; } && | |
33352 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33354 | (eval $ac_try) 2>&5 | |
33355 | ac_status=$? | |
33356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33357 | (exit $ac_status); }; }; then | |
33358 | eval "$as_ac_var=yes" | |
33359 | else | |
33360 | echo "$as_me: failed program was:" >&5 | |
33361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33362 | ||
33363 | eval "$as_ac_var=no" | |
33364 | fi | |
ac1cb8d3 VS |
33365 | rm -f conftest.err conftest.$ac_objext \ |
33366 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33367 | fi |
33368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33369 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33370 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33371 | cat >>confdefs.h <<_ACEOF | |
33372 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33373 | _ACEOF | |
33374 | ||
33375 | cat >>confdefs.h <<\_ACEOF | |
33376 | #define HAVE_SHL_LOAD 1 | |
33377 | _ACEOF | |
33378 | ||
33379 | HAVE_SHL_FUNCS=1 | |
33380 | ||
33381 | else | |
33382 | ||
33383 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33384 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33385 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33387 | else | |
33388 | ac_check_lib_save_LIBS=$LIBS | |
33389 | LIBS="-lshl_load $LIBS" | |
33390 | cat >conftest.$ac_ext <<_ACEOF | |
33391 | /* confdefs.h. */ | |
33392 | _ACEOF | |
33393 | cat confdefs.h >>conftest.$ac_ext | |
33394 | cat >>conftest.$ac_ext <<_ACEOF | |
33395 | /* end confdefs.h. */ | |
33396 | ||
33397 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33398 | #ifdef __cplusplus | |
33399 | extern "C" | |
33400 | #endif | |
33401 | /* We use char because int might match the return type of a gcc2 | |
33402 | builtin and then its argument prototype would still apply. */ | |
33403 | char dld (); | |
33404 | int | |
33405 | main () | |
33406 | { | |
33407 | dld (); | |
33408 | ; | |
33409 | return 0; | |
33410 | } | |
33411 | _ACEOF | |
33412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33414 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33415 | ac_status=$? |
ac1cb8d3 VS |
33416 | grep -v '^ *+' conftest.er1 >conftest.err |
33417 | rm -f conftest.er1 | |
33418 | cat conftest.err >&5 | |
a848cd7e SC |
33419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33420 | (exit $ac_status); } && | |
4d4ff94c | 33421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33423 | (eval $ac_try) 2>&5 | |
33424 | ac_status=$? | |
33425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33426 | (exit $ac_status); }; } && | |
33427 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33429 | (eval $ac_try) 2>&5 | |
33430 | ac_status=$? | |
33431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33432 | (exit $ac_status); }; }; then | |
33433 | ac_cv_lib_shl_load_dld=yes | |
33434 | else | |
33435 | echo "$as_me: failed program was:" >&5 | |
33436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33437 | ||
33438 | ac_cv_lib_shl_load_dld=no | |
33439 | fi | |
ac1cb8d3 VS |
33440 | rm -f conftest.err conftest.$ac_objext \ |
33441 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33442 | LIBS=$ac_check_lib_save_LIBS |
33443 | fi | |
33444 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33445 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33446 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33447 | ||
33448 | HAVE_SHL_FUNCS=1 | |
33449 | DL_LINK=" -ldld$DL_LINK" | |
33450 | ||
33451 | fi | |
33452 | ||
33453 | ||
33454 | fi | |
33455 | done | |
33456 | ||
33457 | ||
33458 | fi | |
33459 | ||
33460 | ||
33461 | fi | |
33462 | done | |
33463 | ||
33464 | ||
33465 | if test "$HAVE_DL_FUNCS" = 1; then | |
33466 | ||
33467 | for ac_func in dlerror | |
33468 | do | |
33469 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33470 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33471 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33472 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33474 | else | |
33475 | cat >conftest.$ac_ext <<_ACEOF | |
33476 | /* confdefs.h. */ | |
33477 | _ACEOF | |
33478 | cat confdefs.h >>conftest.$ac_ext | |
33479 | cat >>conftest.$ac_ext <<_ACEOF | |
33480 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33481 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33482 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33483 | #define $ac_func innocuous_$ac_func | |
33484 | ||
a848cd7e SC |
33485 | /* System header to define __stub macros and hopefully few prototypes, |
33486 | which can conflict with char $ac_func (); below. | |
33487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33488 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33489 | |
a848cd7e SC |
33490 | #ifdef __STDC__ |
33491 | # include <limits.h> | |
33492 | #else | |
33493 | # include <assert.h> | |
33494 | #endif | |
ac1cb8d3 VS |
33495 | |
33496 | #undef $ac_func | |
33497 | ||
a848cd7e SC |
33498 | /* Override any gcc2 internal prototype to avoid an error. */ |
33499 | #ifdef __cplusplus | |
33500 | extern "C" | |
33501 | { | |
33502 | #endif | |
33503 | /* We use char because int might match the return type of a gcc2 | |
33504 | builtin and then its argument prototype would still apply. */ | |
33505 | char $ac_func (); | |
33506 | /* The GNU C library defines this for functions which it implements | |
33507 | to always fail with ENOSYS. Some functions are actually named | |
33508 | something starting with __ and the normal name is an alias. */ | |
33509 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33510 | choke me | |
33511 | #else | |
33512 | char (*f) () = $ac_func; | |
33513 | #endif | |
33514 | #ifdef __cplusplus | |
33515 | } | |
33516 | #endif | |
33517 | ||
33518 | int | |
33519 | main () | |
33520 | { | |
33521 | return f != $ac_func; | |
33522 | ; | |
33523 | return 0; | |
33524 | } | |
33525 | _ACEOF | |
33526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33528 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33529 | ac_status=$? |
ac1cb8d3 VS |
33530 | grep -v '^ *+' conftest.er1 >conftest.err |
33531 | rm -f conftest.er1 | |
33532 | cat conftest.err >&5 | |
a848cd7e SC |
33533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33534 | (exit $ac_status); } && | |
4d4ff94c | 33535 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33537 | (eval $ac_try) 2>&5 | |
33538 | ac_status=$? | |
33539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33540 | (exit $ac_status); }; } && | |
33541 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33543 | (eval $ac_try) 2>&5 | |
33544 | ac_status=$? | |
33545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33546 | (exit $ac_status); }; }; then | |
33547 | eval "$as_ac_var=yes" | |
33548 | else | |
33549 | echo "$as_me: failed program was:" >&5 | |
33550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33551 | ||
33552 | eval "$as_ac_var=no" | |
33553 | fi | |
ac1cb8d3 VS |
33554 | rm -f conftest.err conftest.$ac_objext \ |
33555 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33556 | fi |
33557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33559 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33560 | cat >>confdefs.h <<_ACEOF | |
33561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33562 | _ACEOF | |
33563 | cat >>confdefs.h <<\_ACEOF | |
33564 | #define HAVE_DLERROR 1 | |
33565 | _ACEOF | |
33566 | ||
33567 | else | |
33568 | ||
33569 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33570 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33571 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33573 | else | |
33574 | ac_check_lib_save_LIBS=$LIBS | |
33575 | LIBS="-ldl $LIBS" | |
33576 | cat >conftest.$ac_ext <<_ACEOF | |
33577 | /* confdefs.h. */ | |
33578 | _ACEOF | |
33579 | cat confdefs.h >>conftest.$ac_ext | |
33580 | cat >>conftest.$ac_ext <<_ACEOF | |
33581 | /* end confdefs.h. */ | |
33582 | ||
33583 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33584 | #ifdef __cplusplus | |
33585 | extern "C" | |
33586 | #endif | |
33587 | /* We use char because int might match the return type of a gcc2 | |
33588 | builtin and then its argument prototype would still apply. */ | |
33589 | char dlerror (); | |
33590 | int | |
33591 | main () | |
33592 | { | |
33593 | dlerror (); | |
33594 | ; | |
33595 | return 0; | |
33596 | } | |
33597 | _ACEOF | |
33598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33600 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33601 | ac_status=$? |
ac1cb8d3 VS |
33602 | grep -v '^ *+' conftest.er1 >conftest.err |
33603 | rm -f conftest.er1 | |
33604 | cat conftest.err >&5 | |
a848cd7e SC |
33605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33606 | (exit $ac_status); } && | |
4d4ff94c | 33607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33609 | (eval $ac_try) 2>&5 | |
33610 | ac_status=$? | |
33611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33612 | (exit $ac_status); }; } && | |
33613 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33615 | (eval $ac_try) 2>&5 | |
33616 | ac_status=$? | |
33617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33618 | (exit $ac_status); }; }; then | |
33619 | ac_cv_lib_dl_dlerror=yes | |
33620 | else | |
33621 | echo "$as_me: failed program was:" >&5 | |
33622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33623 | ||
33624 | ac_cv_lib_dl_dlerror=no | |
33625 | fi | |
ac1cb8d3 VS |
33626 | rm -f conftest.err conftest.$ac_objext \ |
33627 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33628 | LIBS=$ac_check_lib_save_LIBS |
33629 | fi | |
33630 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33631 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33632 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33633 | cat >>confdefs.h <<\_ACEOF | |
33634 | #define HAVE_DLERROR 1 | |
33635 | _ACEOF | |
33636 | ||
33637 | fi | |
33638 | ||
33639 | ||
33640 | ||
33641 | fi | |
33642 | done | |
33643 | ||
33644 | fi | |
33645 | fi | |
33646 | ||
33647 | if test "$HAVE_DL_FUNCS" = 0; then | |
33648 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33649 | if test "$USE_UNIX" = 1; then | |
33650 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33651 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33652 | wxUSE_DYNAMIC_LOADER=no | |
33653 | wxUSE_DYNLIB_CLASS=no | |
33654 | else | |
33655 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33656 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33657 | fi | |
33658 | fi | |
33659 | fi | |
33660 | fi | |
33661 | fi | |
33662 | ||
33663 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
33664 | cat >>confdefs.h <<\_ACEOF | |
33665 | #define wxUSE_DYNAMIC_LOADER 1 | |
33666 | _ACEOF | |
33667 | ||
33668 | fi | |
33669 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33670 | cat >>confdefs.h <<\_ACEOF | |
33671 | #define wxUSE_DYNLIB_CLASS 1 | |
33672 | _ACEOF | |
33673 | ||
33674 | fi | |
33675 | ||
33676 | ||
33677 | ||
33678 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33679 | if test "$wxUSE_SHARED" = "no" ; then | |
33680 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
33681 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
33682 | wxUSE_PLUGINS=no | |
33683 | fi | |
33684 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
33685 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
33686 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
33687 | wxUSE_PLUGINS=no | |
33688 | fi | |
33689 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
33690 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
33691 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
33692 | wxUSE_PLUGINS=no | |
33693 | fi | |
33694 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33695 | cat >>confdefs.h <<\_ACEOF | |
33696 | #define wxUSE_PLUGINS 1 | |
33697 | _ACEOF | |
33698 | ||
33699 | fi | |
33700 | fi | |
33701 | ||
33702 | ||
33703 | if test "$wxUSE_STL" = "yes"; then | |
33704 | cat >>confdefs.h <<\_ACEOF | |
33705 | #define wxUSE_STL 1 | |
33706 | _ACEOF | |
33707 | ||
33708 | fi | |
33709 | ||
33710 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
33711 | cat >>confdefs.h <<\_ACEOF | |
33712 | #define wxUSE_APPLE_IEEE 1 | |
33713 | _ACEOF | |
33714 | ||
33715 | fi | |
33716 | ||
33717 | if test "$wxUSE_TIMER" = "yes"; then | |
33718 | cat >>confdefs.h <<\_ACEOF | |
33719 | #define wxUSE_TIMER 1 | |
33720 | _ACEOF | |
33721 | ||
33722 | fi | |
33723 | ||
33724 | WITH_PLUGIN_SDL=0 | |
33725 | if test "$wxUSE_SOUND" = "yes"; then | |
33726 | if test "$USE_UNIX" = "1" ; then | |
33727 | ||
33728 | for ac_header in sys/soundcard.h | |
33729 | do | |
33730 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33732 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33736 | fi | |
33737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33738 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33739 | else | |
33740 | # Is the header compilable? | |
33741 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33742 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33743 | cat >conftest.$ac_ext <<_ACEOF | |
33744 | /* confdefs.h. */ | |
33745 | _ACEOF | |
33746 | cat confdefs.h >>conftest.$ac_ext | |
33747 | cat >>conftest.$ac_ext <<_ACEOF | |
33748 | /* end confdefs.h. */ | |
33749 | $ac_includes_default | |
33750 | #include <$ac_header> | |
33751 | _ACEOF | |
33752 | rm -f conftest.$ac_objext | |
33753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33754 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33755 | ac_status=$? |
ac1cb8d3 VS |
33756 | grep -v '^ *+' conftest.er1 >conftest.err |
33757 | rm -f conftest.er1 | |
33758 | cat conftest.err >&5 | |
a848cd7e SC |
33759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33760 | (exit $ac_status); } && | |
4d4ff94c | 33761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33763 | (eval $ac_try) 2>&5 | |
33764 | ac_status=$? | |
33765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33766 | (exit $ac_status); }; } && | |
33767 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33769 | (eval $ac_try) 2>&5 | |
33770 | ac_status=$? | |
33771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33772 | (exit $ac_status); }; }; then | |
33773 | ac_header_compiler=yes | |
33774 | else | |
33775 | echo "$as_me: failed program was:" >&5 | |
33776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33777 | ||
33778 | ac_header_compiler=no | |
33779 | fi | |
ac1cb8d3 | 33780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33781 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33782 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33783 | ||
33784 | # Is the header present? | |
33785 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33786 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33787 | cat >conftest.$ac_ext <<_ACEOF | |
33788 | /* confdefs.h. */ | |
33789 | _ACEOF | |
33790 | cat confdefs.h >>conftest.$ac_ext | |
33791 | cat >>conftest.$ac_ext <<_ACEOF | |
33792 | /* end confdefs.h. */ | |
33793 | #include <$ac_header> | |
33794 | _ACEOF | |
33795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33797 | ac_status=$? | |
33798 | grep -v '^ *+' conftest.er1 >conftest.err | |
33799 | rm -f conftest.er1 | |
33800 | cat conftest.err >&5 | |
33801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33802 | (exit $ac_status); } >/dev/null; then | |
33803 | if test -s conftest.err; then | |
33804 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33806 | else |
33807 | ac_cpp_err= | |
33808 | fi | |
33809 | else | |
33810 | ac_cpp_err=yes | |
33811 | fi | |
33812 | if test -z "$ac_cpp_err"; then | |
33813 | ac_header_preproc=yes | |
33814 | else | |
33815 | echo "$as_me: failed program was:" >&5 | |
33816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33817 | ||
33818 | ac_header_preproc=no | |
33819 | fi | |
33820 | rm -f conftest.err conftest.$ac_ext | |
33821 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33822 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33823 | ||
33824 | # So? What about this header? | |
ac1cb8d3 VS |
33825 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33826 | yes:no: ) | |
a848cd7e SC |
33827 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33828 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33829 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33830 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33831 | ac_header_preproc=yes | |
a848cd7e | 33832 | ;; |
ac1cb8d3 | 33833 | no:yes:* ) |
a848cd7e SC |
33834 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33835 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33836 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33837 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33838 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33839 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33840 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33841 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33843 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33844 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33845 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33846 | ( |
33847 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33848 | ## ----------------------------------------- ## |
33849 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33850 | ## ----------------------------------------- ## | |
a848cd7e SC |
33851 | _ASBOX |
33852 | ) | | |
33853 | sed "s/^/$as_me: WARNING: /" >&2 | |
33854 | ;; | |
33855 | esac | |
33856 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33860 | else | |
ac1cb8d3 | 33861 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33862 | fi |
33863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33865 | ||
33866 | fi | |
33867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33868 | cat >>confdefs.h <<_ACEOF | |
33869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33870 | _ACEOF | |
33871 | ||
33872 | fi | |
33873 | ||
33874 | done | |
33875 | ||
33876 | ||
33877 | if test "$wxUSE_LIBSDL" != "no"; then | |
33878 | ||
33879 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
33880 | if test "${with_sdl_prefix+set}" = set; then | |
33881 | withval="$with_sdl_prefix" | |
33882 | sdl_prefix="$withval" | |
33883 | else | |
33884 | sdl_prefix="" | |
33885 | fi; | |
33886 | ||
33887 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
33888 | if test "${with_sdl_exec_prefix+set}" = set; then | |
33889 | withval="$with_sdl_exec_prefix" | |
33890 | sdl_exec_prefix="$withval" | |
33891 | else | |
33892 | sdl_exec_prefix="" | |
33893 | fi; | |
33894 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
33895 | if test "${enable_sdltest+set}" = set; then | |
33896 | enableval="$enable_sdltest" | |
33897 | ||
33898 | else | |
33899 | enable_sdltest=yes | |
33900 | fi; | |
33901 | ||
33902 | if test x$sdl_exec_prefix != x ; then | |
33903 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
33904 | if test x${SDL_CONFIG+set} != xset ; then | |
33905 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
33906 | fi | |
33907 | fi | |
33908 | if test x$sdl_prefix != x ; then | |
33909 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
33910 | if test x${SDL_CONFIG+set} != xset ; then | |
33911 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
33912 | fi | |
33913 | fi | |
33914 | ||
33915 | ||
33916 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
33917 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
33918 | set dummy sdl-config; ac_word=$2 | |
33919 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33921 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
33922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33923 | else | |
33924 | case $SDL_CONFIG in | |
33925 | [\\/]* | ?:[\\/]*) | |
33926 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
33927 | ;; | |
33928 | *) | |
33929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33930 | for as_dir in $PATH | |
33931 | do | |
33932 | IFS=$as_save_IFS | |
33933 | test -z "$as_dir" && as_dir=. | |
33934 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33936 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
33937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33938 | break 2 | |
33939 | fi | |
33940 | done | |
33941 | done | |
33942 | ||
33943 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
33944 | ;; | |
33945 | esac | |
33946 | fi | |
33947 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
33948 | ||
33949 | if test -n "$SDL_CONFIG"; then | |
33950 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
33951 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
33952 | else | |
33953 | echo "$as_me:$LINENO: result: no" >&5 | |
33954 | echo "${ECHO_T}no" >&6 | |
33955 | fi | |
33956 | ||
33957 | min_sdl_version=1.2.0 | |
33958 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
33959 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
33960 | no_sdl="" | |
33961 | if test "$SDL_CONFIG" = "no" ; then | |
33962 | no_sdl=yes | |
33963 | else | |
33964 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
33965 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
33966 | ||
33967 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
33968 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
33969 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
33970 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
33971 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
33972 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
33973 | if test "x$enable_sdltest" = "xyes" ; then | |
33974 | ac_save_CFLAGS="$CFLAGS" | |
33975 | ac_save_LIBS="$LIBS" | |
33976 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
33977 | LIBS="$LIBS $SDL_LIBS" | |
33978 | rm -f conf.sdltest | |
33979 | if test "$cross_compiling" = yes; then | |
33980 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
33981 | else | |
33982 | cat >conftest.$ac_ext <<_ACEOF | |
33983 | /* confdefs.h. */ | |
33984 | _ACEOF | |
33985 | cat confdefs.h >>conftest.$ac_ext | |
33986 | cat >>conftest.$ac_ext <<_ACEOF | |
33987 | /* end confdefs.h. */ | |
33988 | ||
33989 | #include <stdio.h> | |
33990 | #include <stdlib.h> | |
33991 | #include <string.h> | |
33992 | #include "SDL.h" | |
33993 | ||
33994 | char* | |
33995 | my_strdup (char *str) | |
33996 | { | |
33997 | char *new_str; | |
33998 | ||
33999 | if (str) | |
34000 | { | |
34001 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34002 | strcpy (new_str, str); | |
34003 | } | |
34004 | else | |
34005 | new_str = NULL; | |
34006 | ||
34007 | return new_str; | |
34008 | } | |
34009 | ||
34010 | int main (int argc, char *argv[]) | |
34011 | { | |
34012 | int major, minor, micro; | |
34013 | char *tmp_version; | |
34014 | ||
34015 | /* This hangs on some systems (?) | |
34016 | system ("touch conf.sdltest"); | |
34017 | */ | |
34018 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34019 | ||
34020 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34021 | tmp_version = my_strdup("$min_sdl_version"); | |
34022 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34023 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34024 | exit(1); | |
34025 | } | |
34026 | ||
34027 | if (($sdl_major_version > major) || | |
34028 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34029 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34030 | { | |
34031 | return 0; | |
34032 | } | |
34033 | else | |
34034 | { | |
34035 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34036 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34037 | printf("*** best to upgrade to the required version.\n"); | |
34038 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34039 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34040 | printf("*** config.cache before re-running configure\n"); | |
34041 | return 1; | |
34042 | } | |
34043 | } | |
34044 | ||
34045 | ||
34046 | _ACEOF | |
34047 | rm -f conftest$ac_exeext | |
34048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34049 | (eval $ac_link) 2>&5 | |
34050 | ac_status=$? | |
34051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34052 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34054 | (eval $ac_try) 2>&5 | |
34055 | ac_status=$? | |
34056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34057 | (exit $ac_status); }; }; then | |
34058 | : | |
34059 | else | |
34060 | echo "$as_me: program exited with status $ac_status" >&5 | |
34061 | echo "$as_me: failed program was:" >&5 | |
34062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34063 | ||
34064 | ( exit $ac_status ) | |
34065 | no_sdl=yes | |
34066 | fi | |
ac1cb8d3 | 34067 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34068 | fi |
34069 | CFLAGS="$ac_save_CFLAGS" | |
34070 | LIBS="$ac_save_LIBS" | |
34071 | fi | |
34072 | fi | |
34073 | if test "x$no_sdl" = x ; then | |
34074 | echo "$as_me:$LINENO: result: yes" >&5 | |
34075 | echo "${ECHO_T}yes" >&6 | |
34076 | ||
34077 | EXTRALIBS_SDL="$SDL_LIBS" | |
34078 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34079 | cat >>confdefs.h <<\_ACEOF | |
34080 | #define wxUSE_LIBSDL 1 | |
34081 | _ACEOF | |
34082 | ||
34083 | ||
34084 | else | |
34085 | echo "$as_me:$LINENO: result: no" >&5 | |
34086 | echo "${ECHO_T}no" >&6 | |
34087 | if test "$SDL_CONFIG" = "no" ; then | |
34088 | echo "*** The sdl-config script installed by SDL could not be found" | |
34089 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34090 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34091 | echo "*** full path to sdl-config." | |
34092 | else | |
34093 | if test -f conf.sdltest ; then | |
34094 | : | |
34095 | else | |
34096 | echo "*** Could not run SDL test program, checking why..." | |
34097 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34098 | LIBS="$LIBS $SDL_LIBS" | |
34099 | cat >conftest.$ac_ext <<_ACEOF | |
34100 | /* confdefs.h. */ | |
34101 | _ACEOF | |
34102 | cat confdefs.h >>conftest.$ac_ext | |
34103 | cat >>conftest.$ac_ext <<_ACEOF | |
34104 | /* end confdefs.h. */ | |
34105 | ||
34106 | #include <stdio.h> | |
34107 | #include "SDL.h" | |
34108 | ||
34109 | int main(int argc, char *argv[]) | |
34110 | { return 0; } | |
34111 | #undef main | |
34112 | #define main K_and_R_C_main | |
34113 | ||
34114 | int | |
34115 | main () | |
34116 | { | |
34117 | return 0; | |
34118 | ; | |
34119 | return 0; | |
34120 | } | |
34121 | _ACEOF | |
34122 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34124 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34125 | ac_status=$? |
ac1cb8d3 VS |
34126 | grep -v '^ *+' conftest.er1 >conftest.err |
34127 | rm -f conftest.er1 | |
34128 | cat conftest.err >&5 | |
a848cd7e SC |
34129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34130 | (exit $ac_status); } && | |
4d4ff94c | 34131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34133 | (eval $ac_try) 2>&5 | |
34134 | ac_status=$? | |
34135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34136 | (exit $ac_status); }; } && | |
34137 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34139 | (eval $ac_try) 2>&5 | |
34140 | ac_status=$? | |
34141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34142 | (exit $ac_status); }; }; then | |
34143 | echo "*** The test program compiled, but did not run. This usually means" | |
34144 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34145 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34146 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34147 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34148 | echo "*** is required on your system" | |
34149 | echo "***" | |
34150 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34151 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34152 | else | |
34153 | echo "$as_me: failed program was:" >&5 | |
34154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34155 | ||
34156 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34157 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34158 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34159 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34160 | fi | |
ac1cb8d3 VS |
34161 | rm -f conftest.err conftest.$ac_objext \ |
34162 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34163 | CFLAGS="$ac_save_CFLAGS" |
34164 | LIBS="$ac_save_LIBS" | |
34165 | fi | |
34166 | fi | |
34167 | SDL_CFLAGS="" | |
34168 | SDL_LIBS="" | |
34169 | wxUSE_LIBSDL="no" | |
34170 | fi | |
34171 | ||
34172 | ||
34173 | rm -f conf.sdltest | |
34174 | ||
34175 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34176 | WITH_PLUGIN_SDL=1 | |
34177 | fi | |
34178 | fi | |
34179 | fi | |
34180 | ||
34181 | cat >>confdefs.h <<\_ACEOF | |
34182 | #define wxUSE_SOUND 1 | |
34183 | _ACEOF | |
34184 | ||
34185 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34186 | fi | |
34187 | ||
34188 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
34189 | cat >>confdefs.h <<\_ACEOF | |
34190 | #define wxUSE_CMDLINE_PARSER 1 | |
34191 | _ACEOF | |
34192 | ||
34193 | fi | |
34194 | ||
34195 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34196 | cat >>confdefs.h <<\_ACEOF | |
34197 | #define wxUSE_STOPWATCH 1 | |
34198 | _ACEOF | |
34199 | ||
34200 | fi | |
34201 | ||
34202 | if test "$wxUSE_DATETIME" = "yes"; then | |
34203 | cat >>confdefs.h <<\_ACEOF | |
34204 | #define wxUSE_DATETIME 1 | |
34205 | _ACEOF | |
34206 | ||
34207 | fi | |
34208 | ||
34209 | if test "$wxUSE_FILE" = "yes"; then | |
34210 | cat >>confdefs.h <<\_ACEOF | |
34211 | #define wxUSE_FILE 1 | |
34212 | _ACEOF | |
34213 | ||
34214 | fi | |
34215 | ||
34216 | if test "$wxUSE_FFILE" = "yes"; then | |
34217 | cat >>confdefs.h <<\_ACEOF | |
34218 | #define wxUSE_FFILE 1 | |
34219 | _ACEOF | |
34220 | ||
34221 | fi | |
34222 | ||
34223 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34224 | cat >>confdefs.h <<\_ACEOF | |
34225 | #define wxUSE_FILESYSTEM 1 | |
34226 | _ACEOF | |
34227 | ||
34228 | fi | |
34229 | ||
34230 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34231 | cat >>confdefs.h <<\_ACEOF | |
34232 | #define wxUSE_FS_ZIP 1 | |
34233 | _ACEOF | |
34234 | ||
34235 | fi | |
34236 | ||
34237 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34238 | cat >>confdefs.h <<\_ACEOF | |
34239 | #define wxUSE_ZIPSTREAM 1 | |
34240 | _ACEOF | |
34241 | ||
34242 | fi | |
34243 | ||
a848cd7e SC |
34244 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34245 | cat >>confdefs.h <<\_ACEOF | |
34246 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34247 | _ACEOF | |
34248 | ||
34249 | fi | |
34250 | ||
34251 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34252 | cat >>confdefs.h <<\_ACEOF | |
34253 | #define wxUSE_SNGLINST_CHECKER 1 | |
34254 | _ACEOF | |
34255 | ||
34256 | fi | |
34257 | ||
34258 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34259 | cat >>confdefs.h <<\_ACEOF | |
34260 | #define wxUSE_BUSYINFO 1 | |
34261 | _ACEOF | |
34262 | ||
34263 | fi | |
34264 | ||
34265 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34266 | cat >>confdefs.h <<\_ACEOF | |
34267 | #define wxUSE_STD_IOSTREAM 1 | |
34268 | _ACEOF | |
34269 | ||
34270 | fi | |
34271 | ||
34272 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34273 | cat >>confdefs.h <<\_ACEOF | |
34274 | #define wxUSE_TEXTBUFFER 1 | |
34275 | _ACEOF | |
34276 | ||
34277 | fi | |
34278 | ||
34279 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34280 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34281 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34282 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34283 | else | |
34284 | cat >>confdefs.h <<\_ACEOF | |
34285 | #define wxUSE_TEXTFILE 1 | |
34286 | _ACEOF | |
34287 | ||
34288 | fi | |
34289 | fi | |
34290 | ||
34291 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34292 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34293 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34294 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34295 | else | |
34296 | cat >>confdefs.h <<\_ACEOF | |
34297 | #define wxUSE_CONFIG 1 | |
34298 | _ACEOF | |
34299 | ||
34300 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34301 | fi | |
34302 | fi | |
34303 | ||
34304 | if test "$wxUSE_INTL" = "yes" ; then | |
34305 | if test "$wxUSE_FILE" != "yes"; then | |
34306 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34307 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34308 | else | |
34309 | cat >>confdefs.h <<\_ACEOF | |
34310 | #define wxUSE_INTL 1 | |
34311 | _ACEOF | |
34312 | ||
34313 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34314 | GUIDIST="$GUIDIST INTL_DIST" | |
34315 | fi | |
34316 | fi | |
34317 | ||
34318 | if test "$wxUSE_LOG" = "yes"; then | |
34319 | cat >>confdefs.h <<\_ACEOF | |
34320 | #define wxUSE_LOG 1 | |
34321 | _ACEOF | |
34322 | ||
34323 | ||
34324 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34325 | cat >>confdefs.h <<\_ACEOF | |
34326 | #define wxUSE_LOGGUI 1 | |
34327 | _ACEOF | |
34328 | ||
34329 | fi | |
34330 | ||
34331 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34332 | cat >>confdefs.h <<\_ACEOF | |
34333 | #define wxUSE_LOGWINDOW 1 | |
34334 | _ACEOF | |
34335 | ||
34336 | fi | |
34337 | ||
34338 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34339 | cat >>confdefs.h <<\_ACEOF | |
34340 | #define wxUSE_LOG_DIALOG 1 | |
34341 | _ACEOF | |
34342 | ||
34343 | fi | |
34344 | fi | |
34345 | ||
34346 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34347 | cat >>confdefs.h <<\_ACEOF | |
34348 | #define wxUSE_LONGLONG 1 | |
34349 | _ACEOF | |
34350 | ||
34351 | fi | |
34352 | ||
34353 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34354 | cat >>confdefs.h <<\_ACEOF | |
34355 | #define wxUSE_GEOMETRY 1 | |
34356 | _ACEOF | |
34357 | ||
34358 | fi | |
34359 | ||
34360 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34361 | cat >>confdefs.h <<\_ACEOF | |
34362 | #define wxUSE_DIALUP_MANAGER 1 | |
34363 | _ACEOF | |
34364 | ||
34365 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34366 | fi | |
34367 | ||
34368 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34369 | cat >>confdefs.h <<\_ACEOF | |
34370 | #define wxUSE_STREAMS 1 | |
34371 | _ACEOF | |
34372 | ||
34373 | fi | |
34374 | ||
34375 | ||
34376 | if test "$wxUSE_DATETIME" = "yes"; then | |
34377 | ||
34378 | for ac_func in strptime | |
34379 | do | |
34380 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34381 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34382 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34383 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34385 | else | |
34386 | cat >conftest.$ac_ext <<_ACEOF | |
34387 | /* confdefs.h. */ | |
34388 | _ACEOF | |
34389 | cat confdefs.h >>conftest.$ac_ext | |
34390 | cat >>conftest.$ac_ext <<_ACEOF | |
34391 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34392 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34393 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34394 | #define $ac_func innocuous_$ac_func | |
34395 | ||
a848cd7e SC |
34396 | /* System header to define __stub macros and hopefully few prototypes, |
34397 | which can conflict with char $ac_func (); below. | |
34398 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34399 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34400 | |
a848cd7e SC |
34401 | #ifdef __STDC__ |
34402 | # include <limits.h> | |
34403 | #else | |
34404 | # include <assert.h> | |
34405 | #endif | |
ac1cb8d3 VS |
34406 | |
34407 | #undef $ac_func | |
34408 | ||
a848cd7e SC |
34409 | /* Override any gcc2 internal prototype to avoid an error. */ |
34410 | #ifdef __cplusplus | |
34411 | extern "C" | |
34412 | { | |
34413 | #endif | |
34414 | /* We use char because int might match the return type of a gcc2 | |
34415 | builtin and then its argument prototype would still apply. */ | |
34416 | char $ac_func (); | |
34417 | /* The GNU C library defines this for functions which it implements | |
34418 | to always fail with ENOSYS. Some functions are actually named | |
34419 | something starting with __ and the normal name is an alias. */ | |
34420 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34421 | choke me | |
34422 | #else | |
34423 | char (*f) () = $ac_func; | |
34424 | #endif | |
34425 | #ifdef __cplusplus | |
34426 | } | |
34427 | #endif | |
34428 | ||
34429 | int | |
34430 | main () | |
34431 | { | |
34432 | return f != $ac_func; | |
34433 | ; | |
34434 | return 0; | |
34435 | } | |
34436 | _ACEOF | |
34437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34439 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34440 | ac_status=$? |
ac1cb8d3 VS |
34441 | grep -v '^ *+' conftest.er1 >conftest.err |
34442 | rm -f conftest.er1 | |
34443 | cat conftest.err >&5 | |
a848cd7e SC |
34444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34445 | (exit $ac_status); } && | |
4d4ff94c | 34446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34448 | (eval $ac_try) 2>&5 | |
34449 | ac_status=$? | |
34450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34451 | (exit $ac_status); }; } && | |
34452 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34454 | (eval $ac_try) 2>&5 | |
34455 | ac_status=$? | |
34456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34457 | (exit $ac_status); }; }; then | |
34458 | eval "$as_ac_var=yes" | |
34459 | else | |
34460 | echo "$as_me: failed program was:" >&5 | |
34461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34462 | ||
34463 | eval "$as_ac_var=no" | |
34464 | fi | |
ac1cb8d3 VS |
34465 | rm -f conftest.err conftest.$ac_objext \ |
34466 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34467 | fi |
34468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34469 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34470 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34471 | cat >>confdefs.h <<_ACEOF | |
34472 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34473 | _ACEOF | |
34474 | ||
34475 | fi | |
34476 | done | |
34477 | ||
34478 | ||
34479 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34480 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34481 | if test "${wx_cv_var_timezone+set}" = set; then | |
34482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34483 | else | |
34484 | ||
34485 | cat >conftest.$ac_ext <<_ACEOF | |
34486 | /* confdefs.h. */ | |
34487 | _ACEOF | |
34488 | cat confdefs.h >>conftest.$ac_ext | |
34489 | cat >>conftest.$ac_ext <<_ACEOF | |
34490 | /* end confdefs.h. */ | |
34491 | ||
34492 | #include <time.h> | |
34493 | ||
34494 | int | |
34495 | main () | |
34496 | { | |
34497 | ||
34498 | int tz; | |
34499 | tz = timezone; | |
34500 | ||
34501 | ; | |
34502 | return 0; | |
34503 | } | |
34504 | _ACEOF | |
34505 | rm -f conftest.$ac_objext | |
34506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34507 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34508 | ac_status=$? |
ac1cb8d3 VS |
34509 | grep -v '^ *+' conftest.er1 >conftest.err |
34510 | rm -f conftest.er1 | |
34511 | cat conftest.err >&5 | |
a848cd7e SC |
34512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34513 | (exit $ac_status); } && | |
4d4ff94c | 34514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34516 | (eval $ac_try) 2>&5 | |
34517 | ac_status=$? | |
34518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34519 | (exit $ac_status); }; } && | |
34520 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34522 | (eval $ac_try) 2>&5 | |
34523 | ac_status=$? | |
34524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34525 | (exit $ac_status); }; }; then | |
34526 | ||
34527 | wx_cv_var_timezone=timezone | |
34528 | ||
34529 | else | |
34530 | echo "$as_me: failed program was:" >&5 | |
34531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34532 | ||
34533 | ||
34534 | cat >conftest.$ac_ext <<_ACEOF | |
34535 | /* confdefs.h. */ | |
34536 | _ACEOF | |
34537 | cat confdefs.h >>conftest.$ac_ext | |
34538 | cat >>conftest.$ac_ext <<_ACEOF | |
34539 | /* end confdefs.h. */ | |
34540 | ||
34541 | #include <time.h> | |
34542 | ||
34543 | int | |
34544 | main () | |
34545 | { | |
34546 | ||
34547 | int tz; | |
34548 | tz = _timezone; | |
34549 | ||
34550 | ; | |
34551 | return 0; | |
34552 | } | |
34553 | _ACEOF | |
34554 | rm -f conftest.$ac_objext | |
34555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34556 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34557 | ac_status=$? |
ac1cb8d3 VS |
34558 | grep -v '^ *+' conftest.er1 >conftest.err |
34559 | rm -f conftest.er1 | |
34560 | cat conftest.err >&5 | |
a848cd7e SC |
34561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34562 | (exit $ac_status); } && | |
4d4ff94c | 34563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34565 | (eval $ac_try) 2>&5 | |
34566 | ac_status=$? | |
34567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34568 | (exit $ac_status); }; } && | |
34569 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34571 | (eval $ac_try) 2>&5 | |
34572 | ac_status=$? | |
34573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34574 | (exit $ac_status); }; }; then | |
34575 | ||
34576 | wx_cv_var_timezone=_timezone | |
34577 | ||
34578 | else | |
34579 | echo "$as_me: failed program was:" >&5 | |
34580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34581 | ||
34582 | ||
34583 | cat >conftest.$ac_ext <<_ACEOF | |
34584 | /* confdefs.h. */ | |
34585 | _ACEOF | |
34586 | cat confdefs.h >>conftest.$ac_ext | |
34587 | cat >>conftest.$ac_ext <<_ACEOF | |
34588 | /* end confdefs.h. */ | |
34589 | ||
34590 | #include <time.h> | |
34591 | ||
34592 | int | |
34593 | main () | |
34594 | { | |
34595 | ||
34596 | int tz; | |
34597 | tz = __timezone; | |
34598 | ||
34599 | ; | |
34600 | return 0; | |
34601 | } | |
34602 | _ACEOF | |
34603 | rm -f conftest.$ac_objext | |
34604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34606 | ac_status=$? |
ac1cb8d3 VS |
34607 | grep -v '^ *+' conftest.er1 >conftest.err |
34608 | rm -f conftest.er1 | |
34609 | cat conftest.err >&5 | |
a848cd7e SC |
34610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34611 | (exit $ac_status); } && | |
4d4ff94c | 34612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34614 | (eval $ac_try) 2>&5 | |
34615 | ac_status=$? | |
34616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34617 | (exit $ac_status); }; } && | |
34618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34620 | (eval $ac_try) 2>&5 | |
34621 | ac_status=$? | |
34622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34623 | (exit $ac_status); }; }; then | |
34624 | ||
34625 | wx_cv_var_timezone=__timezone | |
34626 | ||
34627 | else | |
34628 | echo "$as_me: failed program was:" >&5 | |
34629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34630 | ||
34631 | ||
34632 | if test "$USE_DOS" = 0 ; then | |
34633 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
34634 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
34635 | fi | |
34636 | ||
34637 | ||
34638 | fi | |
ac1cb8d3 | 34639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34640 | |
34641 | ||
34642 | fi | |
ac1cb8d3 | 34643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34644 | |
34645 | ||
34646 | fi | |
ac1cb8d3 | 34647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34648 | |
34649 | ||
34650 | fi | |
34651 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
34652 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
34653 | ||
34654 | if test "x$wx_cv_var_timezone" != x ; then | |
34655 | cat >>confdefs.h <<_ACEOF | |
34656 | #define WX_TIMEZONE $wx_cv_var_timezone | |
34657 | _ACEOF | |
34658 | ||
34659 | fi | |
34660 | ||
34661 | ||
34662 | for ac_func in localtime | |
34663 | do | |
34664 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34665 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34666 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34667 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34669 | else | |
34670 | cat >conftest.$ac_ext <<_ACEOF | |
34671 | /* confdefs.h. */ | |
34672 | _ACEOF | |
34673 | cat confdefs.h >>conftest.$ac_ext | |
34674 | cat >>conftest.$ac_ext <<_ACEOF | |
34675 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34676 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34678 | #define $ac_func innocuous_$ac_func | |
34679 | ||
a848cd7e SC |
34680 | /* System header to define __stub macros and hopefully few prototypes, |
34681 | which can conflict with char $ac_func (); below. | |
34682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34683 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34684 | |
a848cd7e SC |
34685 | #ifdef __STDC__ |
34686 | # include <limits.h> | |
34687 | #else | |
34688 | # include <assert.h> | |
34689 | #endif | |
ac1cb8d3 VS |
34690 | |
34691 | #undef $ac_func | |
34692 | ||
a848cd7e SC |
34693 | /* Override any gcc2 internal prototype to avoid an error. */ |
34694 | #ifdef __cplusplus | |
34695 | extern "C" | |
34696 | { | |
34697 | #endif | |
34698 | /* We use char because int might match the return type of a gcc2 | |
34699 | builtin and then its argument prototype would still apply. */ | |
34700 | char $ac_func (); | |
34701 | /* The GNU C library defines this for functions which it implements | |
34702 | to always fail with ENOSYS. Some functions are actually named | |
34703 | something starting with __ and the normal name is an alias. */ | |
34704 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34705 | choke me | |
34706 | #else | |
34707 | char (*f) () = $ac_func; | |
34708 | #endif | |
34709 | #ifdef __cplusplus | |
34710 | } | |
34711 | #endif | |
34712 | ||
34713 | int | |
34714 | main () | |
34715 | { | |
34716 | return f != $ac_func; | |
34717 | ; | |
34718 | return 0; | |
34719 | } | |
34720 | _ACEOF | |
34721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34723 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34724 | ac_status=$? |
ac1cb8d3 VS |
34725 | grep -v '^ *+' conftest.er1 >conftest.err |
34726 | rm -f conftest.er1 | |
34727 | cat conftest.err >&5 | |
a848cd7e SC |
34728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34729 | (exit $ac_status); } && | |
4d4ff94c | 34730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34732 | (eval $ac_try) 2>&5 | |
34733 | ac_status=$? | |
34734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34735 | (exit $ac_status); }; } && | |
34736 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34738 | (eval $ac_try) 2>&5 | |
34739 | ac_status=$? | |
34740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34741 | (exit $ac_status); }; }; then | |
34742 | eval "$as_ac_var=yes" | |
34743 | else | |
34744 | echo "$as_me: failed program was:" >&5 | |
34745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34746 | ||
34747 | eval "$as_ac_var=no" | |
34748 | fi | |
ac1cb8d3 VS |
34749 | rm -f conftest.err conftest.$ac_objext \ |
34750 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34751 | fi |
34752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34753 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34754 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34755 | cat >>confdefs.h <<_ACEOF | |
34756 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34757 | _ACEOF | |
34758 | ||
34759 | fi | |
34760 | done | |
34761 | ||
34762 | ||
34763 | if test "$ac_cv_func_localtime" = "yes"; then | |
34764 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
34765 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
34766 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
34767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34768 | else | |
34769 | ||
34770 | cat >conftest.$ac_ext <<_ACEOF | |
34771 | /* confdefs.h. */ | |
34772 | _ACEOF | |
34773 | cat confdefs.h >>conftest.$ac_ext | |
34774 | cat >>conftest.$ac_ext <<_ACEOF | |
34775 | /* end confdefs.h. */ | |
34776 | ||
34777 | #include <time.h> | |
34778 | ||
34779 | int | |
34780 | main () | |
34781 | { | |
34782 | ||
34783 | struct tm tm; | |
34784 | tm.tm_gmtoff++; | |
34785 | ||
34786 | ; | |
34787 | return 0; | |
34788 | } | |
34789 | _ACEOF | |
34790 | rm -f conftest.$ac_objext | |
34791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34792 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34793 | ac_status=$? |
ac1cb8d3 VS |
34794 | grep -v '^ *+' conftest.er1 >conftest.err |
34795 | rm -f conftest.er1 | |
34796 | cat conftest.err >&5 | |
a848cd7e SC |
34797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34798 | (exit $ac_status); } && | |
4d4ff94c | 34799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34801 | (eval $ac_try) 2>&5 | |
34802 | ac_status=$? | |
34803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34804 | (exit $ac_status); }; } && | |
34805 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34807 | (eval $ac_try) 2>&5 | |
34808 | ac_status=$? | |
34809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34810 | (exit $ac_status); }; }; then | |
34811 | ||
34812 | wx_cv_struct_tm_has_gmtoff=yes | |
34813 | ||
34814 | else | |
34815 | echo "$as_me: failed program was:" >&5 | |
34816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34817 | ||
34818 | wx_cv_struct_tm_has_gmtoff=no | |
34819 | ||
34820 | fi | |
ac1cb8d3 | 34821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34822 | |
34823 | fi | |
34824 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
34825 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
34826 | fi | |
34827 | ||
34828 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
34829 | cat >>confdefs.h <<\_ACEOF | |
34830 | #define WX_GMTOFF_IN_TM 1 | |
34831 | _ACEOF | |
34832 | ||
34833 | fi | |
34834 | ||
34835 | ||
34836 | ||
34837 | for ac_func in gettimeofday ftime | |
34838 | do | |
34839 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34840 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34841 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34842 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34844 | else | |
34845 | cat >conftest.$ac_ext <<_ACEOF | |
34846 | /* confdefs.h. */ | |
34847 | _ACEOF | |
34848 | cat confdefs.h >>conftest.$ac_ext | |
34849 | cat >>conftest.$ac_ext <<_ACEOF | |
34850 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34851 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34852 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34853 | #define $ac_func innocuous_$ac_func | |
34854 | ||
a848cd7e SC |
34855 | /* System header to define __stub macros and hopefully few prototypes, |
34856 | which can conflict with char $ac_func (); below. | |
34857 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34858 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34859 | |
a848cd7e SC |
34860 | #ifdef __STDC__ |
34861 | # include <limits.h> | |
34862 | #else | |
34863 | # include <assert.h> | |
34864 | #endif | |
ac1cb8d3 VS |
34865 | |
34866 | #undef $ac_func | |
34867 | ||
a848cd7e SC |
34868 | /* Override any gcc2 internal prototype to avoid an error. */ |
34869 | #ifdef __cplusplus | |
34870 | extern "C" | |
34871 | { | |
34872 | #endif | |
34873 | /* We use char because int might match the return type of a gcc2 | |
34874 | builtin and then its argument prototype would still apply. */ | |
34875 | char $ac_func (); | |
34876 | /* The GNU C library defines this for functions which it implements | |
34877 | to always fail with ENOSYS. Some functions are actually named | |
34878 | something starting with __ and the normal name is an alias. */ | |
34879 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34880 | choke me | |
34881 | #else | |
34882 | char (*f) () = $ac_func; | |
34883 | #endif | |
34884 | #ifdef __cplusplus | |
34885 | } | |
34886 | #endif | |
34887 | ||
34888 | int | |
34889 | main () | |
34890 | { | |
34891 | return f != $ac_func; | |
34892 | ; | |
34893 | return 0; | |
34894 | } | |
34895 | _ACEOF | |
34896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34898 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34899 | ac_status=$? |
ac1cb8d3 VS |
34900 | grep -v '^ *+' conftest.er1 >conftest.err |
34901 | rm -f conftest.er1 | |
34902 | cat conftest.err >&5 | |
a848cd7e SC |
34903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34904 | (exit $ac_status); } && | |
4d4ff94c | 34905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34907 | (eval $ac_try) 2>&5 | |
34908 | ac_status=$? | |
34909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34910 | (exit $ac_status); }; } && | |
34911 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34913 | (eval $ac_try) 2>&5 | |
34914 | ac_status=$? | |
34915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34916 | (exit $ac_status); }; }; then | |
34917 | eval "$as_ac_var=yes" | |
34918 | else | |
34919 | echo "$as_me: failed program was:" >&5 | |
34920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34921 | ||
34922 | eval "$as_ac_var=no" | |
34923 | fi | |
ac1cb8d3 VS |
34924 | rm -f conftest.err conftest.$ac_objext \ |
34925 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34926 | fi |
34927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34928 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34929 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34930 | cat >>confdefs.h <<_ACEOF | |
34931 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34932 | _ACEOF | |
34933 | break | |
34934 | fi | |
34935 | done | |
34936 | ||
34937 | ||
34938 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
34939 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
34940 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
34941 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
34942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34943 | else | |
34944 | ||
34945 | ||
34946 | ||
34947 | ac_ext=cc | |
34948 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34949 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34950 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34951 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34952 | ||
34953 | ||
34954 | cat >conftest.$ac_ext <<_ACEOF | |
34955 | /* confdefs.h. */ | |
34956 | _ACEOF | |
34957 | cat confdefs.h >>conftest.$ac_ext | |
34958 | cat >>conftest.$ac_ext <<_ACEOF | |
34959 | /* end confdefs.h. */ | |
34960 | ||
34961 | #include <sys/time.h> | |
34962 | #include <unistd.h> | |
34963 | ||
34964 | int | |
34965 | main () | |
34966 | { | |
34967 | ||
34968 | struct timeval tv; | |
34969 | gettimeofday(&tv, NULL); | |
34970 | ||
34971 | ; | |
34972 | return 0; | |
34973 | } | |
34974 | _ACEOF | |
34975 | rm -f conftest.$ac_objext | |
34976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34977 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34978 | ac_status=$? |
ac1cb8d3 VS |
34979 | grep -v '^ *+' conftest.er1 >conftest.err |
34980 | rm -f conftest.er1 | |
34981 | cat conftest.err >&5 | |
a848cd7e SC |
34982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34983 | (exit $ac_status); } && | |
4d4ff94c | 34984 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34986 | (eval $ac_try) 2>&5 | |
34987 | ac_status=$? | |
34988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34989 | (exit $ac_status); }; } && | |
34990 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34992 | (eval $ac_try) 2>&5 | |
34993 | ac_status=$? | |
34994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34995 | (exit $ac_status); }; }; then | |
34996 | wx_cv_func_gettimeofday_has_2_args=yes | |
34997 | else | |
34998 | echo "$as_me: failed program was:" >&5 | |
34999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35000 | ||
35001 | cat >conftest.$ac_ext <<_ACEOF | |
35002 | /* confdefs.h. */ | |
35003 | _ACEOF | |
35004 | cat confdefs.h >>conftest.$ac_ext | |
35005 | cat >>conftest.$ac_ext <<_ACEOF | |
35006 | /* end confdefs.h. */ | |
35007 | ||
35008 | #include <sys/time.h> | |
35009 | #include <unistd.h> | |
35010 | ||
35011 | int | |
35012 | main () | |
35013 | { | |
35014 | ||
35015 | struct timeval tv; | |
35016 | gettimeofday(&tv); | |
35017 | ||
35018 | ; | |
35019 | return 0; | |
35020 | } | |
35021 | _ACEOF | |
35022 | rm -f conftest.$ac_objext | |
35023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35024 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35025 | ac_status=$? |
ac1cb8d3 VS |
35026 | grep -v '^ *+' conftest.er1 >conftest.err |
35027 | rm -f conftest.er1 | |
35028 | cat conftest.err >&5 | |
a848cd7e SC |
35029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35030 | (exit $ac_status); } && | |
4d4ff94c | 35031 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35033 | (eval $ac_try) 2>&5 | |
35034 | ac_status=$? | |
35035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35036 | (exit $ac_status); }; } && | |
35037 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35039 | (eval $ac_try) 2>&5 | |
35040 | ac_status=$? | |
35041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35042 | (exit $ac_status); }; }; then | |
35043 | wx_cv_func_gettimeofday_has_2_args=no | |
35044 | else | |
35045 | echo "$as_me: failed program was:" >&5 | |
35046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35047 | ||
35048 | ||
35049 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35050 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35051 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35052 | ||
35053 | ||
35054 | fi | |
ac1cb8d3 | 35055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35056 | |
35057 | fi | |
ac1cb8d3 | 35058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35059 | ac_ext=c |
35060 | ac_cpp='$CPP $CPPFLAGS' | |
35061 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35062 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35063 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35064 | ||
35065 | ||
35066 | fi | |
35067 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35068 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35069 | ||
35070 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35071 | cat >>confdefs.h <<\_ACEOF | |
35072 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35073 | _ACEOF | |
35074 | ||
35075 | fi | |
35076 | fi | |
35077 | ||
35078 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35079 | fi | |
35080 | ||
35081 | ||
35082 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35083 | if test "$wxUSE_MGL" = "1"; then | |
35084 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35085 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35086 | wxUSE_SOCKETS="no" | |
35087 | fi | |
35088 | fi | |
35089 | ||
35090 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35091 | if test "$TOOLKIT" != "MSW"; then | |
35092 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35093 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35094 | if test "${ac_cv_func_socket+set}" = set; then | |
35095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35096 | else | |
35097 | cat >conftest.$ac_ext <<_ACEOF | |
35098 | /* confdefs.h. */ | |
35099 | _ACEOF | |
35100 | cat confdefs.h >>conftest.$ac_ext | |
35101 | cat >>conftest.$ac_ext <<_ACEOF | |
35102 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35103 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35105 | #define socket innocuous_socket | |
35106 | ||
a848cd7e SC |
35107 | /* System header to define __stub macros and hopefully few prototypes, |
35108 | which can conflict with char socket (); below. | |
35109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35110 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35111 | |
a848cd7e SC |
35112 | #ifdef __STDC__ |
35113 | # include <limits.h> | |
35114 | #else | |
35115 | # include <assert.h> | |
35116 | #endif | |
ac1cb8d3 VS |
35117 | |
35118 | #undef socket | |
35119 | ||
a848cd7e SC |
35120 | /* Override any gcc2 internal prototype to avoid an error. */ |
35121 | #ifdef __cplusplus | |
35122 | extern "C" | |
35123 | { | |
35124 | #endif | |
35125 | /* We use char because int might match the return type of a gcc2 | |
35126 | builtin and then its argument prototype would still apply. */ | |
35127 | char socket (); | |
35128 | /* The GNU C library defines this for functions which it implements | |
35129 | to always fail with ENOSYS. Some functions are actually named | |
35130 | something starting with __ and the normal name is an alias. */ | |
35131 | #if defined (__stub_socket) || defined (__stub___socket) | |
35132 | choke me | |
35133 | #else | |
35134 | char (*f) () = socket; | |
35135 | #endif | |
35136 | #ifdef __cplusplus | |
35137 | } | |
35138 | #endif | |
35139 | ||
35140 | int | |
35141 | main () | |
35142 | { | |
35143 | return f != socket; | |
35144 | ; | |
35145 | return 0; | |
35146 | } | |
35147 | _ACEOF | |
35148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35150 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35151 | ac_status=$? |
ac1cb8d3 VS |
35152 | grep -v '^ *+' conftest.er1 >conftest.err |
35153 | rm -f conftest.er1 | |
35154 | cat conftest.err >&5 | |
a848cd7e SC |
35155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35156 | (exit $ac_status); } && | |
4d4ff94c | 35157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35159 | (eval $ac_try) 2>&5 | |
35160 | ac_status=$? | |
35161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35162 | (exit $ac_status); }; } && | |
35163 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35165 | (eval $ac_try) 2>&5 | |
35166 | ac_status=$? | |
35167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35168 | (exit $ac_status); }; }; then | |
35169 | ac_cv_func_socket=yes | |
35170 | else | |
35171 | echo "$as_me: failed program was:" >&5 | |
35172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35173 | ||
35174 | ac_cv_func_socket=no | |
35175 | fi | |
ac1cb8d3 VS |
35176 | rm -f conftest.err conftest.$ac_objext \ |
35177 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35178 | fi |
35179 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35180 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35181 | if test $ac_cv_func_socket = yes; then | |
35182 | : | |
35183 | else | |
35184 | ||
35185 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35186 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35187 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35189 | else | |
35190 | ac_check_lib_save_LIBS=$LIBS | |
35191 | LIBS="-lsocket $LIBS" | |
35192 | cat >conftest.$ac_ext <<_ACEOF | |
35193 | /* confdefs.h. */ | |
35194 | _ACEOF | |
35195 | cat confdefs.h >>conftest.$ac_ext | |
35196 | cat >>conftest.$ac_ext <<_ACEOF | |
35197 | /* end confdefs.h. */ | |
35198 | ||
35199 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35200 | #ifdef __cplusplus | |
35201 | extern "C" | |
35202 | #endif | |
35203 | /* We use char because int might match the return type of a gcc2 | |
35204 | builtin and then its argument prototype would still apply. */ | |
35205 | char socket (); | |
35206 | int | |
35207 | main () | |
35208 | { | |
35209 | socket (); | |
35210 | ; | |
35211 | return 0; | |
35212 | } | |
35213 | _ACEOF | |
35214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35216 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35217 | ac_status=$? |
ac1cb8d3 VS |
35218 | grep -v '^ *+' conftest.er1 >conftest.err |
35219 | rm -f conftest.er1 | |
35220 | cat conftest.err >&5 | |
a848cd7e SC |
35221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35222 | (exit $ac_status); } && | |
4d4ff94c | 35223 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35225 | (eval $ac_try) 2>&5 | |
35226 | ac_status=$? | |
35227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35228 | (exit $ac_status); }; } && | |
35229 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35231 | (eval $ac_try) 2>&5 | |
35232 | ac_status=$? | |
35233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35234 | (exit $ac_status); }; }; then | |
35235 | ac_cv_lib_socket_socket=yes | |
35236 | else | |
35237 | echo "$as_me: failed program was:" >&5 | |
35238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35239 | ||
35240 | ac_cv_lib_socket_socket=no | |
35241 | fi | |
ac1cb8d3 VS |
35242 | rm -f conftest.err conftest.$ac_objext \ |
35243 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35244 | LIBS=$ac_check_lib_save_LIBS |
35245 | fi | |
35246 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35247 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35248 | if test $ac_cv_lib_socket_socket = yes; then | |
35249 | if test "$INET_LINK" != " -lsocket"; then | |
35250 | INET_LINK="$INET_LINK -lsocket" | |
35251 | fi | |
35252 | else | |
35253 | ||
35254 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35255 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35256 | wxUSE_SOCKETS=no | |
35257 | ||
35258 | ||
35259 | fi | |
35260 | ||
35261 | ||
35262 | ||
35263 | fi | |
35264 | ||
35265 | fi | |
35266 | fi | |
35267 | ||
35268 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35269 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
35270 | ac_ext=cc |
35271 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35272 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35273 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35274 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35275 | ||
35276 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
35277 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
35278 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35280 | else | |
35281 | ||
35282 | cat >conftest.$ac_ext <<_ACEOF | |
35283 | /* confdefs.h. */ | |
35284 | _ACEOF | |
35285 | cat confdefs.h >>conftest.$ac_ext | |
35286 | cat >>conftest.$ac_ext <<_ACEOF | |
35287 | /* end confdefs.h. */ | |
35288 | ||
35289 | #include <sys/types.h> | |
35290 | #include <sys/socket.h> | |
35291 | ||
35292 | int | |
35293 | main () | |
35294 | { | |
35295 | ||
35296 | socklen_t len; | |
35297 | getsockname(0, 0, &len); | |
35298 | ||
35299 | ; | |
35300 | return 0; | |
35301 | } | |
35302 | _ACEOF | |
35303 | rm -f conftest.$ac_objext | |
35304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35305 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35306 | ac_status=$? |
ac1cb8d3 VS |
35307 | grep -v '^ *+' conftest.er1 >conftest.err |
35308 | rm -f conftest.er1 | |
35309 | cat conftest.err >&5 | |
a848cd7e SC |
35310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35311 | (exit $ac_status); } && | |
4d4ff94c | 35312 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35314 | (eval $ac_try) 2>&5 | |
35315 | ac_status=$? | |
35316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35317 | (exit $ac_status); }; } && | |
35318 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35320 | (eval $ac_try) 2>&5 | |
35321 | ac_status=$? | |
35322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35323 | (exit $ac_status); }; }; then | |
35324 | wx_cv_type_getsockname3=socklen_t | |
35325 | else | |
35326 | echo "$as_me: failed program was:" >&5 | |
35327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35328 | ||
35329 | ||
35330 | CFLAGS_OLD="$CFLAGS" | |
35331 | if test "$GCC" = yes ; then | |
35332 | CFLAGS="$CFLAGS -Werror" | |
35333 | fi | |
35334 | ||
35335 | cat >conftest.$ac_ext <<_ACEOF | |
35336 | /* confdefs.h. */ | |
35337 | _ACEOF | |
35338 | cat confdefs.h >>conftest.$ac_ext | |
35339 | cat >>conftest.$ac_ext <<_ACEOF | |
35340 | /* end confdefs.h. */ | |
35341 | ||
35342 | #include <sys/types.h> | |
35343 | #include <sys/socket.h> | |
35344 | ||
35345 | int | |
35346 | main () | |
35347 | { | |
35348 | ||
35349 | size_t len; | |
35350 | getsockname(0, 0, &len); | |
35351 | ||
35352 | ; | |
35353 | return 0; | |
35354 | } | |
35355 | _ACEOF | |
35356 | rm -f conftest.$ac_objext | |
35357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35358 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35359 | ac_status=$? |
ac1cb8d3 VS |
35360 | grep -v '^ *+' conftest.er1 >conftest.err |
35361 | rm -f conftest.er1 | |
35362 | cat conftest.err >&5 | |
a848cd7e SC |
35363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35364 | (exit $ac_status); } && | |
4d4ff94c | 35365 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35367 | (eval $ac_try) 2>&5 | |
35368 | ac_status=$? | |
35369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35370 | (exit $ac_status); }; } && | |
35371 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35373 | (eval $ac_try) 2>&5 | |
35374 | ac_status=$? | |
35375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35376 | (exit $ac_status); }; }; then | |
35377 | wx_cv_type_getsockname3=size_t | |
35378 | else | |
35379 | echo "$as_me: failed program was:" >&5 | |
35380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35381 | ||
35382 | cat >conftest.$ac_ext <<_ACEOF | |
35383 | /* confdefs.h. */ | |
35384 | _ACEOF | |
35385 | cat confdefs.h >>conftest.$ac_ext | |
35386 | cat >>conftest.$ac_ext <<_ACEOF | |
35387 | /* end confdefs.h. */ | |
35388 | ||
35389 | #include <sys/types.h> | |
35390 | #include <sys/socket.h> | |
35391 | ||
35392 | int | |
35393 | main () | |
35394 | { | |
35395 | ||
35396 | int len; | |
35397 | getsockname(0, 0, &len); | |
35398 | ||
35399 | ; | |
35400 | return 0; | |
35401 | } | |
35402 | _ACEOF | |
35403 | rm -f conftest.$ac_objext | |
35404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35405 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35406 | ac_status=$? |
ac1cb8d3 VS |
35407 | grep -v '^ *+' conftest.er1 >conftest.err |
35408 | rm -f conftest.er1 | |
35409 | cat conftest.err >&5 | |
a848cd7e SC |
35410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35411 | (exit $ac_status); } && | |
4d4ff94c | 35412 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35414 | (eval $ac_try) 2>&5 | |
35415 | ac_status=$? | |
35416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35417 | (exit $ac_status); }; } && | |
35418 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35420 | (eval $ac_try) 2>&5 | |
35421 | ac_status=$? | |
35422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35423 | (exit $ac_status); }; }; then | |
35424 | wx_cv_type_getsockname3=int | |
35425 | else | |
35426 | echo "$as_me: failed program was:" >&5 | |
35427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35428 | ||
35429 | wx_cv_type_getsockname3=unknown | |
35430 | ||
35431 | fi | |
ac1cb8d3 | 35432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35433 | |
35434 | fi | |
ac1cb8d3 | 35435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35436 | |
35437 | CFLAGS="$CFLAGS_OLD" | |
35438 | ||
35439 | ||
35440 | fi | |
ac1cb8d3 | 35441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35442 | |
35443 | fi | |
35444 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35445 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35446 | ||
35447 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35448 | wxUSE_SOCKETS=no | |
35449 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35450 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35451 | else | |
35452 | cat >>confdefs.h <<_ACEOF | |
35453 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35454 | _ACEOF | |
35455 | ||
35456 | fi | |
4d4ff94c VZ |
35457 | ac_ext=c |
35458 | ac_cpp='$CPP $CPPFLAGS' | |
35459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35462 | ||
a848cd7e SC |
35463 | fi |
35464 | fi | |
35465 | ||
35466 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35467 | cat >>confdefs.h <<\_ACEOF | |
35468 | #define wxUSE_SOCKETS 1 | |
35469 | _ACEOF | |
35470 | ||
35471 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35472 | fi | |
35473 | ||
35474 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35475 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35476 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35477 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35478 | wxUSE_PROTOCOL=no | |
35479 | fi | |
35480 | fi | |
35481 | ||
35482 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35483 | cat >>confdefs.h <<\_ACEOF | |
35484 | #define wxUSE_PROTOCOL 1 | |
35485 | _ACEOF | |
35486 | ||
35487 | ||
35488 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35489 | cat >>confdefs.h <<\_ACEOF | |
35490 | #define wxUSE_PROTOCOL_HTTP 1 | |
35491 | _ACEOF | |
35492 | ||
35493 | fi | |
35494 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35495 | cat >>confdefs.h <<\_ACEOF | |
35496 | #define wxUSE_PROTOCOL_FTP 1 | |
35497 | _ACEOF | |
35498 | ||
35499 | fi | |
35500 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35501 | cat >>confdefs.h <<\_ACEOF | |
35502 | #define wxUSE_PROTOCOL_FILE 1 | |
35503 | _ACEOF | |
35504 | ||
35505 | fi | |
35506 | else | |
35507 | if test "$wxUSE_FS_INET" = "yes"; then | |
35508 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35509 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35510 | wxUSE_FS_INET="no" | |
35511 | fi | |
35512 | fi | |
35513 | ||
35514 | if test "$wxUSE_URL" = "yes"; then | |
35515 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35516 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35517 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35518 | wxUSE_URL=no | |
35519 | fi | |
35520 | if test "$wxUSE_URL" = "yes"; then | |
35521 | cat >>confdefs.h <<\_ACEOF | |
35522 | #define wxUSE_URL 1 | |
35523 | _ACEOF | |
35524 | ||
35525 | fi | |
35526 | fi | |
35527 | ||
35528 | if test "$wxUSE_FS_INET" = "yes"; then | |
35529 | cat >>confdefs.h <<\_ACEOF | |
35530 | #define wxUSE_FS_INET 1 | |
35531 | _ACEOF | |
35532 | ||
35533 | fi | |
35534 | ||
35535 | ||
35536 | if test "$wxUSE_GUI" = "yes"; then | |
35537 | ||
35538 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35539 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35540 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35541 | wxUSE_JOYSTICK=no | |
35542 | fi | |
35543 | ||
35544 | if test "$TOOLKIT" != "MSW"; then | |
35545 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35546 | ||
35547 | for ac_header in linux/joystick.h | |
35548 | do | |
35549 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35550 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35551 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35553 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35555 | fi | |
35556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35557 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35558 | else | |
35559 | # Is the header compilable? | |
35560 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35561 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35562 | cat >conftest.$ac_ext <<_ACEOF | |
35563 | /* confdefs.h. */ | |
35564 | _ACEOF | |
35565 | cat confdefs.h >>conftest.$ac_ext | |
35566 | cat >>conftest.$ac_ext <<_ACEOF | |
35567 | /* end confdefs.h. */ | |
35568 | $ac_includes_default | |
35569 | #include <$ac_header> | |
35570 | _ACEOF | |
35571 | rm -f conftest.$ac_objext | |
35572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35573 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35574 | ac_status=$? |
ac1cb8d3 VS |
35575 | grep -v '^ *+' conftest.er1 >conftest.err |
35576 | rm -f conftest.er1 | |
35577 | cat conftest.err >&5 | |
a848cd7e SC |
35578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35579 | (exit $ac_status); } && | |
4d4ff94c | 35580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35582 | (eval $ac_try) 2>&5 | |
35583 | ac_status=$? | |
35584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35585 | (exit $ac_status); }; } && | |
35586 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35588 | (eval $ac_try) 2>&5 | |
35589 | ac_status=$? | |
35590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35591 | (exit $ac_status); }; }; then | |
35592 | ac_header_compiler=yes | |
35593 | else | |
35594 | echo "$as_me: failed program was:" >&5 | |
35595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35596 | ||
35597 | ac_header_compiler=no | |
35598 | fi | |
ac1cb8d3 | 35599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35600 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35601 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35602 | ||
35603 | # Is the header present? | |
35604 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35605 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35606 | cat >conftest.$ac_ext <<_ACEOF | |
35607 | /* confdefs.h. */ | |
35608 | _ACEOF | |
35609 | cat confdefs.h >>conftest.$ac_ext | |
35610 | cat >>conftest.$ac_ext <<_ACEOF | |
35611 | /* end confdefs.h. */ | |
35612 | #include <$ac_header> | |
35613 | _ACEOF | |
35614 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35615 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35616 | ac_status=$? | |
35617 | grep -v '^ *+' conftest.er1 >conftest.err | |
35618 | rm -f conftest.er1 | |
35619 | cat conftest.err >&5 | |
35620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35621 | (exit $ac_status); } >/dev/null; then | |
35622 | if test -s conftest.err; then | |
35623 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35624 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35625 | else |
35626 | ac_cpp_err= | |
35627 | fi | |
35628 | else | |
35629 | ac_cpp_err=yes | |
35630 | fi | |
35631 | if test -z "$ac_cpp_err"; then | |
35632 | ac_header_preproc=yes | |
35633 | else | |
35634 | echo "$as_me: failed program was:" >&5 | |
35635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35636 | ||
35637 | ac_header_preproc=no | |
35638 | fi | |
35639 | rm -f conftest.err conftest.$ac_ext | |
35640 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35641 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35642 | ||
35643 | # So? What about this header? | |
ac1cb8d3 VS |
35644 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35645 | yes:no: ) | |
a848cd7e SC |
35646 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35647 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35648 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35649 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35650 | ac_header_preproc=yes | |
a848cd7e | 35651 | ;; |
ac1cb8d3 | 35652 | no:yes:* ) |
a848cd7e SC |
35653 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35654 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35655 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35656 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35657 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35658 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35659 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35660 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35661 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35662 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35663 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35664 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35665 | ( |
35666 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35667 | ## ----------------------------------------- ## |
35668 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35669 | ## ----------------------------------------- ## | |
a848cd7e SC |
35670 | _ASBOX |
35671 | ) | | |
35672 | sed "s/^/$as_me: WARNING: /" >&2 | |
35673 | ;; | |
35674 | esac | |
35675 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35676 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35677 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35679 | else | |
ac1cb8d3 | 35680 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35681 | fi |
35682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35683 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35684 | ||
35685 | fi | |
35686 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35687 | cat >>confdefs.h <<_ACEOF | |
35688 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35689 | _ACEOF | |
35690 | ||
35691 | fi | |
35692 | ||
35693 | done | |
35694 | ||
35695 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
35696 | wxUSE_JOYSTICK=no | |
35697 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
35698 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
35699 | fi | |
35700 | fi | |
35701 | fi | |
35702 | ||
35703 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35704 | cat >>confdefs.h <<\_ACEOF | |
35705 | #define wxUSE_JOYSTICK 1 | |
35706 | _ACEOF | |
35707 | ||
35708 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
35709 | fi | |
35710 | fi | |
35711 | ||
35712 | ||
35713 | ||
35714 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
35715 | cat >>confdefs.h <<\_ACEOF | |
35716 | #define wxUSE_FONTMAP 1 | |
35717 | _ACEOF | |
35718 | ||
35719 | fi | |
35720 | ||
35721 | if test "$wxUSE_UNICODE" = "yes" ; then | |
35722 | cat >>confdefs.h <<\_ACEOF | |
35723 | #define wxUSE_UNICODE 1 | |
35724 | _ACEOF | |
35725 | ||
35726 | ||
35727 | if test "$USE_WIN32" != 1; then | |
35728 | wxUSE_UNICODE_MSLU=no | |
35729 | fi | |
35730 | ||
35731 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
35732 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
35733 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
35734 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
35735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35736 | else | |
35737 | ac_check_lib_save_LIBS=$LIBS | |
35738 | LIBS="-lunicows $LIBS" | |
35739 | cat >conftest.$ac_ext <<_ACEOF | |
35740 | /* confdefs.h. */ | |
35741 | _ACEOF | |
35742 | cat confdefs.h >>conftest.$ac_ext | |
35743 | cat >>conftest.$ac_ext <<_ACEOF | |
35744 | /* end confdefs.h. */ | |
35745 | ||
35746 | ||
35747 | int | |
35748 | main () | |
35749 | { | |
35750 | main (); | |
35751 | ; | |
35752 | return 0; | |
35753 | } | |
35754 | _ACEOF | |
35755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35757 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35758 | ac_status=$? |
ac1cb8d3 VS |
35759 | grep -v '^ *+' conftest.er1 >conftest.err |
35760 | rm -f conftest.er1 | |
35761 | cat conftest.err >&5 | |
a848cd7e SC |
35762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35763 | (exit $ac_status); } && | |
4d4ff94c | 35764 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35766 | (eval $ac_try) 2>&5 | |
35767 | ac_status=$? | |
35768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35769 | (exit $ac_status); }; } && | |
35770 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35772 | (eval $ac_try) 2>&5 | |
35773 | ac_status=$? | |
35774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35775 | (exit $ac_status); }; }; then | |
35776 | ac_cv_lib_unicows_main=yes | |
35777 | else | |
35778 | echo "$as_me: failed program was:" >&5 | |
35779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35780 | ||
35781 | ac_cv_lib_unicows_main=no | |
35782 | fi | |
ac1cb8d3 VS |
35783 | rm -f conftest.err conftest.$ac_objext \ |
35784 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35785 | LIBS=$ac_check_lib_save_LIBS |
35786 | fi | |
35787 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
35788 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
35789 | if test $ac_cv_lib_unicows_main = yes; then | |
35790 | ||
35791 | cat >>confdefs.h <<\_ACEOF | |
35792 | #define wxUSE_UNICODE_MSLU 1 | |
35793 | _ACEOF | |
35794 | ||
35795 | ||
35796 | else | |
35797 | ||
35798 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35799 | Applications will only run on Windows NT/2000/XP!" >&5 | |
35800 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35801 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
35802 | wxUSE_UNICODE_MSLU=no | |
35803 | ||
35804 | fi | |
35805 | ||
35806 | fi | |
35807 | fi | |
35808 | ||
35809 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
35810 | cat >>confdefs.h <<\_ACEOF | |
35811 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
35812 | _ACEOF | |
35813 | ||
35814 | fi | |
35815 | ||
35816 | ||
35817 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
35818 | cat >>confdefs.h <<\_ACEOF | |
35819 | #define wxUSE_POSTSCRIPT 1 | |
35820 | _ACEOF | |
35821 | ||
35822 | fi | |
35823 | ||
35824 | cat >>confdefs.h <<\_ACEOF | |
35825 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
35826 | _ACEOF | |
35827 | ||
35828 | ||
35829 | cat >>confdefs.h <<\_ACEOF | |
35830 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
35831 | _ACEOF | |
35832 | ||
35833 | ||
35834 | ||
35835 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
35836 | cat >>confdefs.h <<\_ACEOF | |
35837 | #define wxUSE_CONSTRAINTS 1 | |
35838 | _ACEOF | |
35839 | ||
35840 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
35841 | fi | |
35842 | ||
8a7b1113 VZ |
35843 | if test "$wxUSE_MDI" = "yes"; then |
35844 | cat >>confdefs.h <<\_ACEOF | |
35845 | #define wxUSE_MDI 1 | |
35846 | _ACEOF | |
35847 | ||
35848 | ||
35849 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
35850 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
35851 | #define wxUSE_MDI_ARCHITECTURE 1 |
35852 | _ACEOF | |
35853 | ||
8a7b1113 VZ |
35854 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
35855 | fi | |
a848cd7e SC |
35856 | fi |
35857 | ||
35858 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
35859 | cat >>confdefs.h <<\_ACEOF | |
35860 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
35861 | _ACEOF | |
35862 | ||
35863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
35864 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
35865 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
35866 | fi | |
35867 | fi | |
35868 | ||
35869 | if test "$wxUSE_HELP" = "yes"; then | |
35870 | cat >>confdefs.h <<\_ACEOF | |
35871 | #define wxUSE_HELP 1 | |
35872 | _ACEOF | |
35873 | ||
35874 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
35875 | ||
35876 | if test "$wxUSE_MSW" = 1; then | |
35877 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
35878 | cat >>confdefs.h <<\_ACEOF | |
35879 | #define wxUSE_MS_HTML_HELP 1 | |
35880 | _ACEOF | |
35881 | ||
35882 | fi | |
35883 | fi | |
35884 | ||
35885 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
35886 | if test "$wxUSE_HTML" = "yes"; then | |
35887 | cat >>confdefs.h <<\_ACEOF | |
35888 | #define wxUSE_WXHTML_HELP 1 | |
35889 | _ACEOF | |
35890 | ||
35891 | else | |
35892 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
35893 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
35894 | wxUSE_WXHTML_HELP=no | |
35895 | fi | |
35896 | fi | |
35897 | fi | |
35898 | ||
35899 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
35900 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
35901 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
35902 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
35903 | else | |
35904 | cat >>confdefs.h <<\_ACEOF | |
35905 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
35906 | _ACEOF | |
35907 | ||
35908 | fi | |
35909 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
35910 | fi | |
35911 | ||
35912 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
35913 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
35914 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
35915 | { (exit 1); exit 1; }; } | |
35916 | fi | |
35917 | ||
35918 | ||
35919 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
35920 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
35921 | -o "$wxUSE_OLE" = "yes" \ | |
35922 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
35923 | ||
35924 | for ac_header in ole2.h | |
35925 | do | |
35926 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35932 | fi | |
35933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35935 | else | |
35936 | # Is the header compilable? | |
35937 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35939 | cat >conftest.$ac_ext <<_ACEOF | |
35940 | /* confdefs.h. */ | |
35941 | _ACEOF | |
35942 | cat confdefs.h >>conftest.$ac_ext | |
35943 | cat >>conftest.$ac_ext <<_ACEOF | |
35944 | /* end confdefs.h. */ | |
35945 | $ac_includes_default | |
35946 | #include <$ac_header> | |
35947 | _ACEOF | |
35948 | rm -f conftest.$ac_objext | |
35949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35950 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35951 | ac_status=$? |
ac1cb8d3 VS |
35952 | grep -v '^ *+' conftest.er1 >conftest.err |
35953 | rm -f conftest.er1 | |
35954 | cat conftest.err >&5 | |
a848cd7e SC |
35955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35956 | (exit $ac_status); } && | |
4d4ff94c | 35957 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35959 | (eval $ac_try) 2>&5 | |
35960 | ac_status=$? | |
35961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35962 | (exit $ac_status); }; } && | |
35963 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35965 | (eval $ac_try) 2>&5 | |
35966 | ac_status=$? | |
35967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35968 | (exit $ac_status); }; }; then | |
35969 | ac_header_compiler=yes | |
35970 | else | |
35971 | echo "$as_me: failed program was:" >&5 | |
35972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35973 | ||
35974 | ac_header_compiler=no | |
35975 | fi | |
ac1cb8d3 | 35976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35977 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35978 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35979 | ||
35980 | # Is the header present? | |
35981 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35982 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35983 | cat >conftest.$ac_ext <<_ACEOF | |
35984 | /* confdefs.h. */ | |
35985 | _ACEOF | |
35986 | cat confdefs.h >>conftest.$ac_ext | |
35987 | cat >>conftest.$ac_ext <<_ACEOF | |
35988 | /* end confdefs.h. */ | |
35989 | #include <$ac_header> | |
35990 | _ACEOF | |
35991 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35992 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35993 | ac_status=$? | |
35994 | grep -v '^ *+' conftest.er1 >conftest.err | |
35995 | rm -f conftest.er1 | |
35996 | cat conftest.err >&5 | |
35997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35998 | (exit $ac_status); } >/dev/null; then | |
35999 | if test -s conftest.err; then | |
36000 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36001 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36002 | else |
36003 | ac_cpp_err= | |
36004 | fi | |
36005 | else | |
36006 | ac_cpp_err=yes | |
36007 | fi | |
36008 | if test -z "$ac_cpp_err"; then | |
36009 | ac_header_preproc=yes | |
36010 | else | |
36011 | echo "$as_me: failed program was:" >&5 | |
36012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36013 | ||
36014 | ac_header_preproc=no | |
36015 | fi | |
36016 | rm -f conftest.err conftest.$ac_ext | |
36017 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36018 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36019 | ||
36020 | # So? What about this header? | |
ac1cb8d3 VS |
36021 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36022 | yes:no: ) | |
a848cd7e SC |
36023 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36024 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36025 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36026 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36027 | ac_header_preproc=yes | |
a848cd7e | 36028 | ;; |
ac1cb8d3 | 36029 | no:yes:* ) |
a848cd7e SC |
36030 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36031 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36032 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36033 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36034 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36035 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36036 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36037 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36039 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36040 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36041 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36042 | ( |
36043 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36044 | ## ----------------------------------------- ## |
36045 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36046 | ## ----------------------------------------- ## | |
a848cd7e SC |
36047 | _ASBOX |
36048 | ) | | |
36049 | sed "s/^/$as_me: WARNING: /" >&2 | |
36050 | ;; | |
36051 | esac | |
36052 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36056 | else | |
ac1cb8d3 | 36057 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36058 | fi |
36059 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36060 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36061 | ||
36062 | fi | |
36063 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36064 | cat >>confdefs.h <<_ACEOF | |
36065 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36066 | _ACEOF | |
36067 | ||
36068 | fi | |
36069 | ||
36070 | done | |
36071 | ||
36072 | ||
36073 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36074 | if test "$GCC" = yes ; then | |
36075 | ||
36076 | ||
36077 | ac_ext=cc | |
36078 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36079 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36080 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36081 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36082 | ||
36083 | ||
36084 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36085 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36086 | cat >conftest.$ac_ext <<_ACEOF | |
36087 | /* confdefs.h. */ | |
36088 | _ACEOF | |
36089 | cat confdefs.h >>conftest.$ac_ext | |
36090 | cat >>conftest.$ac_ext <<_ACEOF | |
36091 | /* end confdefs.h. */ | |
36092 | #include <windows.h> | |
36093 | #include <ole2.h> | |
36094 | int | |
36095 | main () | |
36096 | { | |
36097 | ||
36098 | ; | |
36099 | return 0; | |
36100 | } | |
36101 | _ACEOF | |
36102 | rm -f conftest.$ac_objext | |
36103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36104 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36105 | ac_status=$? |
ac1cb8d3 VS |
36106 | grep -v '^ *+' conftest.er1 >conftest.err |
36107 | rm -f conftest.er1 | |
36108 | cat conftest.err >&5 | |
a848cd7e SC |
36109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36110 | (exit $ac_status); } && | |
4d4ff94c | 36111 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36113 | (eval $ac_try) 2>&5 | |
36114 | ac_status=$? | |
36115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36116 | (exit $ac_status); }; } && | |
36117 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36119 | (eval $ac_try) 2>&5 | |
36120 | ac_status=$? | |
36121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36122 | (exit $ac_status); }; }; then | |
36123 | echo "$as_me:$LINENO: result: no" >&5 | |
36124 | echo "${ECHO_T}no" >&6 | |
36125 | else | |
36126 | echo "$as_me: failed program was:" >&5 | |
36127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36128 | ||
36129 | echo "$as_me:$LINENO: result: yes" >&5 | |
36130 | echo "${ECHO_T}yes" >&6 | |
36131 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36132 | fi | |
ac1cb8d3 | 36133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36134 | ac_ext=c |
36135 | ac_cpp='$CPP $CPPFLAGS' | |
36136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36139 | ||
36140 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
36141 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
36142 | if test "$wxUSE_OLE" = "yes" ; then | |
36143 | cat >>confdefs.h <<\_ACEOF | |
36144 | #define wxUSE_OLE 1 | |
36145 | _ACEOF | |
36146 | ||
36147 | fi | |
36148 | fi | |
36149 | ||
36150 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36151 | cat >>confdefs.h <<\_ACEOF | |
36152 | #define wxUSE_DATAOBJ 1 | |
36153 | _ACEOF | |
36154 | ||
36155 | fi | |
36156 | else | |
36157 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36158 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36159 | ||
36160 | wxUSE_CLIPBOARD=no | |
36161 | wxUSE_DRAG_AND_DROP=no | |
36162 | wxUSE_DATAOBJ=no | |
36163 | wxUSE_OLE=no | |
36164 | fi | |
36165 | ||
36166 | if test "$wxUSE_METAFILE" = "yes"; then | |
36167 | cat >>confdefs.h <<\_ACEOF | |
36168 | #define wxUSE_METAFILE 1 | |
36169 | _ACEOF | |
36170 | ||
36171 | ||
36172 | cat >>confdefs.h <<\_ACEOF | |
36173 | #define wxUSE_ENH_METAFILE 1 | |
36174 | _ACEOF | |
36175 | ||
36176 | fi | |
36177 | fi | |
36178 | ||
36179 | if test "$wxUSE_IPC" = "yes"; then | |
36180 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36181 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36182 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36183 | fi |
36184 | ||
36185 | cat >>confdefs.h <<\_ACEOF | |
36186 | #define wxUSE_IPC 1 | |
36187 | _ACEOF | |
36188 | ||
36189 | fi | |
36190 | ||
36191 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36192 | if test "$wxUSE_MGL" = 1; then | |
36193 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36194 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36195 | wxUSE_CLIPBOARD=no | |
36196 | fi | |
36197 | ||
36198 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36199 | cat >>confdefs.h <<\_ACEOF | |
36200 | #define wxUSE_CLIPBOARD 1 | |
36201 | _ACEOF | |
36202 | ||
36203 | ||
36204 | cat >>confdefs.h <<\_ACEOF | |
36205 | #define wxUSE_DATAOBJ 1 | |
36206 | _ACEOF | |
36207 | ||
36208 | fi | |
36209 | fi | |
36210 | ||
36211 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36212 | if test "$wxUSE_GTK" = 1; then | |
36213 | if test "$WXGTK12" != 1; then | |
36214 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36215 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36216 | wxUSE_DRAG_AND_DROP=no | |
36217 | fi | |
36218 | fi | |
36219 | ||
36220 | if test "$wxUSE_MOTIF" = 1; then | |
36221 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36222 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36223 | wxUSE_DRAG_AND_DROP=no | |
36224 | fi | |
36225 | ||
36226 | if test "$wxUSE_X11" = 1; then | |
36227 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36228 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36229 | wxUSE_DRAG_AND_DROP=no | |
36230 | fi | |
36231 | ||
36232 | if test "$wxUSE_MGL" = 1; then | |
36233 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36234 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36235 | wxUSE_DRAG_AND_DROP=no | |
36236 | fi | |
36237 | ||
36238 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36239 | cat >>confdefs.h <<\_ACEOF | |
36240 | #define wxUSE_DRAG_AND_DROP 1 | |
36241 | _ACEOF | |
36242 | ||
36243 | fi | |
36244 | ||
36245 | fi | |
36246 | ||
36247 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36249 | fi | |
36250 | ||
36251 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36252 | cat >>confdefs.h <<\_ACEOF | |
36253 | #define wxUSE_SPLINES 1 | |
36254 | _ACEOF | |
36255 | ||
36256 | fi | |
36257 | ||
36258 | ||
36259 | USES_CONTROLS=0 | |
36260 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36261 | USES_CONTROLS=1 | |
36262 | fi | |
36263 | ||
36264 | if test "$wxUSE_ACCEL" = "yes"; then | |
36265 | cat >>confdefs.h <<\_ACEOF | |
36266 | #define wxUSE_ACCEL 1 | |
36267 | _ACEOF | |
36268 | ||
36269 | USES_CONTROLS=1 | |
36270 | fi | |
36271 | ||
36272 | if test "$wxUSE_BUTTON" = "yes"; then | |
36273 | cat >>confdefs.h <<\_ACEOF | |
36274 | #define wxUSE_BUTTON 1 | |
36275 | _ACEOF | |
36276 | ||
36277 | USES_CONTROLS=1 | |
36278 | fi | |
36279 | ||
36280 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36281 | cat >>confdefs.h <<\_ACEOF | |
36282 | #define wxUSE_BMPBUTTON 1 | |
36283 | _ACEOF | |
36284 | ||
36285 | USES_CONTROLS=1 | |
36286 | fi | |
36287 | ||
36288 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36289 | cat >>confdefs.h <<\_ACEOF | |
36290 | #define wxUSE_CALENDARCTRL 1 | |
36291 | _ACEOF | |
36292 | ||
36293 | USES_CONTROLS=1 | |
36294 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36295 | fi | |
36296 | ||
36297 | if test "$wxUSE_CARET" = "yes"; then | |
36298 | cat >>confdefs.h <<\_ACEOF | |
36299 | #define wxUSE_CARET 1 | |
36300 | _ACEOF | |
36301 | ||
36302 | USES_CONTROLS=1 | |
36303 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36304 | fi | |
36305 | ||
36306 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36307 | cat >>confdefs.h <<\_ACEOF | |
36308 | #define wxUSE_COMBOBOX 1 | |
36309 | _ACEOF | |
36310 | ||
36311 | USES_CONTROLS=1 | |
36312 | fi | |
36313 | ||
36314 | if test "$wxUSE_CHOICE" = "yes"; then | |
36315 | cat >>confdefs.h <<\_ACEOF | |
36316 | #define wxUSE_CHOICE 1 | |
36317 | _ACEOF | |
36318 | ||
36319 | USES_CONTROLS=1 | |
36320 | fi | |
36321 | ||
92bbdbcd WS |
36322 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
36323 | cat >>confdefs.h <<\_ACEOF | |
36324 | #define wxUSE_CHOICEBOOK 1 | |
36325 | _ACEOF | |
36326 | ||
36327 | USES_CONTROLS=1 | |
36328 | fi | |
36329 | ||
a848cd7e SC |
36330 | if test "$wxUSE_CHECKBOX" = "yes"; then |
36331 | cat >>confdefs.h <<\_ACEOF | |
36332 | #define wxUSE_CHECKBOX 1 | |
36333 | _ACEOF | |
36334 | ||
36335 | USES_CONTROLS=1 | |
36336 | fi | |
36337 | ||
36338 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36339 | cat >>confdefs.h <<\_ACEOF | |
36340 | #define wxUSE_CHECKLISTBOX 1 | |
36341 | _ACEOF | |
36342 | ||
36343 | USES_CONTROLS=1 | |
36344 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36345 | fi | |
36346 | ||
36347 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36348 | cat >>confdefs.h <<\_ACEOF | |
36349 | #define wxUSE_DISPLAY 1 | |
36350 | _ACEOF | |
36351 | ||
36352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36353 | fi | |
36354 | ||
36355 | if test "$wxUSE_GAUGE" = "yes"; then | |
36356 | cat >>confdefs.h <<\_ACEOF | |
36357 | #define wxUSE_GAUGE 1 | |
36358 | _ACEOF | |
36359 | ||
36360 | USES_CONTROLS=1 | |
36361 | fi | |
36362 | ||
36363 | if test "$wxUSE_GRID" = "yes"; then | |
36364 | cat >>confdefs.h <<\_ACEOF | |
36365 | #define wxUSE_GRID 1 | |
36366 | _ACEOF | |
36367 | ||
36368 | USES_CONTROLS=1 | |
36369 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36370 | fi | |
36371 | ||
36372 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36373 | cat >>confdefs.h <<\_ACEOF | |
36374 | #define wxUSE_IMAGLIST 1 | |
36375 | _ACEOF | |
36376 | ||
36377 | fi | |
36378 | ||
36379 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36380 | cat >>confdefs.h <<\_ACEOF | |
36381 | #define wxUSE_LISTBOOK 1 | |
36382 | _ACEOF | |
36383 | ||
36384 | USES_CONTROLS=1 | |
36385 | fi | |
36386 | ||
36387 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36388 | cat >>confdefs.h <<\_ACEOF | |
36389 | #define wxUSE_LISTBOX 1 | |
36390 | _ACEOF | |
36391 | ||
36392 | USES_CONTROLS=1 | |
36393 | fi | |
36394 | ||
36395 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36396 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36397 | cat >>confdefs.h <<\_ACEOF | |
36398 | #define wxUSE_LISTCTRL 1 | |
36399 | _ACEOF | |
36400 | ||
36401 | USES_CONTROLS=1 | |
36402 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36403 | else | |
36404 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36405 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36406 | fi | |
36407 | fi | |
36408 | ||
36409 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36410 | cat >>confdefs.h <<\_ACEOF | |
36411 | #define wxUSE_NOTEBOOK 1 | |
36412 | _ACEOF | |
36413 | ||
36414 | USES_CONTROLS=1 | |
36415 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36416 | fi | |
36417 | ||
36418 | ||
36419 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36420 | cat >>confdefs.h <<\_ACEOF | |
36421 | #define wxUSE_RADIOBOX 1 | |
36422 | _ACEOF | |
36423 | ||
36424 | USES_CONTROLS=1 | |
36425 | fi | |
36426 | ||
36427 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36428 | cat >>confdefs.h <<\_ACEOF | |
36429 | #define wxUSE_RADIOBTN 1 | |
36430 | _ACEOF | |
36431 | ||
36432 | USES_CONTROLS=1 | |
36433 | fi | |
36434 | ||
36435 | if test "$wxUSE_SASH" = "yes"; then | |
36436 | cat >>confdefs.h <<\_ACEOF | |
36437 | #define wxUSE_SASH 1 | |
36438 | _ACEOF | |
36439 | ||
36440 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36441 | fi | |
36442 | ||
36443 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36444 | cat >>confdefs.h <<\_ACEOF | |
36445 | #define wxUSE_SCROLLBAR 1 | |
36446 | _ACEOF | |
36447 | ||
36448 | USES_CONTROLS=1 | |
36449 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36450 | fi | |
36451 | ||
36452 | if test "$wxUSE_SLIDER" = "yes"; then | |
36453 | cat >>confdefs.h <<\_ACEOF | |
36454 | #define wxUSE_SLIDER 1 | |
36455 | _ACEOF | |
36456 | ||
36457 | USES_CONTROLS=1 | |
36458 | fi | |
36459 | ||
36460 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36461 | cat >>confdefs.h <<\_ACEOF | |
36462 | #define wxUSE_SPINBTN 1 | |
36463 | _ACEOF | |
36464 | ||
36465 | USES_CONTROLS=1 | |
36466 | fi | |
36467 | ||
36468 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36469 | cat >>confdefs.h <<\_ACEOF | |
36470 | #define wxUSE_SPINCTRL 1 | |
36471 | _ACEOF | |
36472 | ||
36473 | USES_CONTROLS=1 | |
36474 | fi | |
36475 | ||
36476 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36477 | cat >>confdefs.h <<\_ACEOF | |
36478 | #define wxUSE_SPLITTER 1 | |
36479 | _ACEOF | |
36480 | ||
36481 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36482 | fi | |
36483 | ||
36484 | if test "$wxUSE_STATBMP" = "yes"; then | |
36485 | cat >>confdefs.h <<\_ACEOF | |
36486 | #define wxUSE_STATBMP 1 | |
36487 | _ACEOF | |
36488 | ||
36489 | USES_CONTROLS=1 | |
36490 | fi | |
36491 | ||
36492 | if test "$wxUSE_STATBOX" = "yes"; then | |
36493 | cat >>confdefs.h <<\_ACEOF | |
36494 | #define wxUSE_STATBOX 1 | |
36495 | _ACEOF | |
36496 | ||
36497 | USES_CONTROLS=1 | |
36498 | fi | |
36499 | ||
36500 | if test "$wxUSE_STATTEXT" = "yes"; then | |
36501 | cat >>confdefs.h <<\_ACEOF | |
36502 | #define wxUSE_STATTEXT 1 | |
36503 | _ACEOF | |
36504 | ||
36505 | USES_CONTROLS=1 | |
36506 | fi | |
36507 | ||
36508 | if test "$wxUSE_STATLINE" = "yes"; then | |
36509 | cat >>confdefs.h <<\_ACEOF | |
36510 | #define wxUSE_STATLINE 1 | |
36511 | _ACEOF | |
36512 | ||
36513 | USES_CONTROLS=1 | |
36514 | fi | |
36515 | ||
36516 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
36517 | cat >>confdefs.h <<\_ACEOF | |
36518 | #define wxUSE_STATUSBAR 1 | |
36519 | _ACEOF | |
36520 | ||
36521 | USES_CONTROLS=1 | |
36522 | ||
36523 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
36524 | fi | |
36525 | ||
36526 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
36527 | cat >>confdefs.h <<\_ACEOF | |
36528 | #define wxUSE_TAB_DIALOG 1 | |
36529 | _ACEOF | |
36530 | ||
36531 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36532 | fi | |
36533 | ||
36534 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
36535 | cat >>confdefs.h <<\_ACEOF | |
36536 | #define wxUSE_TEXTCTRL 1 | |
36537 | _ACEOF | |
36538 | ||
36539 | USES_CONTROLS=1 | |
36540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36541 | fi | |
36542 | ||
36543 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36544 | if test "$wxUSE_COCOA" = 1 ; then | |
36545 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
36546 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
36547 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
36548 | else |
36549 | if test "$wxUSE_PM" = 1; then | |
36550 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
36551 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
36552 | wxUSE_TOGGLEBTN=no | |
36553 | fi | |
a848cd7e SC |
36554 | fi |
36555 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36556 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
36557 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
36558 | wxUSE_TOGGLEBTN=no | |
36559 | fi | |
36560 | ||
36561 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36562 | cat >>confdefs.h <<\_ACEOF | |
36563 | #define wxUSE_TOGGLEBTN 1 | |
36564 | _ACEOF | |
36565 | ||
36566 | USES_CONTROLS=1 | |
36567 | fi | |
36568 | fi | |
36569 | ||
36570 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
36571 | cat >>confdefs.h <<\_ACEOF | |
36572 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
36573 | _ACEOF | |
36574 | ||
36575 | wxUSE_TOOLBAR="yes" | |
36576 | USES_CONTROLS=1 | |
36577 | fi | |
36578 | ||
36579 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
36580 | cat >>confdefs.h <<\_ACEOF | |
36581 | #define wxUSE_TOOLBAR 1 | |
36582 | _ACEOF | |
36583 | ||
36584 | USES_CONTROLS=1 | |
36585 | ||
36586 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
36587 | wxUSE_TOOLBAR_NATIVE="yes" | |
36588 | fi | |
36589 | ||
36590 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
36591 | cat >>confdefs.h <<\_ACEOF | |
36592 | #define wxUSE_TOOLBAR_NATIVE 1 | |
36593 | _ACEOF | |
36594 | ||
36595 | USES_CONTROLS=1 | |
36596 | fi | |
36597 | ||
36598 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
36599 | fi | |
36600 | ||
36601 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
36602 | if test "$wxUSE_MOTIF" = 1; then | |
36603 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
36604 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
36605 | else | |
36606 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36607 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
36608 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
36609 | else | |
36610 | cat >>confdefs.h <<\_ACEOF | |
36611 | #define wxUSE_TOOLTIPS 1 | |
36612 | _ACEOF | |
36613 | ||
36614 | fi | |
36615 | fi | |
36616 | fi | |
36617 | ||
36618 | if test "$wxUSE_TREECTRL" = "yes"; then | |
36619 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36620 | cat >>confdefs.h <<\_ACEOF | |
36621 | #define wxUSE_TREECTRL 1 | |
36622 | _ACEOF | |
36623 | ||
36624 | USES_CONTROLS=1 | |
36625 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
36626 | else | |
36627 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
36628 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36629 | fi | |
36630 | fi | |
36631 | ||
36632 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
36633 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
36634 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
36635 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
36636 | else | |
36637 | if test "$wxUSE_PM" = 1; then | |
36638 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
36639 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
36640 | else | |
36641 | cat >>confdefs.h <<\_ACEOF | |
36642 | #define wxUSE_POPUPWIN 1 | |
36643 | _ACEOF | |
36644 | ||
36645 | ||
36646 | USES_CONTROLS=1 | |
36647 | fi | |
36648 | fi | |
36649 | fi | |
36650 | ||
36651 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
36652 | if test "$wxUSE_PM" = 1; then | |
36653 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
36654 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
36655 | else | |
36656 | cat >>confdefs.h <<\_ACEOF | |
36657 | #define wxUSE_TIPWINDOW 1 | |
36658 | _ACEOF | |
36659 | ||
36660 | fi | |
36661 | fi | |
36662 | ||
36663 | if test "$USES_CONTROLS" = 1; then | |
36664 | cat >>confdefs.h <<\_ACEOF | |
36665 | #define wxUSE_CONTROLS 1 | |
36666 | _ACEOF | |
36667 | ||
36668 | fi | |
36669 | ||
36670 | ||
36671 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
36672 | cat >>confdefs.h <<\_ACEOF | |
36673 | #define wxUSE_ACCESSIBILITY 1 | |
36674 | _ACEOF | |
36675 | ||
36676 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36677 | fi | |
36678 | ||
36679 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
36680 | cat >>confdefs.h <<\_ACEOF | |
36681 | #define wxUSE_DRAGIMAGE 1 | |
36682 | _ACEOF | |
36683 | ||
36684 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36685 | fi | |
36686 | ||
36687 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
36688 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
36689 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
36690 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
36691 | else | |
36692 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36693 | #define wxUSE_EXCEPTIONS 1 |
36694 | _ACEOF | |
36695 | ||
07bea8f0 VS |
36696 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
36697 | fi | |
a848cd7e SC |
36698 | fi |
36699 | ||
36700 | USE_HTML=0 | |
36701 | if test "$wxUSE_HTML" = "yes"; then | |
36702 | cat >>confdefs.h <<\_ACEOF | |
36703 | #define wxUSE_HTML 1 | |
36704 | _ACEOF | |
36705 | ||
36706 | USE_HTML=1 | |
36707 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
36708 | if test "$wxUSE_MAC" = 1; then |
36709 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
36710 | fi | |
a848cd7e | 36711 | fi |
646b6ec1 | 36712 | if test "$wxUSE_WEBKIT" = "yes"; then |
07bea8f0 VS |
36713 | if test "$wxUSE_MAC" = 1; then |
36714 | old_CPPFLAGS="$CPPFLAGS" | |
36715 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
36716 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
36717 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
36718 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
36719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36720 | else | |
36721 | cat >conftest.$ac_ext <<_ACEOF | |
36722 | /* confdefs.h. */ | |
36723 | _ACEOF | |
36724 | cat confdefs.h >>conftest.$ac_ext | |
36725 | cat >>conftest.$ac_ext <<_ACEOF | |
36726 | /* end confdefs.h. */ | |
36727 | #include <Carbon/Carbon.h> | |
36728 | ||
36729 | #include <WebKit/HIWebView.h> | |
36730 | _ACEOF | |
36731 | rm -f conftest.$ac_objext | |
36732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36733 | (eval $ac_compile) 2>conftest.er1 | |
36734 | ac_status=$? | |
36735 | grep -v '^ *+' conftest.er1 >conftest.err | |
36736 | rm -f conftest.er1 | |
36737 | cat conftest.err >&5 | |
36738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36739 | (exit $ac_status); } && | |
4d4ff94c | 36740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
36741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36742 | (eval $ac_try) 2>&5 | |
36743 | ac_status=$? | |
36744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36745 | (exit $ac_status); }; } && | |
36746 | { ac_try='test -s conftest.$ac_objext' | |
36747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36748 | (eval $ac_try) 2>&5 | |
36749 | ac_status=$? | |
36750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36751 | (exit $ac_status); }; }; then | |
36752 | ac_cv_header_WebKit_HIWebView_h=yes | |
36753 | else | |
36754 | echo "$as_me: failed program was:" >&5 | |
36755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36756 | ||
36757 | ac_cv_header_WebKit_HIWebView_h=no | |
36758 | fi | |
36759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36760 | fi | |
36761 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
36762 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
36763 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
36764 | ||
36765 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
36766 | #define wxUSE_WEBKIT 1 |
36767 | _ACEOF | |
36768 | ||
07bea8f0 VS |
36769 | WEBKIT_LINK="-framework WebKit" |
36770 | ||
36771 | else | |
36772 | ||
36773 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
36774 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
36775 | wxUSE_WEBKIT=no | |
36776 | ||
646b6ec1 VS |
36777 | fi |
36778 | ||
07bea8f0 VS |
36779 | |
36780 | CPPFLAGS="$old_CPPFLAGS" | |
36781 | elif test "$wxUSE_COCOA" = 1; then | |
36782 | cat >>confdefs.h <<\_ACEOF | |
36783 | #define wxUSE_WEBKIT 1 | |
36784 | _ACEOF | |
36785 | ||
36786 | else | |
36787 | wxUSE_WEBKIT=no | |
36788 | fi | |
36789 | fi | |
36790 | ||
36791 | ||
a848cd7e SC |
36792 | if test "$wxUSE_MENUS" = "yes"; then |
36793 | cat >>confdefs.h <<\_ACEOF | |
36794 | #define wxUSE_MENUS 1 | |
36795 | _ACEOF | |
36796 | ||
36797 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
36798 | fi | |
36799 | ||
36800 | if test "$wxUSE_METAFILE" = "yes"; then | |
36801 | cat >>confdefs.h <<\_ACEOF | |
36802 | #define wxUSE_METAFILE 1 | |
36803 | _ACEOF | |
36804 | ||
36805 | fi | |
36806 | ||
36807 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
36808 | cat >>confdefs.h <<\_ACEOF | |
36809 | #define wxUSE_MIMETYPE 1 | |
36810 | _ACEOF | |
36811 | ||
36812 | fi | |
36813 | ||
36814 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
36815 | cat >>confdefs.h <<\_ACEOF | |
36816 | #define wxUSE_MINIFRAME 1 | |
36817 | _ACEOF | |
36818 | ||
36819 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
36820 | fi | |
36821 | ||
36822 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
36823 | cat >>confdefs.h <<\_ACEOF | |
36824 | #define wxUSE_SYSTEM_OPTIONS 1 | |
36825 | _ACEOF | |
36826 | ||
36827 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
36828 | "$TOOLKIT" = "MOTIF"; then | |
36829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
36830 | fi | |
36831 | fi | |
36832 | ||
36833 | ||
36834 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
36835 | cat >>confdefs.h <<\_ACEOF | |
36836 | #define wxUSE_VALIDATORS 1 | |
36837 | _ACEOF | |
36838 | ||
36839 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
36840 | fi | |
36841 | ||
36842 | if test "$wxUSE_PALETTE" = "yes" ; then | |
36843 | cat >>confdefs.h <<\_ACEOF | |
36844 | #define wxUSE_PALETTE 1 | |
36845 | _ACEOF | |
36846 | ||
36847 | fi | |
36848 | ||
36849 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
36850 | LIBS=" -lunicows $LIBS" | |
36851 | fi | |
36852 | ||
36853 | ||
36854 | if test "$wxUSE_IMAGE" = "yes" ; then | |
36855 | cat >>confdefs.h <<\_ACEOF | |
36856 | #define wxUSE_IMAGE 1 | |
36857 | _ACEOF | |
36858 | ||
36859 | ||
36860 | if test "$wxUSE_GIF" = "yes" ; then | |
36861 | cat >>confdefs.h <<\_ACEOF | |
36862 | #define wxUSE_GIF 1 | |
36863 | _ACEOF | |
36864 | ||
36865 | fi | |
36866 | ||
36867 | if test "$wxUSE_PCX" = "yes" ; then | |
36868 | cat >>confdefs.h <<\_ACEOF | |
36869 | #define wxUSE_PCX 1 | |
36870 | _ACEOF | |
36871 | ||
36872 | fi | |
36873 | ||
36874 | if test "$wxUSE_IFF" = "yes" ; then | |
36875 | cat >>confdefs.h <<\_ACEOF | |
36876 | #define wxUSE_IFF 1 | |
36877 | _ACEOF | |
36878 | ||
36879 | fi | |
36880 | ||
36881 | if test "$wxUSE_PNM" = "yes" ; then | |
36882 | cat >>confdefs.h <<\_ACEOF | |
36883 | #define wxUSE_PNM 1 | |
36884 | _ACEOF | |
36885 | ||
36886 | fi | |
36887 | ||
36888 | if test "$wxUSE_XPM" = "yes" ; then | |
36889 | cat >>confdefs.h <<\_ACEOF | |
36890 | #define wxUSE_XPM 1 | |
36891 | _ACEOF | |
36892 | ||
36893 | fi | |
36894 | ||
36895 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
36896 | cat >>confdefs.h <<\_ACEOF | |
36897 | #define wxUSE_ICO_CUR 1 | |
36898 | _ACEOF | |
36899 | ||
36900 | fi | |
36901 | fi | |
36902 | ||
36903 | ||
36904 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
36905 | cat >>confdefs.h <<\_ACEOF | |
36906 | #define wxUSE_CHOICEDLG 1 | |
36907 | _ACEOF | |
36908 | ||
36909 | fi | |
36910 | ||
36911 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
36912 | cat >>confdefs.h <<\_ACEOF | |
36913 | #define wxUSE_COLOURDLG 1 | |
36914 | _ACEOF | |
36915 | ||
36916 | fi | |
36917 | ||
36918 | if test "$wxUSE_FILEDLG" = "yes"; then | |
36919 | cat >>confdefs.h <<\_ACEOF | |
36920 | #define wxUSE_FILEDLG 1 | |
36921 | _ACEOF | |
36922 | ||
36923 | fi | |
36924 | ||
36925 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
36926 | cat >>confdefs.h <<\_ACEOF | |
36927 | #define wxUSE_FINDREPLDLG 1 | |
36928 | _ACEOF | |
36929 | ||
36930 | fi | |
36931 | ||
36932 | if test "$wxUSE_FONTDLG" = "yes"; then | |
36933 | cat >>confdefs.h <<\_ACEOF | |
36934 | #define wxUSE_FONTDLG 1 | |
36935 | _ACEOF | |
36936 | ||
36937 | fi | |
36938 | ||
36939 | if test "$wxUSE_DIRDLG" = "yes"; then | |
36940 | if test "$wxUSE_TREECTRL" != "yes"; then | |
36941 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
36942 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
36943 | else | |
36944 | cat >>confdefs.h <<\_ACEOF | |
36945 | #define wxUSE_DIRDLG 1 | |
36946 | _ACEOF | |
36947 | ||
36948 | fi | |
36949 | fi | |
36950 | ||
36951 | if test "$wxUSE_MSGDLG" = "yes"; then | |
36952 | cat >>confdefs.h <<\_ACEOF | |
36953 | #define wxUSE_MSGDLG 1 | |
36954 | _ACEOF | |
36955 | ||
36956 | fi | |
36957 | ||
36958 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
36959 | cat >>confdefs.h <<\_ACEOF | |
36960 | #define wxUSE_NUMBERDLG 1 | |
36961 | _ACEOF | |
36962 | ||
36963 | fi | |
36964 | ||
36965 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
36966 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36967 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
36968 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
36969 | else | |
36970 | cat >>confdefs.h <<\_ACEOF | |
36971 | #define wxUSE_PROGRESSDLG 1 | |
36972 | _ACEOF | |
36973 | ||
36974 | fi | |
36975 | fi | |
36976 | ||
36977 | if test "$wxUSE_SPLASH" = "yes"; then | |
36978 | cat >>confdefs.h <<\_ACEOF | |
36979 | #define wxUSE_SPLASH 1 | |
36980 | _ACEOF | |
36981 | ||
2057db16 | 36982 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
36983 | fi |
36984 | ||
36985 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
36986 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36987 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
36988 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
36989 | else | |
36990 | cat >>confdefs.h <<\_ACEOF | |
36991 | #define wxUSE_STARTUP_TIPS 1 | |
36992 | _ACEOF | |
36993 | ||
36994 | fi | |
36995 | fi | |
36996 | ||
36997 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
36998 | cat >>confdefs.h <<\_ACEOF | |
36999 | #define wxUSE_TEXTDLG 1 | |
37000 | _ACEOF | |
37001 | ||
37002 | fi | |
37003 | ||
37004 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37005 | cat >>confdefs.h <<\_ACEOF | |
37006 | #define wxUSE_WIZARDDLG 1 | |
37007 | _ACEOF | |
37008 | ||
37009 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37010 | fi | |
37011 | ||
37012 | ||
37013 | if test "$cross_compiling" = "yes"; then | |
37014 | OSINFO="\"$host\"" | |
37015 | else | |
37016 | OSINFO=`uname -s -r -m` | |
37017 | OSINFO="\"$OSINFO\"" | |
37018 | fi | |
37019 | ||
37020 | cat >>confdefs.h <<_ACEOF | |
37021 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37022 | _ACEOF | |
37023 | ||
37024 | ||
37025 | ||
37026 | if test "x$prefix" != "xNONE"; then | |
37027 | wxPREFIX=$prefix | |
37028 | else | |
37029 | wxPREFIX=$ac_default_prefix | |
37030 | fi | |
37031 | ||
37032 | cat >>confdefs.h <<_ACEOF | |
37033 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37034 | _ACEOF | |
37035 | ||
37036 | ||
37037 | top_builddir_wxconfig=`pwd` | |
37038 | ||
37039 | ||
37040 | ||
37041 | CORE_BASE_LIBS="net base" | |
37042 | CORE_GUI_LIBS="adv core" | |
37043 | ||
37044 | if test "$wxUSE_XML" = "yes" ; then | |
37045 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37046 | fi | |
37047 | if test "$wxUSE_ODBC" != "no" ; then | |
37048 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37049 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37050 | fi | |
37051 | if test "$wxUSE_HTML" = "yes" ; then | |
37052 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37053 | fi | |
37054 | ||
37055 | if test "$wxUSE_GUI" != "yes"; then | |
37056 | CORE_GUI_LIBS="" | |
37057 | fi | |
37058 | ||
37059 | ||
37060 | ||
37061 | ||
37062 | ||
37063 | ||
37064 | ||
37065 | ||
37066 | if test "$wxUSE_MAC" = 1 ; then | |
07bea8f0 VS |
37067 | if test "$wxUSE_SOUND" = "yes"; then |
37068 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
37069 | fi | |
37070 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" | |
a848cd7e SC |
37071 | fi |
37072 | if test "$wxUSE_COCOA" = 1 ; then | |
37073 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
37074 | fi | |
37075 | ||
37076 | ||
37077 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37078 | ||
37079 | have_cos=0 | |
37080 | have_floor=0 | |
37081 | ||
37082 | for ac_func in cos | |
37083 | do | |
37084 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37085 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37086 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37087 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37089 | else | |
37090 | cat >conftest.$ac_ext <<_ACEOF | |
37091 | /* confdefs.h. */ | |
37092 | _ACEOF | |
37093 | cat confdefs.h >>conftest.$ac_ext | |
37094 | cat >>conftest.$ac_ext <<_ACEOF | |
37095 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37096 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37097 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37098 | #define $ac_func innocuous_$ac_func | |
37099 | ||
a848cd7e SC |
37100 | /* System header to define __stub macros and hopefully few prototypes, |
37101 | which can conflict with char $ac_func (); below. | |
37102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37103 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37104 | |
a848cd7e SC |
37105 | #ifdef __STDC__ |
37106 | # include <limits.h> | |
37107 | #else | |
37108 | # include <assert.h> | |
37109 | #endif | |
ac1cb8d3 VS |
37110 | |
37111 | #undef $ac_func | |
37112 | ||
a848cd7e SC |
37113 | /* Override any gcc2 internal prototype to avoid an error. */ |
37114 | #ifdef __cplusplus | |
37115 | extern "C" | |
37116 | { | |
37117 | #endif | |
37118 | /* We use char because int might match the return type of a gcc2 | |
37119 | builtin and then its argument prototype would still apply. */ | |
37120 | char $ac_func (); | |
37121 | /* The GNU C library defines this for functions which it implements | |
37122 | to always fail with ENOSYS. Some functions are actually named | |
37123 | something starting with __ and the normal name is an alias. */ | |
37124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37125 | choke me | |
37126 | #else | |
37127 | char (*f) () = $ac_func; | |
37128 | #endif | |
37129 | #ifdef __cplusplus | |
37130 | } | |
37131 | #endif | |
37132 | ||
37133 | int | |
37134 | main () | |
37135 | { | |
37136 | return f != $ac_func; | |
37137 | ; | |
37138 | return 0; | |
37139 | } | |
37140 | _ACEOF | |
37141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37143 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37144 | ac_status=$? |
ac1cb8d3 VS |
37145 | grep -v '^ *+' conftest.er1 >conftest.err |
37146 | rm -f conftest.er1 | |
37147 | cat conftest.err >&5 | |
a848cd7e SC |
37148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37149 | (exit $ac_status); } && | |
4d4ff94c | 37150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37152 | (eval $ac_try) 2>&5 | |
37153 | ac_status=$? | |
37154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37155 | (exit $ac_status); }; } && | |
37156 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37158 | (eval $ac_try) 2>&5 | |
37159 | ac_status=$? | |
37160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37161 | (exit $ac_status); }; }; then | |
37162 | eval "$as_ac_var=yes" | |
37163 | else | |
37164 | echo "$as_me: failed program was:" >&5 | |
37165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37166 | ||
37167 | eval "$as_ac_var=no" | |
37168 | fi | |
ac1cb8d3 VS |
37169 | rm -f conftest.err conftest.$ac_objext \ |
37170 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37171 | fi |
37172 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37173 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37174 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37175 | cat >>confdefs.h <<_ACEOF | |
37176 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37177 | _ACEOF | |
37178 | have_cos=1 | |
37179 | fi | |
37180 | done | |
37181 | ||
37182 | ||
37183 | for ac_func in floor | |
37184 | do | |
37185 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37186 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37187 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37188 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37190 | else | |
37191 | cat >conftest.$ac_ext <<_ACEOF | |
37192 | /* confdefs.h. */ | |
37193 | _ACEOF | |
37194 | cat confdefs.h >>conftest.$ac_ext | |
37195 | cat >>conftest.$ac_ext <<_ACEOF | |
37196 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37197 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37198 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37199 | #define $ac_func innocuous_$ac_func | |
37200 | ||
a848cd7e SC |
37201 | /* System header to define __stub macros and hopefully few prototypes, |
37202 | which can conflict with char $ac_func (); below. | |
37203 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37204 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37205 | |
a848cd7e SC |
37206 | #ifdef __STDC__ |
37207 | # include <limits.h> | |
37208 | #else | |
37209 | # include <assert.h> | |
37210 | #endif | |
ac1cb8d3 VS |
37211 | |
37212 | #undef $ac_func | |
37213 | ||
a848cd7e SC |
37214 | /* Override any gcc2 internal prototype to avoid an error. */ |
37215 | #ifdef __cplusplus | |
37216 | extern "C" | |
37217 | { | |
37218 | #endif | |
37219 | /* We use char because int might match the return type of a gcc2 | |
37220 | builtin and then its argument prototype would still apply. */ | |
37221 | char $ac_func (); | |
37222 | /* The GNU C library defines this for functions which it implements | |
37223 | to always fail with ENOSYS. Some functions are actually named | |
37224 | something starting with __ and the normal name is an alias. */ | |
37225 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37226 | choke me | |
37227 | #else | |
37228 | char (*f) () = $ac_func; | |
37229 | #endif | |
37230 | #ifdef __cplusplus | |
37231 | } | |
37232 | #endif | |
37233 | ||
37234 | int | |
37235 | main () | |
37236 | { | |
37237 | return f != $ac_func; | |
37238 | ; | |
37239 | return 0; | |
37240 | } | |
37241 | _ACEOF | |
37242 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37244 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37245 | ac_status=$? |
ac1cb8d3 VS |
37246 | grep -v '^ *+' conftest.er1 >conftest.err |
37247 | rm -f conftest.er1 | |
37248 | cat conftest.err >&5 | |
a848cd7e SC |
37249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37250 | (exit $ac_status); } && | |
4d4ff94c | 37251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37253 | (eval $ac_try) 2>&5 | |
37254 | ac_status=$? | |
37255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37256 | (exit $ac_status); }; } && | |
37257 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37259 | (eval $ac_try) 2>&5 | |
37260 | ac_status=$? | |
37261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37262 | (exit $ac_status); }; }; then | |
37263 | eval "$as_ac_var=yes" | |
37264 | else | |
37265 | echo "$as_me: failed program was:" >&5 | |
37266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37267 | ||
37268 | eval "$as_ac_var=no" | |
37269 | fi | |
ac1cb8d3 VS |
37270 | rm -f conftest.err conftest.$ac_objext \ |
37271 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37272 | fi |
37273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37274 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37275 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37276 | cat >>confdefs.h <<_ACEOF | |
37277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37278 | _ACEOF | |
37279 | have_floor=1 | |
37280 | fi | |
37281 | done | |
37282 | ||
37283 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37284 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37285 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37286 | echo "$as_me:$LINENO: result: yes" >&5 | |
37287 | echo "${ECHO_T}yes" >&6 | |
37288 | else | |
37289 | echo "$as_me:$LINENO: result: no" >&5 | |
37290 | echo "${ECHO_T}no" >&6 | |
37291 | LIBS="$LIBS -lm" | |
37292 | # use different functions to avoid configure caching | |
37293 | have_sin=0 | |
37294 | have_ceil=0 | |
37295 | ||
37296 | for ac_func in sin | |
37297 | do | |
37298 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37299 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37300 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37301 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37303 | else | |
37304 | cat >conftest.$ac_ext <<_ACEOF | |
37305 | /* confdefs.h. */ | |
37306 | _ACEOF | |
37307 | cat confdefs.h >>conftest.$ac_ext | |
37308 | cat >>conftest.$ac_ext <<_ACEOF | |
37309 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37310 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37311 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37312 | #define $ac_func innocuous_$ac_func | |
37313 | ||
a848cd7e SC |
37314 | /* System header to define __stub macros and hopefully few prototypes, |
37315 | which can conflict with char $ac_func (); below. | |
37316 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37317 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37318 | |
a848cd7e SC |
37319 | #ifdef __STDC__ |
37320 | # include <limits.h> | |
37321 | #else | |
37322 | # include <assert.h> | |
37323 | #endif | |
ac1cb8d3 VS |
37324 | |
37325 | #undef $ac_func | |
37326 | ||
a848cd7e SC |
37327 | /* Override any gcc2 internal prototype to avoid an error. */ |
37328 | #ifdef __cplusplus | |
37329 | extern "C" | |
37330 | { | |
37331 | #endif | |
37332 | /* We use char because int might match the return type of a gcc2 | |
37333 | builtin and then its argument prototype would still apply. */ | |
37334 | char $ac_func (); | |
37335 | /* The GNU C library defines this for functions which it implements | |
37336 | to always fail with ENOSYS. Some functions are actually named | |
37337 | something starting with __ and the normal name is an alias. */ | |
37338 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37339 | choke me | |
37340 | #else | |
37341 | char (*f) () = $ac_func; | |
37342 | #endif | |
37343 | #ifdef __cplusplus | |
37344 | } | |
37345 | #endif | |
37346 | ||
37347 | int | |
37348 | main () | |
37349 | { | |
37350 | return f != $ac_func; | |
37351 | ; | |
37352 | return 0; | |
37353 | } | |
37354 | _ACEOF | |
37355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37357 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37358 | ac_status=$? |
ac1cb8d3 VS |
37359 | grep -v '^ *+' conftest.er1 >conftest.err |
37360 | rm -f conftest.er1 | |
37361 | cat conftest.err >&5 | |
a848cd7e SC |
37362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37363 | (exit $ac_status); } && | |
4d4ff94c | 37364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37366 | (eval $ac_try) 2>&5 | |
37367 | ac_status=$? | |
37368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37369 | (exit $ac_status); }; } && | |
37370 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37372 | (eval $ac_try) 2>&5 | |
37373 | ac_status=$? | |
37374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37375 | (exit $ac_status); }; }; then | |
37376 | eval "$as_ac_var=yes" | |
37377 | else | |
37378 | echo "$as_me: failed program was:" >&5 | |
37379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37380 | ||
37381 | eval "$as_ac_var=no" | |
37382 | fi | |
ac1cb8d3 VS |
37383 | rm -f conftest.err conftest.$ac_objext \ |
37384 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37385 | fi |
37386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37387 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37388 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37389 | cat >>confdefs.h <<_ACEOF | |
37390 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37391 | _ACEOF | |
37392 | have_sin=1 | |
37393 | fi | |
37394 | done | |
37395 | ||
37396 | ||
37397 | for ac_func in ceil | |
37398 | do | |
37399 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37400 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37401 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37402 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37404 | else | |
37405 | cat >conftest.$ac_ext <<_ACEOF | |
37406 | /* confdefs.h. */ | |
37407 | _ACEOF | |
37408 | cat confdefs.h >>conftest.$ac_ext | |
37409 | cat >>conftest.$ac_ext <<_ACEOF | |
37410 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37411 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37412 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37413 | #define $ac_func innocuous_$ac_func | |
37414 | ||
a848cd7e SC |
37415 | /* System header to define __stub macros and hopefully few prototypes, |
37416 | which can conflict with char $ac_func (); below. | |
37417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37418 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37419 | |
a848cd7e SC |
37420 | #ifdef __STDC__ |
37421 | # include <limits.h> | |
37422 | #else | |
37423 | # include <assert.h> | |
37424 | #endif | |
ac1cb8d3 VS |
37425 | |
37426 | #undef $ac_func | |
37427 | ||
a848cd7e SC |
37428 | /* Override any gcc2 internal prototype to avoid an error. */ |
37429 | #ifdef __cplusplus | |
37430 | extern "C" | |
37431 | { | |
37432 | #endif | |
37433 | /* We use char because int might match the return type of a gcc2 | |
37434 | builtin and then its argument prototype would still apply. */ | |
37435 | char $ac_func (); | |
37436 | /* The GNU C library defines this for functions which it implements | |
37437 | to always fail with ENOSYS. Some functions are actually named | |
37438 | something starting with __ and the normal name is an alias. */ | |
37439 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37440 | choke me | |
37441 | #else | |
37442 | char (*f) () = $ac_func; | |
37443 | #endif | |
37444 | #ifdef __cplusplus | |
37445 | } | |
37446 | #endif | |
37447 | ||
37448 | int | |
37449 | main () | |
37450 | { | |
37451 | return f != $ac_func; | |
37452 | ; | |
37453 | return 0; | |
37454 | } | |
37455 | _ACEOF | |
37456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37458 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37459 | ac_status=$? |
ac1cb8d3 VS |
37460 | grep -v '^ *+' conftest.er1 >conftest.err |
37461 | rm -f conftest.er1 | |
37462 | cat conftest.err >&5 | |
a848cd7e SC |
37463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37464 | (exit $ac_status); } && | |
4d4ff94c | 37465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37467 | (eval $ac_try) 2>&5 | |
37468 | ac_status=$? | |
37469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37470 | (exit $ac_status); }; } && | |
37471 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37473 | (eval $ac_try) 2>&5 | |
37474 | ac_status=$? | |
37475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37476 | (exit $ac_status); }; }; then | |
37477 | eval "$as_ac_var=yes" | |
37478 | else | |
37479 | echo "$as_me: failed program was:" >&5 | |
37480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37481 | ||
37482 | eval "$as_ac_var=no" | |
37483 | fi | |
ac1cb8d3 VS |
37484 | rm -f conftest.err conftest.$ac_objext \ |
37485 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37486 | fi |
37487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37488 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37489 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37490 | cat >>confdefs.h <<_ACEOF | |
37491 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37492 | _ACEOF | |
37493 | have_ceil=1 | |
37494 | fi | |
37495 | done | |
37496 | ||
37497 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
37498 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
37499 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
37500 | echo "$as_me:$LINENO: result: yes" >&5 | |
37501 | echo "${ECHO_T}yes" >&6 | |
37502 | else | |
37503 | echo "$as_me:$LINENO: result: no" >&5 | |
37504 | echo "${ECHO_T}no" >&6 | |
37505 | # not sure we should warn the user, crash, etc. | |
37506 | fi | |
37507 | fi | |
37508 | ||
37509 | if test "$wxUSE_GUI" = "yes"; then | |
37510 | ||
37511 | ||
37512 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
37513 | drawing dynamic erase event exec font image \ | |
37514 | minimal propsize rotate shaped widgets render" | |
37515 | ||
37516 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37517 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37518 | fi | |
37519 | else | |
37520 | SAMPLES_SUBDIRS="console" | |
37521 | fi | |
37522 | ||
37523 | ||
37524 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ | |
37525 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" | |
37526 | ||
37527 | if test "$GXX" = yes ; then | |
37528 | CXXWARNINGS="-Wall" | |
37529 | fi | |
37530 | ||
37531 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37532 | ||
0c3c69fc VS |
37533 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
37534 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS` | |
37535 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` | |
a848cd7e SC |
37536 | |
37537 | ||
0c3c69fc | 37538 | LIBS=`echo $LIBS` |
a848cd7e SC |
37539 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
37540 | EXTRALIBS_XML="$EXPAT_LINK" | |
37541 | EXTRALIBS_HTML="$MSPACK_LINK" | |
37542 | EXTRALIBS_ODBC="$ODBC_LINK" | |
37543 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 37544 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
37545 | fi |
37546 | if test "$wxUSE_OPENGL" = "yes"; then | |
37547 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37548 | fi | |
37549 | ||
37550 | LDFLAGS="$LDFLAGS $PROFILE" | |
37551 | ||
37552 | if test "$wxUSE_GTK" = 1; then | |
37553 | WXCONFIG_INCLUDE= | |
37554 | else | |
37555 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37556 | fi | |
37557 | ||
37558 | WXCONFIG_EXTRALIBS="$LIBS" | |
37559 | ||
37560 | if test "$wxUSE_REGEX" = "builtin" ; then | |
37561 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
37562 | fi | |
37563 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37564 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37565 | fi | |
37566 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37567 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37568 | fi | |
37569 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37570 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37571 | fi | |
37572 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37573 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37574 | fi | |
37575 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37576 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37577 | fi | |
37578 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37579 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37580 | fi | |
37581 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37582 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37583 | fi | |
37584 | ||
37585 | for i in $wxconfig_3rdparty ; do | |
37586 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
37587 | done | |
37588 | ||
37589 | ||
37590 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
37591 | WXUNIV=1 | |
37592 | else | |
37593 | WXUNIV=0 | |
37594 | fi | |
37595 | ||
37596 | ||
37597 | ||
37598 | ||
37599 | ||
37600 | ||
37601 | ||
37602 | ||
37603 | ||
37604 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
37605 | MONOLITHIC=1 | |
37606 | else | |
37607 | MONOLITHIC=0 | |
37608 | fi | |
37609 | ||
37610 | if test $wxUSE_PLUGINS = "yes" ; then | |
37611 | USE_PLUGINS=1 | |
37612 | else | |
37613 | USE_PLUGINS=0 | |
37614 | fi | |
37615 | ||
37616 | if test $wxUSE_ODBC != "no" ; then | |
37617 | USE_ODBC=1 | |
37618 | else | |
37619 | USE_ODBC=0 | |
37620 | fi | |
37621 | ||
37622 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
37623 | OFFICIAL_BUILD=1 | |
37624 | else | |
37625 | OFFICIAL_BUILD=0 | |
37626 | fi | |
37627 | ||
37628 | ||
37629 | ||
37630 | ||
37631 | ||
37632 | ||
37633 | ||
37634 | ||
37635 | ||
37636 | ||
37637 | ||
37638 | ||
37639 | ||
37640 | ||
37641 | ||
37642 | ||
37643 | ||
37644 | ||
37645 | ||
37646 | ||
37647 | ||
37648 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
37649 | ||
37650 | ||
37651 | ||
37652 | ||
37653 | ||
37654 | ||
37655 | ||
37656 | ||
4d4ff94c VZ |
37657 | case "$TOOLKIT" in |
37658 | GTK) | |
37659 | TOOLKIT_USER="GTK+" | |
37660 | if test "$WXGTK20" = 1; then | |
37661 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
37662 | fi | |
37663 | ;; | |
37664 | ||
37665 | *) | |
37666 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
37667 | ;; | |
37668 | esac | |
a848cd7e SC |
37669 | |
37670 | if test "x$BAKEFILE_HOST" = "x"; then | |
37671 | BAKEFILE_HOST="${host}" | |
37672 | fi | |
37673 | ||
37674 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
37675 | ||
37676 | if test -n "$ac_tool_prefix"; then | |
37677 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37678 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37681 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37683 | else | |
37684 | if test -n "$RANLIB"; then | |
37685 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
37686 | else | |
37687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37688 | for as_dir in $PATH | |
37689 | do | |
37690 | IFS=$as_save_IFS | |
37691 | test -z "$as_dir" && as_dir=. | |
37692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37694 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
37695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37696 | break 2 | |
37697 | fi | |
37698 | done | |
37699 | done | |
37700 | ||
37701 | fi | |
37702 | fi | |
37703 | RANLIB=$ac_cv_prog_RANLIB | |
37704 | if test -n "$RANLIB"; then | |
37705 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
37706 | echo "${ECHO_T}$RANLIB" >&6 | |
37707 | else | |
37708 | echo "$as_me:$LINENO: result: no" >&5 | |
37709 | echo "${ECHO_T}no" >&6 | |
37710 | fi | |
37711 | ||
37712 | fi | |
37713 | if test -z "$ac_cv_prog_RANLIB"; then | |
37714 | ac_ct_RANLIB=$RANLIB | |
37715 | # Extract the first word of "ranlib", so it can be a program name with args. | |
37716 | set dummy ranlib; ac_word=$2 | |
37717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37719 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
37720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37721 | else | |
37722 | if test -n "$ac_ct_RANLIB"; then | |
37723 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
37724 | else | |
37725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37726 | for as_dir in $PATH | |
37727 | do | |
37728 | IFS=$as_save_IFS | |
37729 | test -z "$as_dir" && as_dir=. | |
37730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37732 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
37733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37734 | break 2 | |
37735 | fi | |
37736 | done | |
37737 | done | |
37738 | ||
37739 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
37740 | fi | |
37741 | fi | |
37742 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
37743 | if test -n "$ac_ct_RANLIB"; then | |
37744 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
37745 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
37746 | else | |
37747 | echo "$as_me:$LINENO: result: no" >&5 | |
37748 | echo "${ECHO_T}no" >&6 | |
37749 | fi | |
37750 | ||
37751 | RANLIB=$ac_ct_RANLIB | |
37752 | else | |
37753 | RANLIB="$ac_cv_prog_RANLIB" | |
37754 | fi | |
37755 | ||
37756 | # Find a good install program. We prefer a C program (faster), | |
37757 | # so one script is as good as another. But avoid the broken or | |
37758 | # incompatible versions: | |
37759 | # SysV /etc/install, /usr/sbin/install | |
37760 | # SunOS /usr/etc/install | |
37761 | # IRIX /sbin/install | |
37762 | # AIX /bin/install | |
37763 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
37764 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
37765 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
37766 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 37767 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
37768 | # ./install, which can be erroneously created by make from ./install.sh. |
37769 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
37770 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
37771 | if test -z "$INSTALL"; then | |
37772 | if test "${ac_cv_path_install+set}" = set; then | |
37773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37774 | else | |
37775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37776 | for as_dir in $PATH | |
37777 | do | |
37778 | IFS=$as_save_IFS | |
37779 | test -z "$as_dir" && as_dir=. | |
37780 | # Account for people who put trailing slashes in PATH elements. | |
37781 | case $as_dir/ in | |
37782 | ./ | .// | /cC/* | \ | |
37783 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 37784 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
37785 | /usr/ucb/* ) ;; |
37786 | *) | |
37787 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
37788 | # Don't use installbsd from OSF since it installs stuff as root | |
37789 | # by default. | |
37790 | for ac_prog in ginstall scoinst install; do | |
37791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
37792 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
37793 | if test $ac_prog = install && | |
37794 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37795 | # AIX install. It has an incompatible calling convention. | |
37796 | : | |
37797 | elif test $ac_prog = install && | |
37798 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37799 | # program-specific install script used by HP pwplus--don't use. | |
37800 | : | |
37801 | else | |
37802 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
37803 | break 3 | |
37804 | fi | |
37805 | fi | |
a848cd7e SC |
37806 | done |
37807 | done | |
37808 | ;; | |
37809 | esac | |
37810 | done | |
37811 | ||
37812 | ||
37813 | fi | |
37814 | if test "${ac_cv_path_install+set}" = set; then | |
37815 | INSTALL=$ac_cv_path_install | |
37816 | else | |
37817 | # As a last resort, use the slow shell script. We don't cache a | |
37818 | # path for INSTALL within a source directory, because that will | |
37819 | # break other packages using the cache if that directory is | |
37820 | # removed, or if the path is relative. | |
37821 | INSTALL=$ac_install_sh | |
37822 | fi | |
37823 | fi | |
37824 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
37825 | echo "${ECHO_T}$INSTALL" >&6 | |
37826 | ||
37827 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
37828 | # It thinks the first close brace ends the variable substitution. | |
37829 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
37830 | ||
37831 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
37832 | ||
37833 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
37834 | ||
37835 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
37836 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
37837 | LN_S=$as_ln_s | |
37838 | if test "$LN_S" = "ln -s"; then | |
37839 | echo "$as_me:$LINENO: result: yes" >&5 | |
37840 | echo "${ECHO_T}yes" >&6 | |
37841 | else | |
37842 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
37843 | echo "${ECHO_T}no, using $LN_S" >&6 | |
37844 | fi | |
37845 | ||
37846 | ||
37847 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
37848 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 37849 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
37850 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
37851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37852 | else | |
37853 | cat >conftest.make <<\_ACEOF | |
37854 | all: | |
37855 | @echo 'ac_maketemp="$(MAKE)"' | |
37856 | _ACEOF | |
37857 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
37858 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
37859 | if test -n "$ac_maketemp"; then | |
37860 | eval ac_cv_prog_make_${ac_make}_set=yes | |
37861 | else | |
37862 | eval ac_cv_prog_make_${ac_make}_set=no | |
37863 | fi | |
37864 | rm -f conftest.make | |
37865 | fi | |
37866 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
37867 | echo "$as_me:$LINENO: result: yes" >&5 | |
37868 | echo "${ECHO_T}yes" >&6 | |
37869 | SET_MAKE= | |
37870 | else | |
37871 | echo "$as_me:$LINENO: result: no" >&5 | |
37872 | echo "${ECHO_T}no" >&6 | |
37873 | SET_MAKE="MAKE=${MAKE-make}" | |
37874 | fi | |
37875 | ||
37876 | ||
37877 | ||
37878 | if test -n "$ac_tool_prefix"; then | |
37879 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
37880 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
37881 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37883 | if test "${ac_cv_prog_AR+set}" = set; then | |
37884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37885 | else | |
37886 | if test -n "$AR"; then | |
37887 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
37888 | else | |
37889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37890 | for as_dir in $PATH | |
37891 | do | |
37892 | IFS=$as_save_IFS | |
37893 | test -z "$as_dir" && as_dir=. | |
37894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37895 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37896 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
37897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37898 | break 2 | |
37899 | fi | |
37900 | done | |
37901 | done | |
37902 | ||
37903 | fi | |
37904 | fi | |
37905 | AR=$ac_cv_prog_AR | |
37906 | if test -n "$AR"; then | |
37907 | echo "$as_me:$LINENO: result: $AR" >&5 | |
37908 | echo "${ECHO_T}$AR" >&6 | |
37909 | else | |
37910 | echo "$as_me:$LINENO: result: no" >&5 | |
37911 | echo "${ECHO_T}no" >&6 | |
37912 | fi | |
37913 | ||
37914 | fi | |
37915 | if test -z "$ac_cv_prog_AR"; then | |
37916 | ac_ct_AR=$AR | |
37917 | # Extract the first word of "ar", so it can be a program name with args. | |
37918 | set dummy ar; ac_word=$2 | |
37919 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37921 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
37922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37923 | else | |
37924 | if test -n "$ac_ct_AR"; then | |
37925 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
37926 | else | |
37927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37928 | for as_dir in $PATH | |
37929 | do | |
37930 | IFS=$as_save_IFS | |
37931 | test -z "$as_dir" && as_dir=. | |
37932 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37933 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37934 | ac_cv_prog_ac_ct_AR="ar" | |
37935 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37936 | break 2 | |
37937 | fi | |
37938 | done | |
37939 | done | |
37940 | ||
37941 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
37942 | fi | |
37943 | fi | |
37944 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
37945 | if test -n "$ac_ct_AR"; then | |
37946 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
37947 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
37948 | else | |
37949 | echo "$as_me:$LINENO: result: no" >&5 | |
37950 | echo "${ECHO_T}no" >&6 | |
37951 | fi | |
37952 | ||
37953 | AR=$ac_ct_AR | |
37954 | else | |
37955 | AR="$ac_cv_prog_AR" | |
37956 | fi | |
37957 | ||
37958 | if test -n "$ac_tool_prefix"; then | |
37959 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
37960 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
37961 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37963 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
37964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37965 | else | |
37966 | if test -n "$STRIP"; then | |
37967 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
37968 | else | |
37969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37970 | for as_dir in $PATH | |
37971 | do | |
37972 | IFS=$as_save_IFS | |
37973 | test -z "$as_dir" && as_dir=. | |
37974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37976 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
37977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37978 | break 2 | |
37979 | fi | |
37980 | done | |
37981 | done | |
37982 | ||
37983 | fi | |
37984 | fi | |
37985 | STRIP=$ac_cv_prog_STRIP | |
37986 | if test -n "$STRIP"; then | |
37987 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
37988 | echo "${ECHO_T}$STRIP" >&6 | |
37989 | else | |
37990 | echo "$as_me:$LINENO: result: no" >&5 | |
37991 | echo "${ECHO_T}no" >&6 | |
37992 | fi | |
37993 | ||
37994 | fi | |
37995 | if test -z "$ac_cv_prog_STRIP"; then | |
37996 | ac_ct_STRIP=$STRIP | |
37997 | # Extract the first word of "strip", so it can be a program name with args. | |
37998 | set dummy strip; ac_word=$2 | |
37999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38001 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38003 | else | |
38004 | if test -n "$ac_ct_STRIP"; then | |
38005 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38006 | else | |
38007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38008 | for as_dir in $PATH | |
38009 | do | |
38010 | IFS=$as_save_IFS | |
38011 | test -z "$as_dir" && as_dir=. | |
38012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38014 | ac_cv_prog_ac_ct_STRIP="strip" | |
38015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38016 | break 2 | |
38017 | fi | |
38018 | done | |
38019 | done | |
38020 | ||
38021 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38022 | fi | |
38023 | fi | |
38024 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38025 | if test -n "$ac_ct_STRIP"; then | |
38026 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38027 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38028 | else | |
38029 | echo "$as_me:$LINENO: result: no" >&5 | |
38030 | echo "${ECHO_T}no" >&6 | |
38031 | fi | |
38032 | ||
38033 | STRIP=$ac_ct_STRIP | |
38034 | else | |
38035 | STRIP="$ac_cv_prog_STRIP" | |
38036 | fi | |
38037 | ||
38038 | if test -n "$ac_tool_prefix"; then | |
38039 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38040 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38043 | if test "${ac_cv_prog_NM+set}" = set; then | |
38044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38045 | else | |
38046 | if test -n "$NM"; then | |
38047 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38048 | else | |
38049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38050 | for as_dir in $PATH | |
38051 | do | |
38052 | IFS=$as_save_IFS | |
38053 | test -z "$as_dir" && as_dir=. | |
38054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38055 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38056 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38058 | break 2 | |
38059 | fi | |
38060 | done | |
38061 | done | |
38062 | ||
38063 | fi | |
38064 | fi | |
38065 | NM=$ac_cv_prog_NM | |
38066 | if test -n "$NM"; then | |
38067 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38068 | echo "${ECHO_T}$NM" >&6 | |
38069 | else | |
38070 | echo "$as_me:$LINENO: result: no" >&5 | |
38071 | echo "${ECHO_T}no" >&6 | |
38072 | fi | |
38073 | ||
38074 | fi | |
38075 | if test -z "$ac_cv_prog_NM"; then | |
38076 | ac_ct_NM=$NM | |
38077 | # Extract the first word of "nm", so it can be a program name with args. | |
38078 | set dummy nm; ac_word=$2 | |
38079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38081 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38083 | else | |
38084 | if test -n "$ac_ct_NM"; then | |
38085 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38086 | else | |
38087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38088 | for as_dir in $PATH | |
38089 | do | |
38090 | IFS=$as_save_IFS | |
38091 | test -z "$as_dir" && as_dir=. | |
38092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38094 | ac_cv_prog_ac_ct_NM="nm" | |
38095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38096 | break 2 | |
38097 | fi | |
38098 | done | |
38099 | done | |
38100 | ||
38101 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38102 | fi | |
38103 | fi | |
38104 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38105 | if test -n "$ac_ct_NM"; then | |
38106 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38107 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38108 | else | |
38109 | echo "$as_me:$LINENO: result: no" >&5 | |
38110 | echo "${ECHO_T}no" >&6 | |
38111 | fi | |
38112 | ||
38113 | NM=$ac_ct_NM | |
38114 | else | |
38115 | NM="$ac_cv_prog_NM" | |
38116 | fi | |
38117 | ||
38118 | ||
38119 | case ${BAKEFILE_HOST} in | |
38120 | *-hp-hpux* ) | |
a0f9686d | 38121 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38122 | ;; |
38123 | *) INSTALL_DIR="$INSTALL -d" | |
38124 | ;; | |
38125 | esac | |
38126 | ||
38127 | ||
38128 | LDFLAGS_GUI= | |
38129 | case ${BAKEFILE_HOST} in | |
38130 | *-*-cygwin* | *-*-mingw32* ) | |
38131 | LDFLAGS_GUI="-mwindows" | |
38132 | esac | |
38133 | ||
38134 | ||
38135 | fi | |
38136 | ||
38137 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38138 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38139 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38141 | else | |
38142 | ||
38143 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38144 | egrep -s GNU > /dev/null); then | |
38145 | bakefile_cv_prog_makeisgnu="yes" | |
38146 | else | |
38147 | bakefile_cv_prog_makeisgnu="no" | |
38148 | fi | |
38149 | ||
38150 | fi | |
38151 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38152 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38153 | ||
38154 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38155 | IF_GNU_MAKE="" | |
38156 | else | |
38157 | IF_GNU_MAKE="#" | |
38158 | fi | |
38159 | ||
38160 | ||
38161 | ||
38162 | PLATFORM_UNIX=0 | |
38163 | PLATFORM_WIN32=0 | |
38164 | PLATFORM_MSDOS=0 | |
38165 | PLATFORM_MAC=0 | |
38166 | PLATFORM_MACOSX=0 | |
38167 | PLATFORM_OS2=0 | |
38168 | ||
38169 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38170 | case "${BAKEFILE_HOST}" in | |
38171 | *-*-cygwin* | *-*-mingw32* ) | |
38172 | PLATFORM_WIN32=1 | |
38173 | ;; | |
38174 | *-pc-msdosdjgpp ) | |
38175 | PLATFORM_MSDOS=1 | |
38176 | ;; | |
38177 | *-pc-os2_emx | *-pc-os2-emx ) | |
38178 | PLATFORM_OS2=1 | |
38179 | ;; | |
38180 | powerpc-*-darwin* ) | |
38181 | PLATFORM_MAC=1 | |
38182 | PLATFORM_MACOSX=1 | |
38183 | ;; | |
38184 | * ) | |
38185 | PLATFORM_UNIX=1 | |
38186 | ;; | |
38187 | esac | |
38188 | else | |
38189 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38190 | win32 ) | |
38191 | PLATFORM_WIN32=1 | |
38192 | ;; | |
38193 | msdos ) | |
38194 | PLATFORM_MSDOS=1 | |
38195 | ;; | |
38196 | os2 ) | |
38197 | PLATFORM_OS2=1 | |
38198 | ;; | |
38199 | darwin ) | |
38200 | PLATFORM_MAC=1 | |
38201 | PLATFORM_MACOSX=1 | |
38202 | ;; | |
38203 | unix ) | |
38204 | PLATFORM_UNIX=1 | |
38205 | ;; | |
38206 | * ) | |
38207 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38208 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38209 | { (exit 1); exit 1; }; } | |
38210 | ;; | |
38211 | esac | |
38212 | fi | |
38213 | ||
38214 | ||
38215 | ||
38216 | ||
38217 | ||
38218 | ||
38219 | ||
38220 | ||
38221 | ||
38222 | # Check whether --enable-omf or --disable-omf was given. | |
38223 | if test "${enable_omf+set}" = set; then | |
38224 | enableval="$enable_omf" | |
38225 | bk_os2_use_omf="$enableval" | |
38226 | fi; | |
38227 | ||
38228 | case "${BAKEFILE_HOST}" in | |
38229 | *-*-darwin* ) | |
38230 | CFLAGS="$CFLAGS -fno-common" | |
38231 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38232 | ;; | |
38233 | ||
38234 | *-pc-os2_emx | *-pc-os2-emx ) | |
38235 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38236 | AR=emxomfar | |
38237 | RANLIB=: | |
38238 | LDFLAGS="-Zomf $LDFLAGS" | |
38239 | CFLAGS="-Zomf $CFLAGS" | |
38240 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38241 | OS2_LIBEXT="lib" | |
38242 | else | |
38243 | OS2_LIBEXT="a" | |
38244 | fi | |
38245 | ;; | |
38246 | esac | |
38247 | ||
38248 | ||
38249 | SO_SUFFIX="so" | |
38250 | SO_SUFFIX_MODULE="so" | |
38251 | EXEEXT="" | |
38252 | LIBPREFIX="lib" | |
38253 | LIBEXT=".a" | |
38254 | DLLPREFIX="lib" | |
38255 | DLLPREFIX_MODULE="" | |
38256 | DLLIMP_SUFFIX="" | |
38257 | ||
38258 | case "${BAKEFILE_HOST}" in | |
38259 | *-hp-hpux* ) | |
38260 | SO_SUFFIX="sl" | |
38261 | SO_SUFFIX_MODULE="sl" | |
38262 | ;; | |
38263 | *-*-aix* ) | |
38264 | SO_SUFFIX="a" | |
38265 | SO_SUFFIX_MODULE="a" | |
38266 | ;; | |
38267 | *-*-cygwin* | *-*-mingw32* ) | |
38268 | SO_SUFFIX="dll" | |
38269 | SO_SUFFIX_MODULE="dll" | |
38270 | DLLIMP_SUFFIX="dll.a" | |
38271 | EXEEXT=".exe" | |
38272 | DLLPREFIX="" | |
38273 | ;; | |
38274 | *-pc-msdosdjgpp ) | |
38275 | EXEEXT=".exe" | |
38276 | DLLPREFIX="" | |
38277 | ;; | |
38278 | *-pc-os2_emx | *-pc-os2-emx ) | |
38279 | SO_SUFFIX="dll" | |
38280 | SO_SUFFIX_MODULE="dll" | |
38281 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38282 | EXEEXT=".exe" | |
38283 | DLLPREFIX="" | |
38284 | LIBPREFIX="" | |
38285 | LIBEXT=".$OS2_LIBEXT" | |
38286 | ;; | |
38287 | powerpc-*-darwin* ) | |
38288 | SO_SUFFIX="dylib" | |
38289 | SO_SUFFIX_MODULE="bundle" | |
38290 | ;; | |
38291 | esac | |
38292 | ||
38293 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38294 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38295 | fi | |
38296 | ||
38297 | ||
38298 | ||
38299 | ||
38300 | ||
38301 | ||
38302 | ||
38303 | ||
38304 | ||
38305 | ||
38306 | ||
38307 | SHARED_LD_CC="\$(CC) -shared -o" | |
38308 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38309 | ||
38310 | if test "x$GCC" = "xyes"; then | |
38311 | PIC_FLAG="-fPIC" | |
38312 | fi | |
38313 | ||
38314 | case "${BAKEFILE_HOST}" in | |
38315 | *-hp-hpux* ) | |
38316 | if test "x$GCC" = "xyes"; then | |
38317 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38318 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38319 | else | |
38320 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38321 | ||
38322 | SHARED_LD_CC="${CC} -b -o" | |
38323 | SHARED_LD_CXX="${CXX} -b -o" | |
38324 | PIC_FLAG="+Z" | |
38325 | fi | |
38326 | ;; | |
38327 | ||
38328 | *-*-linux* ) | |
38329 | if test "x$GCC" != "xyes"; then | |
38330 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38331 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38332 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38334 | else | |
38335 | ||
38336 | cat >conftest.$ac_ext <<_ACEOF | |
38337 | /* confdefs.h. */ | |
38338 | _ACEOF | |
38339 | cat confdefs.h >>conftest.$ac_ext | |
38340 | cat >>conftest.$ac_ext <<_ACEOF | |
38341 | /* end confdefs.h. */ | |
38342 | ||
38343 | int | |
38344 | main () | |
38345 | { | |
38346 | ||
38347 | #ifndef __INTEL_COMPILER | |
38348 | #error Not icc | |
38349 | #endif | |
38350 | ||
38351 | ; | |
38352 | return 0; | |
38353 | } | |
38354 | _ACEOF | |
38355 | rm -f conftest.$ac_objext | |
38356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38357 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38358 | ac_status=$? |
ac1cb8d3 VS |
38359 | grep -v '^ *+' conftest.er1 >conftest.err |
38360 | rm -f conftest.er1 | |
38361 | cat conftest.err >&5 | |
a848cd7e SC |
38362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38363 | (exit $ac_status); } && | |
4d4ff94c | 38364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38366 | (eval $ac_try) 2>&5 | |
38367 | ac_status=$? | |
38368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38369 | (exit $ac_status); }; } && | |
38370 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38372 | (eval $ac_try) 2>&5 | |
38373 | ac_status=$? | |
38374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38375 | (exit $ac_status); }; }; then | |
38376 | bakefile_cv_prog_icc=yes | |
38377 | else | |
38378 | echo "$as_me: failed program was:" >&5 | |
38379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38380 | ||
38381 | bakefile_cv_prog_icc=no | |
38382 | ||
38383 | fi | |
ac1cb8d3 | 38384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38385 | |
38386 | fi | |
38387 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38388 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38389 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38390 | PIC_FLAG="-KPIC" | |
38391 | fi | |
38392 | fi | |
38393 | ;; | |
38394 | ||
38395 | *-*-solaris2* ) | |
38396 | if test "x$GCC" != xyes ; then | |
38397 | SHARED_LD_CC="${CC} -G -o" | |
38398 | SHARED_LD_CXX="${CXX} -G -o" | |
38399 | PIC_FLAG="-KPIC" | |
38400 | fi | |
38401 | ;; | |
38402 | ||
38403 | *-*-darwin* ) | |
38404 | ||
38405 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38406 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38407 | if test "${wx_cv_gcc31+set}" = set; then | |
38408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38409 | else | |
38410 | ||
38411 | cat >conftest.$ac_ext <<_ACEOF | |
38412 | /* confdefs.h. */ | |
38413 | _ACEOF | |
38414 | cat confdefs.h >>conftest.$ac_ext | |
38415 | cat >>conftest.$ac_ext <<_ACEOF | |
38416 | /* end confdefs.h. */ | |
38417 | ||
38418 | int | |
38419 | main () | |
38420 | { | |
38421 | ||
38422 | #if (__GNUC__ < 3) || \ | |
38423 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38424 | #error old gcc | |
38425 | #endif | |
38426 | ||
38427 | ; | |
38428 | return 0; | |
38429 | } | |
38430 | _ACEOF | |
38431 | rm -f conftest.$ac_objext | |
38432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38433 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38434 | ac_status=$? |
ac1cb8d3 VS |
38435 | grep -v '^ *+' conftest.er1 >conftest.err |
38436 | rm -f conftest.er1 | |
38437 | cat conftest.err >&5 | |
a848cd7e SC |
38438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38439 | (exit $ac_status); } && | |
4d4ff94c | 38440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38442 | (eval $ac_try) 2>&5 | |
38443 | ac_status=$? | |
38444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38445 | (exit $ac_status); }; } && | |
38446 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38448 | (eval $ac_try) 2>&5 | |
38449 | ac_status=$? | |
38450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38451 | (exit $ac_status); }; }; then | |
38452 | ||
38453 | wx_cv_gcc31=yes | |
38454 | ||
38455 | else | |
38456 | echo "$as_me: failed program was:" >&5 | |
38457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38458 | ||
38459 | ||
38460 | wx_cv_gcc31=no | |
38461 | ||
38462 | ||
38463 | fi | |
ac1cb8d3 | 38464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38465 | |
38466 | fi | |
38467 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38468 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
38469 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
38470 | |
38471 | D='$' | |
38472 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38473 | #!/bin/sh |
38474 | #----------------------------------------------------------------------------- | |
38475 | #-- Name: distrib/mac/shared-ld-sh | |
38476 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38477 | #-- Author: Gilles Depeyrot | |
38478 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38479 | #-- Licence: any use permitted | |
38480 | #----------------------------------------------------------------------------- | |
38481 | ||
38482 | verbose=0 | |
38483 | args="" | |
38484 | objects="" | |
38485 | linking_flag="-dynamiclib" | |
38486 | ||
473276a9 VS |
38487 | while test ${D}# -gt 0; do |
38488 | case ${D}1 in | |
a848cd7e SC |
38489 | |
38490 | -v) | |
38491 | verbose=1 | |
38492 | ;; | |
38493 | ||
38494 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38495 | # collect these options and values | |
473276a9 | 38496 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
38497 | shift |
38498 | ;; | |
38499 | ||
38500 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
38501 | # collect these options | |
473276a9 | 38502 | args="${D}{args} ${D}1" |
a848cd7e SC |
38503 | ;; |
38504 | ||
38505 | -dynamiclib|-bundle) | |
473276a9 | 38506 | linking_flag="${D}1" |
a848cd7e SC |
38507 | ;; |
38508 | ||
38509 | -*) | |
473276a9 | 38510 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
38511 | exit 1 |
38512 | ;; | |
38513 | ||
38514 | *.o | *.a | *.dylib) | |
38515 | # collect object files | |
473276a9 | 38516 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
38517 | ;; |
38518 | ||
38519 | *) | |
473276a9 | 38520 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
38521 | exit 1 |
38522 | ;; | |
38523 | ||
38524 | esac | |
38525 | shift | |
38526 | done | |
38527 | ||
38528 | # | |
38529 | # Link one module containing all the others | |
38530 | # | |
473276a9 VS |
38531 | if test ${D}{verbose} = 1; then |
38532 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 38533 | fi |
473276a9 VS |
38534 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
38535 | status=${D}? | |
38536 | if test ${D}{status} != 0; then | |
38537 | exit ${D}{status} | |
a848cd7e SC |
38538 | fi |
38539 | ||
38540 | # | |
38541 | # Link the shared library from the single module created | |
38542 | # | |
473276a9 VS |
38543 | if test ${D}{verbose} = 1; then |
38544 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 38545 | fi |
473276a9 VS |
38546 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
38547 | status=${D}? | |
38548 | if test ${D}{status} != 0; then | |
38549 | exit ${D}{status} | |
a848cd7e SC |
38550 | fi |
38551 | ||
38552 | # | |
38553 | # Remove intermediate module | |
38554 | # | |
473276a9 | 38555 | rm -f master.${D}${D}.o |
a848cd7e SC |
38556 | |
38557 | exit 0 | |
38558 | EOF | |
473276a9 | 38559 | |
a848cd7e SC |
38560 | chmod +x shared-ld-sh |
38561 | ||
38562 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
38563 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
38564 | SHARED_LD_CXX="$SHARED_LD_CC" | |
38565 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38566 | else | |
38567 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38568 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38569 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38570 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
38571 | fi | |
38572 | ||
38573 | PIC_FLAG="-dynamic -fPIC" | |
38574 | ;; | |
38575 | ||
38576 | *-*-aix* ) | |
38577 | if test "x$GCC" != "xyes"; then | |
38578 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38579 | set dummy makeC++SharedLib; ac_word=$2 | |
38580 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38582 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38584 | else | |
38585 | if test -n "$AIX_CXX_LD"; then | |
38586 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38587 | else | |
38588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38589 | for as_dir in $PATH | |
38590 | do | |
38591 | IFS=$as_save_IFS | |
38592 | test -z "$as_dir" && as_dir=. | |
38593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38594 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38595 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38597 | break 2 | |
38598 | fi | |
38599 | done | |
38600 | done | |
38601 | ||
38602 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
38603 | fi | |
38604 | fi | |
38605 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
38606 | if test -n "$AIX_CXX_LD"; then | |
38607 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
38608 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
38609 | else | |
38610 | echo "$as_me:$LINENO: result: no" >&5 | |
38611 | echo "${ECHO_T}no" >&6 | |
38612 | fi | |
38613 | ||
38614 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38615 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38616 | fi | |
38617 | ;; | |
38618 | ||
38619 | *-*-beos* ) | |
38620 | SHARED_LD_CC="${LD} -shared -o" | |
38621 | SHARED_LD_CXX="${LD} -shared -o" | |
38622 | ;; | |
38623 | ||
38624 | *-*-irix* ) | |
38625 | if test "x$GCC" != "xyes"; then | |
38626 | PIC_FLAG="-KPIC" | |
38627 | fi | |
38628 | ;; | |
38629 | ||
38630 | *-*-cygwin* | *-*-mingw32* ) | |
38631 | PIC_FLAG="" | |
38632 | ;; | |
38633 | ||
38634 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
38635 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
38636 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 38637 | PIC_FLAG="" |
473276a9 VS |
38638 | |
38639 | D='$' | |
38640 | cat <<EOF >dllar.sh | |
38641 | #!/bin/sh | |
38642 | # | |
38643 | # dllar - a tool to build both a .dll and an .a file | |
38644 | # from a set of object (.o) files for EMX/OS2. | |
38645 | # | |
38646 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
38647 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
38648 | # | |
38649 | # This script will accept a set of files on the command line. | |
38650 | # All the public symbols from the .o files will be exported into | |
38651 | # a .DEF file, then linker will be run (through gcc) against them to | |
38652 | # build a shared library consisting of all given .o files. All libraries | |
38653 | # (.a) will be first decompressed into component .o files then act as | |
38654 | # described above. You can optionally give a description (-d "description") | |
38655 | # which will be put into .DLL. To see the list of accepted options (as well | |
38656 | # as command-line format) simply run this program without options. The .DLL | |
38657 | # is built to be imported by name (there is no guarantee that new versions | |
38658 | # of the library you build will have same ordinals for same symbols). | |
38659 | # | |
38660 | # dllar is free software; you can redistribute it and/or modify | |
38661 | # it under the terms of the GNU General Public License as published by | |
38662 | # the Free Software Foundation; either version 2, or (at your option) | |
38663 | # any later version. | |
38664 | # | |
38665 | # dllar is distributed in the hope that it will be useful, | |
38666 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
38667 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
38668 | # GNU General Public License for more details. | |
38669 | # | |
38670 | # You should have received a copy of the GNU General Public License | |
38671 | # along with dllar; see the file COPYING. If not, write to the Free | |
38672 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
38673 | # 02111-1307, USA. | |
38674 | ||
38675 | # To successfuly run this program you will need: | |
38676 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
38677 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
38678 | # - gcc | |
38679 | # (used to build the .dll) | |
38680 | # - emxexp | |
38681 | # (used to create .def file from .o files) | |
38682 | # - emximp | |
38683 | # (used to create .a file from .def file) | |
38684 | # - GNU text utilites (cat, sort, uniq) | |
38685 | # used to process emxexp output | |
38686 | # - GNU file utilities (mv, rm) | |
38687 | # - GNU sed | |
38688 | # - lxlite (optional, see flag below) | |
38689 | # (used for general .dll cleanup) | |
38690 | # | |
38691 | ||
38692 | flag_USE_LXLITE=1; | |
38693 | ||
38694 | # | |
38695 | # helper functions | |
38696 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
38697 | # second argument (suffix to remove) is given | |
38698 | basnam(){ | |
38699 | case ${D}# in | |
38700 | 1) | |
38701 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
38702 | ;; | |
38703 | 2) | |
38704 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
38705 | ;; | |
38706 | *) | |
38707 | echo "error in basnam ${D}*" | |
38708 | exit 8 | |
38709 | ;; | |
38710 | esac | |
38711 | } | |
38712 | ||
38713 | # Cleanup temporary files and output | |
38714 | CleanUp() { | |
38715 | cd ${D}curDir | |
38716 | for i in ${D}inputFiles ; do | |
38717 | case ${D}i in | |
38718 | *!) | |
38719 | rm -rf \`basnam ${D}i !\` | |
38720 | ;; | |
38721 | *) | |
38722 | ;; | |
38723 | esac | |
38724 | done | |
38725 | ||
38726 | # Kill result in case of failure as there is just to many stupid make/nmake | |
38727 | # things out there which doesn't do this. | |
2057db16 | 38728 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
38729 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
38730 | fi | |
38731 | } | |
38732 | ||
38733 | # Print usage and exit script with rc=1. | |
38734 | PrintHelp() { | |
2057db16 VS |
38735 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
38736 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
38737 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
38738 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
38739 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
38740 | echo '*> "output_file" should have no extension.' |
38741 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
38742 | echo ' The import library name is derived from this and is set to "name".a,' | |
38743 | echo ' unless overridden by -import' | |
38744 | echo '*> "importlib_name" should have no extension.' | |
38745 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
38746 | echo ' This name is used as the import library name and may be longer and' | |
38747 | echo ' more descriptive than the DLL name which has to follow the old ' | |
38748 | echo ' 8.3 convention of FAT.' | |
38749 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
38750 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
38751 | echo ' These flags will be put at the start of GCC command line.' | |
2057db16 VS |
38752 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
38753 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
38754 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
38755 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
38756 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
2057db16 | 38757 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 38758 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
2057db16 | 38759 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 38760 | echo ' C runtime DLLs.' |
2057db16 | 38761 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
38762 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
38763 | echo ' unchanged to GCC at the end of command line.' | |
38764 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
38765 | echo ' the basename for DLL and import library will be set to library name,' | |
38766 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
38767 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
38768 | echo ' library will be renamed into gcc_s.a.' | |
38769 | echo '--------' | |
38770 | echo 'Example:' | |
38771 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
38772 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
38773 | CleanUp | |
38774 | exit 1 | |
38775 | } | |
38776 | ||
38777 | # Execute a command. | |
38778 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
38779 | # @Uses Whatever CleanUp() uses. | |
38780 | doCommand() { | |
38781 | echo "${D}*" | |
38782 | eval ${D}* | |
38783 | rcCmd=${D}? | |
38784 | ||
2057db16 | 38785 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
38786 | echo "command failed, exit code="${D}rcCmd |
38787 | CleanUp | |
38788 | exit ${D}rcCmd | |
38789 | fi | |
38790 | } | |
38791 | ||
38792 | # main routine | |
38793 | # setup globals | |
38794 | cmdLine=${D}* | |
38795 | outFile="" | |
38796 | outimpFile="" | |
38797 | inputFiles="" | |
38798 | description="" | |
38799 | CC=gcc.exe | |
38800 | CFLAGS="-s -Zcrtdll" | |
38801 | EXTRA_CFLAGS="" | |
38802 | EXPORT_BY_ORDINALS=0 | |
38803 | exclude_symbols="" | |
38804 | library_flags="" | |
38805 | curDir=\`pwd\` | |
38806 | curDirS=curDir | |
38807 | case ${D}curDirS in | |
38808 | */) | |
38809 | ;; | |
38810 | *) | |
38811 | curDirS=${D}{curDirS}"/" | |
38812 | ;; | |
38813 | esac | |
38814 | # Parse commandline | |
38815 | libsToLink=0 | |
2057db16 | 38816 | while [] ${D}1 []; do |
473276a9 VS |
38817 | case ${D}1 in |
38818 | -ord*) | |
38819 | EXPORT_BY_ORDINALS=1; | |
38820 | ;; | |
38821 | -o*) | |
38822 | shift | |
38823 | outFile=${D}1 | |
38824 | ;; | |
38825 | -i*) | |
38826 | shift | |
38827 | outimpFile=${D}1 | |
38828 | ;; | |
38829 | -d*) | |
38830 | shift | |
38831 | description=${D}1 | |
38832 | ;; | |
38833 | -f*) | |
38834 | shift | |
38835 | CFLAGS=${D}1 | |
38836 | ;; | |
38837 | -c*) | |
38838 | shift | |
38839 | CC=${D}1 | |
38840 | ;; | |
38841 | -h*) | |
38842 | PrintHelp | |
38843 | ;; | |
38844 | -ex*) | |
38845 | shift | |
38846 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
38847 | ;; | |
38848 | -libf*) | |
38849 | shift | |
38850 | library_flags=${D}{library_flags}${D}1" " | |
38851 | ;; | |
38852 | -nocrt*) | |
38853 | CFLAGS="-s" | |
38854 | ;; | |
38855 | -nolxl*) | |
38856 | flag_USE_LXLITE=0 | |
38857 | ;; | |
38858 | -* | /*) | |
38859 | case ${D}1 in | |
38860 | -L* | -l*) | |
38861 | libsToLink=1 | |
38862 | ;; | |
38863 | *) | |
38864 | ;; | |
38865 | esac | |
38866 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
38867 | ;; | |
38868 | *) | |
38869 | found=0; | |
2057db16 | 38870 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
38871 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
38872 | else | |
38873 | for file in ${D}1 ; do | |
2057db16 | 38874 | if [] -f ${D}file []; then |
473276a9 VS |
38875 | inputFiles="${D}{inputFiles} ${D}file" |
38876 | found=1 | |
38877 | fi | |
38878 | done | |
2057db16 | 38879 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
38880 | echo "ERROR: No file(s) found: "${D}1 |
38881 | exit 8 | |
38882 | fi | |
38883 | fi | |
38884 | ;; | |
38885 | esac | |
38886 | shift | |
38887 | done # iterate cmdline words | |
38888 | ||
38889 | # | |
2057db16 | 38890 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
38891 | echo "dllar: no input files" |
38892 | PrintHelp | |
38893 | fi | |
38894 | ||
38895 | # Now extract all .o files from .a files | |
38896 | newInputFiles="" | |
38897 | for file in ${D}inputFiles ; do | |
38898 | case ${D}file in | |
38899 | *.a | *.lib) | |
38900 | case ${D}file in | |
38901 | *.a) | |
38902 | suffix=".a" | |
38903 | AR="ar" | |
38904 | ;; | |
38905 | *.lib) | |
38906 | suffix=".lib" | |
38907 | AR="emxomfar" | |
38908 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
38909 | ;; | |
38910 | *) | |
38911 | ;; | |
38912 | esac | |
38913 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
38914 | mkdir ${D}dirname | |
2057db16 | 38915 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
38916 | echo "Failed to create subdirectory ./${D}dirname" |
38917 | CleanUp | |
38918 | exit 8; | |
38919 | fi | |
38920 | # Append '!' to indicate archive | |
38921 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
38922 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
38923 | cd ${D}curDir | |
38924 | found=0; | |
38925 | for subfile in ${D}dirname/*.o* ; do | |
2057db16 | 38926 | if [] -f ${D}subfile []; then |
473276a9 | 38927 | found=1 |
2057db16 | 38928 | if [] -s ${D}subfile []; then |
473276a9 VS |
38929 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
38930 | newInputFiles="${D}newInputFiles ${D}subfile" | |
38931 | fi | |
38932 | fi | |
38933 | done | |
2057db16 | 38934 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
38935 | echo "WARNING: there are no files in archive \'${D}file\'" |
38936 | fi | |
38937 | ;; | |
38938 | *) | |
38939 | newInputFiles="${D}{newInputFiles} ${D}file" | |
38940 | ;; | |
38941 | esac | |
38942 | done | |
38943 | inputFiles="${D}newInputFiles" | |
38944 | ||
38945 | # Output filename(s). | |
38946 | do_backup=0; | |
2057db16 | 38947 | if [] -z ${D}outFile []; then |
473276a9 VS |
38948 | do_backup=1; |
38949 | set outFile ${D}inputFiles; outFile=${D}2 | |
38950 | fi | |
38951 | ||
38952 | # If it is an archive, remove the '!' and the '_%' suffixes | |
38953 | case ${D}outFile in | |
38954 | *_%!) | |
38955 | outFile=\`basnam ${D}outFile _%!\` | |
38956 | ;; | |
38957 | *) | |
38958 | ;; | |
38959 | esac | |
38960 | case ${D}outFile in | |
38961 | *.dll) | |
38962 | outFile=\`basnam ${D}outFile .dll\` | |
38963 | ;; | |
38964 | *.DLL) | |
38965 | outFile=\`basnam ${D}outFile .DLL\` | |
38966 | ;; | |
38967 | *.o) | |
38968 | outFile=\`basnam ${D}outFile .o\` | |
38969 | ;; | |
38970 | *.obj) | |
38971 | outFile=\`basnam ${D}outFile .obj\` | |
38972 | ;; | |
38973 | *.a) | |
38974 | outFile=\`basnam ${D}outFile .a\` | |
38975 | ;; | |
38976 | *.lib) | |
38977 | outFile=\`basnam ${D}outFile .lib\` | |
38978 | ;; | |
38979 | *) | |
38980 | ;; | |
38981 | esac | |
38982 | case ${D}outimpFile in | |
38983 | *.a) | |
38984 | outimpFile=\`basnam ${D}outimpFile .a\` | |
38985 | ;; | |
38986 | *.lib) | |
38987 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
38988 | ;; | |
38989 | *) | |
38990 | ;; | |
38991 | esac | |
2057db16 | 38992 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
38993 | outimpFile=${D}outFile |
38994 | fi | |
38995 | defFile="${D}{outFile}.def" | |
38996 | arcFile="${D}{outimpFile}.a" | |
38997 | arcFile2="${D}{outimpFile}.lib" | |
38998 | dllFile="${D}outFile" | |
38999 | # Add suffix to dllFile later, first we need a version to use as | |
39000 | # name in .def file. | |
39001 | ||
2057db16 VS |
39002 | if [] ${D}do_backup -ne 0 [] ; then |
39003 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
39004 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39005 | fi | |
2057db16 | 39006 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
39007 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39008 | fi | |
39009 | fi | |
39010 | ||
39011 | # Extract public symbols from all the object files. | |
39012 | tmpdefFile=${D}{defFile}_% | |
39013 | rm -f ${D}tmpdefFile | |
39014 | for file in ${D}inputFiles ; do | |
39015 | case ${D}file in | |
39016 | *!) | |
39017 | ;; | |
39018 | *) | |
39019 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39020 | ;; | |
39021 | esac | |
39022 | done | |
39023 | ||
39024 | # Create the def file. | |
39025 | rm -f ${D}defFile | |
39026 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39027 | dllFile="${D}dllFile.dll" | |
2057db16 | 39028 | if [] -n ${D}description []; then |
473276a9 VS |
39029 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
39030 | fi | |
39031 | echo "EXPORTS" >> ${D}defFile | |
39032 | ||
39033 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39034 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39035 | ||
39036 | # Checks if the export is ok or not. | |
39037 | for word in ${D}exclude_symbols; do | |
39038 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39039 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39040 | done | |
39041 | ||
39042 | ||
2057db16 | 39043 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39044 | sed "=" < ${D}tmpdefFile | \ |
39045 | sed ' | |
39046 | N | |
39047 | : loop | |
2057db16 | 39048 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
39049 | t loop |
39050 | ' > ${D}{tmpdefFile}% | |
39051 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39052 | else | |
39053 | rm -f ${D}{tmpdefFile}% | |
39054 | fi | |
39055 | cat ${D}tmpdefFile >> ${D}defFile | |
39056 | rm -f ${D}tmpdefFile | |
39057 | ||
39058 | # Do linking, create implib, and apply lxlite. | |
39059 | gccCmdl=""; | |
39060 | for file in ${D}inputFiles ; do | |
39061 | case ${D}file in | |
39062 | *!) | |
39063 | ;; | |
39064 | *) | |
39065 | gccCmdl="${D}gccCmdl ${D}file" | |
39066 | ;; | |
39067 | esac | |
39068 | done | |
39069 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39070 | touch "${D}{outFile}.dll" | |
39071 | ||
39072 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
2057db16 | 39073 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39074 | add_flags=""; |
2057db16 | 39075 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39076 | add_flags="-ynd" |
39077 | fi | |
39078 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39079 | fi | |
39080 | doCommand "emxomf -s -l ${D}arcFile" | |
39081 | ||
39082 | # Successful exit. | |
39083 | CleanUp 1 | |
39084 | exit 0 | |
39085 | EOF | |
39086 | ||
39087 | chmod +x dllar.sh | |
a848cd7e SC |
39088 | ;; |
39089 | ||
39090 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39091 | *-*-sunos4* | \ | |
39092 | *-*-osf* | \ | |
39093 | *-*-dgux5* | \ | |
39094 | *-*-sysv5* ) | |
39095 | ;; | |
39096 | ||
39097 | *) | |
39098 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39099 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39100 | { (exit 1); exit 1; }; } | |
39101 | esac | |
39102 | ||
2057db16 VS |
39103 | if test "x$PIC_FLAG" != "x" ; then |
39104 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39105 | fi | |
39106 | ||
a848cd7e SC |
39107 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39108 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39109 | fi | |
39110 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39111 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39112 | fi | |
39113 | ||
39114 | ||
39115 | ||
39116 | ||
39117 | ||
39118 | ||
39119 | ||
39120 | ||
39121 | USE_SOVERSION=0 | |
39122 | USE_SOVERLINUX=0 | |
39123 | USE_SOVERSOLARIS=0 | |
39124 | USE_SOSYMLINKS=0 | |
39125 | USE_MACVERSION=0 | |
39126 | SONAME_FLAG= | |
39127 | ||
39128 | case "${BAKEFILE_HOST}" in | |
39129 | *-*-linux* ) | |
39130 | SONAME_FLAG="-Wl,-soname," | |
39131 | USE_SOVERSION=1 | |
39132 | USE_SOVERLINUX=1 | |
39133 | USE_SOSYMLINKS=1 | |
39134 | ;; | |
39135 | ||
39136 | *-*-solaris2* ) | |
39137 | SONAME_FLAG="-h " | |
39138 | USE_SOVERSION=1 | |
39139 | USE_SOVERSOLARIS=1 | |
39140 | USE_SOSYMLINKS=1 | |
39141 | ;; | |
39142 | ||
39143 | *-*-darwin* ) | |
39144 | USE_MACVERSION=1 | |
39145 | USE_SOVERSION=1 | |
39146 | USE_SOSYMLINKS=1 | |
39147 | ;; | |
39148 | esac | |
39149 | ||
39150 | ||
39151 | ||
39152 | ||
39153 | ||
39154 | ||
39155 | ||
39156 | ||
39157 | ||
39158 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39159 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39160 | DEPS_TRACKING=0 | |
39161 | ||
39162 | if test "x$GCC" = "xyes"; then | |
39163 | DEPSMODE=gcc | |
39164 | DEPS_TRACKING=1 | |
39165 | case "${BAKEFILE_HOST}" in | |
39166 | powerpc-*-darwin* ) | |
39167 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39168 | ;; | |
39169 | * ) | |
39170 | DEPSFLAG_GCC="-MMD" | |
39171 | ;; | |
39172 | esac | |
39173 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39174 | echo "${ECHO_T}gcc" >&6 | |
39175 | else | |
39176 | echo "$as_me:$LINENO: result: none" >&5 | |
39177 | echo "${ECHO_T}none" >&6 | |
39178 | fi | |
39179 | ||
39180 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39181 | |
39182 | D='$' | |
39183 | cat <<EOF >bk-deps | |
a848cd7e SC |
39184 | #!/bin/sh |
39185 | ||
39186 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39187 | # script. It is used to track C/C++ files dependencies in portable way. | |
39188 | # | |
39189 | # Permission is given to use this file in any way. | |
39190 | ||
473276a9 | 39191 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39192 | DEPSDIR=.deps |
473276a9 | 39193 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39194 | |
473276a9 | 39195 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39196 | |
473276a9 VS |
39197 | if test ${D}DEPSMODE = gcc ; then |
39198 | ${D}* ${D}{DEPSFLAG_GCC} | |
39199 | status=${D}? | |
39200 | if test ${D}{status} != 0 ; then | |
39201 | exit ${D}{status} | |
a848cd7e SC |
39202 | fi |
39203 | # move created file to the location we want it in: | |
473276a9 VS |
39204 | while test ${D}# -gt 0; do |
39205 | case "${D}1" in | |
a848cd7e SC |
39206 | -o ) |
39207 | shift | |
473276a9 | 39208 | objfile=${D}1 |
a848cd7e SC |
39209 | ;; |
39210 | -* ) | |
39211 | ;; | |
39212 | * ) | |
473276a9 | 39213 | srcfile=${D}1 |
a848cd7e SC |
39214 | ;; |
39215 | esac | |
39216 | shift | |
39217 | done | |
473276a9 VS |
39218 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39219 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39220 | if test -f ${D}depfile ; then | |
39221 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39222 | rm -f ${D}depfile | |
a848cd7e | 39223 | else |
473276a9 VS |
39224 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39225 | if test -f ${D}depfile ; then | |
39226 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39227 | rm -f ${D}depfile | |
a848cd7e SC |
39228 | fi |
39229 | fi | |
39230 | exit 0 | |
39231 | else | |
473276a9 VS |
39232 | ${D}* |
39233 | exit ${D}? | |
a848cd7e SC |
39234 | fi |
39235 | EOF | |
473276a9 | 39236 | |
a848cd7e SC |
39237 | chmod +x bk-deps |
39238 | fi | |
39239 | ||
39240 | ||
39241 | ||
39242 | ||
39243 | RESCOMP= | |
39244 | SETFILE= | |
39245 | ||
39246 | case ${BAKEFILE_HOST} in | |
39247 | *-*-cygwin* | *-*-mingw32* ) | |
39248 | if test "$build" != "$host" ; then | |
39249 | RESCOMP=$host_alias-windres | |
39250 | else | |
39251 | # Extract the first word of "windres", so it can be a program name with args. | |
39252 | set dummy windres; ac_word=$2 | |
39253 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39255 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39257 | else | |
39258 | if test -n "$RESCOMP"; then | |
39259 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39260 | else | |
39261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39262 | for as_dir in $PATH | |
39263 | do | |
39264 | IFS=$as_save_IFS | |
39265 | test -z "$as_dir" && as_dir=. | |
39266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39268 | ac_cv_prog_RESCOMP="windres" | |
39269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39270 | break 2 | |
39271 | fi | |
39272 | done | |
39273 | done | |
39274 | ||
39275 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39276 | fi | |
39277 | fi | |
39278 | RESCOMP=$ac_cv_prog_RESCOMP | |
39279 | if test -n "$RESCOMP"; then | |
39280 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39281 | echo "${ECHO_T}$RESCOMP" >&6 | |
39282 | else | |
39283 | echo "$as_me:$LINENO: result: no" >&5 | |
39284 | echo "${ECHO_T}no" >&6 | |
39285 | fi | |
39286 | ||
39287 | fi | |
39288 | ;; | |
39289 | ||
39290 | *-*-darwin* ) | |
39291 | # Extract the first word of "Rez", so it can be a program name with args. | |
39292 | set dummy Rez; ac_word=$2 | |
39293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39295 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39297 | else | |
39298 | if test -n "$RESCOMP"; then | |
39299 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39300 | else | |
39301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39302 | for as_dir in $PATH | |
39303 | do | |
39304 | IFS=$as_save_IFS | |
39305 | test -z "$as_dir" && as_dir=. | |
39306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39308 | ac_cv_prog_RESCOMP="Rez" | |
39309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39310 | break 2 | |
39311 | fi | |
39312 | done | |
39313 | done | |
39314 | ||
39315 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39316 | fi | |
39317 | fi | |
39318 | RESCOMP=$ac_cv_prog_RESCOMP | |
39319 | if test -n "$RESCOMP"; then | |
39320 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39321 | echo "${ECHO_T}$RESCOMP" >&6 | |
39322 | else | |
39323 | echo "$as_me:$LINENO: result: no" >&5 | |
39324 | echo "${ECHO_T}no" >&6 | |
39325 | fi | |
39326 | ||
39327 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39328 | set dummy SetFile; ac_word=$2 | |
39329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39331 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39333 | else | |
39334 | if test -n "$SETFILE"; then | |
39335 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39336 | else | |
39337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39338 | for as_dir in $PATH | |
39339 | do | |
39340 | IFS=$as_save_IFS | |
39341 | test -z "$as_dir" && as_dir=. | |
39342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39344 | ac_cv_prog_SETFILE="SetFile" | |
39345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39346 | break 2 | |
39347 | fi | |
39348 | done | |
39349 | done | |
39350 | ||
39351 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39352 | fi | |
39353 | fi | |
39354 | SETFILE=$ac_cv_prog_SETFILE | |
39355 | if test -n "$SETFILE"; then | |
39356 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39357 | echo "${ECHO_T}$SETFILE" >&6 | |
39358 | else | |
39359 | echo "$as_me:$LINENO: result: no" >&5 | |
39360 | echo "${ECHO_T}no" >&6 | |
39361 | fi | |
39362 | ||
39363 | ;; | |
39364 | esac | |
39365 | ||
39366 | ||
39367 | ||
39368 | ||
39369 | ||
2057db16 | 39370 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39371 | |
dcc1b6ad | 39372 | |
a0f9686d VS |
39373 | |
39374 | ||
39375 | ||
9f45f08e | 39376 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39377 | |
646b6ec1 | 39378 | |
74b84332 | 39379 | |
a848cd7e SC |
39380 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39381 | if test "${enable_precomp_headers+set}" = set; then | |
39382 | enableval="$enable_precomp_headers" | |
39383 | bk_use_pch="$enableval" | |
39384 | fi; | |
39385 | ||
39386 | GCC_PCH=0 | |
39387 | ||
39388 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39389 | if test "x$GCC" = "xyes"; then | |
39390 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39391 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39392 | cat >conftest.$ac_ext <<_ACEOF | |
39393 | /* confdefs.h. */ | |
39394 | _ACEOF | |
39395 | cat confdefs.h >>conftest.$ac_ext | |
39396 | cat >>conftest.$ac_ext <<_ACEOF | |
39397 | /* end confdefs.h. */ | |
39398 | ||
39399 | int | |
39400 | main () | |
39401 | { | |
39402 | ||
39403 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39404 | #error "no pch support" | |
39405 | #endif | |
39406 | #if (__GNUC__ < 3) | |
39407 | #error "no pch support" | |
39408 | #endif | |
39409 | #if (__GNUC__ == 3) && \ | |
39410 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39411 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39412 | #error "no pch support" | |
39413 | #endif | |
39414 | ||
39415 | ; | |
39416 | return 0; | |
39417 | } | |
39418 | _ACEOF | |
39419 | rm -f conftest.$ac_objext | |
39420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39421 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39422 | ac_status=$? |
ac1cb8d3 VS |
39423 | grep -v '^ *+' conftest.er1 >conftest.err |
39424 | rm -f conftest.er1 | |
39425 | cat conftest.err >&5 | |
a848cd7e SC |
39426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39427 | (exit $ac_status); } && | |
4d4ff94c | 39428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39430 | (eval $ac_try) 2>&5 | |
39431 | ac_status=$? | |
39432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39433 | (exit $ac_status); }; } && | |
39434 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39436 | (eval $ac_try) 2>&5 | |
39437 | ac_status=$? | |
39438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39439 | (exit $ac_status); }; }; then | |
39440 | ||
39441 | echo "$as_me:$LINENO: result: yes" >&5 | |
39442 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
39443 | GCC_PCH=1 |
39444 | ||
39445 | else | |
39446 | echo "$as_me: failed program was:" >&5 | |
39447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39448 | ||
39449 | ||
39450 | echo "$as_me:$LINENO: result: no" >&5 | |
39451 | echo "${ECHO_T}no" >&6 | |
39452 | ||
39453 | fi | |
ac1cb8d3 | 39454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39455 | if test $GCC_PCH = 1 ; then |
39456 | cat <<EOF >bk-make-pch | |
39457 | #!/bin/sh | |
39458 | ||
39459 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39460 | # script. It is used to generated precompiled headers. | |
39461 | # | |
39462 | # Permission is given to use this file in any way. | |
39463 | ||
39464 | outfile="\${1}" | |
39465 | header="\${2}" | |
39466 | shift | |
39467 | shift | |
39468 | ||
39469 | compiler= | |
39470 | headerfile= | |
39471 | while test \${#} -gt 0; do | |
39472 | case "\${1}" in | |
39473 | -I* ) | |
39474 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39475 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39476 | headerfile="\${incdir}/\${header}" | |
39477 | fi | |
39478 | ;; | |
39479 | esac | |
39480 | compiler="\${compiler} \${1}" | |
39481 | shift | |
39482 | done | |
39483 | ||
39484 | if test "x\${headerfile}" = "x" ; then | |
39485 | echo "error: can't find header \${header} in include paths" >2 | |
39486 | else | |
39487 | if test -f \${outfile} ; then | |
39488 | rm -f \${outfile} | |
39489 | else | |
39490 | mkdir -p \`dirname \${outfile}\` | |
39491 | fi | |
39492 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39493 | mkdir -p .deps | |
39494 | # can do this because gcc is >= 3.4: | |
39495 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39496 | exit \${?} | |
39497 | fi | |
39498 | EOF | |
39499 | chmod +x bk-make-pch | |
39500 | fi | |
39501 | fi | |
39502 | fi | |
39503 | ||
39504 | ||
39505 | ||
39506 | ||
39507 | ||
dcc1b6ad VS |
39508 | |
39509 | ||
39510 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
39511 | if test "${enable_precomp_headers+set}" = set; then | |
39512 | enableval="$enable_precomp_headers" | |
39513 | bk_use_pch="$enableval" | |
39514 | fi; | |
39515 | ||
39516 | GCC_PCH=0 | |
39517 | ||
39518 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39519 | if test "x$GCC" = "xyes"; then | |
39520 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39521 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39522 | cat >conftest.$ac_ext <<_ACEOF | |
39523 | /* confdefs.h. */ | |
39524 | _ACEOF | |
39525 | cat confdefs.h >>conftest.$ac_ext | |
39526 | cat >>conftest.$ac_ext <<_ACEOF | |
39527 | /* end confdefs.h. */ | |
39528 | ||
39529 | int | |
39530 | main () | |
39531 | { | |
39532 | ||
39533 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39534 | #error "no pch support" | |
39535 | #endif | |
39536 | #if (__GNUC__ < 3) | |
39537 | #error "no pch support" | |
39538 | #endif | |
39539 | #if (__GNUC__ == 3) && \ | |
39540 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39541 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39542 | #error "no pch support" | |
39543 | #endif | |
39544 | ||
39545 | ; | |
39546 | return 0; | |
39547 | } | |
39548 | _ACEOF | |
39549 | rm -f conftest.$ac_objext | |
39550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39551 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 39552 | ac_status=$? |
ac1cb8d3 VS |
39553 | grep -v '^ *+' conftest.er1 >conftest.err |
39554 | rm -f conftest.er1 | |
39555 | cat conftest.err >&5 | |
dcc1b6ad VS |
39556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39557 | (exit $ac_status); } && | |
4d4ff94c | 39558 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39560 | (eval $ac_try) 2>&5 | |
39561 | ac_status=$? | |
39562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39563 | (exit $ac_status); }; } && | |
39564 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
39565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39566 | (eval $ac_try) 2>&5 | |
39567 | ac_status=$? | |
39568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39569 | (exit $ac_status); }; }; then | |
39570 | ||
39571 | echo "$as_me:$LINENO: result: yes" >&5 | |
39572 | echo "${ECHO_T}yes" >&6 | |
dcc1b6ad VS |
39573 | GCC_PCH=1 |
39574 | ||
39575 | else | |
39576 | echo "$as_me: failed program was:" >&5 | |
39577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39578 | ||
39579 | ||
39580 | echo "$as_me:$LINENO: result: no" >&5 | |
39581 | echo "${ECHO_T}no" >&6 | |
39582 | ||
39583 | fi | |
ac1cb8d3 | 39584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
39585 | if test $GCC_PCH = 1 ; then |
39586 | cat <<EOF >bk-make-pch | |
39587 | #!/bin/sh | |
39588 | ||
39589 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39590 | # script. It is used to generated precompiled headers. | |
39591 | # | |
39592 | # Permission is given to use this file in any way. | |
39593 | ||
39594 | outfile="\${1}" | |
39595 | header="\${2}" | |
39596 | shift | |
39597 | shift | |
39598 | ||
39599 | compiler= | |
39600 | headerfile= | |
39601 | while test \${#} -gt 0; do | |
39602 | case "\${1}" in | |
39603 | -I* ) | |
39604 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39605 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39606 | headerfile="\${incdir}/\${header}" | |
39607 | fi | |
39608 | ;; | |
39609 | esac | |
39610 | compiler="\${compiler} \${1}" | |
39611 | shift | |
39612 | done | |
39613 | ||
39614 | if test "x\${headerfile}" = "x" ; then | |
39615 | echo "error: can't find header \${header} in include paths" >2 | |
39616 | else | |
39617 | if test -f \${outfile} ; then | |
39618 | rm -f \${outfile} | |
39619 | else | |
39620 | mkdir -p \`dirname \${outfile}\` | |
39621 | fi | |
39622 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39623 | mkdir -p .deps | |
39624 | # can do this because gcc is >= 3.4: | |
39625 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39626 | exit \${?} | |
39627 | fi | |
39628 | EOF | |
39629 | chmod +x bk-make-pch | |
39630 | fi | |
39631 | fi | |
39632 | fi | |
39633 | ||
39634 | ||
39635 | ||
4d4ff94c | 39636 | |
a848cd7e SC |
39637 | COND_BUILD_DEBUG="#" |
39638 | if test "x$BUILD" = "xdebug" ; then | |
39639 | COND_BUILD_DEBUG="" | |
39640 | fi | |
39641 | ||
39642 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
39643 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39644 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39645 | fi | |
39646 | ||
39647 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39648 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39649 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39650 | fi | |
39651 | ||
39652 | COND_BUILD_DEBUG_UNICODE_0="#" | |
39653 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39654 | COND_BUILD_DEBUG_UNICODE_0="" | |
39655 | fi | |
39656 | ||
39657 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39658 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39659 | COND_BUILD_DEBUG_UNICODE_1="" | |
39660 | fi | |
39661 | ||
39662 | COND_BUILD_RELEASE="#" | |
39663 | if test "x$BUILD" = "xrelease" ; then | |
39664 | COND_BUILD_RELEASE="" | |
39665 | fi | |
39666 | ||
39667 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
39668 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39669 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39670 | fi | |
39671 | ||
39672 | COND_BUILD_RELEASE_UNICODE_0="#" | |
39673 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39674 | COND_BUILD_RELEASE_UNICODE_0="" | |
39675 | fi | |
39676 | ||
39677 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39678 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39679 | COND_BUILD_RELEASE_UNICODE_1="" | |
39680 | fi | |
39681 | ||
39682 | COND_DEBUG_FLAG_1="#" | |
39683 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39684 | COND_DEBUG_FLAG_1="" | |
39685 | fi | |
39686 | ||
39687 | COND_DEBUG_INFO_0="#" | |
39688 | if test "x$DEBUG_INFO" = "x0" ; then | |
39689 | COND_DEBUG_INFO_0="" | |
39690 | fi | |
39691 | ||
39692 | COND_DEBUG_INFO_1="#" | |
39693 | if test "x$DEBUG_INFO" = "x1" ; then | |
39694 | COND_DEBUG_INFO_1="" | |
39695 | fi | |
39696 | ||
39697 | COND_DEPS_TRACKING_0="#" | |
39698 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39699 | COND_DEPS_TRACKING_0="" | |
39700 | fi | |
39701 | ||
39702 | COND_DEPS_TRACKING_1="#" | |
39703 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39704 | COND_DEPS_TRACKING_1="" | |
39705 | fi | |
39706 | ||
39707 | COND_GCC_PCH_1="#" | |
39708 | if test "x$GCC_PCH" = "x1" ; then | |
39709 | COND_GCC_PCH_1="" | |
39710 | fi | |
39711 | ||
39712 | COND_MONOLITHIC_0="#" | |
39713 | if test "x$MONOLITHIC" = "x0" ; then | |
39714 | COND_MONOLITHIC_0="" | |
39715 | fi | |
39716 | ||
39717 | COND_MONOLITHIC_0_SHARED_0="#" | |
39718 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39719 | COND_MONOLITHIC_0_SHARED_0="" | |
39720 | fi | |
39721 | ||
39722 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39723 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39724 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
39725 | fi | |
39726 | ||
39727 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
39728 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39729 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39730 | fi | |
39731 | ||
39732 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
39733 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39734 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39735 | fi | |
39736 | ||
39737 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
39738 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39739 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39740 | fi | |
39741 | ||
39742 | COND_MONOLITHIC_0_SHARED_1="#" | |
39743 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39744 | COND_MONOLITHIC_0_SHARED_1="" | |
39745 | fi | |
39746 | ||
39747 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
39748 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39749 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
39750 | fi | |
39751 | ||
39752 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
39753 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39754 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
39755 | fi | |
39756 | ||
39757 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
39758 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
39759 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
39760 | fi | |
39761 | ||
39762 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
39763 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39764 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
39765 | fi | |
39766 | ||
39767 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
39768 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39769 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
39770 | fi | |
39771 | ||
39772 | COND_MONOLITHIC_1="#" | |
39773 | if test "x$MONOLITHIC" = "x1" ; then | |
39774 | COND_MONOLITHIC_1="" | |
39775 | fi | |
39776 | ||
39777 | COND_MONOLITHIC_1_SHARED_0="#" | |
39778 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
39779 | COND_MONOLITHIC_1_SHARED_0="" | |
39780 | fi | |
39781 | ||
39782 | COND_MONOLITHIC_1_SHARED_1="#" | |
39783 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
39784 | COND_MONOLITHIC_1_SHARED_1="" | |
39785 | fi | |
39786 | ||
39787 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
39788 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39789 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
39790 | fi | |
39791 | ||
39792 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
39793 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39794 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
39795 | fi | |
39796 | ||
39797 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
39798 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
39799 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
39800 | fi | |
39801 | ||
39802 | COND_PLATFORM_MACOSX_1="#" | |
39803 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
39804 | COND_PLATFORM_MACOSX_1="" | |
39805 | fi | |
39806 | ||
39807 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
39808 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
39809 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
39810 | fi | |
39811 | ||
39812 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
39813 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
39814 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
39815 | fi | |
39816 | ||
39817 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
39818 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
39819 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
39820 | fi | |
39821 | ||
ebee3cd0 VS |
39822 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
39823 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
39824 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
39825 | fi | |
39826 | ||
39827 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
39828 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
39829 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
39830 | fi | |
39831 | ||
a848cd7e SC |
39832 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
39833 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39834 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
39835 | fi | |
39836 | ||
39837 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
39838 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
39839 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
39840 | fi | |
39841 | ||
39842 | COND_PLATFORM_MAC_1="#" | |
39843 | if test "x$PLATFORM_MAC" = "x1" ; then | |
39844 | COND_PLATFORM_MAC_1="" | |
39845 | fi | |
39846 | ||
39847 | COND_PLATFORM_OS2_1="#" | |
39848 | if test "x$PLATFORM_OS2" = "x1" ; then | |
39849 | COND_PLATFORM_OS2_1="" | |
39850 | fi | |
39851 | ||
39852 | COND_PLATFORM_UNIX_0="#" | |
39853 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
39854 | COND_PLATFORM_UNIX_0="" | |
39855 | fi | |
39856 | ||
39857 | COND_PLATFORM_UNIX_1="#" | |
39858 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
39859 | COND_PLATFORM_UNIX_1="" | |
39860 | fi | |
39861 | ||
39862 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
39863 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39864 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
39865 | fi | |
39866 | ||
39867 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
39868 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
39869 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
39870 | fi | |
39871 | ||
39872 | COND_PLATFORM_WIN32_0="#" | |
39873 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
39874 | COND_PLATFORM_WIN32_0="" | |
39875 | fi | |
39876 | ||
39877 | COND_PLATFORM_WIN32_1="#" | |
39878 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
39879 | COND_PLATFORM_WIN32_1="" | |
39880 | fi | |
39881 | ||
39882 | COND_SHARED_0="#" | |
39883 | if test "x$SHARED" = "x0" ; then | |
39884 | COND_SHARED_0="" | |
39885 | fi | |
39886 | ||
39887 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
39888 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39889 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
39890 | fi | |
39891 | ||
39892 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
39893 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39894 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
39895 | fi | |
39896 | ||
39897 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
39898 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39899 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
39900 | fi | |
39901 | ||
39902 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
39903 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39904 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
39905 | fi | |
39906 | ||
39907 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
39908 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
39909 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
39910 | fi | |
39911 | ||
39912 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
39913 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
39914 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
39915 | fi | |
39916 | ||
39917 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
39918 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
39919 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
39920 | fi | |
39921 | ||
39922 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
39923 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
39924 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
39925 | fi | |
39926 | ||
39927 | COND_SHARED_1="#" | |
39928 | if test "x$SHARED" = "x1" ; then | |
39929 | COND_SHARED_1="" | |
39930 | fi | |
39931 | ||
39932 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
39933 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39934 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
39935 | fi | |
39936 | ||
39937 | COND_TOOLKIT_COCOA="#" | |
39938 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
39939 | COND_TOOLKIT_COCOA="" | |
39940 | fi | |
39941 | ||
39942 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
39943 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39944 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
39945 | fi | |
39946 | ||
39947 | COND_TOOLKIT_GTK="#" | |
39948 | if test "x$TOOLKIT" = "xGTK" ; then | |
39949 | COND_TOOLKIT_GTK="" | |
39950 | fi | |
39951 | ||
39952 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
39953 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
39954 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
39955 | fi | |
39956 | ||
39957 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
39958 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39959 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
39960 | fi | |
39961 | ||
39962 | COND_TOOLKIT_MAC="#" | |
39963 | if test "x$TOOLKIT" = "xMAC" ; then | |
39964 | COND_TOOLKIT_MAC="" | |
39965 | fi | |
39966 | ||
39967 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
39968 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
39969 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
39970 | fi | |
39971 | ||
39972 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
39973 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39974 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
39975 | fi | |
39976 | ||
4d4ff94c VZ |
39977 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
39978 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
39979 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
39980 | fi | |
39981 | ||
a848cd7e SC |
39982 | COND_TOOLKIT_MGL="#" |
39983 | if test "x$TOOLKIT" = "xMGL" ; then | |
39984 | COND_TOOLKIT_MGL="" | |
39985 | fi | |
39986 | ||
39987 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
39988 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
39989 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
39990 | fi | |
39991 | ||
39992 | COND_TOOLKIT_MOTIF="#" | |
39993 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
39994 | COND_TOOLKIT_MOTIF="" | |
39995 | fi | |
39996 | ||
39997 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
39998 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
39999 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40000 | fi | |
40001 | ||
40002 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40003 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40004 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40005 | fi | |
40006 | ||
40007 | COND_TOOLKIT_MSW="#" | |
40008 | if test "x$TOOLKIT" = "xMSW" ; then | |
40009 | COND_TOOLKIT_MSW="" | |
40010 | fi | |
40011 | ||
40012 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40013 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40014 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40015 | fi | |
40016 | ||
40017 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40018 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40019 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40020 | fi | |
40021 | ||
4d4ff94c VZ |
40022 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
40023 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40024 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
40025 | fi | |
40026 | ||
a848cd7e SC |
40027 | COND_TOOLKIT_PM="#" |
40028 | if test "x$TOOLKIT" = "xPM" ; then | |
40029 | COND_TOOLKIT_PM="" | |
40030 | fi | |
40031 | ||
40032 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40033 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40034 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40035 | fi | |
40036 | ||
40037 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40038 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40039 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40040 | fi | |
40041 | ||
4d4ff94c VZ |
40042 | COND_TOOLKIT_PM_WXUNIV_0="#" |
40043 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40044 | COND_TOOLKIT_PM_WXUNIV_0="" | |
40045 | fi | |
40046 | ||
3fd9c298 DE |
40047 | COND_TOOLKIT_WINCE="#" |
40048 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40049 | COND_TOOLKIT_WINCE="" | |
40050 | fi | |
40051 | ||
40052 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40053 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40054 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40055 | fi | |
40056 | ||
40057 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40058 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40059 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40060 | fi | |
40061 | ||
a848cd7e SC |
40062 | COND_TOOLKIT_X11="#" |
40063 | if test "x$TOOLKIT" = "xX11" ; then | |
40064 | COND_TOOLKIT_X11="" | |
40065 | fi | |
40066 | ||
40067 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40068 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40069 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40070 | fi | |
40071 | ||
40072 | COND_UNICODE_1="#" | |
40073 | if test "x$UNICODE" = "x1" ; then | |
40074 | COND_UNICODE_1="" | |
40075 | fi | |
40076 | ||
40077 | COND_USE_EXCEPTIONS_0="#" | |
40078 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40079 | COND_USE_EXCEPTIONS_0="" | |
40080 | fi | |
40081 | ||
40082 | COND_USE_EXCEPTIONS_1="#" | |
40083 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40084 | COND_USE_EXCEPTIONS_1="" | |
40085 | fi | |
40086 | ||
40087 | COND_USE_GUI_0="#" | |
40088 | if test "x$USE_GUI" = "x0" ; then | |
40089 | COND_USE_GUI_0="" | |
40090 | fi | |
40091 | ||
40092 | COND_USE_GUI_1="#" | |
40093 | if test "x$USE_GUI" = "x1" ; then | |
40094 | COND_USE_GUI_1="" | |
40095 | fi | |
40096 | ||
40097 | COND_USE_GUI_1_WXUNIV_0="#" | |
40098 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40099 | COND_USE_GUI_1_WXUNIV_0="" | |
40100 | fi | |
40101 | ||
40102 | COND_USE_GUI_1_WXUNIV_1="#" | |
40103 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40104 | COND_USE_GUI_1_WXUNIV_1="" | |
40105 | fi | |
40106 | ||
40107 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40108 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40109 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40110 | fi | |
40111 | ||
40112 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40113 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40114 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40115 | fi | |
40116 | ||
40117 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40118 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40119 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40120 | fi | |
40121 | ||
4d4ff94c VZ |
40122 | COND_USE_ODBC_1="#" |
40123 | if test "x$USE_ODBC" = "x1" ; then | |
40124 | COND_USE_ODBC_1="" | |
40125 | fi | |
40126 | ||
a848cd7e SC |
40127 | COND_USE_PLUGINS_0="#" |
40128 | if test "x$USE_PLUGINS" = "x0" ; then | |
40129 | COND_USE_PLUGINS_0="" | |
40130 | fi | |
40131 | ||
40132 | COND_USE_SOSYMLINKS_1="#" | |
40133 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40134 | COND_USE_SOSYMLINKS_1="" | |
40135 | fi | |
40136 | ||
40137 | COND_USE_SOVERLINUX_1="#" | |
40138 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40139 | COND_USE_SOVERLINUX_1="" | |
40140 | fi | |
40141 | ||
40142 | COND_USE_SOVERSION_0="#" | |
40143 | if test "x$USE_SOVERSION" = "x0" ; then | |
40144 | COND_USE_SOVERSION_0="" | |
40145 | fi | |
40146 | ||
40147 | COND_USE_SOVERSOLARIS_1="#" | |
40148 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40149 | COND_USE_SOVERSOLARIS_1="" | |
40150 | fi | |
40151 | ||
40152 | COND_WITH_PLUGIN_SDL_1="#" | |
40153 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40154 | COND_WITH_PLUGIN_SDL_1="" | |
40155 | fi | |
40156 | ||
4d4ff94c VZ |
40157 | COND_WITH_SDL_1="#" |
40158 | if test "x$WITH_SDL" = "x1" ; then | |
40159 | COND_WITH_SDL_1="" | |
40160 | fi | |
40161 | ||
a848cd7e SC |
40162 | COND_WXUNIV_1="#" |
40163 | if test "x$WXUNIV" = "x1" ; then | |
40164 | COND_WXUNIV_1="" | |
40165 | fi | |
40166 | ||
40167 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40168 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40169 | COND_WXUSE_EXPAT_BUILTIN="" | |
40170 | fi | |
40171 | ||
40172 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40173 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40174 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40175 | fi | |
40176 | ||
40177 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40178 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40179 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40180 | fi | |
40181 | ||
40182 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40183 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40184 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40185 | fi | |
40186 | ||
40187 | COND_WXUSE_ODBC_BUILTIN="#" | |
40188 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40189 | COND_WXUSE_ODBC_BUILTIN="" | |
40190 | fi | |
40191 | ||
40192 | COND_WXUSE_REGEX_BUILTIN="#" | |
40193 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40194 | COND_WXUSE_REGEX_BUILTIN="" | |
40195 | fi | |
40196 | ||
40197 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40198 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40199 | COND_WXUSE_ZLIB_BUILTIN="" | |
40200 | fi | |
40201 | ||
dcc1b6ad VS |
40202 | COND_BUILD_DEBUG="#" |
40203 | if test "x$BUILD" = "xdebug" ; then | |
40204 | COND_BUILD_DEBUG="" | |
40205 | fi | |
40206 | ||
40207 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40208 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40209 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40210 | fi | |
40211 | ||
40212 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40213 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40214 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40215 | fi | |
40216 | ||
40217 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40218 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40219 | COND_BUILD_DEBUG_UNICODE_0="" | |
40220 | fi | |
40221 | ||
40222 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40223 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40224 | COND_BUILD_DEBUG_UNICODE_1="" | |
40225 | fi | |
40226 | ||
40227 | COND_BUILD_RELEASE="#" | |
40228 | if test "x$BUILD" = "xrelease" ; then | |
40229 | COND_BUILD_RELEASE="" | |
40230 | fi | |
40231 | ||
40232 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40233 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40234 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40235 | fi | |
40236 | ||
40237 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40238 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40239 | COND_BUILD_RELEASE_UNICODE_0="" | |
40240 | fi | |
40241 | ||
40242 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40243 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40244 | COND_BUILD_RELEASE_UNICODE_1="" | |
40245 | fi | |
40246 | ||
40247 | COND_DEBUG_FLAG_1="#" | |
40248 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40249 | COND_DEBUG_FLAG_1="" | |
40250 | fi | |
40251 | ||
40252 | COND_DEBUG_INFO_0="#" | |
40253 | if test "x$DEBUG_INFO" = "x0" ; then | |
40254 | COND_DEBUG_INFO_0="" | |
40255 | fi | |
40256 | ||
40257 | COND_DEBUG_INFO_1="#" | |
40258 | if test "x$DEBUG_INFO" = "x1" ; then | |
40259 | COND_DEBUG_INFO_1="" | |
40260 | fi | |
40261 | ||
40262 | COND_DEPS_TRACKING_0="#" | |
40263 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40264 | COND_DEPS_TRACKING_0="" | |
40265 | fi | |
40266 | ||
40267 | COND_DEPS_TRACKING_1="#" | |
40268 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40269 | COND_DEPS_TRACKING_1="" | |
40270 | fi | |
40271 | ||
40272 | COND_GCC_PCH_1="#" | |
40273 | if test "x$GCC_PCH" = "x1" ; then | |
40274 | COND_GCC_PCH_1="" | |
40275 | fi | |
40276 | ||
40277 | COND_MONOLITHIC_0="#" | |
40278 | if test "x$MONOLITHIC" = "x0" ; then | |
40279 | COND_MONOLITHIC_0="" | |
40280 | fi | |
40281 | ||
40282 | COND_MONOLITHIC_0_SHARED_0="#" | |
40283 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40284 | COND_MONOLITHIC_0_SHARED_0="" | |
40285 | fi | |
40286 | ||
40287 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40288 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40289 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40290 | fi | |
40291 | ||
40292 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40293 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40294 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40295 | fi | |
40296 | ||
40297 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40298 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40299 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40300 | fi | |
40301 | ||
40302 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40303 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40304 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40305 | fi | |
40306 | ||
40307 | COND_MONOLITHIC_0_SHARED_1="#" | |
40308 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40309 | COND_MONOLITHIC_0_SHARED_1="" | |
40310 | fi | |
40311 | ||
40312 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40313 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40314 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40315 | fi | |
40316 | ||
40317 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40318 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40319 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40320 | fi | |
40321 | ||
40322 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40323 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40324 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40325 | fi | |
40326 | ||
40327 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40328 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40329 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40330 | fi | |
40331 | ||
40332 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
40333 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40334 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40335 | fi | |
40336 | ||
40337 | COND_MONOLITHIC_1="#" | |
40338 | if test "x$MONOLITHIC" = "x1" ; then | |
40339 | COND_MONOLITHIC_1="" | |
40340 | fi | |
40341 | ||
40342 | COND_MONOLITHIC_1_SHARED_0="#" | |
40343 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40344 | COND_MONOLITHIC_1_SHARED_0="" | |
40345 | fi | |
40346 | ||
40347 | COND_MONOLITHIC_1_SHARED_1="#" | |
40348 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40349 | COND_MONOLITHIC_1_SHARED_1="" | |
40350 | fi | |
40351 | ||
40352 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40353 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40354 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40355 | fi | |
40356 | ||
40357 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40358 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40359 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40360 | fi | |
40361 | ||
40362 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40363 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40364 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40365 | fi | |
40366 | ||
40367 | COND_PLATFORM_MACOSX_1="#" | |
40368 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40369 | COND_PLATFORM_MACOSX_1="" | |
40370 | fi | |
40371 | ||
40372 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40373 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40374 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40375 | fi | |
40376 | ||
40377 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40378 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40379 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40380 | fi | |
40381 | ||
40382 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40383 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40384 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40385 | fi | |
40386 | ||
40387 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
40388 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40389 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40390 | fi | |
40391 | ||
40392 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40393 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40394 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40395 | fi | |
40396 | ||
40397 | COND_PLATFORM_MAC_1="#" | |
40398 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40399 | COND_PLATFORM_MAC_1="" | |
40400 | fi | |
40401 | ||
40402 | COND_PLATFORM_OS2_1="#" | |
40403 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40404 | COND_PLATFORM_OS2_1="" | |
40405 | fi | |
40406 | ||
40407 | COND_PLATFORM_UNIX_0="#" | |
40408 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40409 | COND_PLATFORM_UNIX_0="" | |
40410 | fi | |
40411 | ||
40412 | COND_PLATFORM_UNIX_1="#" | |
40413 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40414 | COND_PLATFORM_UNIX_1="" | |
40415 | fi | |
40416 | ||
40417 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40418 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40419 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40420 | fi | |
40421 | ||
40422 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40423 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40424 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40425 | fi | |
40426 | ||
40427 | COND_PLATFORM_WIN32_0="#" | |
40428 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40429 | COND_PLATFORM_WIN32_0="" | |
40430 | fi | |
40431 | ||
40432 | COND_PLATFORM_WIN32_1="#" | |
40433 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40434 | COND_PLATFORM_WIN32_1="" | |
40435 | fi | |
40436 | ||
40437 | COND_SHARED_0="#" | |
40438 | if test "x$SHARED" = "x0" ; then | |
40439 | COND_SHARED_0="" | |
40440 | fi | |
40441 | ||
40442 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
40443 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40444 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40445 | fi | |
40446 | ||
40447 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40448 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40449 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40450 | fi | |
40451 | ||
40452 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40453 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40454 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40455 | fi | |
40456 | ||
40457 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40458 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40459 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40460 | fi | |
40461 | ||
40462 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40463 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40464 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40465 | fi | |
40466 | ||
40467 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40468 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40469 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40470 | fi | |
40471 | ||
40472 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40473 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40474 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40475 | fi | |
40476 | ||
40477 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40478 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40479 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40480 | fi | |
40481 | ||
40482 | COND_SHARED_1="#" | |
40483 | if test "x$SHARED" = "x1" ; then | |
40484 | COND_SHARED_1="" | |
40485 | fi | |
40486 | ||
40487 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40488 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40489 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40490 | fi | |
40491 | ||
40492 | COND_TOOLKIT_COCOA="#" | |
40493 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40494 | COND_TOOLKIT_COCOA="" | |
40495 | fi | |
40496 | ||
40497 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40498 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40499 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40500 | fi | |
40501 | ||
40502 | COND_TOOLKIT_GTK="#" | |
40503 | if test "x$TOOLKIT" = "xGTK" ; then | |
40504 | COND_TOOLKIT_GTK="" | |
40505 | fi | |
40506 | ||
40507 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40508 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40509 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40510 | fi | |
40511 | ||
40512 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40513 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40514 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40515 | fi | |
40516 | ||
40517 | COND_TOOLKIT_MAC="#" | |
40518 | if test "x$TOOLKIT" = "xMAC" ; then | |
40519 | COND_TOOLKIT_MAC="" | |
40520 | fi | |
40521 | ||
40522 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40523 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40524 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40525 | fi | |
40526 | ||
40527 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40528 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40529 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40530 | fi | |
40531 | ||
40532 | COND_TOOLKIT_MGL="#" | |
40533 | if test "x$TOOLKIT" = "xMGL" ; then | |
40534 | COND_TOOLKIT_MGL="" | |
40535 | fi | |
40536 | ||
40537 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40538 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40539 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40540 | fi | |
40541 | ||
40542 | COND_TOOLKIT_MOTIF="#" | |
40543 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40544 | COND_TOOLKIT_MOTIF="" | |
40545 | fi | |
40546 | ||
40547 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40548 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40549 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40550 | fi | |
40551 | ||
40552 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40553 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40554 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40555 | fi | |
40556 | ||
40557 | COND_TOOLKIT_MSW="#" | |
40558 | if test "x$TOOLKIT" = "xMSW" ; then | |
40559 | COND_TOOLKIT_MSW="" | |
40560 | fi | |
40561 | ||
40562 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40563 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40564 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40565 | fi | |
40566 | ||
40567 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40568 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40569 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40570 | fi | |
40571 | ||
40572 | COND_TOOLKIT_PM="#" | |
40573 | if test "x$TOOLKIT" = "xPM" ; then | |
40574 | COND_TOOLKIT_PM="" | |
40575 | fi | |
40576 | ||
40577 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40578 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40579 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40580 | fi | |
40581 | ||
40582 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40583 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40584 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40585 | fi | |
40586 | ||
40587 | COND_TOOLKIT_WINCE="#" | |
40588 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40589 | COND_TOOLKIT_WINCE="" | |
40590 | fi | |
40591 | ||
40592 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40593 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40594 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40595 | fi | |
40596 | ||
40597 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40598 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40599 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40600 | fi | |
40601 | ||
40602 | COND_TOOLKIT_X11="#" | |
40603 | if test "x$TOOLKIT" = "xX11" ; then | |
40604 | COND_TOOLKIT_X11="" | |
40605 | fi | |
40606 | ||
40607 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40608 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40609 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40610 | fi | |
40611 | ||
40612 | COND_UNICODE_1="#" | |
40613 | if test "x$UNICODE" = "x1" ; then | |
40614 | COND_UNICODE_1="" | |
40615 | fi | |
40616 | ||
40617 | COND_USE_EXCEPTIONS_0="#" | |
40618 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40619 | COND_USE_EXCEPTIONS_0="" | |
40620 | fi | |
40621 | ||
40622 | COND_USE_EXCEPTIONS_1="#" | |
40623 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40624 | COND_USE_EXCEPTIONS_1="" | |
40625 | fi | |
40626 | ||
40627 | COND_USE_GUI_0="#" | |
40628 | if test "x$USE_GUI" = "x0" ; then | |
40629 | COND_USE_GUI_0="" | |
40630 | fi | |
40631 | ||
40632 | COND_USE_GUI_1="#" | |
40633 | if test "x$USE_GUI" = "x1" ; then | |
40634 | COND_USE_GUI_1="" | |
40635 | fi | |
40636 | ||
40637 | COND_USE_GUI_1_WXUNIV_0="#" | |
40638 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40639 | COND_USE_GUI_1_WXUNIV_0="" | |
40640 | fi | |
40641 | ||
40642 | COND_USE_GUI_1_WXUNIV_1="#" | |
40643 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40644 | COND_USE_GUI_1_WXUNIV_1="" | |
40645 | fi | |
40646 | ||
40647 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40648 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40649 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40650 | fi | |
40651 | ||
40652 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40653 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40654 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40655 | fi | |
40656 | ||
40657 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40658 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40659 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40660 | fi | |
40661 | ||
40662 | COND_USE_ODBC_1="#" | |
40663 | if test "x$USE_ODBC" = "x1" ; then | |
40664 | COND_USE_ODBC_1="" | |
40665 | fi | |
40666 | ||
40667 | COND_USE_PLUGINS_0="#" | |
40668 | if test "x$USE_PLUGINS" = "x0" ; then | |
40669 | COND_USE_PLUGINS_0="" | |
40670 | fi | |
40671 | ||
40672 | COND_USE_SOSYMLINKS_1="#" | |
40673 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40674 | COND_USE_SOSYMLINKS_1="" | |
40675 | fi | |
40676 | ||
40677 | COND_USE_SOVERLINUX_1="#" | |
40678 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40679 | COND_USE_SOVERLINUX_1="" | |
40680 | fi | |
40681 | ||
40682 | COND_USE_SOVERSION_0="#" | |
40683 | if test "x$USE_SOVERSION" = "x0" ; then | |
40684 | COND_USE_SOVERSION_0="" | |
40685 | fi | |
40686 | ||
40687 | COND_USE_SOVERSOLARIS_1="#" | |
40688 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40689 | COND_USE_SOVERSOLARIS_1="" | |
40690 | fi | |
40691 | ||
40692 | COND_WITH_PLUGIN_SDL_1="#" | |
40693 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40694 | COND_WITH_PLUGIN_SDL_1="" | |
40695 | fi | |
40696 | ||
40697 | COND_WXUNIV_1="#" | |
40698 | if test "x$WXUNIV" = "x1" ; then | |
40699 | COND_WXUNIV_1="" | |
40700 | fi | |
40701 | ||
40702 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40703 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40704 | COND_WXUSE_EXPAT_BUILTIN="" | |
40705 | fi | |
40706 | ||
40707 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40708 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40709 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40710 | fi | |
40711 | ||
40712 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40713 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40714 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40715 | fi | |
40716 | ||
40717 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40718 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40719 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40720 | fi | |
40721 | ||
40722 | COND_WXUSE_ODBC_BUILTIN="#" | |
40723 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40724 | COND_WXUSE_ODBC_BUILTIN="" | |
40725 | fi | |
40726 | ||
40727 | COND_WXUSE_REGEX_BUILTIN="#" | |
40728 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40729 | COND_WXUSE_REGEX_BUILTIN="" | |
40730 | fi | |
40731 | ||
40732 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40733 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40734 | COND_WXUSE_ZLIB_BUILTIN="" | |
40735 | fi | |
40736 | ||
a848cd7e SC |
40737 | |
40738 | ||
2057db16 VS |
40739 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
40740 | { { 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 | |
40741 | 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;} | |
40742 | { (exit 1); exit 1; }; } | |
40743 | fi | |
40744 | ||
a848cd7e SC |
40745 | |
40746 | ||
74b84332 | 40747 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 40748 | if test $GCC_PCH = 1 ; then |
74b84332 | 40749 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
40750 | else |
40751 | case "${host}" in | |
40752 | powerpc-*-darwin* ) | |
74b84332 | 40753 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 40754 | ;; |
bea8e651 | 40755 | *-*-mingw32* ) |
1f344abf VS |
40756 | if test "$wxUSE_STL" = "yes" -o \ |
40757 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
40758 | "$wxUSE_NO_RTTI" != "yes"; then | |
40759 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
40760 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
40761 | cat >conftest.$ac_ext <<_ACEOF |
40762 | /* confdefs.h. */ | |
40763 | _ACEOF | |
40764 | cat confdefs.h >>conftest.$ac_ext | |
40765 | cat >>conftest.$ac_ext <<_ACEOF | |
40766 | /* end confdefs.h. */ | |
40767 | ||
40768 | int | |
40769 | main () | |
40770 | { | |
1f344abf | 40771 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
40772 | #error "Not GCC 3.2 or greater" |
40773 | #endif | |
40774 | ||
40775 | ; | |
40776 | return 0; | |
40777 | } | |
40778 | _ACEOF | |
40779 | rm -f conftest.$ac_objext | |
40780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40781 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 40782 | ac_status=$? |
ac1cb8d3 VS |
40783 | grep -v '^ *+' conftest.er1 >conftest.err |
40784 | rm -f conftest.er1 | |
40785 | cat conftest.err >&5 | |
bea8e651 MB |
40786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40787 | (exit $ac_status); } && | |
4d4ff94c | 40788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40790 | (eval $ac_try) 2>&5 | |
40791 | ac_status=$? | |
40792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40793 | (exit $ac_status); }; } && | |
40794 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
40795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40796 | (eval $ac_try) 2>&5 | |
40797 | ac_status=$? | |
40798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40799 | (exit $ac_status); }; }; then | |
74b84332 | 40800 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
40801 | echo "$as_me:$LINENO: result: yes" >&5 |
40802 | echo "${ECHO_T}yes" >&6 | |
40803 | else | |
40804 | echo "$as_me: failed program was:" >&5 | |
40805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40806 | ||
40807 | echo "$as_me:$LINENO: result: no" >&5 | |
40808 | echo "${ECHO_T}no" >&6 | |
40809 | fi | |
ac1cb8d3 | 40810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
40811 | fi |
40812 | ;; | |
a848cd7e SC |
40813 | esac |
40814 | fi | |
74b84332 | 40815 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
40816 | |
40817 | ||
40818 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
40819 | ||
40820 | ||
40821 | ||
40822 | ||
40823 | ||
40824 | ||
40825 | ||
40826 | ||
40827 | ||
40828 | ||
40829 | ||
40830 | ||
40831 | ||
40832 | ||
40833 | ||
40834 | ||
40835 | ||
40836 | ||
40837 | ||
40838 | ||
40839 | ||
40840 | ||
40841 | ||
40842 | ||
40843 | ||
40844 | ||
40845 | ||
40846 | ||
40847 | ||
40848 | ||
40849 | ||
40850 | ||
40851 | ||
40852 | ||
40853 | ||
40854 | ||
40855 | ||
40856 | ||
40857 | ||
40858 | ||
40859 | ||
40860 | ||
40861 | ||
40862 | ||
40863 | ||
40864 | ||
40865 | ||
40866 | ||
40867 | ||
40868 | ||
40869 | ||
40870 | ||
40871 | ||
40872 | ||
40873 | ||
40874 | ||
40875 | ||
40876 | ||
40877 | ||
40878 | ||
40879 | ||
40880 | ||
40881 | ||
40882 | ||
40883 | ||
40884 | ||
40885 | ||
40886 | ||
40887 | ||
40888 | ||
40889 | ||
40890 | ||
40891 | ||
40892 | ||
40893 | ||
40894 | ||
40895 | ||
40896 | ||
40897 | ||
40898 | ||
40899 | ||
40900 | ||
40901 | ||
40902 | ||
40903 | ||
40904 | ||
40905 | ||
40906 | ||
40907 | ||
40908 | ||
40909 | ||
40910 | ||
40911 | ||
40912 | ||
40913 | ||
40914 | ||
40915 | ||
40916 | ||
74b84332 | 40917 | |
a848cd7e SC |
40918 | |
40919 | ||
40920 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
40921 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 40922 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
40923 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
40924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40925 | else | |
40926 | cat >conftest.make <<\_ACEOF | |
40927 | all: | |
40928 | @echo 'ac_maketemp="$(MAKE)"' | |
40929 | _ACEOF | |
40930 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40931 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
40932 | if test -n "$ac_maketemp"; then | |
40933 | eval ac_cv_prog_make_${ac_make}_set=yes | |
40934 | else | |
40935 | eval ac_cv_prog_make_${ac_make}_set=no | |
40936 | fi | |
40937 | rm -f conftest.make | |
40938 | fi | |
40939 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
40940 | echo "$as_me:$LINENO: result: yes" >&5 | |
40941 | echo "${ECHO_T}yes" >&6 | |
40942 | SET_MAKE= | |
40943 | else | |
40944 | echo "$as_me:$LINENO: result: no" >&5 | |
40945 | echo "${ECHO_T}no" >&6 | |
40946 | SET_MAKE="MAKE=${MAKE-make}" | |
40947 | fi | |
40948 | ||
40949 | ||
40950 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
40951 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
40952 | fi | |
40953 | ||
40954 | ac_config_headers="$ac_config_headers setup.h" | |
40955 | ||
40956 | ||
8708fa76 | 40957 | ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile" |
a848cd7e SC |
40958 | |
40959 | ||
40960 | ac_config_commands="$ac_config_commands default" | |
40961 | ||
40962 | ||
40963 | ||
40964 | if test "$wxUSE_GUI" = "yes"; then | |
40965 | SUBDIRS="samples demos utils contrib" | |
40966 | else SUBDIRS="samples utils" | |
40967 | fi | |
40968 | ||
40969 | ||
40970 | ||
40971 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
40972 | if test "${with_cppunit_prefix+set}" = set; then | |
40973 | withval="$with_cppunit_prefix" | |
40974 | cppunit_config_prefix="$withval" | |
40975 | else | |
40976 | cppunit_config_prefix="" | |
40977 | fi; | |
40978 | ||
40979 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
40980 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
40981 | withval="$with_cppunit_exec_prefix" | |
40982 | cppunit_config_exec_prefix="$withval" | |
40983 | else | |
40984 | cppunit_config_exec_prefix="" | |
40985 | fi; | |
40986 | ||
40987 | if test x$cppunit_config_exec_prefix != x ; then | |
40988 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
40989 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
40990 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
40991 | fi | |
40992 | fi | |
40993 | if test x$cppunit_config_prefix != x ; then | |
40994 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
40995 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
40996 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
40997 | fi | |
40998 | fi | |
40999 | ||
41000 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41001 | set dummy cppunit-config; ac_word=$2 | |
41002 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41004 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41006 | else | |
41007 | case $CPPUNIT_CONFIG in | |
41008 | [\\/]* | ?:[\\/]*) | |
41009 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41010 | ;; | |
41011 | *) | |
41012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41013 | for as_dir in $PATH | |
41014 | do | |
41015 | IFS=$as_save_IFS | |
41016 | test -z "$as_dir" && as_dir=. | |
41017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41018 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41019 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41020 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41021 | break 2 | |
41022 | fi | |
41023 | done | |
41024 | done | |
41025 | ||
41026 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41027 | ;; | |
41028 | esac | |
41029 | fi | |
41030 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41031 | ||
41032 | if test -n "$CPPUNIT_CONFIG"; then | |
41033 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41034 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41035 | else | |
41036 | echo "$as_me:$LINENO: result: no" >&5 | |
41037 | echo "${ECHO_T}no" >&6 | |
41038 | fi | |
41039 | ||
41040 | cppunit_version_min=1.8.0 | |
41041 | ||
41042 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41043 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41044 | no_cppunit="" | |
41045 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41046 | no_cppunit=yes | |
41047 | else | |
41048 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41049 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41050 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41051 | ||
41052 | cppunit_major_version=`echo $cppunit_version | \ | |
41053 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41054 | cppunit_minor_version=`echo $cppunit_version | \ | |
41055 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41056 | cppunit_micro_version=`echo $cppunit_version | \ | |
41057 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41058 | ||
41059 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41060 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41061 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41062 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41063 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41064 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41065 | ||
41066 | cppunit_version_proper=`expr \ | |
41067 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41068 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41069 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41070 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41071 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41072 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41073 | ||
41074 | if test "$cppunit_version_proper" = "1" ; then | |
41075 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41076 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41077 | else | |
41078 | echo "$as_me:$LINENO: result: no" >&5 | |
41079 | echo "${ECHO_T}no" >&6 | |
41080 | no_cppunit=yes | |
41081 | fi | |
41082 | fi | |
41083 | ||
41084 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41085 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41086 | else |
41087 | CPPUNIT_CFLAGS="" | |
41088 | CPPUNIT_LIBS="" | |
c2218763 | 41089 | : |
a848cd7e SC |
41090 | fi |
41091 | ||
41092 | ||
41093 | ||
41094 | ||
41095 | ||
41096 | for subdir in `echo $SUBDIRS`; do | |
41097 | if test -d ${srcdir}/${subdir} ; then | |
41098 | if test "$wxUSE_GUI" = "yes"; then | |
41099 | if test ${subdir} = "samples"; then | |
41100 | makefiles="samples/Makefile.in $makefiles" | |
41101 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41102 | if test -d $srcdir/samples/$sample; then | |
41103 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41104 | fi | |
41105 | done | |
41106 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41107 | fi | |
41108 | else if test ${subdir} = "samples"; then | |
41109 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41110 | elif test ${subdir} = "utils"; then | |
41111 | makefiles="utils/HelpGen/Makefile.in \ | |
41112 | utils/HelpGen/src/Makefile.in \ | |
41113 | utils/tex2rtf/Makefile.in \ | |
41114 | utils/tex2rtf/src/Makefile.in" | |
41115 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41116 | fi | |
41117 | fi | |
41118 | ||
41119 | for mkin in $makefiles ; do | |
41120 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41121 | ac_config_files="$ac_config_files $mk" | |
41122 | ||
41123 | done | |
41124 | fi | |
41125 | done | |
41126 | ||
41127 | ||
41128 | cat >confcache <<\_ACEOF | |
41129 | # This file is a shell script that caches the results of configure | |
41130 | # tests run on this system so they can be shared between configure | |
41131 | # scripts and configure runs, see configure's option --config-cache. | |
41132 | # It is not useful on other systems. If it contains results you don't | |
41133 | # want to keep, you may remove or edit it. | |
41134 | # | |
41135 | # config.status only pays attention to the cache file if you give it | |
41136 | # the --recheck option to rerun configure. | |
41137 | # | |
41138 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41139 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41140 | # following values. | |
41141 | ||
41142 | _ACEOF | |
41143 | ||
41144 | # The following way of writing the cache mishandles newlines in values, | |
41145 | # but we know of no workaround that is simple, portable, and efficient. | |
41146 | # So, don't put newlines in cache variables' values. | |
41147 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41148 | # and sets the high bit in the cache file unless we assign to the vars. | |
41149 | { | |
41150 | (set) 2>&1 | | |
41151 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41152 | *ac_space=\ *) | |
41153 | # `set' does not quote correctly, so add quotes (double-quote | |
41154 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41155 | sed -n \ | |
ac1cb8d3 VS |
41156 | "s/'/'\\\\''/g; |
41157 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41158 | ;; |
41159 | *) | |
41160 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41161 | sed -n \ | |
ac1cb8d3 | 41162 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41163 | ;; |
41164 | esac; | |
41165 | } | | |
41166 | sed ' | |
41167 | t clear | |
41168 | : clear | |
41169 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41170 | t end | |
41171 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41172 | : end' >>confcache | |
41173 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41174 | if test -w $cache_file; then | |
41175 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41176 | cat confcache >$cache_file | |
41177 | else | |
41178 | echo "not updating unwritable cache $cache_file" | |
41179 | fi | |
41180 | fi | |
41181 | rm -f confcache | |
41182 | ||
41183 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41184 | # Let make expand exec_prefix. | |
41185 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41186 | ||
41187 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41188 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41189 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41190 | # (actually we leave an empty line to preserve line numbers). | |
41191 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41192 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41193 | s/:*\$(srcdir):*/:/; |
41194 | s/:*\${srcdir}:*/:/; | |
41195 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41196 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41197 | s/:*$//; |
ac1cb8d3 | 41198 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41199 | }' |
41200 | fi | |
41201 | ||
41202 | DEFS=-DHAVE_CONFIG_H | |
41203 | ||
41204 | ac_libobjs= | |
41205 | ac_ltlibobjs= | |
41206 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41207 | # 1. Remove the extension, and $U if already installed. | |
41208 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41209 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41210 | # 2. Add them. |
41211 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41212 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41213 | done | |
41214 | LIBOBJS=$ac_libobjs | |
41215 | ||
41216 | LTLIBOBJS=$ac_ltlibobjs | |
41217 | ||
41218 | ||
41219 | ||
41220 | : ${CONFIG_STATUS=./config.status} | |
41221 | ac_clean_files_save=$ac_clean_files | |
41222 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41223 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41224 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41225 | cat >$CONFIG_STATUS <<_ACEOF | |
41226 | #! $SHELL | |
41227 | # Generated by $as_me. | |
41228 | # Run this file to recreate the current configuration. | |
41229 | # Compiler output produced by configure, useful for debugging | |
41230 | # configure, is in config.log if it exists. | |
41231 | ||
41232 | debug=false | |
41233 | ac_cs_recheck=false | |
41234 | ac_cs_silent=false | |
41235 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41236 | _ACEOF | |
41237 | ||
41238 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41239 | ## --------------------- ## | |
41240 | ## M4sh Initialization. ## | |
41241 | ## --------------------- ## | |
41242 | ||
41243 | # Be Bourne compatible | |
41244 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41245 | emulate sh | |
41246 | NULLCMD=: | |
41247 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41248 | # is contrary to our usage. Disable this feature. | |
41249 | alias -g '${1+"$@"}'='"$@"' | |
41250 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41251 | set -o posix | |
41252 | fi | |
ac1cb8d3 | 41253 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41254 | |
41255 | # Support unset when possible. | |
ac1cb8d3 | 41256 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41257 | as_unset=unset |
41258 | else | |
41259 | as_unset=false | |
41260 | fi | |
41261 | ||
41262 | ||
41263 | # Work around bugs in pre-3.0 UWIN ksh. | |
41264 | $as_unset ENV MAIL MAILPATH | |
41265 | PS1='$ ' | |
41266 | PS2='> ' | |
41267 | PS4='+ ' | |
41268 | ||
41269 | # NLS nuisances. | |
41270 | for as_var in \ | |
41271 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41272 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41273 | LC_TELEPHONE LC_TIME | |
41274 | do | |
ac1cb8d3 | 41275 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41276 | eval $as_var=C; export $as_var |
41277 | else | |
41278 | $as_unset $as_var | |
41279 | fi | |
41280 | done | |
41281 | ||
41282 | # Required to use basename. | |
41283 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41284 | as_expr=expr | |
41285 | else | |
41286 | as_expr=false | |
41287 | fi | |
41288 | ||
41289 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41290 | as_basename=basename | |
41291 | else | |
41292 | as_basename=false | |
41293 | fi | |
41294 | ||
41295 | ||
41296 | # Name of the executable. | |
41297 | as_me=`$as_basename "$0" || | |
41298 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41299 | X"$0" : 'X\(//\)$' \| \ | |
41300 | X"$0" : 'X\(/\)$' \| \ | |
41301 | . : '\(.\)' 2>/dev/null || | |
41302 | echo X/"$0" | | |
41303 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41304 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41305 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41306 | s/.*/./; q'` | |
41307 | ||
41308 | ||
41309 | # PATH needs CR, and LINENO needs CR and PATH. | |
41310 | # Avoid depending upon Character Ranges. | |
41311 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41312 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41313 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41314 | as_cr_digits='0123456789' | |
41315 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41316 | ||
41317 | # The user is always right. | |
41318 | if test "${PATH_SEPARATOR+set}" != set; then | |
41319 | echo "#! /bin/sh" >conf$$.sh | |
41320 | echo "exit 0" >>conf$$.sh | |
41321 | chmod +x conf$$.sh | |
41322 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41323 | PATH_SEPARATOR=';' | |
41324 | else | |
41325 | PATH_SEPARATOR=: | |
41326 | fi | |
41327 | rm -f conf$$.sh | |
41328 | fi | |
41329 | ||
41330 | ||
41331 | as_lineno_1=$LINENO | |
41332 | as_lineno_2=$LINENO | |
41333 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41334 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41335 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41336 | # Find who we are. Look in the path if we contain no path at all | |
41337 | # relative or not. | |
41338 | case $0 in | |
41339 | *[\\/]* ) as_myself=$0 ;; | |
41340 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41341 | for as_dir in $PATH | |
41342 | do | |
41343 | IFS=$as_save_IFS | |
41344 | test -z "$as_dir" && as_dir=. | |
41345 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41346 | done | |
41347 | ||
41348 | ;; | |
41349 | esac | |
41350 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41351 | # in which case we are not to be found in the path. | |
41352 | if test "x$as_myself" = x; then | |
41353 | as_myself=$0 | |
41354 | fi | |
41355 | if test ! -f "$as_myself"; then | |
41356 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41357 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41358 | { (exit 1); exit 1; }; } | |
41359 | fi | |
41360 | case $CONFIG_SHELL in | |
41361 | '') | |
41362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41363 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41364 | do | |
41365 | IFS=$as_save_IFS | |
41366 | test -z "$as_dir" && as_dir=. | |
41367 | for as_base in sh bash ksh sh5; do | |
41368 | case $as_dir in | |
41369 | /*) | |
41370 | if ("$as_dir/$as_base" -c ' | |
41371 | as_lineno_1=$LINENO | |
41372 | as_lineno_2=$LINENO | |
41373 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41374 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41375 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41376 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41377 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41378 | CONFIG_SHELL=$as_dir/$as_base | |
41379 | export CONFIG_SHELL | |
41380 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41381 | fi;; | |
41382 | esac | |
41383 | done | |
41384 | done | |
41385 | ;; | |
41386 | esac | |
41387 | ||
41388 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41389 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41390 | # line-number line before each line; the second 'sed' does the real | |
41391 | # work. The second script uses 'N' to pair each line-number line | |
41392 | # with the numbered line, and appends trailing '-' during | |
41393 | # substitution so that $LINENO is not a special case at line end. | |
41394 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41395 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41396 | sed '=' <$as_myself | | |
41397 | sed ' | |
41398 | N | |
41399 | s,$,-, | |
41400 | : loop | |
41401 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41402 | t loop | |
41403 | s,-$,, | |
41404 | s,^['$as_cr_digits']*\n,, | |
41405 | ' >$as_me.lineno && | |
41406 | chmod +x $as_me.lineno || | |
41407 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41408 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41409 | { (exit 1); exit 1; }; } | |
41410 | ||
41411 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41412 | # (the dirname of $[0] is not the place where we might find the | |
41413 | # original and so on. Autoconf is especially sensible to this). | |
41414 | . ./$as_me.lineno | |
41415 | # Exit status is that of the last command. | |
41416 | exit | |
41417 | } | |
41418 | ||
41419 | ||
41420 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
41421 | *c*,-n*) ECHO_N= ECHO_C=' | |
41422 | ' ECHO_T=' ' ;; | |
41423 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
41424 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
41425 | esac | |
41426 | ||
41427 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41428 | as_expr=expr | |
41429 | else | |
41430 | as_expr=false | |
41431 | fi | |
41432 | ||
41433 | rm -f conf$$ conf$$.exe conf$$.file | |
41434 | echo >conf$$.file | |
41435 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41436 | # We could just check for DJGPP; but this test a) works b) is more generic | |
41437 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
41438 | if test -f conf$$.exe; then | |
41439 | # Don't use ln at all; we don't have any links | |
41440 | as_ln_s='cp -p' | |
41441 | else | |
41442 | as_ln_s='ln -s' | |
41443 | fi | |
41444 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
41445 | as_ln_s=ln | |
41446 | else | |
41447 | as_ln_s='cp -p' | |
41448 | fi | |
41449 | rm -f conf$$ conf$$.exe conf$$.file | |
41450 | ||
41451 | if mkdir -p . 2>/dev/null; then | |
41452 | as_mkdir_p=: | |
41453 | else | |
ac1cb8d3 | 41454 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
41455 | as_mkdir_p=false |
41456 | fi | |
41457 | ||
41458 | as_executable_p="test -f" | |
41459 | ||
41460 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 41461 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41462 | |
41463 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 41464 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41465 | |
41466 | ||
41467 | # IFS | |
41468 | # We need space, tab and new line, in precisely that order. | |
41469 | as_nl=' | |
41470 | ' | |
41471 | IFS=" $as_nl" | |
41472 | ||
41473 | # CDPATH. | |
41474 | $as_unset CDPATH | |
41475 | ||
41476 | exec 6>&1 | |
41477 | ||
41478 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
41479 | # report actual input values of CONFIG_FILES etc. instead of their | |
41480 | # values after options handling. Logging --version etc. is OK. | |
41481 | exec 5>>config.log | |
41482 | { | |
41483 | echo | |
41484 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
41485 | ## Running $as_me. ## | |
41486 | _ASBOX | |
41487 | } >&5 | |
41488 | cat >&5 <<_CSEOF | |
41489 | ||
77ffb593 | 41490 | This file was extended by wxWidgets $as_me 2.5.2, which was |
ac1cb8d3 | 41491 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
41492 | |
41493 | CONFIG_FILES = $CONFIG_FILES | |
41494 | CONFIG_HEADERS = $CONFIG_HEADERS | |
41495 | CONFIG_LINKS = $CONFIG_LINKS | |
41496 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
41497 | $ $0 $@ | |
41498 | ||
41499 | _CSEOF | |
41500 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
41501 | echo >&5 | |
41502 | _ACEOF | |
41503 | ||
41504 | # Files that config.status was made for. | |
41505 | if test -n "$ac_config_files"; then | |
41506 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
41507 | fi | |
41508 | ||
41509 | if test -n "$ac_config_headers"; then | |
41510 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
41511 | fi | |
41512 | ||
41513 | if test -n "$ac_config_links"; then | |
41514 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
41515 | fi | |
41516 | ||
41517 | if test -n "$ac_config_commands"; then | |
41518 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
41519 | fi | |
41520 | ||
41521 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41522 | ||
41523 | ac_cs_usage="\ | |
41524 | \`$as_me' instantiates files from templates according to the | |
41525 | current configuration. | |
41526 | ||
41527 | Usage: $0 [OPTIONS] [FILE]... | |
41528 | ||
41529 | -h, --help print this help, then exit | |
41530 | -V, --version print version number, then exit | |
41531 | -q, --quiet do not print progress messages | |
41532 | -d, --debug don't remove temporary files | |
41533 | --recheck update $as_me by reconfiguring in the same conditions | |
41534 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 41535 | instantiate the configuration file FILE |
a848cd7e | 41536 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 41537 | instantiate the configuration header FILE |
a848cd7e SC |
41538 | |
41539 | Configuration files: | |
41540 | $config_files | |
41541 | ||
41542 | Configuration headers: | |
41543 | $config_headers | |
41544 | ||
41545 | Configuration commands: | |
41546 | $config_commands | |
41547 | ||
41548 | Report bugs to <bug-autoconf@gnu.org>." | |
41549 | _ACEOF | |
41550 | ||
41551 | cat >>$CONFIG_STATUS <<_ACEOF | |
41552 | ac_cs_version="\\ | |
77ffb593 | 41553 | wxWidgets config.status 2.5.2 |
ac1cb8d3 | 41554 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
41555 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
41556 | ||
ac1cb8d3 | 41557 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
41558 | This config.status script is free software; the Free Software Foundation |
41559 | gives unlimited permission to copy, distribute and modify it." | |
41560 | srcdir=$srcdir | |
41561 | INSTALL="$INSTALL" | |
41562 | _ACEOF | |
41563 | ||
41564 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41565 | # If no file are specified by the user, then we need to provide default | |
41566 | # value. By we need to know if files were specified by the user. | |
41567 | ac_need_defaults=: | |
41568 | while test $# != 0 | |
41569 | do | |
41570 | case $1 in | |
41571 | --*=*) | |
41572 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
41573 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
41574 | ac_shift=: | |
41575 | ;; | |
41576 | -*) | |
41577 | ac_option=$1 | |
41578 | ac_optarg=$2 | |
41579 | ac_shift=shift | |
41580 | ;; | |
41581 | *) # This is not an option, so the user has probably given explicit | |
41582 | # arguments. | |
41583 | ac_option=$1 | |
41584 | ac_need_defaults=false;; | |
41585 | esac | |
41586 | ||
41587 | case $ac_option in | |
41588 | # Handling of the options. | |
41589 | _ACEOF | |
41590 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41591 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
41592 | ac_cs_recheck=: ;; | |
41593 | --version | --vers* | -V ) | |
41594 | echo "$ac_cs_version"; exit 0 ;; | |
41595 | --he | --h) | |
41596 | # Conflict between --help and --header | |
41597 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
41598 | Try \`$0 --help' for more information." >&5 | |
41599 | echo "$as_me: error: ambiguous option: $1 | |
41600 | Try \`$0 --help' for more information." >&2;} | |
41601 | { (exit 1); exit 1; }; };; | |
41602 | --help | --hel | -h ) | |
41603 | echo "$ac_cs_usage"; exit 0 ;; | |
41604 | --debug | --d* | -d ) | |
41605 | debug=: ;; | |
41606 | --file | --fil | --fi | --f ) | |
41607 | $ac_shift | |
41608 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
41609 | ac_need_defaults=false;; | |
41610 | --header | --heade | --head | --hea ) | |
41611 | $ac_shift | |
41612 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
41613 | ac_need_defaults=false;; | |
41614 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
41615 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
41616 | ac_cs_silent=: ;; | |
41617 | ||
41618 | # This is an error. | |
41619 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
41620 | Try \`$0 --help' for more information." >&5 | |
41621 | echo "$as_me: error: unrecognized option: $1 | |
41622 | Try \`$0 --help' for more information." >&2;} | |
41623 | { (exit 1); exit 1; }; } ;; | |
41624 | ||
41625 | *) ac_config_targets="$ac_config_targets $1" ;; | |
41626 | ||
41627 | esac | |
41628 | shift | |
41629 | done | |
41630 | ||
41631 | ac_configure_extra_args= | |
41632 | ||
41633 | if $ac_cs_silent; then | |
41634 | exec 6>/dev/null | |
41635 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
41636 | fi | |
41637 | ||
41638 | _ACEOF | |
41639 | cat >>$CONFIG_STATUS <<_ACEOF | |
41640 | if \$ac_cs_recheck; then | |
41641 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
41642 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
41643 | fi | |
41644 | ||
41645 | _ACEOF | |
41646 | ||
41647 | cat >>$CONFIG_STATUS <<_ACEOF | |
41648 | # | |
41649 | # INIT-COMMANDS section. | |
41650 | # | |
41651 | ||
41652 | ||
41653 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
48112931 | 41654 | WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}" |
4b167aca | 41655 | WX_RELEASE="${WX_RELEASE}" |
a848cd7e SC |
41656 | LN_S="${LN_S}" |
41657 | ||
41658 | ||
41659 | ||
41660 | _ACEOF | |
41661 | ||
41662 | ||
41663 | ||
41664 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41665 | for ac_config_target in $ac_config_targets | |
41666 | do | |
41667 | case "$ac_config_target" in | |
41668 | # Handling of arguments. | |
41669 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
8708fa76 | 41670 | "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;; |
a848cd7e SC |
41671 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
41672 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
41673 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
41674 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
41675 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
41676 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
41677 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
41678 | { (exit 1); exit 1; }; };; | |
41679 | esac | |
41680 | done | |
41681 | ||
41682 | # If the user did not use the arguments to specify the items to instantiate, | |
41683 | # then the envvar interface is used. Set only those that are not. | |
41684 | # We use the long form for the default assignment because of an extremely | |
41685 | # bizarre bug on SunOS 4.1.3. | |
41686 | if $ac_need_defaults; then | |
41687 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
41688 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
41689 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
41690 | fi | |
41691 | ||
41692 | # Have a temporary directory for convenience. Make it in the build tree | |
41693 | # simply because there is no reason to put it here, and in addition, | |
41694 | # creating and moving files from /tmp can sometimes cause problems. | |
41695 | # Create a temporary directory, and hook for its removal unless debugging. | |
41696 | $debug || | |
41697 | { | |
41698 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
41699 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
41700 | } | |
41701 | ||
41702 | # Create a (secure) tmp directory for tmp files. | |
41703 | ||
41704 | { | |
41705 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
41706 | test -n "$tmp" && test -d "$tmp" | |
41707 | } || | |
41708 | { | |
41709 | tmp=./confstat$$-$RANDOM | |
41710 | (umask 077 && mkdir $tmp) | |
41711 | } || | |
41712 | { | |
41713 | echo "$me: cannot create a temporary directory in ." >&2 | |
41714 | { (exit 1); exit 1; } | |
41715 | } | |
41716 | ||
41717 | _ACEOF | |
41718 | ||
41719 | cat >>$CONFIG_STATUS <<_ACEOF | |
41720 | ||
41721 | # | |
41722 | # CONFIG_FILES section. | |
41723 | # | |
41724 | ||
41725 | # No need to generate the scripts if there are no CONFIG_FILES. | |
41726 | # This happens for instance when ./config.status config.h | |
41727 | if test -n "\$CONFIG_FILES"; then | |
41728 | # Protect against being on the right side of a sed subst in config.status. | |
41729 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
41730 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
41731 | s,@SHELL@,$SHELL,;t t | |
41732 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
41733 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
41734 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
41735 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
41736 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
41737 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
41738 | s,@exec_prefix@,$exec_prefix,;t t | |
41739 | s,@prefix@,$prefix,;t t | |
41740 | s,@program_transform_name@,$program_transform_name,;t t | |
41741 | s,@bindir@,$bindir,;t t | |
41742 | s,@sbindir@,$sbindir,;t t | |
41743 | s,@libexecdir@,$libexecdir,;t t | |
41744 | s,@datadir@,$datadir,;t t | |
41745 | s,@sysconfdir@,$sysconfdir,;t t | |
41746 | s,@sharedstatedir@,$sharedstatedir,;t t | |
41747 | s,@localstatedir@,$localstatedir,;t t | |
41748 | s,@libdir@,$libdir,;t t | |
41749 | s,@includedir@,$includedir,;t t | |
41750 | s,@oldincludedir@,$oldincludedir,;t t | |
41751 | s,@infodir@,$infodir,;t t | |
41752 | s,@mandir@,$mandir,;t t | |
41753 | s,@build_alias@,$build_alias,;t t | |
41754 | s,@host_alias@,$host_alias,;t t | |
41755 | s,@target_alias@,$target_alias,;t t | |
41756 | s,@DEFS@,$DEFS,;t t | |
41757 | s,@ECHO_C@,$ECHO_C,;t t | |
41758 | s,@ECHO_N@,$ECHO_N,;t t | |
41759 | s,@ECHO_T@,$ECHO_T,;t t | |
41760 | s,@LIBS@,$LIBS,;t t | |
41761 | s,@build@,$build,;t t | |
41762 | s,@build_cpu@,$build_cpu,;t t | |
41763 | s,@build_vendor@,$build_vendor,;t t | |
41764 | s,@build_os@,$build_os,;t t | |
41765 | s,@host@,$host,;t t | |
41766 | s,@host_cpu@,$host_cpu,;t t | |
41767 | s,@host_vendor@,$host_vendor,;t t | |
41768 | s,@host_os@,$host_os,;t t | |
41769 | s,@target@,$target,;t t | |
41770 | s,@target_cpu@,$target_cpu,;t t | |
41771 | s,@target_vendor@,$target_vendor,;t t | |
41772 | s,@target_os@,$target_os,;t t | |
41773 | s,@CC@,$CC,;t t | |
41774 | s,@CFLAGS@,$CFLAGS,;t t | |
41775 | s,@LDFLAGS@,$LDFLAGS,;t t | |
41776 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
41777 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
41778 | s,@EXEEXT@,$EXEEXT,;t t | |
41779 | s,@OBJEXT@,$OBJEXT,;t t | |
41780 | s,@CPP@,$CPP,;t t | |
41781 | s,@EGREP@,$EGREP,;t t | |
41782 | s,@CXX@,$CXX,;t t | |
41783 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
41784 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
41785 | s,@RANLIB@,$RANLIB,;t t | |
41786 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
41787 | s,@AR@,$AR,;t t | |
41788 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
41789 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
41790 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
41791 | s,@STRIP@,$STRIP,;t t | |
41792 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
41793 | s,@LN_S@,$LN_S,;t t | |
41794 | s,@CXXCPP@,$CXXCPP,;t t | |
41795 | s,@subdirs@,$subdirs,;t t | |
41796 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
41797 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
41798 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
41799 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
41800 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
41801 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
41802 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
41803 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
41804 | s,@X_LIBS@,$X_LIBS,;t t | |
41805 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
41806 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
41807 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
41808 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
41809 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
41810 | s,@RESCOMP@,$RESCOMP,;t t | |
41811 | s,@DEREZ@,$DEREZ,;t t | |
41812 | s,@SETFILE@,$SETFILE,;t t | |
41813 | s,@LIBICONV@,$LIBICONV,;t t | |
41814 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
41815 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
41816 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
41817 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
41818 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
41819 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
41820 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
41821 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
41822 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
41823 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
41824 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
41825 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
41826 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
41827 | s,@VENDOR@,$VENDOR,;t t | |
41828 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
41829 | s,@WXUNIV@,$WXUNIV,;t t | |
41830 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
41831 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
41832 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
41833 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
41834 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
41835 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
41836 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
41837 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
41838 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
41839 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
41840 | s,@UNICODE@,$UNICODE,;t t | |
41841 | s,@BUILD@,$BUILD,;t t | |
41842 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
41843 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
41844 | s,@SHARED@,$SHARED,;t t | |
41845 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
41846 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
41847 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
41848 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
41849 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
41850 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
41851 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
41852 | s,@SET_MAKE@,$SET_MAKE,;t t | |
41853 | s,@MAKE_SET@,$MAKE_SET,;t t | |
41854 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
41855 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
41856 | s,@NM@,$NM,;t t | |
41857 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
41858 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
41859 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
41860 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
41861 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
41862 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
41863 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
41864 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
41865 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
41866 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
41867 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
41868 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
41869 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
41870 | s,@LIBEXT@,$LIBEXT,;t t | |
41871 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
41872 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
41873 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
41874 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
41875 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
41876 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
41877 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
41878 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
41879 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
41880 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
41881 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
41882 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
41883 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
41884 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
41885 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
41886 | s,@GCC_PCH@,$GCC_PCH,;t t | |
41887 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
41888 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
41889 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
41890 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
41891 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
41892 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
41893 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
41894 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
41895 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
41896 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
41897 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
41898 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
41899 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
41900 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
41901 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
41902 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
41903 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
41904 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
41905 | 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 | |
41906 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
41907 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
41908 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t | |
41909 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
41910 | 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 | |
41911 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
41912 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
41913 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t | |
41914 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
41915 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
41916 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
41917 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
41918 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
41919 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
41920 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
41921 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
41922 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
41923 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
ebee3cd0 VS |
41924 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
41925 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
41926 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
41927 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
41928 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
41929 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
41930 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
41931 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
41932 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
41933 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
41934 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
41935 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
41936 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
41937 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t | |
41938 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
41939 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
41940 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
41941 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
41942 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
41943 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
41944 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
41945 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
41946 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
41947 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
41948 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
41949 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
41950 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
41951 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
41952 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
41953 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
41954 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
4d4ff94c | 41955 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
a848cd7e SC |
41956 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t |
41957 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
41958 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
41959 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
41960 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
41961 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
41962 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
41963 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
4d4ff94c | 41964 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
41965 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
41966 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
41967 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
4d4ff94c | 41968 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t |
3fd9c298 DE |
41969 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
41970 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
41971 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
41972 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
41973 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
41974 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
41975 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
41976 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
41977 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
41978 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
41979 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
41980 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
41981 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
41982 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
41983 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
4d4ff94c | 41984 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
a848cd7e SC |
41985 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
41986 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
41987 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
41988 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
41989 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
41990 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t | |
4d4ff94c | 41991 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t |
a848cd7e SC |
41992 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
41993 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
41994 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
41995 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
41996 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
41997 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
41998 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
41999 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
42000 | s,@PATH_IFS@,$PATH_IFS,;t t | |
42001 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
42002 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
42003 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
224bf05c | 42004 | s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t |
a848cd7e SC |
42005 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t |
42006 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
42007 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t | |
42008 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
42009 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
42010 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
42011 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
42012 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
42013 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
42014 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
42015 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
42016 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
42017 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
42018 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
42019 | s,@WX_ALL@,$WX_ALL,;t t | |
42020 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
42021 | s,@SHARED_LD@,$SHARED_LD,;t t | |
42022 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t | |
42023 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
42024 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
42025 | s,@USE_GUI@,$USE_GUI,;t t | |
42026 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42027 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42028 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42029 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
42030 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
42031 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
42032 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
42033 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
42034 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
42035 | s,@cross_compiling@,$cross_compiling,;t t | |
42036 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t | |
42037 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
42038 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
42039 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
42040 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
42041 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
42042 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42043 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
48112931 | 42044 | s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t |
a848cd7e | 42045 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
74b84332 | 42046 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42047 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42048 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
42049 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
42050 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
42051 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
42052 | s,@GUIDIST@,$GUIDIST,;t t | |
42053 | s,@PORT_FILES@,$PORT_FILES,;t t | |
42054 | s,@DISTDIR@,$DISTDIR,;t t | |
42055 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42056 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
42057 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
42058 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
42059 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
42060 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42061 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42062 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42063 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42064 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42065 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42066 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42067 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42068 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42069 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42070 | s,@GCC@,$GCC,;t t | |
a848cd7e SC |
42071 | s,@DLLTOOL@,$DLLTOOL,;t t |
42072 | s,@AS@,$AS,;t t | |
42073 | s,@LD@,$LD,;t t | |
42074 | s,@MAKEINFO@,$MAKEINFO,;t t | |
42075 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
42076 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t | |
42077 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42078 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42079 | CEOF | |
42080 | ||
42081 | _ACEOF | |
42082 | ||
42083 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42084 | # Split the substitutions into bite-sized pieces for seds with | |
42085 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42086 | ac_max_sed_lines=48 | |
42087 | ac_sed_frag=1 # Number of current file. | |
42088 | ac_beg=1 # First line for current file. | |
42089 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42090 | ac_more_lines=: | |
42091 | ac_sed_cmds= | |
42092 | while $ac_more_lines; do | |
42093 | if test $ac_beg -gt 1; then | |
42094 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42095 | else | |
42096 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42097 | fi | |
42098 | if test ! -s $tmp/subs.frag; then | |
42099 | ac_more_lines=false | |
42100 | else | |
42101 | # The purpose of the label and of the branching condition is to | |
42102 | # speed up the sed processing (if there are no `@' at all, there | |
42103 | # is no need to browse any of the substitutions). | |
42104 | # These are the two extra sed commands mentioned above. | |
42105 | (echo ':t | |
42106 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42107 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42108 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42109 | else |
ac1cb8d3 | 42110 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42111 | fi |
42112 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42113 | ac_beg=$ac_end | |
42114 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42115 | fi | |
42116 | done | |
42117 | if test -z "$ac_sed_cmds"; then | |
42118 | ac_sed_cmds=cat | |
42119 | fi | |
42120 | fi # test -n "$CONFIG_FILES" | |
42121 | ||
42122 | _ACEOF | |
42123 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42124 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42125 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42126 | case $ac_file in | |
42127 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42128 | cat >$tmp/stdin |
42129 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42130 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42131 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42132 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42133 | * ) ac_file_in=$ac_file.in ;; |
42134 | esac | |
42135 | ||
42136 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42137 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42138 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42139 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42140 | X"$ac_file" : 'X\(//\)$' \| \ | |
42141 | X"$ac_file" : 'X\(/\)' \| \ | |
42142 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42143 | echo X"$ac_file" | |
42144 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42145 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42146 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42147 | /^X\(\/\).*/{ s//\1/; q; } | |
42148 | s/.*/./; q'` | |
42149 | { if $as_mkdir_p; then | |
42150 | mkdir -p "$ac_dir" | |
42151 | else | |
42152 | as_dir="$ac_dir" | |
42153 | as_dirs= | |
42154 | while test ! -d "$as_dir"; do | |
42155 | as_dirs="$as_dir $as_dirs" | |
42156 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42157 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42158 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42159 | X"$as_dir" : 'X\(//\)$' \| \ | |
42160 | X"$as_dir" : 'X\(/\)' \| \ | |
42161 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42162 | echo X"$as_dir" | |
42163 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42164 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42165 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42166 | /^X\(\/\).*/{ s//\1/; q; } | |
42167 | s/.*/./; q'` | |
42168 | done | |
42169 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42170 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42171 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42172 | { (exit 1); exit 1; }; }; } | |
42173 | ||
42174 | ac_builddir=. | |
42175 | ||
42176 | if test "$ac_dir" != .; then | |
42177 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42178 | # A "../" for each directory in $ac_dir_suffix. | |
42179 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42180 | else | |
42181 | ac_dir_suffix= ac_top_builddir= | |
42182 | fi | |
42183 | ||
42184 | case $srcdir in | |
42185 | .) # No --srcdir option. We are building in place. | |
42186 | ac_srcdir=. | |
42187 | if test -z "$ac_top_builddir"; then | |
42188 | ac_top_srcdir=. | |
42189 | else | |
42190 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42191 | fi ;; | |
42192 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42193 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42194 | ac_top_srcdir=$srcdir ;; | |
42195 | *) # Relative path. | |
42196 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42197 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42198 | esac | |
ac1cb8d3 VS |
42199 | |
42200 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42201 | # the directories may not exist. | |
42202 | case `pwd` in | |
42203 | .) ac_abs_builddir="$ac_dir";; | |
42204 | *) | |
42205 | case "$ac_dir" in | |
42206 | .) ac_abs_builddir=`pwd`;; | |
42207 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42208 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42209 | esac;; | |
42210 | esac | |
42211 | case $ac_abs_builddir in | |
42212 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42213 | *) | |
42214 | case ${ac_top_builddir}. in | |
42215 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42216 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42217 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42218 | esac;; | |
42219 | esac | |
42220 | case $ac_abs_builddir in | |
42221 | .) ac_abs_srcdir=$ac_srcdir;; | |
42222 | *) | |
42223 | case $ac_srcdir in | |
42224 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42225 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42226 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42227 | esac;; | |
42228 | esac | |
42229 | case $ac_abs_builddir in | |
42230 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42231 | *) | |
42232 | case $ac_top_srcdir in | |
42233 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42234 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42235 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42236 | esac;; | |
42237 | esac | |
a848cd7e SC |
42238 | |
42239 | ||
42240 | case $INSTALL in | |
42241 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42242 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42243 | esac | |
42244 | ||
a848cd7e SC |
42245 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42246 | # use $as_me), people would be surprised to read: | |
42247 | # /* config.h. Generated by config.status. */ | |
42248 | if test x"$ac_file" = x-; then | |
42249 | configure_input= | |
42250 | else | |
42251 | configure_input="$ac_file. " | |
42252 | fi | |
42253 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42254 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42255 | |
42256 | # First look for the input files in the build tree, otherwise in the | |
42257 | # src tree. | |
42258 | ac_file_inputs=`IFS=: | |
42259 | for f in $ac_file_in; do | |
42260 | case $f in | |
42261 | -) echo $tmp/stdin ;; | |
42262 | [\\/$]*) | |
ac1cb8d3 VS |
42263 | # Absolute (can't be DOS-style, as IFS=:) |
42264 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42265 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42266 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42267 | echo "$f";; |
a848cd7e | 42268 | *) # Relative |
ac1cb8d3 VS |
42269 | if test -f "$f"; then |
42270 | # Build tree | |
42271 | echo "$f" | |
42272 | elif test -f "$srcdir/$f"; then | |
42273 | # Source tree | |
42274 | echo "$srcdir/$f" | |
42275 | else | |
42276 | # /dev/null tree | |
42277 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42278 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42279 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42280 | fi;; |
a848cd7e SC |
42281 | esac |
42282 | done` || { (exit 1); exit 1; } | |
4d4ff94c VZ |
42283 | |
42284 | if test x"$ac_file" != x-; then | |
42285 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42286 | echo "$as_me: creating $ac_file" >&6;} | |
42287 | rm -f "$ac_file" | |
42288 | fi | |
a848cd7e SC |
42289 | _ACEOF |
42290 | cat >>$CONFIG_STATUS <<_ACEOF | |
42291 | sed "$ac_vpsub | |
42292 | $extrasub | |
42293 | _ACEOF | |
42294 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42295 | :t | |
42296 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42297 | s,@configure_input@,$configure_input,;t t | |
42298 | s,@srcdir@,$ac_srcdir,;t t | |
42299 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42300 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42301 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42302 | s,@builddir@,$ac_builddir,;t t | |
42303 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42304 | s,@top_builddir@,$ac_top_builddir,;t t | |
42305 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42306 | s,@INSTALL@,$ac_INSTALL,;t t | |
42307 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42308 | rm -f $tmp/stdin | |
42309 | if test x"$ac_file" != x-; then | |
42310 | mv $tmp/out $ac_file | |
42311 | else | |
42312 | cat $tmp/out | |
42313 | rm -f $tmp/out | |
42314 | fi | |
42315 | ||
42316 | done | |
42317 | _ACEOF | |
42318 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42319 | ||
42320 | # | |
42321 | # CONFIG_HEADER section. | |
42322 | # | |
42323 | ||
42324 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42325 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42326 | # | |
42327 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42328 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42329 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42330 | ac_dC=' ' |
42331 | ac_dD=',;t' | |
42332 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42333 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42334 | ac_uB='$,\1#\2define\3' |
42335 | ac_uC=' ' | |
42336 | ac_uD=',;t' | |
42337 | ||
42338 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42339 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42340 | case $ac_file in | |
42341 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42342 | cat >$tmp/stdin |
42343 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42344 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42345 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42346 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42347 | * ) ac_file_in=$ac_file.in ;; |
42348 | esac | |
42349 | ||
42350 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42351 | echo "$as_me: creating $ac_file" >&6;} | |
42352 | ||
42353 | # First look for the input files in the build tree, otherwise in the | |
42354 | # src tree. | |
42355 | ac_file_inputs=`IFS=: | |
42356 | for f in $ac_file_in; do | |
42357 | case $f in | |
42358 | -) echo $tmp/stdin ;; | |
42359 | [\\/$]*) | |
ac1cb8d3 VS |
42360 | # Absolute (can't be DOS-style, as IFS=:) |
42361 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42362 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42363 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42364 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42365 | echo "$f";; | |
a848cd7e | 42366 | *) # Relative |
ac1cb8d3 VS |
42367 | if test -f "$f"; then |
42368 | # Build tree | |
42369 | echo "$f" | |
42370 | elif test -f "$srcdir/$f"; then | |
42371 | # Source tree | |
42372 | echo "$srcdir/$f" | |
42373 | else | |
42374 | # /dev/null tree | |
42375 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42376 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42377 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42378 | fi;; |
a848cd7e SC |
42379 | esac |
42380 | done` || { (exit 1); exit 1; } | |
42381 | # Remove the trailing spaces. | |
ac1cb8d3 | 42382 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42383 | |
42384 | _ACEOF | |
42385 | ||
42386 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42387 | # `conftest.undefs', that substitutes the proper values into | |
42388 | # config.h.in to produce config.h. The first handles `#define' | |
42389 | # templates, and the second `#undef' templates. | |
42390 | # And first: Protect against being on the right side of a sed subst in | |
42391 | # config.status. Protect against being in an unquoted here document | |
42392 | # in config.status. | |
42393 | rm -f conftest.defines conftest.undefs | |
42394 | # Using a here document instead of a string reduces the quoting nightmare. | |
42395 | # Putting comments in sed scripts is not portable. | |
42396 | # | |
42397 | # `end' is used to avoid that the second main sed command (meant for | |
42398 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42399 | # See the Autoconf documentation for `clear'. | |
42400 | cat >confdef2sed.sed <<\_ACEOF | |
42401 | s/[\\&,]/\\&/g | |
42402 | s,[\\$`],\\&,g | |
42403 | t clear | |
42404 | : clear | |
ac1cb8d3 | 42405 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42406 | t end |
ac1cb8d3 | 42407 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42408 | : end |
42409 | _ACEOF | |
42410 | # If some macros were called several times there might be several times | |
42411 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42412 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42413 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42414 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42415 | rm -f confdef2sed.sed | |
42416 | ||
42417 | # This sed command replaces #undef with comments. This is necessary, for | |
42418 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42419 | # on some systems where configure will not decide to define it. | |
42420 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42421 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42422 | _ACEOF |
42423 | ||
42424 | # Break up conftest.defines because some shells have a limit on the size | |
42425 | # of here documents, and old seds have small limits too (100 cmds). | |
42426 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42427 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42428 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42429 | echo ' :' >>$CONFIG_STATUS | |
42430 | rm -f conftest.tail | |
42431 | while grep . conftest.defines >/dev/null | |
42432 | do | |
42433 | # Write a limited-size here document to $tmp/defines.sed. | |
42434 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
42435 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 42436 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42437 | # Work around the forget-to-reset-the-flag bug. |
42438 | echo 't clr' >>$CONFIG_STATUS | |
42439 | echo ': clr' >>$CONFIG_STATUS | |
42440 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
42441 | echo 'CEOF | |
42442 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
42443 | rm -f $tmp/in | |
42444 | mv $tmp/out $tmp/in | |
42445 | ' >>$CONFIG_STATUS | |
42446 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
42447 | rm -f conftest.defines | |
42448 | mv conftest.tail conftest.defines | |
42449 | done | |
42450 | rm -f conftest.defines | |
42451 | echo ' fi # grep' >>$CONFIG_STATUS | |
42452 | echo >>$CONFIG_STATUS | |
42453 | ||
42454 | # Break up conftest.undefs because some shells have a limit on the size | |
42455 | # of here documents, and old seds have small limits too (100 cmds). | |
42456 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
42457 | rm -f conftest.tail | |
42458 | while grep . conftest.undefs >/dev/null | |
42459 | do | |
42460 | # Write a limited-size here document to $tmp/undefs.sed. | |
42461 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
42462 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 42463 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42464 | # Work around the forget-to-reset-the-flag bug. |
42465 | echo 't clr' >>$CONFIG_STATUS | |
42466 | echo ': clr' >>$CONFIG_STATUS | |
42467 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
42468 | echo 'CEOF | |
42469 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
42470 | rm -f $tmp/in | |
42471 | mv $tmp/out $tmp/in | |
42472 | ' >>$CONFIG_STATUS | |
42473 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
42474 | rm -f conftest.undefs | |
42475 | mv conftest.tail conftest.undefs | |
42476 | done | |
42477 | rm -f conftest.undefs | |
42478 | ||
42479 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42480 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
42481 | # use $as_me), people would be surprised to read: | |
42482 | # /* config.h. Generated by config.status. */ | |
42483 | if test x"$ac_file" = x-; then | |
42484 | echo "/* Generated by configure. */" >$tmp/config.h | |
42485 | else | |
42486 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
42487 | fi | |
42488 | cat $tmp/in >>$tmp/config.h | |
42489 | rm -f $tmp/in | |
42490 | if test x"$ac_file" != x-; then | |
42491 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
42492 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
42493 | echo "$as_me: $ac_file is unchanged" >&6;} | |
42494 | else | |
42495 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42496 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42497 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42498 | X"$ac_file" : 'X\(//\)$' \| \ | |
42499 | X"$ac_file" : 'X\(/\)' \| \ | |
42500 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42501 | echo X"$ac_file" | |
42502 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42503 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42504 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42505 | /^X\(\/\).*/{ s//\1/; q; } | |
42506 | s/.*/./; q'` | |
42507 | { if $as_mkdir_p; then | |
42508 | mkdir -p "$ac_dir" | |
42509 | else | |
42510 | as_dir="$ac_dir" | |
42511 | as_dirs= | |
42512 | while test ! -d "$as_dir"; do | |
42513 | as_dirs="$as_dir $as_dirs" | |
42514 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42515 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42516 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42517 | X"$as_dir" : 'X\(//\)$' \| \ | |
42518 | X"$as_dir" : 'X\(/\)' \| \ | |
42519 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42520 | echo X"$as_dir" | |
42521 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42522 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42523 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42524 | /^X\(\/\).*/{ s//\1/; q; } | |
42525 | s/.*/./; q'` | |
42526 | done | |
42527 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42528 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42529 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42530 | { (exit 1); exit 1; }; }; } | |
42531 | ||
42532 | rm -f $ac_file | |
42533 | mv $tmp/config.h $ac_file | |
42534 | fi | |
42535 | else | |
42536 | cat $tmp/config.h | |
42537 | rm -f $tmp/config.h | |
42538 | fi | |
42539 | done | |
42540 | _ACEOF | |
42541 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42542 | ||
42543 | # | |
42544 | # CONFIG_COMMANDS section. | |
42545 | # | |
42546 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
42547 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
42548 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42549 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
42550 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42551 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
42552 | X"$ac_dest" : 'X\(//\)$' \| \ | |
42553 | X"$ac_dest" : 'X\(/\)' \| \ | |
42554 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42555 | echo X"$ac_dest" | |
42556 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42557 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42558 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42559 | /^X\(\/\).*/{ s//\1/; q; } | |
42560 | s/.*/./; q'` | |
ac1cb8d3 VS |
42561 | { if $as_mkdir_p; then |
42562 | mkdir -p "$ac_dir" | |
42563 | else | |
42564 | as_dir="$ac_dir" | |
42565 | as_dirs= | |
42566 | while test ! -d "$as_dir"; do | |
42567 | as_dirs="$as_dir $as_dirs" | |
42568 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42569 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
42570 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
42571 | X"$as_dir" : 'X\(//\)$' \| \ | |
42572 | X"$as_dir" : 'X\(/\)' \| \ | |
42573 | . : '\(.\)' 2>/dev/null || | |
42574 | echo X"$as_dir" | | |
42575 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42576 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42577 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42578 | /^X\(\/\).*/{ s//\1/; q; } | |
42579 | s/.*/./; q'` | |
42580 | done | |
42581 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42582 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42583 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42584 | { (exit 1); exit 1; }; }; } | |
42585 | ||
a848cd7e SC |
42586 | ac_builddir=. |
42587 | ||
42588 | if test "$ac_dir" != .; then | |
42589 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42590 | # A "../" for each directory in $ac_dir_suffix. | |
42591 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42592 | else | |
42593 | ac_dir_suffix= ac_top_builddir= | |
42594 | fi | |
42595 | ||
42596 | case $srcdir in | |
42597 | .) # No --srcdir option. We are building in place. | |
42598 | ac_srcdir=. | |
42599 | if test -z "$ac_top_builddir"; then | |
42600 | ac_top_srcdir=. | |
42601 | else | |
42602 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42603 | fi ;; | |
42604 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42605 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42606 | ac_top_srcdir=$srcdir ;; | |
42607 | *) # Relative path. | |
42608 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42609 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42610 | esac | |
ac1cb8d3 VS |
42611 | |
42612 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42613 | # the directories may not exist. | |
42614 | case `pwd` in | |
42615 | .) ac_abs_builddir="$ac_dir";; | |
42616 | *) | |
42617 | case "$ac_dir" in | |
42618 | .) ac_abs_builddir=`pwd`;; | |
42619 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42620 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42621 | esac;; | |
42622 | esac | |
42623 | case $ac_abs_builddir in | |
42624 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42625 | *) | |
42626 | case ${ac_top_builddir}. in | |
42627 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42628 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42629 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42630 | esac;; | |
42631 | esac | |
42632 | case $ac_abs_builddir in | |
42633 | .) ac_abs_srcdir=$ac_srcdir;; | |
42634 | *) | |
42635 | case $ac_srcdir in | |
42636 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42637 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42638 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42639 | esac;; | |
42640 | esac | |
42641 | case $ac_abs_builddir in | |
42642 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42643 | *) | |
42644 | case $ac_top_srcdir in | |
42645 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42646 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42647 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42648 | esac;; | |
42649 | esac | |
a848cd7e SC |
42650 | |
42651 | ||
42652 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
42653 | echo "$as_me: executing $ac_dest commands" >&6;} | |
42654 | case $ac_dest in | |
42655 | default ) | |
a848cd7e SC |
42656 | if test ! -d lib; then |
42657 | mkdir lib | |
42658 | fi | |
42659 | if test ! -d lib/wx; then | |
42660 | mkdir lib/wx | |
42661 | fi | |
8708fa76 VS |
42662 | if test ! -d lib/wx/config; then |
42663 | mkdir lib/wx/config | |
42664 | fi | |
a848cd7e SC |
42665 | if test ! -d lib/wx/include; then |
42666 | mkdir lib/wx/include | |
42667 | fi | |
42668 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
42669 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
42670 | fi | |
42671 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
42672 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
42673 | fi | |
42674 | if test -f setup.h; then | |
42675 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
42676 | fi | |
8708fa76 | 42677 | |
4b167aca | 42678 | if test ! -h wx-config; then |
8708fa76 | 42679 | chmod +x wx-config |
48112931 | 42680 | mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE} |
4b167aca | 42681 | ${LN_S} wx-config-${WX_RELEASE} wx-config |
8708fa76 | 42682 | fi |
4b167aca VS |
42683 | ( cd lib/wx/config ; |
42684 | rm -f ${TOOLCHAIN_NAME} | |
42685 | ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} ) | |
42686 | ||
8708fa76 VS |
42687 | if test -f wx-config-wrapper; then |
42688 | chmod +x wx-config-wrapper | |
4b167aca | 42689 | mv -f wx-config-wrapper wx-config-${WX_RELEASE} |
b3de4970 | 42690 | rm -f wx${TOOLCHAIN_NAME}-config |
4b167aca | 42691 | ${LN_S} wx-config-${WX_RELEASE} wx${TOOLCHAIN_NAME}-config |
8708fa76 | 42692 | fi |
a848cd7e SC |
42693 | ;; |
42694 | esac | |
42695 | done | |
42696 | _ACEOF | |
42697 | ||
42698 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42699 | ||
42700 | { (exit 0); exit 0; } | |
42701 | _ACEOF | |
42702 | chmod +x $CONFIG_STATUS | |
42703 | ac_clean_files=$ac_clean_files_save | |
42704 | ||
42705 | ||
42706 | # configure is writing to config.log, and then calls config.status. | |
42707 | # config.status does its own redirection, appending to config.log. | |
42708 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
42709 | # by configure, so config.status won't be able to write to it; its | |
42710 | # output is simply discarded. So we exec the FD to /dev/null, | |
42711 | # effectively closing config.log, so it can be properly (re)opened and | |
42712 | # appended to by config.status. When coming back to configure, we | |
42713 | # need to make the FD available again. | |
42714 | if test "$no_create" != yes; then | |
42715 | ac_cs_success=: | |
42716 | ac_config_status_args= | |
42717 | test "$silent" = yes && | |
42718 | ac_config_status_args="$ac_config_status_args --quiet" | |
42719 | exec 5>/dev/null | |
42720 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
42721 | exec 5>>config.log | |
42722 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
42723 | # would make configure fail if this is the last instruction. | |
42724 | $ac_cs_success || { (exit 1); exit 1; } | |
42725 | fi | |
42726 | ||
42727 | # | |
42728 | # CONFIG_SUBDIRS section. | |
42729 | # | |
42730 | if test "$no_recursion" != yes; then | |
42731 | ||
42732 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
42733 | ac_sub_configure_args= | |
42734 | ac_prev= | |
42735 | for ac_arg in $ac_configure_args; do | |
42736 | if test -n "$ac_prev"; then | |
42737 | ac_prev= | |
42738 | continue | |
42739 | fi | |
42740 | case $ac_arg in | |
42741 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
42742 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
42743 | ac_prev=cache_file ;; | |
42744 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
42745 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
42746 | | --c=*) | |
42747 | ;; | |
42748 | --config-cache | -C) | |
42749 | ;; | |
42750 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
42751 | ac_prev=srcdir ;; | |
42752 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42753 | ;; | |
42754 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
42755 | ac_prev=prefix ;; | |
42756 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42757 | ;; | |
42758 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
42759 | esac | |
42760 | done | |
42761 | ||
42762 | # Always prepend --prefix to ensure using the same prefix | |
42763 | # in subdir configurations. | |
42764 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
42765 | ||
42766 | ac_popdir=`pwd` | |
42767 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
42768 | ||
42769 | # Do not complain, so a configure script can configure whichever | |
42770 | # parts of a large source tree are present. | |
42771 | test -d $srcdir/$ac_dir || continue | |
42772 | ||
42773 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
42774 | echo "$as_me: configuring in $ac_dir" >&6;} | |
42775 | { if $as_mkdir_p; then | |
42776 | mkdir -p "$ac_dir" | |
42777 | else | |
42778 | as_dir="$ac_dir" | |
42779 | as_dirs= | |
42780 | while test ! -d "$as_dir"; do | |
42781 | as_dirs="$as_dir $as_dirs" | |
42782 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42783 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42784 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42785 | X"$as_dir" : 'X\(//\)$' \| \ | |
42786 | X"$as_dir" : 'X\(/\)' \| \ | |
42787 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42788 | echo X"$as_dir" | |
42789 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42790 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42791 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42792 | /^X\(\/\).*/{ s//\1/; q; } | |
42793 | s/.*/./; q'` | |
42794 | done | |
42795 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42796 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42797 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42798 | { (exit 1); exit 1; }; }; } | |
42799 | ||
42800 | ac_builddir=. | |
42801 | ||
42802 | if test "$ac_dir" != .; then | |
42803 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42804 | # A "../" for each directory in $ac_dir_suffix. | |
42805 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42806 | else | |
42807 | ac_dir_suffix= ac_top_builddir= | |
42808 | fi | |
42809 | ||
42810 | case $srcdir in | |
42811 | .) # No --srcdir option. We are building in place. | |
42812 | ac_srcdir=. | |
42813 | if test -z "$ac_top_builddir"; then | |
42814 | ac_top_srcdir=. | |
42815 | else | |
42816 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42817 | fi ;; | |
42818 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42819 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42820 | ac_top_srcdir=$srcdir ;; | |
42821 | *) # Relative path. | |
42822 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42823 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42824 | esac | |
ac1cb8d3 VS |
42825 | |
42826 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42827 | # the directories may not exist. | |
42828 | case `pwd` in | |
42829 | .) ac_abs_builddir="$ac_dir";; | |
42830 | *) | |
42831 | case "$ac_dir" in | |
42832 | .) ac_abs_builddir=`pwd`;; | |
42833 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42834 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42835 | esac;; | |
42836 | esac | |
42837 | case $ac_abs_builddir in | |
42838 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42839 | *) | |
42840 | case ${ac_top_builddir}. in | |
42841 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42842 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42843 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42844 | esac;; | |
42845 | esac | |
42846 | case $ac_abs_builddir in | |
42847 | .) ac_abs_srcdir=$ac_srcdir;; | |
42848 | *) | |
42849 | case $ac_srcdir in | |
42850 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42851 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42852 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42853 | esac;; | |
42854 | esac | |
42855 | case $ac_abs_builddir in | |
42856 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42857 | *) | |
42858 | case $ac_top_srcdir in | |
42859 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42860 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42861 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42862 | esac;; | |
42863 | esac | |
a848cd7e SC |
42864 | |
42865 | ||
42866 | cd $ac_dir | |
42867 | ||
42868 | # Check for guested configure; otherwise get Cygnus style configure. | |
42869 | if test -f $ac_srcdir/configure.gnu; then | |
42870 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
42871 | elif test -f $ac_srcdir/configure; then | |
42872 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
42873 | elif test -f $ac_srcdir/configure.in; then | |
42874 | ac_sub_configure=$ac_configure | |
42875 | else | |
42876 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
42877 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
42878 | ac_sub_configure= | |
42879 | fi | |
42880 | ||
42881 | # The recursion is here. | |
42882 | if test -n "$ac_sub_configure"; then | |
42883 | # Make the cache file name correct relative to the subdirectory. | |
42884 | case $cache_file in | |
42885 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
42886 | *) # Relative path. | |
ac1cb8d3 | 42887 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
42888 | esac |
42889 | ||
42890 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
42891 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
42892 | # The eval makes quoting arguments work. | |
42893 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
42894 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
42895 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
42896 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
42897 | { (exit 1); exit 1; }; } | |
42898 | fi | |
42899 | ||
4d4ff94c | 42900 | cd "$ac_popdir" |
a848cd7e SC |
42901 | done |
42902 | fi | |
42903 | ||
42904 | ||
42905 | echo | |
77ffb593 | 42906 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 42907 | echo "" |
4d4ff94c | 42908 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 42909 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 42910 | |
77ffb593 JS |
42911 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
42912 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
42913 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 42914 | |
77ffb593 JS |
42915 | echo " What level of wxWidgets compatibility should be enabled?" |
42916 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
42917 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 42918 | |
77ffb593 | 42919 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
42920 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
42921 | echo " png ${wxUSE_LIBPNG-none}" | |
42922 | echo " regex ${wxUSE_REGEX}" | |
42923 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
42924 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
42925 | echo " xpm ${wxUSE_LIBXPM-none}" | |
42926 | fi | |
42927 | echo " zlib ${wxUSE_ZLIB}" | |
42928 | echo " odbc ${wxUSE_ODBC}" | |
42929 | echo " expat ${wxUSE_EXPAT}" | |
42930 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
42931 | echo " sdl ${wxUSE_LIBSDL}" | |
42932 | ||
42933 | echo "" | |
42934 |